esphome-jk-bms icon indicating copy to clipboard operation
esphome-jk-bms copied to clipboard

Can I use this integration to connect 3*BMS boards (JK-BD6A20S10P) ?

Open klugev303 opened this issue 1 year ago • 7 comments

Good afternoon and Happy New Year!

Can I use this integration to connect 3*BMS boards JK-BD6A20S10P ? For this I will need 3*ESP32 boards? Or is it possible to code several BMS using one ESP32 board? If it's not difficult, can you provide examples of writing code for 3 BMS boards? What is the best (more reliable) way to connect via Bluetooth or RS485?

Thank you!

PS: I use ESP Home v. 2023.12.5 HomeAssistant: Core 2023.12.1 Supervisor 2023.12.0 Operating System 11.2

klugev303 avatar Jan 03 '24 05:01 klugev303

These combinations are possible:

  1. A single ESP32 which talks using three different ble_client connections to 3 BLE devices. Crashs are very likely.
  2. A single ESP32 using three different hardware UARTs connected to 3 different BMS. Should be rock solid.
  3. One ESP8266/ESP32 per device (BLE vs. RS485) for improved stability.

syssi avatar Jan 21 '24 19:01 syssi

These combinations are possible:

1. A single ESP32 which talks using three different `ble_client` connections to 3 BLE devices. Crashs are very likely.

2. A single ESP32 using three different hardware UARTs connected to 3 different BMS. Should be rock solid.

3. One ESP8266/ESP32 per device (BLE vs. RS485) for improved stability.

If it's not difficult, can you provide examples of writing code for 3 BMS boards?

klugev303 avatar Jan 26 '24 07:01 klugev303

Please try the attached example: esp32-ble-example-three-devices.yaml.txt

syssi avatar Jan 27 '24 14:01 syssi

Please try the attached example: esp32-ble-example-three-devices.yaml.txt

Thank you very much, I will try it, all the best to you!

klugev303 avatar Jan 27 '24 14:01 klugev303

Hi its safe connecting 3 bms to 1 esp ? I mean ground loop problem throught this bms? If one bms do offline P- than its posible loop ground throught gps (gnd) port and power goes this way of I maybe wrong ?

Fliacik avatar Feb 23 '24 16:02 Fliacik

IMO this depends how you power the ESP. What do you think?

syssi avatar Feb 23 '24 20:02 syssi

If you connect 3bms into one ESP you connect all bms grounds together. When one bms go to fail state or disconnect P- all traffic will be redirect to esp ground. Thats do loop gnd.

Fliacik avatar Feb 23 '24 20:02 Fliacik