Duet3D Logo

    Duet3D

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

    No serial communication with the PanelDue RX and TX on the DUET

    General Discussion
    2
    13
    1140
    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.
    • AlexLuca1991
      AlexLuca1991 last edited by AlexLuca1991

      Hi guys,

      I'm struggling to get the serial communication with the PanelDue RX and TX port working since 2 days now..
      I set the right parameters in the config.g to "M575 P1 B57600 S0" and the firmware says that the baudrate is right.
      I don't get any communication at all. Rx to TX and vice versa, as it should be..

      I tried Arduino Mega with a level shifter to the RX pin of the PanelDue port
      I tried it with a voltage divider
      I tried it with a nodemcu which has a 3.3V logic as the Duet

      and nothing happens.

      I send this command "M408 S2" but nothing returns, even a M999 command.

      Is there somebody out here who got a communication working and is willing to share his Arduino Code? Maybe thats the problem...

      Thank you ☺

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

        The P1 parameter in the M575 command means that the Duet firmware will only accept GCode command lines that include a correct checksum. Use P0 if you don't want to use a checksum.

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

          @dc42 said in No serial communication with the PanelDue RX and TX on the DUET:

          ommand means that the Duet firmware will only accept GCode command lines that include a correct checksum. Use P0 if y

          Of course, sorry that was a typo. It is P0.
          Is there a command to use in the Webinterface to send it to the TX pin. So i could check if there is a signal at all.

          Thanks

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

            Make sure you are sending either LF or CRLF at the end of the GCode command lines you are sending. CR by itself won't work.

            If you connect a PC to the Duet via USB and send M111 S1 P3 then it will echo to USB any GCode commands received. Commands received from the PanelDue port are prefixed "aux:".

            You can send a message to the PanelDue port like this: M118 P2 S"message".

            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

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

              @dc42 said in No serial communication with the PanelDue RX and TX on the DUET:

              Make sure you are sending either LF or CRLF at the end of the GCode command lines you are sending. CR by itself won't work.

              If you connect a PC to the Duet via USB and send M111 S1 P3 then it will echo to USB any GCode commands received. Commands received from the PanelDue port are prefixed "aux:".

              You can send a message to the PanelDue port like this: M118 P2 S"message".

              Still nothing, I send : M118 P2 S"message" via the console on the DWC. And my arduino doesn't receive anything. Baudrate is the same as the one on the Duet. I just don't get it, via USB and PC it works just fine, I can send whatever I want to the Duet and it works.

              Any other idea?

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

                Are you sure you have the Tx and Rx wires the right way round, i.e. Tx on the Arduino goes to URXD on the Duet (via a voltage divider if the Arduino is a 5V one), and Rx on the Arduino goes to UTXD on the Duet?

                The Duet URXD signal level is 3.3V, so 5V Arduinos might not read it reliably.

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

                  Yes, I crossed both wires. TX to RX and vice versa. I level shifted the signal to 5V for the arduino.

                  At the moment I try to receive the : M118 P2 S"message" on the RX pin of the Arduino. But nothing happens when sending the M118.
                  The RX pin on the Duet isn't connected to the Arduino.

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

                    Which firmware version are you running? The M118 command is a fairly recent addition.

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

                      Firmware Elektronik: Duet WiFi 1.02 or later
                      Firmware Version: 2.0(RTOS) (2018-06-05b3)
                      WiFi Server Version: 1.21
                      Web Interface Version: 1.22.5

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

                        Try upgrading to firmware 2.02.

                        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

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

                          @dc42 I upgraded and still no change. I even hooked up the scope on it, there is no signal comming out of the TX pin when sending the M118 P2 S"message" command.

                          I run the board bare bone, with nothing hooked up. Just Vin. The config.g and everything else is copied from another Duet I got.
                          I could not imagine that thats the problem 😞 the serial communication doesn't work. Or is it ?

                          I could try this on my second duet, but It's not reachable at the moment.. Don't you know someone out of the forum that got the communication via PanelDue Terminal and Arduino working?

                          Greetings

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

                            @alexluca1991, I've heard of other users connecting things other than PanelDue to the port, but I can't remember the details. Searching the forum for "paneldue port" or "panel due port" or "serial port" might turn up some answers.

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

                              @dc42 I finally managed it, seems my board was the problem.

                              Jan Fervers from makerdise exchanged it and the new one works just fine.

                              Nevertheless I thank you very much for the support. @dc42

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