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

UART on IO0/IO1 not working since V3.5.x using an Arduino Nano

Scheduled Pinned Locked Moved Solved
Beta Firmware
4
15
411
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.
  • undefined
    Phaedrux Moderator
    last edited by 22 Feb 2024, 19:26

    Which 3.5 test build specifically?

    Z-Bot CoreXY Build | Thingiverse Profile

    undefined 1 Reply Last reply 22 Feb 2024, 22:44 Reply Quote 0
    • undefined
      mule @Phaedrux
      last edited by 22 Feb 2024, 22:44

      @Phaedrux If I remember correctly the first tests I did was with Beta 4. On the coming weekend I am going to find out since which version the issue exists.

      undefined 1 Reply Last reply 23 Feb 2024, 07:15 Reply Quote 0
      • undefined
        mule @mule
        last edited by 23 Feb 2024, 07:15

        @mule Just begin testing and it already stopped working with V3.5-Beta1

        undefined undefined 2 Replies Last reply 23 Feb 2024, 07:21 Reply Quote 0
        • undefined
          jay_s_uk @mule
          last edited by 23 Feb 2024, 07:21

          @mule we're on 3.5RC3 so just jump straight to that to test it

          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

          1 Reply Last reply Reply Quote 0
          • undefined
            dc42 administrators @mule
            last edited by dc42 23 Feb 2024, 07:54

            @mule also please confirm what M575 command you are using to enable the UART.

            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
            • undefined
              mule
              last edited by mule 23 Feb 2024, 10:42

              @dc42 @jay_s_uk I tested it with 3.5Beta1, 3.5RC1, 3.5RC2 and 3.5RC3. None of these versions did work.
              On the Arduino Serial.available() always returns 0 with these firmware versions.

              I now did another test with IO0 and it has the same issue (although a panel due connected to IO0 is working fine). I therefore edited the topic. With 3.4.6 IO0 works flawlessly too with the Arduino Nano.

              What I do not know yet is, if it is only an issue receiving anything from the duet board or if there is also an issue sending anything to the duet board from the Arduino Nano. Is there any way to see what the duet receives via the UART ports?

              Regarding config via M575 I am using:
              M575 P1 B57600 S1
              M575 P2 B57600 S1

              I did also try M575 P2 B57600 S2 but it did not change the behaviour.

              undefined 1 Reply Last reply 23 Feb 2024, 15:16 Reply Quote 0
              • undefined
                dc42 administrators @mule
                last edited by dc42 23 Feb 2024, 15:16

                @mule bear in mind that when you use S1 in the M575 command, a checksum or CRC must be received for input to be considered valid, and the output will be JSON-formatted for PanelDue. If you want to send/receive raw data without needing a CRC or checksum then use S2 instead of S1 in the M575 command. But I see that you tried that already.

                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

                undefined 1 Reply Last reply 23 Feb 2024, 15:50 Reply Quote 0
                • undefined
                  mule @dc42
                  last edited by mule 23 Feb 2024, 15:50

                  @dc42 I am using the Arduino Nano in order to get the printer status, print progess, heater status and temperature in order to display it including animations via Neopixels. Therefore I send different M409 (.e.g. M409 K"state.status) to the duet3.
                  The issue with V3.5.x is that the Arduino Nano not even get a single byte of response via UART after sending the M409.
                  Is there a way to see if the duet3 receives the M409 at all? Or do you already have an idea which change between V3.4.x and V3.5.x could cause this different behaviour?

                  undefined 1 Reply Last reply 23 Feb 2024, 18:59 Reply Quote 0
                  • undefined
                    dc42 administrators @mule
                    last edited by dc42 23 Feb 2024, 18:59

                    @mule you can use M111 P3 S1 to enable GCode debugging. That will echo to USB all GCode commands received from any input.

                    I have done some tests and established that with the latest firmware build, GCode commands are received from io1 and M118 messages are sent to it, but a PanelDue connected to it does not get any responses sent 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

                    undefined 1 Reply Last reply 24 Feb 2024, 08:01 Reply Quote 0
                    • undefined
                      mule @dc42
                      last edited by 24 Feb 2024, 08:01

                      @dc42 I can confirm that with V3.5RC3 PanelDue stopped working on IO1. Very weird.

                      1 Reply Last reply Reply Quote 0
                      • undefined
                        mule
                        last edited by 25 Feb 2024, 17:59

                        I just activated debugging via M111 P3 S1 and it showed the M409 gcodes being sent from the Arduino. But the Arduino gets no response from the duet.

                        undefined 1 Reply Last reply 26 Feb 2024, 21:17 Reply Quote 0
                        • undefined
                          dc42 administrators @mule
                          last edited by 26 Feb 2024, 21:17

                          @mule please try the new firmware at https://www.dropbox.com/scl/fo/p0136wx04h8xf6ejwdnn9/h?rlkey=efrfwyb6o5tqid11gustz3uvy&dl=0 and let me know whether this fixes the problem.

                          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

                          undefined 1 Reply Last reply 26 Feb 2024, 21:58 Reply Quote 0
                          • undefined
                            mule @dc42
                            last edited by 26 Feb 2024, 21:58

                            @dc42 I can confirm that the new firmware fixes the issues. Many thanks for the quick fix!

                            undefined 1 Reply Last reply 26 Feb 2024, 22:00 Reply Quote 1
                            • undefined
                              dc42 administrators @mule
                              last edited by 26 Feb 2024, 22:00

                              @mule glad to help. Thanks for reporting this.

                              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 1
                              • undefined dc42 marked this topic as a question 26 Feb 2024, 22:00
                              • undefined dc42 has marked this topic as solved 26 Feb 2024, 22:00
                              11 out of 15
                              • First post
                                11/15
                                Last post
                              Unless otherwise noted, all forum content is licensed under CC-BY-SA