sunspec / pysunspec

Python SunSpec Tools
MIT License
85 stars 50 forks source link

PyModbus based server #102

Open wickywaka opened 2 years ago

wickywaka commented 2 years ago

We already have a modbus server and want it to be sunspec compliant. I see that there are some device classes here that allows us to created devices by just giving their ids and that makes it so easy to implement these devices instead of specifying these registers manually.

The question is, how do I have these devices as server using PyModbus library. What would be good place to start writing a pymodbus plugin/transport layer so that we can use pysunspec and pymodbus to create sunspec compliant modbus servers.

Looking forward to answers.

wickywaka commented 2 years ago

Here is an example from pymodbus, where they are a sunspec client (rudimentary): https://pymodbus.readthedocs.io/en/stable/source/example/sunspec_client.html

wickywaka commented 2 years ago

Interesting: https://github.com/robogeek/pymodbus-sunspec