RaspberryPI MAX485 adapter needs control pin for Serial #1948
-
Hello. I want to use RaspberryPI as Modbus master and I'm using MAX485 RS485 to TTL converter for connecting to bus. Question: does Pymodbus library has any options to manipulate GPIO pins when sending and receiving data? I need to perform pin on/off during modbus communications and if library does sending AND receiving in a single python API method then I need somehow to interfere into this process. Any advices? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
this is not something pymodbus deal with, we use pyserial, and I have no idea if that can do what you want. However your setup is quite unusual, I have a rpi which I use for different tests and a serial rs485 adapter as well as a usb rs485, both work without any problems. You can use send the request and then poll with the library, the mixin methods are just for convinience......anyhow if you need to change code it should be in pyserial. |
Beta Was this translation helpful? Give feedback.
your choice but not really a pymodbus problem.
I wrote that I have a serial adapter and a usb adapter which both works, the serial adapter, when use, is wired to a couple of pins. So I am aware that your problem is not a usb problem.