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

    Serial Communication Issue

    Scheduled Pinned Locked Moved
    General Discussion
    3
    8
    984
    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.
    • tjb1undefined
      tjb1
      last edited by

      I'm trying to communicate with the Duet over the PanelDue serial port with a Teensy LC (https://www.pjrc.com/teensy/teensyLC.html) but I'm not receiving a response.

      I'm running the code here - https://pastebin.com/JF1h1spr

      I have this in my config.g - M575 P1 B57600 S0

      Am I missing something here? TX and RX are connected to pins 9 and 10 on the Teensy.

      1 Reply Last reply Reply Quote 0
      • fmaundefined
        fma
        last edited by

        Try another baudrate; due to timers values, you may be to far from the standard value, and one of the serial port may don't see the other...

        Frédéric

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

          Remove the '/' character before M408, and send a newline after the sequence number.

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

            I tried this code today with no luck - https://pastebin.com/ETTp8iWy

            I tried with bauds 9600, 57600, and 115200. Tried M575 with S1 and S0, and tried Serial2.println() and Serial2.print('\n'). Not getting anything back from the Duet...is there a way to see what the Duet received? I can confirm that the Teensy is sending stuff out using an Adafruit TTL cable with TeraTerm on the computer.

            1 Reply Last reply Reply Quote 0
            • tjb1undefined
              tjb1
              last edited by

              Here is what Serial2 is putting out according to Tera Term and the Adafruit TTL cable - https://i.imgur.com/c7m3XBH.png

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

                If you connect a PC to the Duet via USB and send M111 S1 P3 then all GCode lines received by the Duet will be echoed to USB. Lines received from the PanelDue port are prefixed AUX.

                Is it a 3.3V Teensy, or did you use a voltage divider to reduce the signal level of the Teensy TX pin to 3.3V before feeding it into URXD on the Duet?

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

                  It is a Teensy LC which is 3.3v - https://www.pjrc.com/teensy/teensyLC.html

                  1 Reply Last reply Reply Quote 0
                  • tjb1undefined
                    tjb1
                    last edited by tjb1

                    Well I connected to the Duet with micro USB and used the Adafruit TTL on it and was able to communicate over the PanelDue connection so I placed the Teensy on and then the commands started showing up in the Duet and Teensy was receiving information so I removed the micro USB and went back to wall power only and now the Teensy is receiving information? I don't understand why it works now but it does? Thank you David.

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