The goal of this project is to repurpose my 3x 24V LFP to a 96V battery for my Sungrow SH3.0RS inverter.
To do this I will need to create a RS485 JK-BMS comms to Sungrow CANBUS comms converter and start by using 32x 18650 3.7V Li-Ion batteries in place of the 24V LFP ones (I will need to buy another 24V LFP battery once I get the comms going.
(Tues 22nd Nov 2026)
Got ESPHome working using ESPHome Device Builder on rhubarb laptop (accessed via http://localhost:6052/)
And successfully got HA to see ESP32-C3 device pulling BMS data over BLE to MQTT and directly to HA.
including the state of all 32 cells..
Must make a dashboard next and test if I can turn CHARGE and DISCHARGE ON and OFF. Yep switches work fine :)
Based on code at https://github.com/syssi/esphome-jk-bms/blob/main/esp32-ble-v19-example.yaml
https://deepwiki.com/syssi/esphome-jk-bms/4.2-basic-uart-configuration
Now. How to make a HA dashboard? And replace BLE with UART connection to BMS
I will try this RS485 example next..
https://github.com/syssi/esphome-jk-bms/blob/main/esp8266-jk-pb-modbus-example.yaml
(Mon 21st Nov 2026)
(16:34) Giving up for now. Will try ESP32-C3 ESPHome project next! Say https://github.com/syssi/esphome-jk-bms
(Backed up Node Red to sionnach_after_jkbms_modbus_mqtt_added_flows.json)
(16:05) Maybe I should just cable the ON/OFF button,_96V and 0V power, UART, RS485 and CAN to the 6 inch pipe lid and then work on unit in the kitchen connected to laptop via USB/RS485 dongle?
Annoys me that some Modbus commands get a response of 0x8604 (error code?) but often nothing. Hanging?

Should I switch to using direct ESP32 to UART port (not RS485 port). Or get PC Windows software running? Cannot see a GPS UART protocol to select from in BLE app. Maybe "4G-GPS Remote module protocol V4.2" or maybe try an ESPhome project
(15:30) Cannot get any robust comms or sensible replies over RS485. Let me check the protocol assigned to UART-21 / UART-2. (Which is the real UART port and which is the RS485 port?)
https://www.gobelpower.com/jkbms-firmware-download_ap88.html
Are all these error code responses? Had to power OFF/ON BMS to get responses MODBUS again.
Last two above examples from http://www.jk-bms.com/en/Upload/2023-12-05/1559153362.pdf
Tried sending Modebus command 01 03 02 58 00 02 44 60 and got response 01 86 04 43 a3.
What does this mean?
Modbus RTU uses 8-bit Serial Communications to send Modbus messages. Format is:
Unit Address: 1 Byte
Message: N Bytes
CRC: 2 Bytes
(See https://www.fernhillsoftware.com/help/drivers/modbus/modbus-protocol.html)
01 Address
03 Modbus Read Holding Registers (03)
02 58 First input address
00 02 Register count
4460 CRC
And the response means..
01 Address
86 04 Two bytes of data
43 a3 CRC
So a success read of register 0x0258 returning 0x8604
http://www.jk-bms.com/en/Upload/2023-12-05/1559153362.pdf
01 03 00 05 00 02 D4 0A
https://koeed.com/pages/modbus-crc-calculator
Cannot get any robust comms or sensible replies over RS485. Let' sme chekc the protocol assigned to UART-21 / UART-2
So added code to NodeRed "Sungrow Inverter" tab at http://192.168.1.153:1880/ to send and receive Modbus messages
But what do I send to get a response?
It looks like the Waveshare converter should work with the Sungrow SH3.0RS inverter once I get the BMS comms going..
https://www.waveshare.com/wiki/ESP32-S3-RS485-CAN-Web
https://github.com/dalathegreat/Battery-Emulator/discussions/2164
"BYD Protocol" being.. "BYD Battery-Box Premium HVS over CAN bus"
(Sun 20th Sept 2026)
I soldered the RS485 converter to the ESP32-C3 board and made some push connectors for the RS485 A- and B+ wires.
Powering up JK-BMS caused a few messages to be received by the ESP32 monitor (used "IoT MQTT Panel" app to subscribe to MQTT topic "home/solar/esp32c3_jkbms_monitor/#" )
home/solar/esp32c3_jkbms_monitor/RxByte "e0e0" followed by "cf"
(Sat 19th Sept 2026)
I created an Arduino sketch for the BMS comms and burned it into a ESP32-C3. Code in directory:
/home/coderdojo/Arduino/esp32c3/esp32c3_jkbms_monitor
(Fri 18th Sept 2026)
Have code programmed into Waveshare protocol adaptor and added it to the Tola Park SSID WiFi network.
But now need it to talk to the JK-BMS over RS485 and to the Sungrow SH3.0RS hybrid inverter over CAN bus.
Here are the protocols on offer:
So I think I will go with:
1) Set the JK-BMS to use "005 – PYLON_low_voltage_Protocol_RS485_V3.5"
2) The Waveshare converter battery setting to "Pylon /Dryness compatible battery" / RS485 and its Inverter setting to "Pylon HV battery over CAN bus" / CAN (Native)
I should be able to monitor things over the USB-C UART debug connection and, if successful, over MQTT broker
(Thurs 17th Sept 2026)
The Waveshare-ESP32-C3-RS485-CAN DIN module should be ideal to act as the comms converter and the software is available for it at:
https://github.com/dalathegreat/Battery-Emulator
See Sungrow SH3.0RS entry in table at:
https://dalathegreat.github.io/Battery-Emulator-Wiki/inverter/
Vendor Product Name AC Phases Compatibility level Voltage min / max (V) Notes
https://www.waveshare.com/wiki/ESP32-S3-RS485-CAN
This discussion also helpful
https://github.com/dalathegreat/Battery-Emulator/discussions/2164
I had problems with App not talking to BMS but latest version of App worked fine.
I finished wiring up 32x 18650 3,7V Li-Ion batteries to the 32s JK-BMS and got the BLE app going.