linux-serial-test icon indicating copy to clipboard operation
linux-serial-test copied to clipboard

Parameters to test RS485

Open amankumar1194 opened this issue 4 years ago • 5 comments

From the options available, I see "-q" to enable the RS485 direction control. But I don't understand what other parameters can be passed to validate the working of RS485 driver using your app.

If someone can help me with the proper parameters to test RS485 with this app then it would be very much helpful.

amankumar1194 avatar Oct 19 '20 18:10 amankumar1194

To test RS485, generally you need two ports, wire them together, and then send data from one port to the other, and then back the other way. You could run one port with transmit disabled, and configure the other instance to send data. This app uses a counting pattern to detect missed data.

cbrake avatar Oct 20 '20 13:10 cbrake

FYI: Linux kernel gained 9-bit mode and RS422 support (https://elixir.bootlin.com/linux/v6.2-rc5/source/include/uapi/linux/serial.h#L130), maybe someone wants to implement this in the testing tool...

andy-shev avatar Jan 23 '23 09:01 andy-shev

422? This one SER_RS485_RX_DURING_TX - Full-duplex RS485 line.?

htot avatar Jan 23 '23 17:01 htot

422? This one SER_RS485_RX_DURING_TX - Full-duplex RS485 line.?

It's a confusion in the Linux kernel. Some of the drivers use that to set RS422 compatibility in the registers of a certain hardware. But yes, RS485 in some cases can be full-duplex — needs two differential pairs, or the specific methods to communicate between peers on the physical level (I don't remember what Synopsis is ptoviding).

andy-shev avatar Feb 02 '23 12:02 andy-shev

I think the latter is a confusion by some manufacturers calling their RS422 a full-duplex RS485 (because they used RS485 drivers in the design).

What confused me even more is that their exists RS422 in a multiple slave configuration.

htot avatar Feb 03 '23 09:02 htot