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

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

    Scheduled Pinned Locked Moved
    General Discussion
    2
    13
    1.5k
    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.
    • dc42undefined
      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
      • AlexLuca1991undefined
        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
        • dc42undefined
          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

          AlexLuca1991undefined 1 Reply Last reply Reply Quote 0
          • AlexLuca1991undefined
            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
            • dc42undefined
              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
              • AlexLuca1991undefined
                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
                • dc42undefined
                  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
                  • AlexLuca1991undefined
                    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
                    • dc42undefined
                      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

                      AlexLuca1991undefined 1 Reply Last reply Reply Quote 0
                      • AlexLuca1991undefined
                        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

                        dc42undefined 1 Reply Last reply Reply Quote 0
                        • dc42undefined
                          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
                          • AlexLuca1991undefined
                            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