ptarcher / pvstats

PVStats is a tool used to connect to your inverter using Modbus TCP, scan for various power figures, and then upload the data to various report services.
Apache License 2.0
14 stars 11 forks source link

Implement new Sungrow encrypted modbus comms #7

Open michael-robbins opened 3 years ago

michael-robbins commented 3 years ago

Sungrow recently pushed out a firmware update to their Wifi dongles that use an encrypted modbus comms method.

A user on Whirlpool has successfully figured out how the encryption works, we'd just need to subclass ModbusSocketFramer to implement the encryption/decryption and discovery of the inverter key (assuming it's different per inverter).

Whirlpool link: https://whrl.pl/Rf8BQT

michael-robbins commented 3 years ago

There is a working implementation about to be merged into https://github.com/meltaxa/solariot/tree/%2312-Use-SungrowModbusTcpClient

Can probably be ported over to here easily enough!