sunspec / pysunspec2

SunSpec Python library for interfacing with SunSpec devices.
Apache License 2.0
57 stars 21 forks source link

scan() performs full read of Modbus map #39

Closed jmmgenerac closed 2 years ago

jmmgenerac commented 3 years ago

Instead of reading all model contents during scan, could the scan() method be changed to only read model Ids and lengths? This optimization would significantly improve performance on low-bandwidth Modbus infrastructure.

bobfox commented 3 years ago

Some portion of models with repeating counting in points need to be read to create the model. We will look into creating an option on scan to read the minimum required to create the model.