Closed yarosman closed 1 year ago
Does your ESP32 report/see other BLE devices around you? Is your ESP able to see the BMS but unable to connect? How old/new is your BMS? Could you provide a photo of the BLE dongle? Do you own an Android device? I could provide some instructions how to do a traffic capture of the data between the Android App and the BMS.
@syssi
Does your ESP32 report/see other BLE devices around you?
Yes, I enable esp32_ble_tracker
, bluetooth_proxy
and saw other devices in the logsIs your ESP able to see the BMS but unable to connect?
ESP was saw BMS because of
[14:28:37][V][bluetooth_proxy:033]: Proxying packet from yarosman BMS - A4:C1:37:41:59:DA. RSSI: -55 dB
// after enabling jbd_bms_ble
[14:36:55][D][esp32_ble_tracker:216]: Pausing scan to make connection...
[14:36:55][I][esp32_ble_client:064]: [3] [A4:C1:37:41:59:DA] 0x00 Attempting BLE connection
[14:36:56][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected
How old/new is your BMS?
Manufact.data 10 Jan 2022Could you provide a photo of the BLE dongle?
No, it's under the hood of my batteryDo you own an Android device? I could provide some instructions how to do a traffic capture of the data between the Android App and the BMS.
No, I don't have, but I can get it. Can you give me the instruction ?Could you temporary remove the bluetooth_proxy
component and tell me the ESPHome version you are using? A full log would be helpful too.
esphome version = 2022.12.8
Hmm.. we should capture some BLE traffic to get an idea what's different to my implementation. One last idea: May be the ESP is too close or to far away from your BMS. Play around with the distance.
@syssi Hello. I found the problem. There is some problem with jbd ble dongle, after some time it refuses to accept new connections, it was described in batmon-ha
When I turned off Bluetooth on my phone and turned off/on jbd dongle, after that esp32 was connected to jbd.
Is it correct that switches don't work ?
Yes! The switches aren't implemented yet but they are coming soon!
Hello. I try to use default ble example with logging to connect JBD-AP21S001-L20S-150A-B, but nothing work
[02:03:56][VV][api.service:470]: on_ping_request: PingRequest {} [02:03:56][VV][api.service:043]: send_ping_response: PingResponse {} [02:03:56][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected [02:03:58][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected [02:04:00][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected [02:04:02][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected [02:04:04][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected [02:04:06][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected [02:04:08][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected [02:04:10][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected