Hi all,
I’m trying to read modbus data from a RS485 device using a Digi Transport WR21 but I’m completely lost on this issue. I’ve been reading the examples available on the Digi ESP libraries, but have no luck so far.
Wondering if there’s a working example for opening and send data to the serial port of a Transport that is configured as RS485.
I’ve seen so much information on the forums but most of it it’s related to Xbee 485 adapters.
I think I’m missing some clues about:
- Connecting the serial port of the Transport to the 485 device. I think it should be:
TDA-RDA (together)-------->> RS485 +
TDB-RDB (together)-------->> RS485 -
-
Setting up serial port on the Transport properly (where is the option TCP packets, do I need it?
-
Managing the port propertly from python. So far I’m using the serial libraries without any luck so far.
There’s so much that I don’t know about python and serial since I’m new to it, so I was looking for kind of working example to start from.
Sorry for writing so much and thanks a lot in advance for your help.
Regards.