Closed eyal0 closed 6 years ago
We want to be able to notice whenever the user or a script sends the option to the printer. We also want to record instances when there might have been an M503 command and the printer outputs all the settings.
We need a way to store those settings so that we can recall them when analyzing a file. I would just put it on the front of the file but that would modify all the progress numbers.
If the progress output was in bytes instead of percentage, the analyzer could attach it to the front of the file, analyze, and then subtract from the progress. That seems like a lousy solution.
A better solution would be to have those options as a separate input. Currently there is a {gcode}
tag. We would add another tag, maybe called {config}
and it would be a file with all the commands saved in it. I guess that the analyzer would store this file before analyzing? Having to make a temporary file isn't great.
I swear I've seen a way to pull the printer firmware info before on https://docs.octoprint.com, but can't seem to find it at this time. I'll keep looking for you.
Found it...I'm using this hook in the BedLevelVisualizer Plugin to get the mesh data back from the server. Seems like there is a built in helper function though shown in the example given; from octoprint.util.comm import parse_firmware_line
. Wonder if that would work for you?
https://github.com/OctoPrint/Plugin-Examples/blob/master/read_m115_response.py
Or another approach would be building the whole thing out like EEPROM Editor does...
Thanks for finding those.
I don't need anything that complicated. I've already got the parsing done, now I just need to pass it into marlin-calc so that it'll use it. The parsing is done like this: 2908181
Those m commands set the printer's jerk, acceleration, etc. By saving them, we can add them to scripts that do analysis