Serial Communication Issue
-
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.
-
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...
-
Remove the '/' character before M408, and send a newline after the sequence number.
-
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.
-
Here is what Serial2 is putting out according to Tera Term and the Adafruit TTL cable - https://i.imgur.com/c7m3XBH.png
-
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?
-
It is a Teensy LC which is 3.3v - https://www.pjrc.com/teensy/teensyLC.html
-
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.