Giter Club home page Giter Club logo

octoprint-prusaresetmode's Introduction

OctoPrint-PrusaResetMode

This is a simple plugin to prevent your Prusa printer (MK2, MK2S, MK3, MK3S, MK3S+) from resetting when OctoPrint connects.

When OctoPrint connects to Prusa printers, it restarts them causing any ongoing prints to fail. This is a necessary feature to update the printer firmware, but it makes the power panic useless.

There are numerous threads online referring to this problem, e.g.:

The easiest workaround is to send "hidden" commands to the ATmega32U2 printer's serial controller, which allow you to enable and disable the Reset Mode: ;C32u2_RMD and ;C32u2_RME.

Unfortunately, these commands cannot be sent directly through the OctoPrint terminal because they begin with the character ; and are interpreted as comments.

This plugin adds a tab to OctoPrint with buttons that allow you to conveniently enable and disable the Reset Mode.

Remember to reactivate the Reset Mode before upgrading your printer firmware, or the update will fail as it needs a reboot.

Is it safe to use this plugin?

This plugin does nothing by itself. Commands are sent to the ATmega32U2 chip only when you press the buttons on the Prusa Reset Mode tab.

The ATmega32U2 Reset Mode can be deactivated and reactivated several times, taking into account that each change writes to the ATmega32U2 EEPROM and the datasheet rates it for 100,000 writing cycles.

Screenshots

screenshot

Setup

Install via the bundled Plugin Manager or manually using this URL:

https://github.com/jacopotediosi/OctoPrint-PrusaResetMode/archive/main.zip

Tested On

I have only tested this plugin with OctoPrint 1.9.3 and my Prusa MK3S+ printer, but it should work with any printer using an ATmega32U2 as USB-serial chip (Prusa MK2, MK2S, MK3, MK3S, MK3S+...).

Support My Efforts

I, jacopotediosi, programmed this plugin for fun and personal use. I will do my best effort to support those that have issues with it. Please return the favor and leave me a tip if you find this plugin helpful and want me to continue future development.

paypal

No paypal.me? Send funds via PayPal to [email protected]

You can use this link too. But the normal PayPal fee will be deducted.

octoprint-prusaresetmode's People

Contributors

jacopotediosi avatar

Watchers

 avatar

octoprint-prusaresetmode's Issues

ATmega32U2 EEPROM writing limits

Please update the readme.

  1. Changing the USB reset mode writes to the ATmel 32u2 eeprom which has a limit (even it is high, you should mention it.)
  2. When the USB reset is disabled on MK3/S/+ firmware updates via PrusaSlicer will fail as it needs a reboot to write to the xflash.
  3. Read FW version is bit misleading as you only read the 32u2 firmware version and not he Printer firmware, here you can use the gcode "PRUSA Fir"

Plugin doesn't seem to work on my system

First of all: Thank you for your work, I like the idea behind the plugin.

I don't know if I'm doing something wrong, but it doesn't seem to work on my system.
I can see the commands in Terminal, but I can't see any response (screenshot).
I also don't see any change in behaviour, a reconnect still resets the printer.

Octoprint 1.10.0rc4
Prusa MK3S+ (It's been an early MK3 when I bought it, I've upgraded it later. It has an earlier version of the Einsy Board than most MK3)

Please let me know if there is anything I could do to help troubleshooting.

Thank you for looking into it!

octoprint-systeminfo-20240413105058.zip
Screenshot 2024-04-13 at 10 57 28

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.