Skip to content

modbus server implementation on raspberry to enable/disable GPIO pins via serial modbus client #2746

Answered by janiversen
J0ergL asked this question in Help
Discussion options

You must be logged in to vote

I think you should rather be looking at pyserial, since Pymodbus do not handle the lower serial communication.

The lowest level in Pymodbus serialtransport.py but that merely handles addition of asyncio.

Since Pymodbus server is totally asynchronous you probably will find it rather difficult to sync the gpio with the actual transmission of data.

The way Pymodbus interfaces with pyserial have not changed over the last couple of years, so you should be able to look at old examples.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@J0ergL
Comment options

@janiversen
Comment options

@janiversen
Comment options

@J0ergL
Comment options

@J0ergL
Comment options

Answer selected by janiversen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants