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

    Duet 3 UART

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    5
    13
    1.0k
    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.
    • Toastinatorundefined
      Toastinator
      last edited by

      I have a Duet 3 with PanelDue on IO-0 and Im wondering if its possible to Control another UART Device on IO-1 (The Wiki Claims IO-0&1 can use UART)

      and if Possible, How to do that. Im new to this Type of thing.

      The UART Device i have is a Music Player. Since the Duet 3 Cannot Play a Sound During Heat-up/Start/End Or anything In-between. I wanted that Capability.

      Im assuming the RX would connect to OUT and TX would be IN on the Duet IO-1

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

        I have very recently added support for the second UART on Duet 3 to RepRapFirmware, but not tested it yet. You will need to use M575 to create the second Aux channel and set its baud rate. After that you should be able to send GCode commands to it, or send strings to it using M118.

        It's possible to play tunes on PanelDue or in the browser using sequences of M300 commands, with pauses inserted using G4 if needed.

        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
        • Toastinatorundefined
          Toastinator
          last edited by

          I tried M300 to make Sound with the Buzzer on the PanelDue, But its unfortunately Not Loud enough.

          for the IO1 Connections, Does RX Terminate to Duet3 IO1 Out and TX Terminate to Duet3 IO1 IN?
          Ground and Voltage is Easy.

          I will give it a shot and Report Back.

          If this Works, I could get it to play MP3 Files of anything I would Like at any time.

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

            @Toastinator said in Duet 3 UART:

            for the IO1 Connections, Does RX Terminate to Duet3 IO1 Out and TX Terminate to Duet3 IO1 IN?
            Ground and Voltage is Easy.

            The other way round. Tx (which you must connect to Rx on your other device) is on IO_1_OUT, and Rx (which you must connect to Tx on your other device) is IO_1_IN. Logical, because Rx is an input and Tx is an output.

            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
            • Toastinatorundefined
              Toastinator
              last edited by

              I setup the Board In the Config File with M575 P2 S2 B9600 (Baud rate is 9600 on this Item)

              Im trying to Send Commands to this Board Using M118 P5 S"XXXXXX" and I get an "Error: M118: Invalid message type: 5"

              But in the Reference it Mentions #5

              M118: Send Message to Specific Target
              Supported in RepRapFirmware 1.21 and later.

              Parameters

              Pnnn Message type (0 = Generic [default], 1 = USB, 2 = PanelDue/UART, 3 = HTTP, 4 = Telnet, 5 = second UART) (optional)

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

                @Toastinator said in Duet 3 UART:

                "Error: M118: Invalid message type: 5"

                is the duet's firmware up to date? (run M115 to verify)

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

                  Support for the second UART is not yet on released firmware. It will be in 3.2beta1 which is imminent.

                  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

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

                    @dc42 which version have second uart, 3.2.2? or 3.3?

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

                      @albertshao 3.4.0 is the current supported firmware version.

                      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

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

                        @dc42 I test with my duet2 wifi board.
                        M575 P2 B57600 and reply "Error: M575: parameter 'P' too high".
                        Where do I miss ?

                        jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                        • jay_s_ukundefined
                          jay_s_uk @albertshao
                          last edited by

                          @albertshao I believe it's duet 3 only

                          Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                          albertshaoundefined 1 Reply Last reply Reply Quote 0
                          • albertshaoundefined
                            albertshao @jay_s_uk
                            last edited by

                            @jay_s_uk thanks

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

                              @albertshao that's correct, Duet 2 boards have only one externally-visible UART port.

                              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