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

    Duet Ethernet not responding to UART commands except for M408

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    3
    7
    342
    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.
    • Marius Breuerundefined
      Marius Breuer
      last edited by

      Hi everyone,

      I want to use my Duet Ethernet (Firmware 2.03, Electronics 1.02 or later) to control a 3 axis robot via an arduino-like microcontroller.
      The controller in question is a Teensy 4.0 with known good UART.
      I've tested the UART connection by sending G-Code commands and printing the responses on my serial terminal.
      All G-Codes work as they are supposed to, execpt that I never get a response from the Duet. Only when sending M408 I get the JSON response.

      Is there a setting that limits the Duet responses to only M408 for UART?

      This is the UART configuration in config.g:
      M575 P1 B57600 S0

      Thanks!

      dc42undefined 1 Reply Last reply Reply Quote 0
      • A Former User?
        A Former User
        last edited by A Former User

        With S0 in M575 you're using PanelDue mode and PanelDue only uses M408 so that might be why?

        Ref https://duet3d.dozuki.com/Wiki/Gcode#Section_M575_Set_serial_comms_parameters and try S2 instead if you need responses to other commands

        edit: no, that'll only work with recent RRF3.x

        Marius Breuerundefined 1 Reply Last reply Reply Quote 0
        • Marius Breuerundefined
          Marius Breuer @A Former User
          last edited by

          @bearer yeah, i tried S2 too before noticing the RRF3 compatibility.
          I'd really like the "ok\n" feedback from the Duet to confirm that the G-Code sent is valid and begin executed.

          If there is no direct solution I might just connect the Teensy 4.0 via USB to the Duet, but I really wanted to keep the USB free for direct inputs and setup by the user...

          1 Reply Last reply Reply Quote 0
          • A Former User?
            A Former User
            last edited by

            You could maybe go tcp/ip and telnet protocol if you intend to stick with 2.03? (it'll likely be dropped at some point in 3.x though).

            enc28j60 or w5550 are cheap addons with good library support afaik

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

              PanelDue accepts only JSON-formatted responses. Therefore, when the serial port is in PanelDue mode and you send a command that does not generate a JSON response automatically, RRF 2.05 and earlier saves any response for later retrieval by the next M408 command. So you need to send M408 to get the response (if any).

              RRF 3.1.1 changes this in two respects:

              • Most commands that generate a non-empty response cause a JSON response packet to be sent immediately;
              • You have the option (using M575) of putting the serial port in raw mode, so that responses are sent in plain text.

              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

              Marius Breuerundefined 1 Reply Last reply Reply Quote 0
              • Marius Breuerundefined
                Marius Breuer @dc42
                last edited by

                @dc42 then I'll probably use the USB host port of my MCU to talk to the Duet. Do I need to provide either or both +5V and GND?

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

                  @Marius-Breuer said in Duet Ethernet not responding to UART commands except for M408:

                  @dc42 then I'll probably use the USB host port of my MCU to talk to the Duet. Do I need to provide either or both +5V and GND?

                  GND but not +5V.

                  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