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



  • Hi guys,

    I'm struggling to get the serial communication with the PanelDue RX and TX port working since 2 days now..
    I set the right parameters in the config.g to "M575 P1 B57600 S0" and the firmware says that the baudrate is right.
    I don't get any communication at all. Rx to TX and vice versa, as it should be..

    I tried Arduino Mega with a level shifter to the RX pin of the PanelDue port
    I tried it with a voltage divider
    I tried it with a nodemcu which has a 3.3V logic as the Duet

    and nothing happens.

    I send this command "M408 S2" but nothing returns, even a M999 command.

    Is there somebody out here who got a communication working and is willing to share his Arduino Code? Maybe thats the problem...

    Thank you ☺


  • administrators

    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


  • administrators

    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?


  • administrators

    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.


  • administrators

    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


  • administrators

    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 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


  • administrators

    @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.



  • @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


Log in to reply