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

    M118 send message to second UART

    Scheduled Pinned Locked Moved
    General Discussion
    4
    10
    440
    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.
    • Jimmykcundefined
      Jimmykc
      last edited by

      I want to send UART command from IO port. This command is not for Duet Panel. It is for special device. How do I do?

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

        Which Duet are you using? A second UART is supported on Duet 3 MB6HC and Duet 3 Mini.

        To use the second UART on those machines, you first need to configure it using M575. After that you can use M118 with parameter P5 to send messages to it.

        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

        peter247undefined Jimmykcundefined 2 Replies Last reply Reply Quote 0
        • peter247undefined
          peter247 @dc42
          last edited by

          @dc42 Interesting , so you can send commands from the second UART to something like a arduino ? , But can you send command from a arduino back to the duet for something like a external trigger ?

          Ender 5 plus linear rail and hemera powered by duet 2 wifi , CR10s pro v1 with bltouch mostly stock , BLV mgn Cube slowly being built powered by duet 3 mini 5+

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

            @dc42 I have configured M575 P1 B115200 with different parameter S, then use M118 with parameter P5. The console show "M118 : Invalid message type : 5"
            333.jpg

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

              @jimmykc the second aux port is P2 in M575, not P1.

              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

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

                I can work on second UART port, thanks. I have another question. I want to send UART command (G code or M code) to the second UART port. Does the second UART port get all G code and M code that like as USB port?

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

                  @jimmykc said in M118 send message to second UART:

                  I can work on second UART port, thanks. I have another question. I want to send UART command (G code or M code) to the second UART port. Does the second UART port get all G code and M code that like as USB port?

                  Yes, the second aux port should respond to G- and M-commands received from a connected device.

                  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

                  o_lampeundefined peter247undefined 2 Replies Last reply Reply Quote 0
                  • o_lampeundefined
                    o_lampe @dc42
                    last edited by

                    @dc42 said in M118 send message to second UART:

                    Yes, the second aux port should respond to G- and M-commands received from a connected device.

                    Can I also send

                    set global.variablename = nn.nn
                    

                    that would probably be the answer to
                    @peter247 said in M118 send message to second UART:

                    But can you send command from an arduino back to the duet for something like a external trigger ?

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

                      @dc42 o.k a little confused , so on the mini 5+ p0 is the usb , p1 is io_0 / PanelDue ? , where is p2 ?

                      Ender 5 plus linear rail and hemera powered by duet 2 wifi , CR10s pro v1 with bltouch mostly stock , BLV mgn Cube slowly being built powered by duet 3 mini 5+

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

                        @peter247 P2 is on IO_1.

                        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