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

    Duet3 CAN Communication

    Scheduled Pinned Locked Moved
    Firmware developers
    2
    4
    225
    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.
    • Parcevalundefined
      Parceval
      last edited by

      Hello everyone,

      I'm currently trying to communicate with my Duet 3 via the CAN interface. I have a self-developed board that controls several heaters and sensors. To keep it simple I want to make it look like an expansion board for the Duet3. When I try to run M308, i get correct data on my board, but the Duet is not happy with the response. First I get "Warning: Discarded msg src=1 typ=6031 RID=0 exp 0" and then "Error: M308: Response timeout: CAN addr 1, req type 6031, RID=0". Therefore I assume that my reply arrives but something is wrong. I have already searched in the firmware but haven't really found what should be attached as "text", for example. Can someone tell me what exactly the Duet3 expects as a response?

      Thank you!

      1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators
        last edited by

        Most requests sent by the main board expect a CanMessageStandardReply, which isn't type 6031.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        1 Reply Last reply Reply Quote 0
        • Parcevalundefined
          Parceval
          last edited by

          That makes sense, I had a bug in the software that sent the wrong ID.

          Another question, is there a way to send a message to the web interface via CAN, similar to M117? Or in the other direction via G-code a message to the "Expansion Board" similar to M118.

          Thank you.

          1 Reply Last reply Reply Quote 0
          • dc42undefined
            dc42 administrators
            last edited by

            Currently there is no way to send a GCode command via CAN, although we may add this facility in the future.

            Duet WiFi hardware designer and firmware engineer
            Please do not ask me for Duet support via PM or email, use the forum
            http://www.escher3d.com, https://miscsolutions.wordpress.com

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