How to disable PanelDue cheksums without USB/DWC/SD card.



  • So, as one does, I found myself wanting to send g-code to the PanelDue port without disabling cheksums using a USB/DWC/SD card.

    Adding a line number and an xor checksum to M575 P1 S0 is all that I needed to do, manually xor'ing that is possible, and i tried various online cheksum calculators to no avail. Copy&Pasted some jsfiddles to make one that worked and produced a valid cheksum'ed g-code N1 M575 P1 S0*39 and will also generate valid cheksum for other inputs (i think).

    Took me a while to find out I had to add a line number, which in all fairness is clearly stated on https://duet3d.dozuki.com/Wiki/Gcode#Section_Checking (but having an actual valid example might be beneficial rather than N123 [...G Code in here...] *71?)

    Maybe someone finds it usefull, you never know when you find yourself without an micro usb cable or other predicament..

    (I left out the baud rate as it has to be known in order to connect in the first place)

    Edit: i've submitted a feature request to the RealTerm author to add RRF compatible checksums to RealTerm, which he was positive to having provided the code (which might work) but I couldn't build the Delphi code and test. I'll update if/when he builds a working version.


  • Moderator

    @bearer said in How to disable PanelDue cheksums without USB/DWC/SD card.:

    send g-code to the PanelDue port without disabling cheksums

    I've added a link to this thread in the 'Checking' section of the Gcode dictionary.

    Did the code to generate the checksum at the end of the 'Checking' section not work?

    Ian



  • @droftarts said in How to disable PanelDue cheksums without USB/DWC/SD card.:

    Did the code to generate the checksum at the end of the 'Checking' section not work?

    I would think it does; not sure if its actually language specific or psudo code - I did copy that and adapted it to javascript (and the only reason for javascript and jsfiddle is quick and shareable user interface).


  • Moderator

    @bearer I just had a play around with the code in online C and C++ compiler, but can't make it work. But then I have no idea what I'm doing, as I am definitely not a programmer! Thanks for sharing your javascript code, hopefully if people use this they'll find it.

    Ian



  • @droftarts Join the club, I mostly fall in the even a blind squirrel finds a nut once in a while category : )

    If you post a link to the online stuff I'm sure someone can nudge you in the right direction though


Log in to reply