Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ModbusRTUDriver remote support #1370

Open
flxzt opened this issue Apr 23, 2024 · 0 comments
Open

Add ModbusRTUDriver remote support #1370

flxzt opened this issue Apr 23, 2024 · 0 comments

Comments

@flxzt
Copy link

flxzt commented Apr 23, 2024

It is possible to use SerialPort's and NetworkSerialPort's in the ModbusRTU Driver (comparable to the SerialDriver).
Would it make sense to use them directly for adding support for remote Modbus RTU access or should there be an additional NetworkModbusRTU resource that gets exported?

The only difference to the SerialPort resource currently is the additional timeout field, but it could also live in the driver.

Additionally, would it make more sense to also move the address field to ModbusRTUDriver ? The resource would be responsible for controlling the entire mod-bus serial interface, and the driver would control one individual slave.

I already have a (still WIP) branch for this, see: https://github.com/flxzt/labgrid/tree/remote-modbus-rtu . It already works, tested it with a Modbus RTU relay from Waveshare.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant