syssi / esphome-tianpower-bms

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

Add old protocol (SOF `0xDD`, EOF `0x77`) support #24

Open syssi opened 1 month ago

syssi commented 1 month ago
# Requests

0xDDA5AA00FF5677: Appears to be a kind of confirmation or continuation request after receiving basic information.
0xDDA50400FFFC77: Sent after receiving historical data.

# Responses

0xDD03: Basic information
0xDD2F: Parameter for DC number
0xDD2C: Parameter for JLZZ (unknown abbreviation)
0xDD10: Parameter for charging capacity (BCRL)
0xDD11: Parameter for discharging capacity (XHRL)
0xDD24, 0xDD25, 0xDD3D: Parameters for various battery limit values
0xDD26, 0xDD27: Parameters for battery under-voltage protection
0xDD20, 0xDD21, 0xDD3C: Parameters for overcharge protection
0xDD22, 0xDD23: Parameters for over-discharge protection
0xDD18, 0xDD19, 0xDD3A: Parameters for charging high-temperature protection
0xDD1A, 0xDD1B: Parameters for charging low-temperature protection
0xDD1C, 0xDD1D, 0xDD3B: Parameters for discharging high-temperature protection
0xDD1E, 0xDD1F: Parameters for discharging low-temperature protection
0xDD28, 0xDD3E: Parameters for charging current protection
0xDD29, 0xDD3F: Parameters for discharging current protection
0xDD36: Parameter for overcharge warning
0xDD37: Parameter for over-discharge warning
0xDD2A: Parameter for balancing charge voltage
0xDD2B: Parameter for balancing charge precision
0xDD12: Parameter for battery end-of-charge voltage
0xDD13: Parameter for battery end-of-discharge voltage
0xDD32, 0xDD33, 0xDD34, 0xDD35: Parameters for various SOC thresholds
0xDD14: Parameter for cycle depth
0xDD15: Manufacturing date
0xDDA1: Device model
0xDDA0: Manufacturer
0xDDA2: Serial number
0xDDAA: Historical data
0xDD04: Individual cell voltages