i connect my Qidi i-Mate S printer to an RPI with Octoprint.
When I make a Gcode File with my Qidi Slicer I can't print this files.
The Problem ist that the slicer add some Lines First with a thumbnail.
that are all M4010 commands. Over the Serial Port the Printer can't accept this commands.
give it a chance to Filter these commands automatically when Octoprint sent this Data to the Printer?
What did you already try to solve it?
When I manually delete all Lines with the M4010 commands it work, but the is tiresome.
I Found an old Plugin named "OctoPrint-Commfilter" but I don't know how it works.
Maybe try slic3r app instead of the Qidi slicer. It does not add those gcode commands.
In slic3r there is the capability to enter pre- and post- commands under the printer configs and maybe the same is available in the Qidi slicer. If so then modify those segments as needed to eliminate the problem lines.
In the OctoPrint Settings, Serial Connection, Firmware & protocol, Protocol fine tuning there is a text box for Ignored commands. If you add M4010 to that text box, does that help?
I'd be interested in getting a copy of an exported gcode to see if I could support it in Slicer Thumbnails. I suspect it's similar to the weedo support I recently added.
Thanks, that does help some. Seems it's more closely related to the mks image encoding which is converting it to C header image style. Unfortunately, it's not exact as my existing parser for that format doesn't seem to work properly with it. Adding support in the plugin may be harder than I originally thought.