Octoprint Reseting Printer + Power panics
Greetings fellow Prusa MK3 owners. I wondering if anyone has a workaround for the problem I encountered yesterday...
I was about 19 hours into a 22 hour print and a power interruption occurred (multiple brief interruptions). I was not home at the time but other family members were. I got a pushover notification via octoprint that communication was lost with the printer. I asked a family member to check on it and it was at the main screen with “MK3s Ready”. I knew then that the print was a loss. I got home and the statistics for the last print indicates “1” power failure making me think power panic did work as expected but when the raspberry pi tried to reestablish the connection it reset the printer killing the print. The raspberry pi has a backup power supply.
I was printing from the SD card, only using octoprint to monitor the print remotely. I am running the latest firmware 3.7.2 which should safeguard against multiple power panics.
When I tried to recreate the scenario power panic worked as expected but if octoprint attempted to re-establish the connection it would reset the printer ultimately killing the print and returning to the main menu.
Does anyone print from SD, use Octoprint to monitor and have power panic work?
My internet research indicates that the Serial DTR signal is responsible for this reset and there is a jumper J1 I can remove on the einsy to resolve the reboot (I will loose firmware update capability when the jumper is removed).
Thought I would throw this out there to the forum and see what others have to offer. Happy printing.
RE: Octoprint Reseting Printer + Power panics
if you are printing from USB power panic does not allow restart because the printer has no way to tell the USB what happened. it's one feature that you loose when you switch to printing via octoprint
RE: Octoprint Reseting Printer + Power panics
I am printing from a SD card hoping to retain the power panic feature. The serial link with Octoprint appears to be the deal breaker... as it causes the printer to reset.
RE: Octoprint Reseting Printer + Power panics
What if you power the pi from a "smart" outlet or remote control outlet? Those default to off after power loss so the pi would not power up again and reset the printer until you manually did so; then you could resume the print, let it finish, and then power up the pi again.
RE: Octoprint Reseting Printer + Power panics
that doesn't work unless you are printing from the SD card and not from octoprint. octoprint only sends the printer 1 line at a time and waits for the printer to respond OK once it executes the line. so on a power fail the printer has nothing to resume.
RE: Octoprint Reseting Printer + Power panics
that doesn't work unless you are printing from the SD card and not from octoprint. octoprint only sends the printer 1 line at a time and waits for the printer to respond OK once it executes the line. so on a power fail the printer has nothing to resume.
Maybe you should actually read the posts by the OP. He *is* printing from SD and is only using octoprint to monitor it, not drive it.
RE: Octoprint Reseting Printer + Power panics
Just wanted to share something I have found cruising the web for a possible solution to the serial reset problem... Besides modifying hardware...
I found the following post on github by user mkbel...
This is feature.
You can permanently disable this feature by command:;C32u2_RMD
You can reenable this feature by command (semicolon is part of the command);C32u2_RME
You can reset the printer by command:;C2560_RES
It appears as though the commands above if you enter then into the terminal will disable the serial reset via software. I have not dived into the firmware for what is really going on under the hood but it would be the perfect workaround/solution to my problem. I can live with setting it back if I want to perform a firmware update.
My printer is currently tied up reprinting the 22 hour print which was ruined by the reset...
I will need to wait until tomorrow night to report back unless a forum member would like to give it a try 😉
RE: Octoprint Reseting Printer + Power panics
I can confirm that sending the commands above via a serial terminal will disable/enable the serial reset when connecting/reconnecting.
I was not able to send them via the octoprint terminal as that seems to only accept "G" code commands. When the command is entered into a serial terminal the printer will respond with something like "Reset disabled/enabled".
I have disconnected and reconnected the serial connection in Octoprint and it does not reset 👍. I have also tested power panic with a serial reconnect and all is well.
If you are worried about the reset when connecting via serial or reconnecting this seems to be a workaround/solution.
RE: Octoprint Reseting Printer + Power panics
I can confirm that sending the commands above via a serial terminal will disable/enable the serial reset when connecting/reconnecting.
I was not able to send them via the octoprint terminal as that seems to only accept "G" code commands. When the command is entered into a serial terminal the printer will respond with something like "Reset disabled/enabled".
I have disconnected and reconnected the serial connection in Octoprint and it does not reset 👍. I have also tested power panic with a serial reconnect and all is well.
If you are worried about the reset when connecting via serial or reconnecting this seems to be a workaround/solution.
I just had this done and it's working as pentiumxvi suggested. If you're wondering how to access serial terminal, just disconnect your Pi if you have one and connect your pc to the usb port on prusa, then select serial in putty and type in your machine's com port. Once you're connected, the terminal output is probably not formatted like ssh or telnet, just ignore that and paste/type in the command and you'll see the Reset disabled confirmation.
RE: Octoprint Reseting Printer + Power panics
I can confirm that sending the commands above via a serial terminal will disable/enable the serial reset when connecting/reconnecting.
I was not able to send them via the octoprint terminal as that seems to only accept "G" code commands. When the command is entered into a serial terminal the printer will respond with something like "Reset disabled/enabled".
I have disconnected and reconnected the serial connection in Octoprint and it does not reset 👍. I have also tested power panic with a serial reconnect and all is well.
If you are worried about the reset when connecting via serial or reconnecting this seems to be a workaround/solution.
I just had this done and it's working as pentiumxvi suggested. If you're wondering how to access serial terminal, just disconnect your Pi if you have one and connect your pc to the usb port on prusa, then select serial in putty and type in your machine's com port. Once you're connected, the terminal output is probably not formatted like ssh or telnet, just ignore that and paste/type in the command and you'll see the Reset disabled confirmation.
there is a video on how to do it?
RE: Octoprint Reseting Printer + Power panics
Can someone confirm my observation that disabling serial reset via ;C32u2_RMD
brakes firmware update functionality via Prusa Slicer and Octoprint? I was only able to flash from Slicer while simultaneously pressing the printers reset button.
(using Win10 2004)
RE: Octoprint Reseting Printer + Power panics
@he_nd_ric
Performing the “RMD” command will break firmware updates as the microcontroller cannot enter the reset state necessary to perform the update. Performing a reset as you have found at the right time will allow the microcontroller to enter the reset state and accept the firmware.
Whenever a firmware update comes along I open up a terminal and send the “RME” command above to enable the reset, then perform the update and then send the “RMD” command after the update.
It is a small inconvenience to pay for printer not to reboot.
RE: Octoprint Reseting Printer + Power panics
Wow. That is really good to know.
I've been bitten by that reset after a power panic several times. I will try this out.
Thank you,
Chris Shaker
RE:
Can anyone confirm this still works with octoprint and MK3 in 2023? Can I confirm the intent of this is you can power cycle or lose power to your printer (power panic) (but not octo) and you can resume the print?
I just dont see this command or discussion about it anywhere else and I thought people would be singing from the rooftops if that was the case.
RE:
I guess most people simply don't connect octoprint while printing from SD card …?
In any case, I don't know about the MK3, but this definitely is no longer a problem with the new 32-bit controller (MK4 / XL)