Sebastian Muszynski

Results 978 comments of Sebastian Muszynski

[btsnoop_hci-short.log](https://github.com/syssi/esphome-jk-bms/files/9577856/btsnoop_hci-short.log) ``` Service UUID 0xffe0 Char UUID 0xffe1 Client Char Config 0x2902 -> Notification: True # Device info request + response --> Write command (0x52) Write Request (0x12) Value: aa5590eb9700f42af61e98d0e99b64a86aafd62a...

It's work in progress / just my notes. I will ping you as soon I have a clue.

Decoded contents of the `device info frame` (no difference to other BMS versions): ``` [11:35:41][I][jk_bms_ble:1098]: Vendor ID: JK-B1A20S15P [11:35:41][I][jk_bms_ble:1099]: Hardware version: 10.XW [11:35:41][I][jk_bms_ble:1100]: Software version: 10.07 [11:35:41][I][jk_bms_ble:1101]: Uptime: 15320700 s...

Settings frame (no difference to other BMS versions): ``` [11:37:33][VV][jk_bms_ble:784]: 55.AA.EB.90.01.74.58.02.00.00.28.0A.00.00.B8.0B.00.00.DE.0D.00.00.48.0D.00.00.05.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.B0.09.00.00.A0.86.01.00.1E.00.00.00.3C.00.00.00.A0.86.01.00.2C.01.00.00.3C.00.00.00.3C.00.00.00.E8.03.00.00.BC.02.00.00.58.02.00.00.BC.02.00.00.58.02.00.00.00.00.00.00.28.00.00.00.84.03.00.00.BC.02.00.00.10.00.00.00.01.00.00.00.01.00.00.00.01.00.00.00.A0.86.01.00.DC.05.00.00.48.0D.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00 [11:37:33][VV][jk_bms_ble:785]: 00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.81 (140) [11:37:33][D][jk_bms_ble:809]: Unknown6: 0.600000 [11:37:33][I][jk_bms_ble:811]: Cell UVP: 2.600000 V [11:37:33][D][number:012]: 'jk-bms cell voltage undervoltage protection': Sending state...

Cell info frame (no difference to other BMS versions): ``` [11:37:34][VV][jk_bms_ble:360]: Cell info frame (version 2, 300 bytes): [11:37:34][VV][jk_bms_ble:361]: 55.AA.EB.90.02.74.DE.0C.D5.0C.D8.0C.E1.0C.E0.0C.DD.0C.D8.0C.DD.0C.E0.0C.DE.0C.DE.0C.DB.0C.DE.0C.E0.0C.D9.0C.D9.0C.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.FF.FF.00.00.DC.0C.0C.00.04.0C.4E.00.4B.00.4A.00.46.00.46.00.49.00.44.00.40.00.45.00.47.00.52.00.50.00.47.00.46.00.40.00.41.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.C4.CD.00.00.D5.ED.01.00.A0.F6.FF.FF.FA.00.EC.00.F2.00.00.00.00.00.00.61.18.7B.01.00.A0.86.01.00 (150) [11:37:34][VV][jk_bms_ble:362]: 36.00.00.00.CE.01.53.00.64.00.D3.05.FB.C6.E9.00.01.01.8F.06.00.00.00.00.00.00.00.00.00.00.00.00.07.00.01.00.00.00.E8.03.00.00.0C.00.B2.2A.3F.40.00.00.00.00.E2.04.00.00.00.00.00.01.00.05.00.00.9C.6C.15.01.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.04 (150) [11:37:34][D][sensor:127]: 'jk-bms cell voltage 1': Sending...

At the moment I don't see any differences to other BMS versions. It's still possible your BMS behaves a bit special while the BLE connection is establed but I would...

Are you able to read the ESPHome log via a serial connection? There are some early log messages missing I'm interested in. I cannot find the `Request device info` message...

Good job! This is the important part of your log: ``` [17:25:56][D][ble_client:047]: Found device at MAC address [20:21:11:28:18:DD] [17:25:56][I][ble_client:086]: Attempting BLE connection to 20:21:11:28:18:dd [17:25:57][V][ble_client:126]: [20:21:11:28:18:dd] ESP_GATTC_CONNECT_EVT [17:25:57][V][ble_client:116]: [20:21:11:28:18:dd] ESP_GATTC_OPEN_EVT...

Some more notes for myself to describe the traffic of your btnsoop capture for a better comparison: 1. Sent Write Request (0x12) to Service UUID: 0xffe0 Characteristic UUID: 0xffe1 UUID:...

I've pushed a small change. Please update your configuration YAML to: ``` substitutions: name: jk-bms device_description: "Monitor and control a JK-BMS via bluetooth" external_components_source: github://syssi/esphome-jk-bms@add-new-ble-module-support ``` flash again. If it...