magistrala icon indicating copy to clipboard operation
magistrala copied to clipboard

Implement the Modbus adapter

Open mpoplavkov opened this issue 3 years ago • 4 comments

FEATURE REQUEST

2. Describe the feature you are requesting, as well as the possible use case(s) for it.

Implement an adapter supporting the Modbus protocol. The functionality should be the same as in existing adapters

3. Indicate the importance of this feature to you (must-have, should-have, nice-to-have).

nice-to-have

mpoplavkov avatar Oct 29 '21 10:10 mpoplavkov

I'll start working on this one myself

mpoplavkov avatar Oct 29 '21 10:10 mpoplavkov

I've done quite a bit of work with modbus here: https://pkg.go.dev/github.com/simpleiot/simpleiot/modbus

The documentation is not current -- it now supports TCP as well as RTU. I would consider splitting this out into its own package if there is interest.

cbrake avatar Oct 29 '21 12:10 cbrake

SIOT can also be used to simulate modbus devices (functions as server) -- I find this handy for modbus development and testing. The following demonstrates client functionality, but server is very similar.

https://youtu.be/iIZWxr482mI

cbrake avatar Oct 29 '21 12:10 cbrake

Unfortunately, due to the shifted focus in my company, I cannot take this issue now. If anyone wants to implement it - feel free.

mpoplavkov avatar Nov 24 '21 17:11 mpoplavkov