No serial communication with the PanelDue RX and TX on the DUET
-
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.
-
@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
-
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".
-
@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?
-
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.
-
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. -
Which firmware version are you running? The M118 command is a fairly recent addition.
-
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 -
Try upgrading to firmware 2.02.
-
@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 problemthe 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
-
@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.
-