JKBMS auslesen über BLE (Bluetooth) oder RS485 Adapter mittels EPS, ioBroker

Hallo zusammen,

Hab den BLE_Client auch grad mal getestet, scheint alles zu funktionieren, also Wlan, MQTT (alive status), und das JK BMS macht auch geräusche wenn sich der Client verbindet via Bluetooth, aber ich bekomm keine Daten, die Ausgabe über den Seriellen Monitor schaut so aus, mehr kommt nich...
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0030,len:1344 load:0x40078000,len:13864 load:0x40080400,len:3608 entry 0x400805f0 BMS Watchdog V 3.6 Booting Connecting to WiFi ...Ready IP address: 192.168.1.237 - Created client MQTT Client not connected MQTT time for reconnect MQTT reconnected! BLE -> Reconnecting 0 BLE Advertised Device found: Name: JK-B2A24S20P, Address: c8:47:8c:e4:56:b7, manufacturer data: 650b88a0c8478ce456b7, serviceUUID: 0000ffe0-0000-1000-8000-00805f9b34fb, serviceUUID: 0000fee7-0000-1000-8000-00805f9b34fb Forming a connection to c8:47:8c:e4:56:b7 - Connected to server - Found our service - Found our characteristic Notify the characteristic Sending device Info We are now connected to the BLE Server. gesendet! Daten anerkannt ! New Data for Analyse Complete... Daten anerkannt ! New Data for Analyse Complete... Daten anerkannt ! New Data for Analyse Complete... Daten anerkannt ! New Data for Analyse Complete... Daten anerkannt ! New Data for Analyse Complete... Daten anerkannt ! New Data for Analyse Complete... Daten anerkannt ! New Data for Analyse Complete... Daten anerkannt ! Grüße,
Nano
Schalte mal den full Log an und dann gib mir mal die Serialdaten ;) da sehe ich mehr.
Hallo zusammen,

Hab den BLE_Client auch grad mal getestet, scheint alles zu funktionieren, also Wlan, MQTT (alive status), und das JK BMS macht auch geräusche wenn sich der Client verbindet via Bluetooth, aber ich bekomm keine Daten, die Ausgabe über den Seriellen Monitor schaut so aus, mehr kommt nich...
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0030,len:1344 load:0x40078000,len:13864 load:0x40080400,len:3608 entry 0x400805f0 BMS Watchdog V 3.6 Booting Connecting to WiFi ...Ready IP address: 192.168.1.237 - Created client MQTT Client not connected MQTT time for reconnect MQTT reconnected! BLE -> Reconnecting 0 BLE Advertised Device found: Name: JK-B2A24S20P, Address: c8:47:8c:e4:56:b7, manufacturer data: 650b88a0c8478ce456b7, serviceUUID: 0000ffe0-0000-1000-8000-00805f9b34fb, serviceUUID: 0000fee7-0000-1000-8000-00805f9b34fb Forming a connection to c8:47:8c:e4:56:b7 - Connected to server - Found our service - Found our characteristic Notify the characteristic Sending device Info We are now connected to the BLE Server. gesendet! Daten anerkannt ! New Data for Analyse Complete... Daten anerkannt ! New Data for Analyse Complete... Daten anerkannt ! New Data for Analyse Complete... Daten anerkannt ! New Data for Analyse Complete... Daten anerkannt ! New Data for Analyse Complete... Daten anerkannt ! New Data for Analyse Complete... Daten anerkannt ! New Data for Analyse Complete... Daten anerkannt ! Grüße,
Nano
Schalte mal den full Log an und dann gib mir mal die Serialdaten ;) da sehe ich mehr.
Hi hier das Log:
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0018,len:4 load:0x3fff001c,len:1216 ho 0 tail 12 room 4 load:0x40078000,len:9720 ho 0 tail 12 room 4 load:0x40080400,len:6352 entry 0x400806b8 BMS Watchdog V 3.6 Booting Connecting to WiFi ...Ready IP address: 192.168.1.250 - Created client MQTT Client not connected MQTT time for reconnect MQTT reconnected! BLE -> Reconnecting 0 BLE Advertised Device found: Name: , Address: 7d:4c:1c:85:d6:d5, manufacturer data: 4c000f0580355acf2c1002720c, txPower: 8 BLE Advertised Device found: Name: , Address: 06:e1:ce:31:13:e0, manufacturer data: 060001092002e11d74336abb7f9199004565ee843604381fc43d4c3cf1 BLE Advertised Device found: Name: , Address: 10:27:3a:b1:20:51, serviceUUID: 0000fd6f-0000-1000-8000-00805f9b34fb BLE Advertised Device found: Name: , Address: 07:22:83:29:ba:4d, manufacturer data: 4c000512000000000000000001db8b5a14b84e6ffe00 BLE -> Reconnecting 1 BLE Advertised Device found: Name: JK-B2A24S20P, Address: c8:47:8c:e4:56:b7, manufacturer data: 650b88a0c8478ce456b7, serviceUUID: 0000ffe0-0000-1000-8000-00805f9b34fb Forming a connection to c8:47:8c:e4:56:b7 - Connected to server - Found our service - Found our characteristic Notify the characteristic Sending device Info We are now connected to the BLE Server. Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 128 data: 55, AA, EB, 90, 3, 80, 4A, 4B, 2D, 42, 32, 41, 32, 34, 53, 32, 30, 50, 0, 0, 0, 0, 31, 30, 2E, 58, 57, 0, 0, 0, 31, 30, 2E, 30, 38, 0, 0, 0, 44, 11, 5, 0, 1, 0, 0, 0, 4A, 4B, 2D, 42, 32, 41, 32, 34, 53, 32, 30, 50, 0, 0, 0, 0, 31, 32, 33, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 32, 30, 38, 31, 32, 0, 0, 32, 30, 34, 32, 31, 30, 33, 30, 34, 39, 0, 30, 30, 30, 30, 0, 49, 6E, 70, 75, 74, 20, 55, 73, 65, 72, 64, 61, 74, 61, 0, 0, 31, 32, 33, 34, 35, 36, 0, 0, 0, 0, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 22 data: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 128 data: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 22 data: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, A1, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 20 data: AA, 55, 90, EB, C8, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44, gesendet! Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 128 data: 55, AA, EB, 90, 1, 80, 58, 2, 0, 0, 28, A, 0, 0, 5A, A, 0, 0, 10, E, 0, 0, 6, E, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, C4, 9, 0, 0, A8, 61, 0, 0, 1E, 0, 0, 0, 3C, 0, 0, 0, 40, D, 3, 0, 2C, 1, 0, 0, 3C, 0, 0, 0, 3C, 0, 0, 0, D0, 7, 0, 0, BC, 2, 0, 0, 58, 2, 0, 0, BC, 2, 0, 0, 58, 2, 0, 0, 38, FF, FF, FF, 9C, FF, FF, FF, 84, 3, 0, 0, BC, 2, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 22 data: 0, 0, 70, 82, 3, 0, DC, 5, 0, 0, B8, B, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 128 data: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 22 data: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 20 data: AA, 55, 90, EB, C8, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 128 data: 55, AA, EB, 90, 2, 80, 2B, D, 2B, D, 2B, D, 2A, D, 2A, D, 2B, D, 2B, D, 2B, D, 2B, D, 2A, D, 2B, D, 2B, D, 2B, D, 2B, D, 2B, D, 2B, D, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, FF, FF, 0, 0, 2B, D, 1, 0, 1, 0, 34, 0, 35, 0, 34, 0, 37, 0, 37, 0, 34, 0, 33, 0, 34, 0, 34, 0, 33, 0, 33, 0, 34, 0, 34, 0, 34, 0, 34, 0, 35, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, B5, D2, 0, 0, 0, 0, 0, 0, 0, 0, Daten anerkannt ! Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 22 data: 0, 0, F4, 0, F3, 0, 1C, 1, 0, 0, 0, 0, 0, 62, E6, 76, 3, 0, 70, 82, 3, 0, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 128 data: 0, 0, 0, 0, 9D, 2, 0, 0, 64, 0, 7E, A, 45, 11, 5, 0, 0, 0, A4, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 1, 0, 0, 0, BF, 3, 0, 0, 0, 0, 7F, A5, 3F, 40, 0, 0, 0, 0, E2, 4, 0, 0, 0, 0, 0, 1, 0, 5, 0, 0, B9, AC, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 22 data: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, B7, New Data for Analyse Complete... Cell Voltages = 3.371V, 3.371V, 3.371V, 3.370V, 3.370V, 3.371V, 3.371V, 3.371V, 3.371V, 3.370V, 3.371V, 3.371V, 3.371V, 3.371V, 3.371V, 3.371V unbekant 1 = 0, 0, FF, FF, Average Cell Voltage = 3.371V, Delta Cell Voltage = 0.001V, Current Balancer = 0.001V, unbekant 2 = 0, 0, 0, 0, 0, 0, Battery Voltage = 53.941V, CAN_Battery Voltage = 5394V, Battery Power = 0.000W, Charge Current = 0.000A, Analyse = 0, 0, B5, D2, 0, 0, 0, 0 unbekant 3 = 0, 0, 0, 0, 0, 0, Battery T1 = 24.400°C, Battery T2 = 24.300°C, MOS Temp = 28.400°C, Balance_Curr = 0.000A, unbekant 4 = 0, 0, Percent Remain = 98%, Capacity Remain = 227.046, Nominal Capacity = 230.000, Cycle Count = 0, unbekant 5 = 0, 64, 0, 0, 2, 9D, Capacity Cycle = 2.686, Tage: 3 Stunden: 20 Minuten: 15 Sekunden: 1 unbekant 5 = 0, Charge on? = off, Discharge on? = off, unbekant 7 = A4, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 1, 0, 0, 0, BF, 3, 0, 0, 0, 0, 7F, A5, 3F, 40, 0, 0, 0, 0, E2, 4, 0, 0, 0, 0, 0, 1, 0, 5, 0, 0, B9, AC, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 128 data: 55, AA, EB, 90, 2, 81, 2B, D, 2B, D, 2B, D, 2A, D, 2A, D, 2A, D, 2B, D, 2B, D, 2B, D, 2B, D, 2B, D, 2B, D, 2B, D, 2B, D, 2B, D, 2B, D, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, FF, FF, 0, 0, 2B, D, 1, 0, 1, 0, 34, 0, 35, 0, 34, 0, 37, 0, 37, 0, 34, 0, 33, 0, 34, 0, 34, 0, 33, 0, 33, 0, 34, 0, 34, 0, 34, 0, 34, 0, 35, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, B4, D2, 0, 0, 0, 0, 0, 0, 0, 0, Daten anerkannt ! Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 22 data: 0, 0, F4, 0, F3, 0, 1C, 1, 0, 0, 0, 0, 0, 62, E6, 76, 3, 0, 70, 82, 3, 0, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 128 data: 0, 0, 0, 0, 9D, 2, 0, 0, 64, 0, 7E, A, 46, 11, 5, 0, 0, 0, A4, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 1, 0, 0, 0, BF, 3, 0, 0, 0, 0, 7F, A5, 3F, 40, 0, 0, 0, 0, E2, 4, 0, 0, 0, 0, 0, 1, 0, 5, 0, 0, BE, AC, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 22 data: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, BD, New Data for Analyse Complete... Cell Voltages = 3.371V, 3.371V, 3.371V, 3.370V, 3.370V, 3.370V, 3.371V, 3.371V, 3.371V, 3.371V, 3.371V, 3.371V, 3.371V, 3.371V, 3.371V, 3.371V unbekant 1 = 0, 0, FF, FF, Average Cell Voltage = 3.371V, Delta Cell Voltage = 0.001V, Current Balancer = 0.001V, unbekant 2 = 0, 0, 0, 0, 0, 0, Battery Voltage = 53.940V, CAN_Battery Voltage = 5394V, Battery Power = 0.000W, Charge Current = 0.000A, Analyse = 0, 0, B4, D2, 0, 0, 0, 0 unbekant 3 = 0, 0, 0, 0, 0, 0, Battery T1 = 24.400°C, Battery T2 = 24.300°C, MOS Temp = 28.400°C, Balance_Curr = 0.000A, unbekant 4 = 0, 0, Percent Remain = 98%, Capacity Remain = 227.046, Nominal Capacity = 230.000, Cycle Count = 0, unbekant 5 = 0, 64, 0, 0, 2, 9D, Capacity Cycle = 2.686, Tage: 3 Stunden: 20 Minuten: 15 Sekunden: 2 unbekant 5 = 0, Charge on? = off, Discharge on? = off, unbekant 7 = A4, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 1, 0, 0, 0, BF, 3, 0, 0, 0, 0, 7F, A5, 3F, 40, 0, 0, 0, 0, E2, 4, 0, 0, 0, 0, 0, 1, 0, 5, 0, 0, BE, AC, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 128 data: 55, AA, EB, 90, 2, 82, 2B, D, 2B, D, 2B, D, 2A, D, 2B, D, 2B, D, 2B, D, 2A, D, 2B, D, 2B, D, 2B, D, 2B, D, 2B, D, 2B, D, 2B, D, 2A, D, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, FF, FF, 0, 0, 2B, D, 1, 0, 0, 3, 34, 0, 35, 0, 34, 0, 37, 0, 37, 0, 34, 0, 33, 0, 34, 0, 34, 0, 33, 0, 33, 0, 34, 0, 34, 0, 34, 0, 34, 0, 35, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, B1, D2, 0, 0, 0, 0, 0, 0, 0, 0, Daten anerkannt ! Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 22 data: 0, 0, F4, 0, F3, 0, 1C, 1, 0, 0, 0, 0, 0, 62, E6, 76, 3, 0, 70, 82, 3, 0, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 128 data: 0, 0, 0, 0, 9D, 2, 0, 0, 64, 0, 7E, A, 46, 11, 5, 0, 0, 0, A4, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 1, 0, 0, 0, BF, 3, 0, 0, 0, 0, 7F, A5, 3F, 40, 0, 0, 0, 0, E2, 4, 0, 0, 0, 0, 0, 1, 0, 5, 0, 0, C4, AC, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 22 data: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, C3, New Data for Analyse Complete... Cell Voltages = 3.371V, 3.371V, 3.371V, 3.370V, 3.371V, 3.371V, 3.371V, 3.370V, 3.371V, 3.371V, 3.371V, 3.371V, 3.371V, 3.371V, 3.371V, 3.370V unbekant 1 = 0, 0, FF, FF, Average Cell Voltage = 3.371V, Delta Cell Voltage = 0.001V, Current Balancer = 0.768V, unbekant 2 = 0, 0, 0, 0, 0, 0, Battery Voltage = 53.937V, CAN_Battery Voltage = 5393V, Battery Power = 0.000W, Charge Current = 0.000A, Analyse = 0, 0, B1, D2, 0, 0, 0, 0 unbekant 3 = 0, 0, 0, 0, 0, 0, Battery T1 = 24.400°C, Battery T2 = 24.300°C, MOS Temp = 28.400°C, Balance_Curr = 0.000A, unbekant 4 = 0, 0, Percent Remain = 98%, Capacity Remain = 227.046, Nominal Capacity = 230.000, Cycle Count = 0, unbekant 5 = 0, 64, 0, 0, 2, 9D, Capacity Cycle = 2.686, Tage: 3 Stunden: 20 Minuten: 15 Sekunden: 2 unbekant 5 = 0, Charge on? = off, Discharge on? = off, unbekant 7 = A4, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 1, 0, 0, 0, BF, 3, 0, 0, 0, 0, 7F, A5, 3F, 40, 0, 0, 0, 0, E2, 4, 0, 0, 0, 0, 0, 1, 0, 5, 0, 0, C4, AC, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 128 data: 55, AA, EB, 90, 2, 83, 2B, D, 2B, D, 2A, D, 2A, D, 2A, D, 2B, D, 2B, D, 2B, D, 2B, D, 2A, D, 2B, D, 2A, D, 2A, D, 2B, D, 2B, D, 2A, D, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, FF, FF, 0, 0, 2B, D, 1, 0, 0, 3, 34, 0, 35, 0, 34, 0, 37, 0, 37, 0, 34, 0, 33, 0, 34, 0, 34, 0, 33, 0, 33, 0, 34, 0, 34, 0, 34, 0, 34, 0, 35, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, AD, D2, 0, 0, 0, 0, 0, 0, 0, 0, Daten anerkannt ! es werden keine Werte an MQTT gesendet, zumindest werden keine weiteren Objekte erzeugt! Würde das senden an MQTT auch eine Log Message erzeugen? Oder muss ich irgendwo das senden der einzelnen Werte an MQTT noch aktivieren? AKtuell habe ich nur ein Objekt "alive" value=true

Danke für die Hilfe und dein Programm!

Grüße,
Nano
Hallo zusammen,

Hab den BLE_Client auch grad mal getestet, scheint alles zu funktionieren, also Wlan, MQTT (alive status), und das JK BMS macht auch geräusche wenn sich der Client verbindet via Bluetooth, aber ich bekomm keine Daten, die Ausgabe über den Seriellen Monitor schaut so aus, mehr kommt nich...
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0030,len:1344 load:0x40078000,len:13864 load:0x40080400,len:3608 entry 0x400805f0 BMS Watchdog V 3.6 Booting Connecting to WiFi ...Ready IP address: 192.168.1.237 - Created client MQTT Client not connected MQTT time for reconnect MQTT reconnected! BLE -> Reconnecting 0 BLE Advertised Device found: Name: JK-B2A24S20P, Address: c8:47:8c:e4:56:b7, manufacturer data: 650b88a0c8478ce456b7, serviceUUID: 0000ffe0-0000-1000-8000-00805f9b34fb, serviceUUID: 0000fee7-0000-1000-8000-00805f9b34fb Forming a connection to c8:47:8c:e4:56:b7 - Connected to server - Found our service - Found our characteristic Notify the characteristic Sending device Info We are now connected to the BLE Server. gesendet! Daten anerkannt ! New Data for Analyse Complete... Daten anerkannt ! New Data for Analyse Complete... Daten anerkannt ! New Data for Analyse Complete... Daten anerkannt ! New Data for Analyse Complete... Daten anerkannt ! New Data for Analyse Complete... Daten anerkannt ! New Data for Analyse Complete... Daten anerkannt ! New Data for Analyse Complete... Daten anerkannt ! Grüße,
Nano
Schalte mal den full Log an und dann gib mir mal die Serialdaten ;) da sehe ich mehr.
Hi hier das Log:
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0018,len:4 load:0x3fff001c,len:1216 ho 0 tail 12 room 4 load:0x40078000,len:9720 ho 0 tail 12 room 4 load:0x40080400,len:6352 entry 0x400806b8 BMS Watchdog V 3.6 Booting Connecting to WiFi ...Ready IP address: 192.168.1.250 - Created client MQTT Client not connected MQTT time for reconnect MQTT reconnected! BLE -> Reconnecting 0 BLE Advertised Device found: Name: , Address: 7d:4c:1c:85:d6:d5, manufacturer data: 4c000f0580355acf2c1002720c, txPower: 8 BLE Advertised Device found: Name: , Address: 06:e1:ce:31:13:e0, manufacturer data: 060001092002e11d74336abb7f9199004565ee843604381fc43d4c3cf1 BLE Advertised Device found: Name: , Address: 10:27:3a:b1:20:51, serviceUUID: 0000fd6f-0000-1000-8000-00805f9b34fb BLE Advertised Device found: Name: , Address: 07:22:83:29:ba:4d, manufacturer data: 4c000512000000000000000001db8b5a14b84e6ffe00 BLE -> Reconnecting 1 BLE Advertised Device found: Name: JK-B2A24S20P, Address: c8:47:8c:e4:56:b7, manufacturer data: 650b88a0c8478ce456b7, serviceUUID: 0000ffe0-0000-1000-8000-00805f9b34fb Forming a connection to c8:47:8c:e4:56:b7 - Connected to server - Found our service - Found our characteristic Notify the characteristic Sending device Info We are now connected to the BLE Server. Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 128 data: 55, AA, EB, 90, 3, 80, 4A, 4B, 2D, 42, 32, 41, 32, 34, 53, 32, 30, 50, 0, 0, 0, 0, 31, 30, 2E, 58, 57, 0, 0, 0, 31, 30, 2E, 30, 38, 0, 0, 0, 44, 11, 5, 0, 1, 0, 0, 0, 4A, 4B, 2D, 42, 32, 41, 32, 34, 53, 32, 30, 50, 0, 0, 0, 0, 31, 32, 33, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 32, 30, 38, 31, 32, 0, 0, 32, 30, 34, 32, 31, 30, 33, 30, 34, 39, 0, 30, 30, 30, 30, 0, 49, 6E, 70, 75, 74, 20, 55, 73, 65, 72, 64, 61, 74, 61, 0, 0, 31, 32, 33, 34, 35, 36, 0, 0, 0, 0, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 22 data: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 128 data: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 22 data: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, A1, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 20 data: AA, 55, 90, EB, C8, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44, gesendet! Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 128 data: 55, AA, EB, 90, 1, 80, 58, 2, 0, 0, 28, A, 0, 0, 5A, A, 0, 0, 10, E, 0, 0, 6, E, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, C4, 9, 0, 0, A8, 61, 0, 0, 1E, 0, 0, 0, 3C, 0, 0, 0, 40, D, 3, 0, 2C, 1, 0, 0, 3C, 0, 0, 0, 3C, 0, 0, 0, D0, 7, 0, 0, BC, 2, 0, 0, 58, 2, 0, 0, BC, 2, 0, 0, 58, 2, 0, 0, 38, FF, FF, FF, 9C, FF, FF, FF, 84, 3, 0, 0, BC, 2, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 22 data: 0, 0, 70, 82, 3, 0, DC, 5, 0, 0, B8, B, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 128 data: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 22 data: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 20 data: AA, 55, 90, EB, C8, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 128 data: 55, AA, EB, 90, 2, 80, 2B, D, 2B, D, 2B, D, 2A, D, 2A, D, 2B, D, 2B, D, 2B, D, 2B, D, 2A, D, 2B, D, 2B, D, 2B, D, 2B, D, 2B, D, 2B, D, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, FF, FF, 0, 0, 2B, D, 1, 0, 1, 0, 34, 0, 35, 0, 34, 0, 37, 0, 37, 0, 34, 0, 33, 0, 34, 0, 34, 0, 33, 0, 33, 0, 34, 0, 34, 0, 34, 0, 34, 0, 35, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, B5, D2, 0, 0, 0, 0, 0, 0, 0, 0, Daten anerkannt ! Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 22 data: 0, 0, F4, 0, F3, 0, 1C, 1, 0, 0, 0, 0, 0, 62, E6, 76, 3, 0, 70, 82, 3, 0, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 128 data: 0, 0, 0, 0, 9D, 2, 0, 0, 64, 0, 7E, A, 45, 11, 5, 0, 0, 0, A4, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 1, 0, 0, 0, BF, 3, 0, 0, 0, 0, 7F, A5, 3F, 40, 0, 0, 0, 0, E2, 4, 0, 0, 0, 0, 0, 1, 0, 5, 0, 0, B9, AC, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 22 data: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, B7, New Data for Analyse Complete... Cell Voltages = 3.371V, 3.371V, 3.371V, 3.370V, 3.370V, 3.371V, 3.371V, 3.371V, 3.371V, 3.370V, 3.371V, 3.371V, 3.371V, 3.371V, 3.371V, 3.371V unbekant 1 = 0, 0, FF, FF, Average Cell Voltage = 3.371V, Delta Cell Voltage = 0.001V, Current Balancer = 0.001V, unbekant 2 = 0, 0, 0, 0, 0, 0, Battery Voltage = 53.941V, CAN_Battery Voltage = 5394V, Battery Power = 0.000W, Charge Current = 0.000A, Analyse = 0, 0, B5, D2, 0, 0, 0, 0 unbekant 3 = 0, 0, 0, 0, 0, 0, Battery T1 = 24.400°C, Battery T2 = 24.300°C, MOS Temp = 28.400°C, Balance_Curr = 0.000A, unbekant 4 = 0, 0, Percent Remain = 98%, Capacity Remain = 227.046, Nominal Capacity = 230.000, Cycle Count = 0, unbekant 5 = 0, 64, 0, 0, 2, 9D, Capacity Cycle = 2.686, Tage: 3 Stunden: 20 Minuten: 15 Sekunden: 1 unbekant 5 = 0, Charge on? = off, Discharge on? = off, unbekant 7 = A4, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 1, 0, 0, 0, BF, 3, 0, 0, 0, 0, 7F, A5, 3F, 40, 0, 0, 0, 0, E2, 4, 0, 0, 0, 0, 0, 1, 0, 5, 0, 0, B9, AC, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 128 data: 55, AA, EB, 90, 2, 81, 2B, D, 2B, D, 2B, D, 2A, D, 2A, D, 2A, D, 2B, D, 2B, D, 2B, D, 2B, D, 2B, D, 2B, D, 2B, D, 2B, D, 2B, D, 2B, D, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, FF, FF, 0, 0, 2B, D, 1, 0, 1, 0, 34, 0, 35, 0, 34, 0, 37, 0, 37, 0, 34, 0, 33, 0, 34, 0, 34, 0, 33, 0, 33, 0, 34, 0, 34, 0, 34, 0, 34, 0, 35, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, B4, D2, 0, 0, 0, 0, 0, 0, 0, 0, Daten anerkannt ! Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 22 data: 0, 0, F4, 0, F3, 0, 1C, 1, 0, 0, 0, 0, 0, 62, E6, 76, 3, 0, 70, 82, 3, 0, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 128 data: 0, 0, 0, 0, 9D, 2, 0, 0, 64, 0, 7E, A, 46, 11, 5, 0, 0, 0, A4, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 1, 0, 0, 0, BF, 3, 0, 0, 0, 0, 7F, A5, 3F, 40, 0, 0, 0, 0, E2, 4, 0, 0, 0, 0, 0, 1, 0, 5, 0, 0, BE, AC, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 22 data: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, BD, New Data for Analyse Complete... Cell Voltages = 3.371V, 3.371V, 3.371V, 3.370V, 3.370V, 3.370V, 3.371V, 3.371V, 3.371V, 3.371V, 3.371V, 3.371V, 3.371V, 3.371V, 3.371V, 3.371V unbekant 1 = 0, 0, FF, FF, Average Cell Voltage = 3.371V, Delta Cell Voltage = 0.001V, Current Balancer = 0.001V, unbekant 2 = 0, 0, 0, 0, 0, 0, Battery Voltage = 53.940V, CAN_Battery Voltage = 5394V, Battery Power = 0.000W, Charge Current = 0.000A, Analyse = 0, 0, B4, D2, 0, 0, 0, 0 unbekant 3 = 0, 0, 0, 0, 0, 0, Battery T1 = 24.400°C, Battery T2 = 24.300°C, MOS Temp = 28.400°C, Balance_Curr = 0.000A, unbekant 4 = 0, 0, Percent Remain = 98%, Capacity Remain = 227.046, Nominal Capacity = 230.000, Cycle Count = 0, unbekant 5 = 0, 64, 0, 0, 2, 9D, Capacity Cycle = 2.686, Tage: 3 Stunden: 20 Minuten: 15 Sekunden: 2 unbekant 5 = 0, Charge on? = off, Discharge on? = off, unbekant 7 = A4, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 1, 0, 0, 0, BF, 3, 0, 0, 0, 0, 7F, A5, 3F, 40, 0, 0, 0, 0, E2, 4, 0, 0, 0, 0, 0, 1, 0, 5, 0, 0, BE, AC, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 128 data: 55, AA, EB, 90, 2, 82, 2B, D, 2B, D, 2B, D, 2A, D, 2B, D, 2B, D, 2B, D, 2A, D, 2B, D, 2B, D, 2B, D, 2B, D, 2B, D, 2B, D, 2B, D, 2A, D, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, FF, FF, 0, 0, 2B, D, 1, 0, 0, 3, 34, 0, 35, 0, 34, 0, 37, 0, 37, 0, 34, 0, 33, 0, 34, 0, 34, 0, 33, 0, 33, 0, 34, 0, 34, 0, 34, 0, 34, 0, 35, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, B1, D2, 0, 0, 0, 0, 0, 0, 0, 0, Daten anerkannt ! Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 22 data: 0, 0, F4, 0, F3, 0, 1C, 1, 0, 0, 0, 0, 0, 62, E6, 76, 3, 0, 70, 82, 3, 0, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 128 data: 0, 0, 0, 0, 9D, 2, 0, 0, 64, 0, 7E, A, 46, 11, 5, 0, 0, 0, A4, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 1, 0, 0, 0, BF, 3, 0, 0, 0, 0, 7F, A5, 3F, 40, 0, 0, 0, 0, E2, 4, 0, 0, 0, 0, 0, 1, 0, 5, 0, 0, C4, AC, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 22 data: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, C3, New Data for Analyse Complete... Cell Voltages = 3.371V, 3.371V, 3.371V, 3.370V, 3.371V, 3.371V, 3.371V, 3.370V, 3.371V, 3.371V, 3.371V, 3.371V, 3.371V, 3.371V, 3.371V, 3.370V unbekant 1 = 0, 0, FF, FF, Average Cell Voltage = 3.371V, Delta Cell Voltage = 0.001V, Current Balancer = 0.768V, unbekant 2 = 0, 0, 0, 0, 0, 0, Battery Voltage = 53.937V, CAN_Battery Voltage = 5393V, Battery Power = 0.000W, Charge Current = 0.000A, Analyse = 0, 0, B1, D2, 0, 0, 0, 0 unbekant 3 = 0, 0, 0, 0, 0, 0, Battery T1 = 24.400°C, Battery T2 = 24.300°C, MOS Temp = 28.400°C, Balance_Curr = 0.000A, unbekant 4 = 0, 0, Percent Remain = 98%, Capacity Remain = 227.046, Nominal Capacity = 230.000, Cycle Count = 0, unbekant 5 = 0, 64, 0, 0, 2, 9D, Capacity Cycle = 2.686, Tage: 3 Stunden: 20 Minuten: 15 Sekunden: 2 unbekant 5 = 0, Charge on? = off, Discharge on? = off, unbekant 7 = A4, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 1, 0, 0, 0, BF, 3, 0, 0, 0, 0, 7F, A5, 3F, 40, 0, 0, 0, 0, E2, 4, 0, 0, 0, 0, 0, 1, 0, 5, 0, 0, C4, AC, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Notify callback for characteristic 0000ffe1-0000-1000-8000-00805f9b34fb of data length 128 data: 55, AA, EB, 90, 2, 83, 2B, D, 2B, D, 2A, D, 2A, D, 2A, D, 2B, D, 2B, D, 2B, D, 2B, D, 2A, D, 2B, D, 2A, D, 2A, D, 2B, D, 2B, D, 2A, D, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, FF, FF, 0, 0, 2B, D, 1, 0, 0, 3, 34, 0, 35, 0, 34, 0, 37, 0, 37, 0, 34, 0, 33, 0, 34, 0, 34, 0, 33, 0, 33, 0, 34, 0, 34, 0, 34, 0, 34, 0, 35, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, AD, D2, 0, 0, 0, 0, 0, 0, 0, 0, Daten anerkannt ! es werden keine Werte an MQTT gesendet, zumindest werden keine weiteren Objekte erzeugt! Würde das senden an MQTT auch eine Log Message erzeugen? Oder muss ich irgendwo das senden der einzelnen Werte an MQTT noch aktivieren? AKtuell habe ich nur ein Objekt "alive" value=true

Danke für die Hilfe und dein Programm!

Grüße,
Nano
OK, hab den Fehler gefunden, irgendwie ist der weg wie die Daten per MQTT geschickt werden nicht kompatibel mit meinem aktuellen MQTT Adapter (Sonoff Adapter), der bis jetzt alle MQTT Daten angenommen hat in IOBroker, hab mal einen anderen ausprobiert und jetzt hab ich alle Werte, komisch ist nur das ich ja einen Wert/Objekt ("alive" value=true) vom BMS_Watchdog bekommen habe, welcher ja auch automatisch erstellt wurde....

Danke und Grüße,
Nano

Hallo,

ich muss erstmal meinen respekt zollen für die Arbeit, die Du hier öffentlich machst und die mittlerweile schon fast "DAU-proof" ist :slight_smile:

Ich habe jedenfalls einen meiner ESPs damit geflasht, die für mein Netzwerk notwendigen Anpassungen gemacht (ich nutze den Mosquitto und sende alles an icinga, das wiederum alle Daten in Influx speichert), schnell noch ein skript geschrieben, das mir alles entsprechend dahinschickt, wo ich es gern hätte und schon hat es funktioniert. Bin begeistert, da es auch sehr stabil läuft!

Allerdings hätte ich noch eine Frage zur Anbindung via CAN-Bus: Ich will die Daten per CAN über den Transceiver vom ESP32 an das Cerbo schicken; dafür habe ich mir ein Kabel gecrimpt mit den Pins 7 und 8 CANH und CANL.
Angeschlossen ist das Kabel an den BMS-CAN.

Ist das korrekt? Ich bekomme nämlich keine Verbindung zustande - der Bus ist terminiert auf der Cerbo-Seite (der Transceiver hat schon einen 120R)

Gruß,

2bbionic

BMS ist gestern gekommen, ich hab's installiert, Software auf einem D1 Mini32 installiert und fertig. Hat alles gleich super funktioniert. Mit MQTTExplorer die Topic und Statusmeldungen rausgesucht und die entsprechenden sensors für Home Assistant angelegt.

Was mir abgeht: Es wird zwar eine %-Wert des Füllstandes ausgeworfen, aber der erscheint mir zumindest aktuell noch sehr gewürfelt. Macht das JKBMS keine Coulomb-Counting wie es andere BMS machen? Ich hätte gerne die "kWh verbleibend" angezeigt?! Ist das irgendwie möglich? Also ich meine generisch vom BMS aus, nicht mit templates in HomeAssistant.

Mein altes BMS hat auch die maximale und minimale Zellspannung ausgegeben, da musste ich das Delta dann selber ausrechnen. Wären diese zwei Ausgabewerte vielleicht auch möglich? Wenn nicht, dann müsste man alle 16 Werte lesen und HA rechnen lassen, finde ich recht viel Datenmüll.

TOLLE ARBEIT!!

Ich habe bei mir nun auch den ESP32 zum Auslesen des JKBMS über BLE bei mir in Betrieb. Läuft echt super bisher und quasi out-of-the-box. Vielen Dank dafür!
Vorher hatte ich mich ein paar Tage mit einem ESP32-CAM-Modul rumgeschlagen, aber als ich dann die 10€ für den ESP32 von AZ-delivery bestellt habe, lief es sofort.
Es wurde hier schon mal gefragt, aber ich glaube nicht beantwortet. @scotty89 hast du die Möglichkeit noch das Passwort für das JKBMS da einzubauen um Werte zu ändern?
Ich muss nämlich bei mir charge/discharge auf on/off schalten, um mein Ladenetzteil in Betrieb zu bekommen.

Hallo zusammen,

leider scheitere ich bereits beim kompilieren. Habe mit der Arduino IDE noch keine Erfahrung.

Bekomme folgende Meldung: BLE_client:42:8: error: 'BLEUUID' does not name a type

Das ESP32 Board habe ich wie in der Anleitung https://randomnerdtutorials.com/installing-the-esp32-board-in-arduino-ide-windows-instructions/ installiert und ausgewählt.
Die Bibliotheken im Anhang habe ich installiert. Fehlt da vielleicht noch was?

Gruß und schönen Tag

Hallo zusammen,

vielen Dank ersteinmal für die tolle Arbeit und die Mühe, die hierin steckt.

Bei dem Versuch, den Sketch auf den ESP32 zu laden, kommt bei mir die Fehlermeldung "too many decimal points in number":

Lass ich die Anführungszeichen an der IP weg, verschwindet die Fehlermeldung. Ist es richtig, dass die IP in Anführungszeichen stehen muss?

Wenn ich die IP also in Anführungszeichen lasse, kommt als nächstes die Fehlermeldung "BLEUUID does not name a type" (wie der Kollege über mir).



Was mache ich (wir) hier falsch?
Vielen Dank im Voraus!

Sebastian

Hallo Sebastian,

die Anführungszeichen gehören dazu. Welche Bibliotheken hast du installiert?

Markus

Hallo Markus,

danke, dann ist das erste ja schonmal gelöst.

Ich habe folgende Libraries:

C:Program Files (x86)ArduinolibrariesAdafruit_Circuit_Playground
C:Program Files (x86)ArduinolibrariesArduinoOTA
C:Program Files (x86)ArduinolibrariesAsyncUDP
C:Program Files (x86)ArduinolibrariesBLE
C:Program Files (x86)ArduinolibrariesBluetoothSerial
C:Program Files (x86)ArduinolibrariesBridge
C:Program Files (x86)ArduinolibrariesDNSServer
C:Program Files (x86)ArduinolibrariesEEPROM
C:Program Files (x86)ArduinolibrariesESP32
C:Program Files (x86)ArduinolibrariesESP32_BLE_Arduino
C:Program Files (x86)ArduinolibrariesESP32_BLE_Arduino-master
C:Program Files (x86)Arduinolibrariesesp8266
C:Program Files (x86)ArduinolibrariesESP8266AVRISP
C:Program Files (x86)ArduinolibrariesESP8266HTTPClient
C:Program Files (x86)ArduinolibrariesESP8266httpUpdate
C:Program Files (x86)ArduinolibrariesESP8266HTTPUpdateServer
C:Program Files (x86)ArduinolibrariesESP8266LLMNR
C:Program Files (x86)ArduinolibrariesESP8266mDNS
C:Program Files (x86)ArduinolibrariesESP8266NetBIOS
C:Program Files (x86)ArduinolibrariesESP8266SdFat
C:Program Files (x86)ArduinolibrariesESP8266SSDP
C:Program Files (x86)ArduinolibrariesESP8266WebServer
C:Program Files (x86)ArduinolibrariesESP8266WiFi
C:Program Files (x86)ArduinolibrariesESP8266WiFiMesh
C:Program Files (x86)ArduinolibrariesEsplora
C:Program Files (x86)ArduinolibrariesESPmDNS
C:Program Files (x86)ArduinolibrariesEthernet
C:Program Files (x86)ArduinolibrariesFFat
C:Program Files (x86)ArduinolibrariesFirmata
C:Program Files (x86)ArduinolibrariesFS
C:Program Files (x86)ArduinolibrariesFSTools
C:Program Files (x86)ArduinolibrariesGDBStub
C:Program Files (x86)ArduinolibrariesGSM
C:Program Files (x86)ArduinolibrariesHash
C:Program Files (x86)ArduinolibrariesHTTPClient
C:Program Files (x86)ArduinolibrariesHTTPUpdate
C:Program Files (x86)ArduinolibrariesHTTPUpdateServer
C:Program Files (x86)ArduinolibrariesI2S
C:Program Files (x86)ArduinolibrariesKeyboard
C:Program Files (x86)ArduinolibrariesLiquidCrystal
C:Program Files (x86)ArduinolibrariesLittleFS
C:Program Files (x86)ArduinolibrarieslwIP_enc28j60
C:Program Files (x86)ArduinolibrarieslwIP_Ethernet
C:Program Files (x86)ArduinolibrarieslwIP_PPP
C:Program Files (x86)ArduinolibrarieslwIP_w5100
C:Program Files (x86)ArduinolibrarieslwIP_w5500
C:Program Files (x86)ArduinolibrariesMouse
C:Program Files (x86)ArduinolibrariesNetBIOS
C:Program Files (x86)ArduinolibrariesNetdump
C:Program Files (x86)ArduinolibrariesPreferences
C:Program Files (x86)Arduinolibrariespubsubclient-master
C:Program Files (x86)ArduinolibrariesRainMaker
C:Program Files (x86)ArduinolibrariesRobot_Control
C:Program Files (x86)ArduinolibrariesRobot_Motor
C:Program Files (x86)ArduinolibrariesRobotIRremote
C:Program Files (x86)ArduinolibrariesSD
C:Program Files (x86)ArduinolibrariesSD_MMC
C:Program Files (x86)ArduinolibrariesSDFS
C:Program Files (x86)ArduinolibrariesServo
C:Program Files (x86)ArduinolibrariesSimpleBLE
C:Program Files (x86)ArduinolibrariesSoftwareSerial
C:Program Files (x86)ArduinolibrariesSpacebrewYun
C:Program Files (x86)ArduinolibrariesSPI
C:Program Files (x86)ArduinolibrariesSPIFFS
C:Program Files (x86)ArduinolibrariesSPISlave
C:Program Files (x86)ArduinolibrariesStepper
C:Program Files (x86)ArduinolibrariesTemboo
C:Program Files (x86)ArduinolibrariesTFT
C:Program Files (x86)ArduinolibrariesTFT_Touch_Shield_V2
C:Program Files (x86)ArduinolibrariesTicker
C:Program Files (x86)ArduinolibrariesUpdate
C:Program Files (x86)ArduinolibrariesUSB
C:Program Files (x86)ArduinolibrariesWebServer
C:Program Files (x86)ArduinolibrariesWiFi
C:Program Files (x86)ArduinolibrariesWiFiClientSecure
C:Program Files (x86)ArduinolibrariesWiFiProv
C:Program Files (x86)ArduinolibrariesWire

Gruß,
Sebastian

Hallo zusammen,

ich habe IDE nach dieser Anleitung deinstalliert / die Verzeichnisse gelöscht:

https://support.arduino.cc/hc/en-us/articles/360021325733-Uninstall-Arduino-IDE

Anschließend neu installiert und PubSubClient installiert.
Nun läuft es, keine Ahnung was ich da alles in der Library hatte. :smiley:

Danke trotzdem!
Sebastian

Sorry, habe bei mir jetzt versucht dein Szenario nachzustellen. Da ich auf Mac arbeite kann ich es nicht ganz nachstellen, aber bei den BLE gibt es verschiedene Varianten. Ich hatte dann auch Probleme. Aber wenn es jetzt bei dir läuft dann ist alles in Ordnung.

An den Themenersteller Scotty89: Klasse Arbeit, vielenDank dafür.

Hallo,

-habe die Anleitung https://support.arduino.cc/hc/en-us/articles/360021325733-Uninstall-Arduino-IDE von D12turb3d erneut durchgeführt.
-Dann die Arduino Version1.8.1.8 neu installiert.
-ESP32 Board installiert nach dieser Anleitung https://randomnerdtutorials.com/installing-the-esp32-board-in-arduino-ide-windows-instructions/ installiert.
-Und die 2 Bibliotheken im Screenshot installiert.
-settings wie im Anhang "settings" gesetzt

jetzt läuft alles perfekt :smiley: .

Super Arbeit von Scotty89. Danke an alle.

Schönen Tag.

Hallo zusammen, kann ich die Werte z.B. die Zellspannungen auch direkt im Serial Monitor anzeigen lassen (ohne MQTT hab ich leider nicht)?
Was müsste ich im Code ändern?

Mfg
mikelle

Könnte ich das zu Testzwecken eigentlich auch mit 16 18650ern ausprobieren? :slight_smile:

Könnte ich das zu Testzwecken eigentlich auch mit 16 18650ern ausprobieren? :)
Warum nicht, die Kapazität spielt ja keine Rolle.

Hallo Scotty @all,

danke für die super Umsetzung, um den JKBMS auslesen zu können.

Die Daten kann ich jetzt in einem MQTT Client (MQTT Explorer) mir ansehen, dass klappt super.

Dann wollte ich die in eine InfluxDB übertragen und habe dazu Telegraf genutzt nur bräuchte ich dafür die Daten in JSON-Format.

Kann man das einstellen?

Oder wie kann ich die Daten am einfachsten in eine InfluxDB übergeben?

Freue mich über deine Rückantwort.

Viele Grüße
Stephan aus Potsdam

Heute ist mein zweites CAN Modul angekommen, nachdem ich das erste gleich mal verschmissen hatte.
Schnell an den ESP32 angelötet, LAN Kabel braun-weiss/braun dran und fertig. Jetzt hab ich auch ne Pylontech-Batterie ... :wink:
Frage dazu: Über Bluetooth kommen ja auch die Cell-Voltages rein. Passiert das bei CAN nicht? Ist das nur in der Pylontech-Emulation so, oder interessiert das per CAN prinzipiell nicht?

Nächste Frage: Mein Ladestand ist sowas von komplett daneben, das begreif ich einfach nicht. Kann ich das irgendwo tunen? Die Batterie hat jetzt schon 20-30 Zyklen durch, da sollte das ja langsam passen? LiFePo4-Zellen haben im Schnitt 3.1V, nachdem das BMS bei 2.8V getrennt hat und das BMS meint der Akku wäre zu 48% geladen. Komplett falsch ...

ICH GLAUB ICH DREH NOCH DURCH!!

Jetzt habe ich das CANbus-Modul mit Pylontechemulation für den Victron-Multiplus in Betrieb genommen. Alles läuft gut, er lädt, und dann hört dieses Sch****ding bei 52.6V auf zu laden. Egal was ich im ESS einstelle er geht nicht drüber.

Und nach 6h rumprobieren und hin- und hertesten fällt es mir wie Schuppen von den Augen: Das Pylontech ist ja ein 15s System und kein 16s System wie meines. Daher werden meine 56.8V Ladeentspannung auch nie erreicht.

Jetzt meine Frage: Kann man das irgendwie ändern? Heisst "Pylontech" immer automatisch 52.6V? Kann man das für 16s anpassen?

Danke!

Das Problem hat Scotty89 schon am 10. Juli gemeldet. Ich verzichte inzwischen auf den CAN-BUS und gebe ein JSON-File als Webserver auf dem ESP32 aus. Auf dem Raspberry läuft dann eine “Batterie” die das JSON File über WLAN ausliest und damit das BMS bekannt macht und den Ladevorgang steuert. Dort manage ich dann auch die Ladeströme und Spannung in Abhängigkeit vom SoC.