Octoprint Reseting Printer + Power panics  

  RSS
pentiumxvi
(@pentiumxvi)
New Member

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.

Posted : 24/07/2019 2:08 pm
david.a66
(@david-a66)
Honorable Member

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

Posted : 24/07/2019 4:31 pm
pentiumxvi
(@pentiumxvi)
New Member

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.

Posted : 24/07/2019 6:14 pm
vintagepc
(@vintagepc)
Noble Member

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.

Posted : 24/07/2019 6:18 pm
david.a66
(@david-a66)
Honorable Member

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.

Posted : 24/07/2019 6:39 pm
vintagepc
(@vintagepc)
Noble Member
Posted by: david.a66

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.

This post was modified 9 months ago by vintagepc
Posted : 24/07/2019 6:41 pm
pentiumxvi
(@pentiumxvi)
New Member

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 😉 

 

Posted : 24/07/2019 8:28 pm
djholm and alvaro1982 liked
pentiumxvi
(@pentiumxvi)
New Member

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.

Posted : 27/07/2019 4:18 pm
djholm liked
timfz
(@timfz)
Active Member
Posted by: pentiumxvi

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.

Posted : 30/07/2019 1:40 pm
raboumas
(@raboumas)
New Member
Posted by: @timfz
Posted by: pentiumxvi

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?

 
Posted : 06/04/2020 6:05 pm
Share:

Please Login or Register