syssi / esphome-tianpower-bms

ESPHome component to monitor a Tianpower Battery Management System via BLE
Apache License 2.0
8 stars 0 forks source link

Add write commands #23

Open syssi opened 3 months ago

syssi commented 3 months ago
# Commands

55 20 98 + name + AA   Set WiFi SSID
55 20 99 + password + AA  Set WiFi Password
55 04 A0 AA  Retrieve inverter info

55 05 A1 00 AA  Set inverter type 00
55 05 A1 01 AA  Set inverter type 01
55 05 A1 02 AA  Set inverter type 02
...
55 05 A1 06 AA  Set inverter type 06

55 05 A2 00 AA  Set inverter type 2 00
55 05 A2 01 AA  Set inverter type 2 01
55 05 A2 02 AA  Set inverter type 2 02
55 05 A2 0B AA  Set inverter type 2 0B
55 05 A2 0C AA  Set inverter type 2 0C (12)
# Response types
55 83  RSOC, Total voltage, current, soh, moswd, cell temperature, 
55 81  Software version
55 84  Cell count, temperature sensors count, full capacity, remaining capacity, charging cycles, 
55 82  Ntc infos (temperatures?)
55 88  Cell voltages
55 89  Cell voltages 2
55 94  Config parameters 1?
55 95  Config parameters 2?
55 99  ...00...  Wifi set success / ...01.... Wifi set failed
55 A0  Returns the active inverter settings (byte0 = inverter1, byte1 = inverter2)
55 A1  ...00.... Set inverter type 1 success / ...01... fail
55 A2  ...00.... Set inverter type 2 success / ...01... fail