-
Notifications
You must be signed in to change notification settings - Fork 998
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Very weird partial missing output when running G35 #1103
Comments
It appears to suppress any line that contains the string "Count" - Code:
Output:
EDIT: Going to take a guess the problem is here: https://github.com/kliment/Printrun/blob/master/printrun/pronsole.py#L1295 |
Count is a keyword used in M114 output. |
Yeah, so does this mean outputting "Count" in commands other than M114 is an issue, or does it mean the parsing in pronterface needs to be refined? Does Marlin define "reserved keywords" in output? |
I think the "Count" is meant to detect "Extruder Count" so we can probably refine it. Can you check what M114's output is (as emitted by firmware) on your system? |
This is the Marlin M114 implementation: https://github.com/MarlinFirmware/Marlin/blob/2.0.x/Marlin/src/gcode/host/M114.cpp Looks to be pretty complicated and not immediately obvious where this branches off to. This is the output from my machine, captured using minicom:
Maybe matching for " Count " with surrounding spaces would work better? |
Excellent idea - can you try it out on your setup and verify it works correctly? |
Any line containing "Count" is being detected as M114 output, so for example any string containing the word "Counter-Clockwise" gets swallowed. By changing the test to ``" Count "`` this should be improved. Fixes kliment#1103
Testing #1104, G35 looks good in pronsole:
I can't test M114 detection with a real print (monitoring) right now, so I added a little hack to the recvcb (See "DEBUG PRINT" comment):
And this prints as expected:
|
I have raised a Marlin issue to discuss the broader issue of Marlin realtime output being hard to parse: MarlinFirmware/Marlin#19272 |
Printrun version: 2.0.0rc6 / master ff056a0
Printer firmware: Customized Marlin branched off of bugfix-2.x.0 / e492c613f7698c82adc5d2317e4b1247536f42fa
I am using the G35 command: https://marlinfw.org/docs/gcode/G035.html which I have customized quite a bit but mainly to add debug printing and debug this issue.
Pronterface appears to be swallowing the "Clockwise" / "Counter-Clockwise" line occasionally. In the base Marlin code, where it is all printed on one line, the line seems to only appear when it says "Clockwise", if it says (should say) "Counter-Clockwise" it appears to be swallowed whole.
Output from minicom - Good
Output from pronterface - bad
pronsole - bad
With debug communications enabled it works:
The text was updated successfully, but these errors were encountered: