syssi / esphome-jk-bms

ESPHome component to monitor and control a Jikong Battery Management System (JK-BMS) via UART-TTL or BLE
Apache License 2.0
450 stars 151 forks source link

Add legacy protocol support #13

Open syssi opened 2 years ago

syssi commented 2 years ago

Discussed in https://github.com/syssi/esphome-jk-bms/discussions/12

Originally posted by **inorhan** October 28, 2021 Doesn't work with JK-B2A24S20P HW 8.X SW 8.1.2H version 3.7.1 Manuf date: 2021 Looks like these new units use: https://raw.githubusercontent.com/jblance/mpp-solar/master/docs/protocols/JK-Jiabaida_communication_protocol_v4.0.pdf (9600bps) Would it be possible to include this new protocol ? Keep the great work! Regards
TX -> DD A5 03 00 FF FD 77
RX <- DD 03 00 1B 17 00 00 00 02 D0 03 E8 00 00 20 78 00 00 00 00 00 00 10 48 03 0F 02 0B 76 0B 82 FB FF 77
syssi commented 2 years ago

https://github.com/jblance/mpp-solar/blob/master/mppsolar/protocols/jk232.py

syssi commented 2 years ago

Another document about the protocol:

https://github.com/NEEY-electronic/JK/blob/JK-BMS/Jikong-BMS-RS485-Communication%20protocol.pdf

syssi commented 2 years ago

It looks like this protocol was used at the BMS firmware version <6.0.

syssi commented 2 years ago

Help wanted: Do you own an old BMS version (<6.0) and are you sure your device supports the protocol mentioned above? For example: Your device is accesible using the jk232 protocol of jblance/mpp-solar and you want to move to a native ESP solution. Please provide some support/testing here!