Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Nak on bad crc

    Scheduled Pinned Locked Moved
    General Discussion
    2
    2
    82
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jmbell1989undefined
      jmbell1989
      last edited by

      Is there a way to turn on some sort of bad command response when crc checking doesn't match? Currently when you send a command with a line number and crc the response is either an ok/n or no response at all if something is malformed. I'd like to be able to capture bad responses instead of waiting for a certain period of time. Thanks in advance!

      droftartsundefined 1 Reply Last reply Reply Quote 1
      • droftartsundefined
        droftarts administrators @jmbell1989
        last edited by

        @jmbell1989 See https://docs.duet3d.com/en/User_manual/Reference/Gcodes#checking

        According to the above, it will only produce an error if either line number or checksum is missing. Otherwise, if the checksum is different from the one the firmware calculates, it's waiting on the request to repeat transmission of the line. I guess this eventually times out. I don't think there's any way around this behaviour; I've asked @dc42. I have also asked what CRC-16 algorithm is used to calculate the checksum, as there are quite a few different ones.

        Ian

        Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Unless otherwise noted, all forum content is licensed under CC-BY-SA