This application reads data from Redflow ZBM batteries, and publishes the data on the D-Bus. It is designed to run on the color control CX.
The application consists of 3 layers:
- Data acquisition layer: the BatteryUpdater classe retrieves data from known batteries over Modbus RTU. The DeviceScanner class find batteries.
- Data model: BatteryControl represents all battery data. BatterySummary computes some statistics for the entire battery bank
- D-Bus layer: BatterySummaryBridge pushes data from BatterySummary to the D-Bus, and BatteryControllerBridge does the same with BatteryController.