FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
11,882 views 2 comments
by
I'm trying to read data through the RUT955's  rs485 serial port from another device.  As that didn't work I connected D_P to R_P and D_N to R_N ( as labelled in https://wiki.teltonika.lt/view/RUT955_RS232/RS485#RS485_connector_pin-out).  I opened two ssh terminals to the teltonika.  In one I ran 'cat /dev/ttyATH0' and in the other I ran 'echo "Some text" >/dev/ttyATH0'.  No text appeared in the second terminal but with an oscilloscope I can see a signal is produced.

Note: I used /dev/ttyATH0 as /dev/rs485 is a link to it and I was eliminating that as a failure point.

So can I do a loopback test on this port?

EDIT: If I connect pins 2 and 3 on the RS232 port I can echo and cat messages between terminal windows with the console setting.  Why does this not work on the RS485 with the appropriate connections?  I have tried this on more than one RUT955 now.  Are they all faulty?  how can I troubleshoot this problem?

2 Answers

+1 vote
by
Loopback test will not work because RS485 unlike RS232 works in half-duplex mode (to support two wire mode) and the receiver is disabled while transmitter is active. To troubleshoot your problem check the wiring (is the ground connected?) and serial device settings- baud rate, parity, etc.
Best answer
by

Thanks for this answer, after several failed experiments and much additional research last week, I had arrived at the same conclusion!  There's an interesting article here about writing a driver for this and bemoaning the fact that receive is often disabled during transmit.

+1 vote
by anonymous

Hi,

I'm not sure, did you use two RUT955 connected to each other via RS485? Or you have connected another RS485 device to router?

Please check attached configuration example, perhaps they could help to you.

https://community.teltonika-networks.com/?qa=blob&qa_blobid=9350254562591128103

https://community.teltonika-networks.com/?qa=blob&qa_blobid=8762858677529852638

by

No, I am trying to perform a loopback test as described here for example http://www.ni.com/tutorial/3450/en/  .  There is only one teltonika involved in this test and the connections are wired as described using the teltonika manual's labels.  I think more conventionally the labels would be Tx+ to Rx+ and Tx- to Rx-.  I'm afraid the two configs you linked to are irrelevant in this situation, the port is configured to be in console mode.