Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Aux Comms Issue

    Duet Hardware and wiring
    2
    4
    123
    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.
    • cjm
      cjm last edited by

      I have upgraded my H-bot 3D printer with a Maestro and am very pleased with the quieter and faster printing.

      However, I am trying to use the Aux serial comms port (Panel Due connector) and whilst I can send control messages and see the printer respond (e.g. turn heater bed on, zero and move axes) I don’t receive any replies on the aux TX line in response to M105 or any other command.

      To try to diagnose the fault I have:

      a) put M575 P1 B57600 S0 in config.g to turn off checksum checking (although I am sending both a line number and checksum) but this has made no difference.

      b) run M111 P3 S1 via the USB serial and can see that the G-code interpreter is receiving commands from the aux port, including M105.

      c) Sent M105 via the USB port and confirmed the board responds with the correct revertive containing the temperatures,

      d) checked the Duet RX line with my scope and can see 3.3V logic level signals that my scope decodes as the correct ascii character sequence from my controller;

      e) checked the Duet TX line with my scope but just see a static 3.3V level. Note, this was checked both with and without my controller connected to the TX line, in case it was loading the TX line.

      Any suggestions as to what I have missed would be gratefully received?

      Perhaps there is a hardware fault on the TX line?

      Thank you,

      John

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

        The aux port defaults to operating in PanelDue mode. This means that you get the reply to a command, need to send a M408 command and look for the "seq" and "msg" fields in the response.

        I have it on the work list for RRF3 to allow it to be switched to raw mode using another M575 parameter.

        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

        cjm 1 Reply Last reply Reply Quote 0
        • cjm
          cjm @dc42 last edited by

          Thanks very much for the reply which explains things.

          I was just about to reply with:

          When “M117 Hello World” is sent via web control (or USB) the aux serial TX line emits

          {“message”:”HELLO WORLD”}/n

          and this is received and correctly displayed by my controller. So, it looks as though the TX line hardware is working.

          Then tried sending M408 S0 and received a sensible JSON response.

          Also found that M20 gives no response, whereas M20 S2 yields sensible JSON.

          So, it looks as though via the Aux channel, the Maestro is only responding to commands that request a JSON format response.

          QED!

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

            @cjm said in Aux Comms Issue:

            So, it looks as though via the Aux channel, the Maestro is only responding to commands that request a JSON format response.

            That's correct. Responses to other commands are saved until you ask for them using M408.

            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