Updating firmware with HTTP Requests
roseg0ld last edited by
I'm interested in allowing our users to update their firmware and macros directly from the Nautilus plugin for Cura (I would be happy to submit a pull request with this functionality to the DuetRRF Plugin as well). I started with macros, and everything is working great there using the HTTP request scheme set up by the DuetRRF Plugin. I haven't published the code yet but I will soon.
Before I tackle firmware I wanted to ask @chrishamm, @dc42, and any other knowledgeable folks what to watch out for in terms of firmware installation? For macros I just recursively delete everything in macros and then upload the new ones. I assume firmware updating isn't quite as easy? Is there a good example to look to somewhere as to what order things need to be uploaded/deleted/changed, I didn't find it in the DWC source (I'm not super experienced w/ JS so I'm sure I just missed it).
For firmware updates, you need to upload the correct firmware file to /sys with exactly the right name (i.e. without any version number suffixes) using rr_upload. When it completes successfully, send M997.
Updates crossing some version numbers are a little more complicated, e.g. you may need to upload a new IAP file too.
bearer last edited by
You might need to differentiate between Duet 2 Wifi, Maestro and Ethernet boards (as well as Duet 3).
While Wifi and Ethernet share the RepRap firmware, the Wifi board can need to have the Wifi firmware updated. (Maybe you can just upload all firmware files and run