Open LifeofDan-EL opened 1 month ago
Is this reproducible? It's always the second BMS? What happens if you flip the initialization order:
ble_client:
- mac_address: ${bms1_mac_address}
id: client1
- mac_address: ${bms0_mac_address}
id: client0
jk_bms_ble:
- ble_client_id: client1
protocol_version: ${bms1_protocol_version}
throttle: 5s
id: bms1
- ble_client_id: client0
protocol_version: ${bms0_protocol_version}
throttle: 5s
id: bms0
Which BMS connection stops this time?
Actually, it's the first BMS that goes off. The first which is bms0.
I just flipped the initialization order, let me see what happens with time.
Same thing, the bms0 doesn't connect.
Config
ble_client:
- mac_address: ${bms0_mac_address}
id: client1
- mac_address: ${bms1_mac_address}
id: client0
jk_bms_ble:
- ble_client_id: client1
protocol_version: ${bms0_protocol_version}
throttle: 5s
id: bms0
- ble_client_id: client0
protocol_version: ${bms1_protocol_version}
throttle: 5s
id: bms1
I saw this from the log. It connects and disconnects immediately.
@LifeofDan-EL Hi, I have the same problem, but I don't use the BLE connection. On average, it takes about 15 minutes offline. When I tested the BLE, it was the same. So far I haven't managed to solve it or understand why it happens.
@LifeofDan-EL Sorry for the silence/delay. Is my understanding of your issue correct:
We have proofed it's always the first BLE client connection which fails. It doesn't depend on the connected hardware. The issue is gone if a single BLE connection is used.
Correct?
@LifeofDan-EL Hi, I have the same problem, but I don't use the BLE connection. On average, it takes about 15 minutes offline. When I tested the BLE, it was the same. So far I haven't managed to solve it or understand why it happens.
Interesting, that means it's most likely not a Bluetooth connectivity problem.
@LifeofDan-EL Sorry for the silence/delay. Is my understanding of your issue correct:
We have proofed it's always the first BLE client connection which fails. It doesn't depend on the connected hardware. The issue is gone if a single BLE connection is used.
Correct?
Yes, if you look at today's data you can see that while bms0 is blanking out, bms1 has been stable. On some days, the bms0 is more sparse on the graph.
Interesting, that means it's most likely not a Bluetooth connectivity problem.
For example, here is my graph from one sensor and it is clear that there are interruptions. I would refer to the poor wifi signal and the problem is only with me, but as it turned out, no. At the same time, other esp sensors do not have such a problem. The esp itself shows Signal level -72 dB
So I currently use the multiple BMS configuration. I have two batteries that I use your integration with, and I really find it useful. However, I discovered that lately, the bms0 is fond of going offline which is weird and it has been recurring much more than I expected. There are also times when both of them go offline but it doesn't happen for too long.
Version: JK_B2A20S20P Hardware Version: V11.XA Software Version: V11.47
For both.
My config
Thanks so much for the work you do.