RS485 python library - how to address a specific device on a rs485 bus?

Viewed 16

The connection is : 4 devices on rs485, connected in cascaded mode, and the 4th device connected to a RS 485 to USB converter and it goes to my PC. I am able to read data from vendor software individually for all 4 devices. But I need to grab data from all 4 devices with single physical connection.

All 4 devices share the following in common :

baudrate(115200), databits(8), stop bits(1), parity (none), flow control (none).

The addresses of the 4 devices are 102,103,104,105.

I have seen many examples of rs485 implementation in python. But in none, the address is taken as an argument anywhere. How do i send a command or read data from a device of specific address ?

0 Answers
Related