maocypher / Octoprint-Smart-Filament-Sensor

OctoPrint plugin that lets integrate Smart Filament Sensors like BigTreeTechs SmartFilamentSensor directly to RaspberryPi GPIO pins.
GNU General Public License v3.0
13 stars 20 forks source link

Filament runout resume issue, with ender 3 v2 (customized firmware) #35

Open PD5DJ opened 3 years ago

PD5DJ commented 3 years ago

I have installed the plugin, and the smart filament sensor is working.

When selecting the virtual printer, runout is detected, and printer is going into paused mode, and waits for user input to resume again (in octoprint) Resume button is present.

But when I connect my Ender 3 V2, (that has customized firmware for M600 and nozzle park function) It does do a M600 action when running out but dont get the resume button.

The ender 3 v2 display does not pass filament runout information.

Any ideas?

maocypher commented 3 years ago

Did you try e.g. M1 instead?

PD5DJ commented 3 years ago

I dont understand.. can you explain what you mean with M1 command?

maocypher commented 3 years ago

In the plugin you can change which pausing command is send. But all you want to use must be configured in OctoPrint as pausing commands. Otherwise the print won't be paused properly

PD5DJ commented 3 years ago

Octoprint is sending a M600 fine,, the printer is peforming a filament runout procedure then parks all fine so far. .. but in octoprint I can not press a button to resume again,, While selecting the virual printer, all is behaving as it should. I get the resume button. Normally you press resume on the printer,, but the display on the ender is a DWIN display, and does not show anything else then temperatures when printing via USB. Best is to have a box where you could define your own GCODE procedure.

PD5DJ commented 3 years ago

I have succesfully configured octoprint with the GCODE script for pausing and resuming behaviour i like to see. So when pressing pause and resume in octoprint it performs my GCODE scripts.

Although I can not seem to get this plugin to perform a "octoprint" pause.. I have tried all Pause command's of the plugin, but none initiate the scripts..

PD5DJ commented 3 years ago

Ok after a full restart of octoprint and printer.. M1 seems te work. But now I get a Red message box in octoprint saying M1 command is not sent and is blocked..

Can you add this command:

@pause

https://docs.octoprint.org/en/master/features/atcommands.html

PD5DJ commented 3 years ago

I have Implemented a real octoprint pause and cancel command, and all is working perfectly now.

I have added 2 commands:

                    <option value="@pause">{{ _('OctoPrint - Pause print') }}</option>
                    <option value="@cancel">{{ _('OctoPrint - Cancel print') }}</option>