Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JKBMS BLE - Not connecting #819

Closed
itgenmar opened this issue Sep 23, 2023 · 53 comments
Closed

JKBMS BLE - Not connecting #819

itgenmar opened this issue Sep 23, 2023 · 53 comments
Labels
question Further information is requested support Support request

Comments

@itgenmar
Copy link

itgenmar commented Sep 23, 2023

Describe the problem

**Jk BMS :
JK_bd4a24s4p

Serial number
Hardware v11.XW
SOFTWARE V11.25
POWER ON 13 TIMES
TOTL TIMES 1D14H30M0S
FIST ON DATE : 2023-04024
VERSION V4.15.7**

Getting the following error in the logs, no connection to venus os.

@40000000650f32362410d384
@40000000650f32362410db54 connect and scrape on address: 20:22:08:25:17:41
@40000000650f32362410eaf4 btloop
@40000000650f32362410eedc reconnect
@40000000650f32362410f6ac Exiting bt-loop
@40000000650f323634403e5c Missing device address argument
@40000000650f323737c83084 INFO:SerialBattery:Starting dbus-serialbattery
@40000000650f323737d7b914 INFO:SerialBattery:dbus-serialbattery v1.0.20230531
@40000000650f3238126df2ec INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
@40000000650f323812745f74 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
@40000000650f324723e42dd4 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
@40000000650f324723e7a874
@40000000650f324723e7b42c connect and scrape on address: 20:22:08:25:17:41
@40000000650f324723e7bfe4 btloop
@40000000650f324723e7c7b4 reconnect
@40000000650f324723e7cb9c Exiting bt-loop
@40000000650f324733b0a88c Missing device address argument
@40000000650f324837f02ecc INFO:SerialBattery:Starting dbus-serialbattery
@40000000650f324837fed0e4 INFO:SerialBattery:dbus-serialbattery v1.0.20230531
@40000000650f3249137efd5c INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
@40000000650f324913853b04 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
@40000000650f325823de6d2c ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble

Driver version

v1.0.20230531

Venus OS device type

Raspberry Pi

Venus OS version

latest

BMS type

JKBMS / Heltec BMS

Cell count

7

Connection type

Bluetooth

Config file

[DEFAULT]

; If you want to add custom values/settings, then check the values/settings you want to change in "config.default.ini"
; and insert them below to persist future driver updates.

; Example (remove the semicolon ";" to uncomment and activate the value/setting):
; MAX_BATTERY_CHARGE_CURRENT = 50.0
; MAX_BATTERY_DISCHARGE_CURRENT = 60.0

BLUETOOTH_BMS = Jkbms_Ble 20:22:08:25:17:41

BMS_TYPE = Jkbms

Relevant log output

@40000000650f32362410d384
@40000000650f32362410db54 connect and scrape on address: 20:22:08:25:17:41
@40000000650f32362410eaf4 btloop
@40000000650f32362410eedc reconnect
@40000000650f32362410f6ac Exiting bt-loop
@40000000650f323634403e5c Missing device address argument
@40000000650f323737c83084 INFO:SerialBattery:Starting dbus-serialbattery
@40000000650f323737d7b914 INFO:SerialBattery:dbus-serialbattery v1.0.20230531
@40000000650f3238126df2ec INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
@40000000650f323812745f74 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
@40000000650f324723e42dd4 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
@40000000650f324723e7a874

Any other information that may be helpful

No response

@itgenmar itgenmar added the support Support request label Sep 23, 2023
@mr-manuel
Copy link
Collaborator

Try to remove BMS_TYPE = Jkbms from the config.ini. How far is your BMS from the Venus OS device?

Please provide the logfiles as requested. Please do not use latest as version and specify the exact version number.

@mr-manuel mr-manuel changed the title JkBms Bluetooth not connecting JKBMS BLE - Not connecting Sep 25, 2023
@itgenmar
Copy link
Author

itgenmar commented Sep 25, 2023

I have tried with and without the BMS_TYPE = Jkbms, I think they are @20CM apart. That is the log is just repeating itself. I have used the nightly one too, and is exactly the same error in the logs. I know that this bms use the protocol or framework jk02_32s (I hope I did remembered correctly). Using a esp32 and the code for esphome I can connect to the bms and receive the info.

Venus os v3.10

Esp32 code is here : https://github.com/syssi/esphome-jk-bms/blob/main/esp32-ble-v11-example.yaml

@mr-manuel
Copy link
Collaborator

@itgenmar
Copy link
Author

Exactly the same:
@40000000651288651134cedc INFO:SerialBattery:
@4000000065128865113b5aa4 INFO:SerialBattery:Starting dbus-serialbattery
@400000006512886511497fbc INFO:SerialBattery:dbus-serialbattery v1.0.0 (20230508)
@400000006512886527c6ea2c INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
@400000006512886527cdcfcc INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
@4000000065128866009ff72c ERROR:SerialBattery:No Bluetooth adapters found.
@400000006512886600a69294 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
@40000000651288660ec6cc7c Missing device address argument
@40000000651288671182911c INFO:SerialBattery:
@4000000065128867118c9b6c INFO:SerialBattery:Starting dbus-serialbattery
@4000000065128867119c3f54 INFO:SerialBattery:dbus-serialbattery v1.0.0 (20230508)
@400000006512886727ca3204 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
@400000006512886727d551ac INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
@4000000065128868002b5b9c ERROR:SerialBattery:No Bluetooth adapters found.
@400000006512886800351bb4 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
@40000000651288680e45500c Missing device address argument

I have attached the device info from ESPhome:

[07:44:59][D][button:010]: 'jk-bms retrieve device info' Pressed.
[07:44:59][D][jk_bms_ble:1247]: Write register: AA.55.90.EB.97.00.00.00.00.00.00.00.00.00.00.00.00.00.00.11 (20)
[07:44:59][I][jk_bms_ble:1158]: Device info frame (300 bytes) received
[07:44:59][I][jk_bms_ble:1210]: Vendor ID: JK_BD4A24S4P
[07:44:59][I][jk_bms_ble:1211]: Hardware version: 11.XW
[07:44:59][I][jk_bms_ble:1212]: Software version: 11.25
[07:44:59][I][jk_bms_ble:1213]: Uptime: 438900 s
[07:44:59][I][jk_bms_ble:1214]: Power on count: 13
[07:44:59][I][jk_bms_ble:1215]: Device name: JK_BD4A24S04
[07:44:59][I][jk_bms_ble:1216]: Device passcode: 1234
[07:44:59][I][jk_bms_ble:1217]: Manufacturing date: 230424
[07:44:59][I][jk_bms_ble:1218]: Serial number: 2082321445
[07:44:59][I][jk_bms_ble:1219]: Passcode: 0000
[07:44:59][I][jk_bms_ble:1220]: User data: Input Userdata
[07:44:59][I][jk_bms_ble:1221]: Setup passcode: 123456
[07:44:59][W][component:204]: Component esp32_ble took a long time for an operation (0.07 s).
[07:44:59][W][component:205]: Components should block for at most 20-30ms.
[07:45:03][I][jk_bms_ble:467]: Cell info frame (version 3, 300 bytes) received

Devices settings:

[07:47:35][D][button:010]: 'jk-bms retrieve settings' Pressed.
[07:47:35][D][jk_bms_ble:1247]: Write register: AA.55.90.EB.96.00.00.00.00.00.00.00.00.00.00.00.00.00.00.10 (20)
[07:47:36][I][jk_bms_ble:891]: Settings frame (300 bytes) received
[07:47:36][D][jk_bms_ble:917]: Unknown6: 0.600000
[07:47:36][I][jk_bms_ble:919]: Cell UVP: 2.820000 V
[07:47:36][D][number:012]: 'jk-bms cell voltage undervoltage protection': Sending state 2.820000
[07:47:36][I][jk_bms_ble:923]: Cell UVPR: 2.850000 V
[07:47:36][D][number:012]: 'jk-bms cell voltage undervoltage recovery': Sending state 2.850000
[07:47:36][I][jk_bms_ble:927]: Cell OVP: 4.200000 V
[07:47:36][D][number:012]: 'jk-bms cell voltage overvoltage protection': Sending state 4.200000
[07:47:36][I][jk_bms_ble:931]: Cell OVPR: 4.180000 V
[07:47:36][D][number:012]: 'jk-bms cell voltage overvoltage recovery': Sending state 4.180000
[07:47:36][I][jk_bms_ble:935]: Balance trigger voltage: 0.005000 V
[07:47:36][D][number:012]: 'jk-bms balance trigger voltage': Sending state 0.005000
[07:47:36][I][jk_bms_ble:943]: Power off voltage: 2.800000 V
[07:47:36][D][number:012]: 'jk-bms power off voltage': Sending state 2.800000
[07:47:36][I][jk_bms_ble:947]: Max. charge current: 25.000002 A
[07:47:36][D][number:012]: 'jk-bms max charge current': Sending state 25.000002
[07:47:36][I][jk_bms_ble:951]: Charge OCP delay: 30.000000 s
[07:47:36][I][jk_bms_ble:953]: Charge OCP recovery delay: 60.000000 s
[07:47:36][I][jk_bms_ble:955]: Max. discharge current: 40.000000 A
[07:47:36][D][number:012]: 'jk-bms max discharge current': Sending state 40.000000
[07:47:36][I][jk_bms_ble:959]: Discharge OCP recovery delay: 300.000000 s
[07:47:36][I][jk_bms_ble:961]: Discharge OCP recovery delay: 60.000000 s
[07:47:36][I][jk_bms_ble:963]: SCP recovery time: 60.000000 s
[07:47:36][I][jk_bms_ble:965]: Max. balance current: 0.400000 A
[07:47:36][D][number:012]: 'jk-bms max balance current': Sending state 0.400000
[07:47:36][I][jk_bms_ble:969]: Charge OTP: 70.000000 °C
[07:47:36][I][jk_bms_ble:971]: Charge OTP recovery: 60.000000 °C
[07:47:36][I][jk_bms_ble:973]: Discharge OTP: 70.000000 °C
[07:47:36][I][jk_bms_ble:975]: Discharge OTP recovery: 60.000000 °C
[07:47:36][I][jk_bms_ble:977]: Charge UTP: -20.000000 °C
[07:47:36][I][jk_bms_ble:979]: Charge UTP recovery: -10.000000 °C
[07:47:36][I][jk_bms_ble:981]: MOS OTP: 100.000000 °C
[07:47:36][I][jk_bms_ble:983]: MOS OTP recovery: 80.000000 °C
[07:47:36][I][jk_bms_ble:985]: Cell count: 7.000000
[07:47:36][D][number:012]: 'jk-bms cell count': Sending state 7.000000
[07:47:36][I][jk_bms_ble:989]: Charge switch: on
[07:47:36][I][jk_bms_ble:993]: Discharge switch: on
[07:47:36][I][jk_bms_ble:997]: Balancer switch: on
[07:47:36][I][jk_bms_ble:1001]: Nominal battery capacity: 165.000015 Ah
[07:47:36][D][number:012]: 'jk-bms total battery capacity': Sending state 165.000015
[07:47:36][D][jk_bms_ble:1005]: Unknown134: 1.500000
[07:47:36][I][jk_bms_ble:1007]: Start balance voltage: 3.800000 V
[07:47:36][D][number:012]: 'jk-bms balance starting voltage': Sending state 3.800000
[07:47:36][I][jk_bms_ble:1039]: Con. wire resistance 1: 0.000000 Ohm
[07:47:36][I][jk_bms_ble:1039]: Con. wire resistance 2: 0.000000 Ohm
[07:47:36][I][jk_bms_ble:1039]: Con. wire resistance 3: 0.000000 Ohm
[07:47:36][I][jk_bms_ble:1039]: Con. wire resistance 4: 0.000000 Ohm
[07:47:36][I][jk_bms_ble:1039]: Con. wire resistance 5: 0.000000 Ohm
[07:47:36][I][jk_bms_ble:1039]: Con. wire resistance 6: 0.000000 Ohm
[07:47:36][I][jk_bms_ble:1039]: Con. wire resistance 7: 0.000000 Ohm
[07:47:36][I][jk_bms_ble:1039]: Con. wire resistance 8: 0.000000 Ohm
[07:47:36][I][jk_bms_ble:1039]: Con. wire resistance 9: 0.000000 Ohm
[07:47:36][I][jk_bms_ble:1039]: Con. wire resistance 10: 0.000000 Ohm
[07:47:36][I][jk_bms_ble:1039]: Con. wire resistance 11: 0.000000 Ohm
[07:47:36][I][jk_bms_ble:1039]: Con. wire resistance 12: 0.000000 Ohm
[07:47:36][I][jk_bms_ble:1039]: Con. wire resistance 13: 0.000000 Ohm
[07:47:36][I][jk_bms_ble:1039]: Con. wire resistance 14: 0.000000 Ohm
[07:47:36][I][jk_bms_ble:1039]: Con. wire resistance 15: 0.000000 Ohm
[07:47:36][I][jk_bms_ble:1039]: Con. wire resistance 16: 0.000000 Ohm
[07:47:36][I][jk_bms_ble:1039]: Con. wire resistance 17: 0.000000 Ohm
[07:47:36][I][jk_bms_ble:1039]: Con. wire resistance 18: 0.000000 Ohm
[07:47:36][I][jk_bms_ble:1039]: Con. wire resistance 19: 0.000000 Ohm
[07:47:36][I][jk_bms_ble:1039]: Con. wire resistance 20: 0.000000 Ohm
[07:47:36][I][jk_bms_ble:1039]: Con. wire resistance 21: 0.000000 Ohm
[07:47:36][I][jk_bms_ble:1039]: Con. wire resistance 22: 0.000000 Ohm
[07:47:36][I][jk_bms_ble:1039]: Con. wire resistance 23: 0.000000 Ohm
[07:47:36][I][jk_bms_ble:1039]: Con. wire resistance 24: 0.000000 Ohm
[07:47:36][W][component:204]: Component esp32_ble took a long time for an operation (0.46 s).
[07:47:36][W][component:205]: Components should block for at most 20-30ms.

I have attached the logs from EspHome:

INFO ESPHome 2023.8.3
INFO Reading configuration /config/shunt.yaml...
INFO Updating https://github.com/syssi/esphome-jk-bms.git@main
INFO Starting log output from shunt.local using esphome API
INFO Successfully connected to shunt.local
[07:42:18][I][app:102]: ESPHome version 2023.8.3 compiled on Sep 24 2023, 17:19:24
[07:42:18][C][wifi:543]: WiFi:
[07:42:18][C][wifi:379]: Local MAC: 7C:9E:BD:F2:0C:40
[07:42:18][C][wifi:380]: SSID: 'VODAFONE-7340'[redacted]
[07:42:18][C][wifi:381]: IP Address: 192.168.1.66
[07:42:18][C][wifi:383]: BSSID: E8:1B:69:7B:73:41[redacted]
[07:42:18][C][wifi:384]: Hostname: 'shunt'
[07:42:18][C][wifi:386]: Signal strength: -80 dB ▂▄▆█
[07:42:18][C][wifi:390]: Channel: 1
[07:42:18][C][wifi:391]: Subnet: 255.255.255.0
[07:42:18][C][wifi:392]: Gateway: 192.168.1.1
[07:42:18][C][wifi:393]: DNS1: 192.168.1.1
[07:42:18][C][wifi:394]: DNS2: 0.0.0.0
[07:42:18][C][logger:301]: Logger:
[07:42:18][C][logger:302]: Level: DEBUG
[07:42:18][C][logger:303]: Log Baud Rate: 115200
[07:42:18][C][logger:305]: Hardware UART: UART0
[07:42:18][C][jk_bms_ble:055]: JkBmsBle
[07:42:18][C][jk_bms_ble:056]: Fake traffic enabled: NO
[07:42:18][C][jk_bms_ble:057]: Minimum Cell Voltage 'jk-bms min cell voltage'
[07:42:18][C][jk_bms_ble:057]: Device Class: 'voltage'
[07:42:18][C][jk_bms_ble:057]: State Class: 'measurement'
[07:42:18][C][jk_bms_ble:057]: Unit of Measurement: 'V'
[07:42:18][C][jk_bms_ble:057]: Accuracy Decimals: 3
[07:42:18][C][jk_bms_ble:058]: Maximum Cell Voltage 'jk-bms max cell voltage'
[07:42:18][C][jk_bms_ble:058]: Device Class: 'voltage'
[07:42:18][C][jk_bms_ble:058]: State Class: 'measurement'
[07:42:18][C][jk_bms_ble:058]: Unit of Measurement: 'V'
[07:42:18][C][jk_bms_ble:058]: Accuracy Decimals: 3
[07:42:18][C][jk_bms_ble:059]: Minimum Voltage Cell 'jk-bms min voltage cell'
[07:42:18][C][jk_bms_ble:059]: State Class: 'measurement'
[07:42:18][C][jk_bms_ble:059]: Unit of Measurement: ''
[07:42:18][C][jk_bms_ble:059]: Accuracy Decimals: 0
[07:42:18][C][jk_bms_ble:059]: Icon: 'mdi:battery-minus-outline'
[07:42:18][C][jk_bms_ble:060]: Maximum Voltage Cell 'jk-bms max voltage cell'
[07:42:18][C][jk_bms_ble:060]: State Class: 'measurement'
[07:42:18][C][jk_bms_ble:060]: Unit of Measurement: ''
[07:42:18][C][jk_bms_ble:060]: Accuracy Decimals: 0
[07:42:18][C][jk_bms_ble:060]: Icon: 'mdi:battery-plus-outline'
[07:42:18][C][jk_bms_ble:061]: Delta Cell Voltage 'jk-bms delta cell voltage'
[07:42:18][C][jk_bms_ble:061]: Device Class: 'voltage'
[07:42:18][C][jk_bms_ble:061]: State Class: 'measurement'
[07:42:18][C][jk_bms_ble:061]: Unit of Measurement: 'V'
[07:42:18][C][jk_bms_ble:061]: Accuracy Decimals: 3
[07:42:18][C][jk_bms_ble:062]: Average Cell Voltage 'jk-bms average cell voltage'
[07:42:18][C][jk_bms_ble:062]: Device Class: 'voltage'
[07:42:18][C][jk_bms_ble:062]: State Class: 'measurement'
[07:42:18][C][jk_bms_ble:062]: Unit of Measurement: 'V'
[07:42:18][C][jk_bms_ble:062]: Accuracy Decimals: 3
[07:42:18][C][jk_bms_ble:063]: Cell Voltage 1 'jk-bms cell voltage 1'
[07:42:18][C][jk_bms_ble:063]: Device Class: 'voltage'
[07:42:18][C][jk_bms_ble:063]: State Class: 'measurement'
[07:42:18][C][jk_bms_ble:063]: Unit of Measurement: 'V'
[07:42:18][C][jk_bms_ble:063]: Accuracy Decimals: 3
[07:42:18][C][jk_bms_ble:064]: Cell Voltage 2 'jk-bms cell voltage 2'
[07:42:19][C][jk_bms_ble:064]: Device Class: 'voltage'
[07:42:19][C][jk_bms_ble:064]: State Class: 'measurement'
[07:42:19][C][jk_bms_ble:064]: Unit of Measurement: 'V'
[07:42:19][C][jk_bms_ble:064]: Accuracy Decimals: 3
[07:42:19][C][jk_bms_ble:065]: Cell Voltage 3 'jk-bms cell voltage 3'
[07:42:19][C][jk_bms_ble:065]: Device Class: 'voltage'
[07:42:19][C][jk_bms_ble:065]: State Class: 'measurement'
[07:42:19][C][jk_bms_ble:065]: Unit of Measurement: 'V'
[07:42:19][C][jk_bms_ble:065]: Accuracy Decimals: 3
[07:42:19][C][jk_bms_ble:066]: Cell Voltage 4 'jk-bms cell voltage 4'
[07:42:19][C][jk_bms_ble:066]: Device Class: 'voltage'
[07:42:19][C][jk_bms_ble:066]: State Class: 'measurement'
[07:42:19][C][jk_bms_ble:066]: Unit of Measurement: 'V'
[07:42:19][C][jk_bms_ble:066]: Accuracy Decimals: 3
[07:42:19][C][jk_bms_ble:067]: Cell Voltage 5 'jk-bms cell voltage 5'
[07:42:19][C][jk_bms_ble:067]: Device Class: 'voltage'
[07:42:19][C][jk_bms_ble:067]: State Class: 'measurement'
[07:42:19][C][jk_bms_ble:067]: Unit of Measurement: 'V'
[07:42:19][C][jk_bms_ble:067]: Accuracy Decimals: 3
[07:42:19][C][jk_bms_ble:068]: Cell Voltage 6 'jk-bms cell voltage 6'
[07:42:19][C][jk_bms_ble:068]: Device Class: 'voltage'
[07:42:19][C][jk_bms_ble:068]: State Class: 'measurement'
[07:42:19][C][jk_bms_ble:068]: Unit of Measurement: 'V'
[07:42:19][C][jk_bms_ble:068]: Accuracy Decimals: 3
[07:42:19][C][jk_bms_ble:069]: Cell Voltage 7 'jk-bms cell voltage 7'
[07:42:19][C][jk_bms_ble:069]: Device Class: 'voltage'
[07:42:19][C][jk_bms_ble:069]: State Class: 'measurement'
[07:42:19][C][jk_bms_ble:069]: Unit of Measurement: 'V'
[07:42:19][C][jk_bms_ble:069]: Accuracy Decimals: 3
[07:42:19][C][jk_bms_ble:087]: Cell Resistance 1 'jk-bms cell resistance 1'
[07:42:19][C][jk_bms_ble:087]: State Class: 'measurement'
[07:42:19][C][jk_bms_ble:087]: Unit of Measurement: 'Ω'
[07:42:19][C][jk_bms_ble:087]: Accuracy Decimals: 3
[07:42:19][C][jk_bms_ble:087]: Icon: 'mdi:omega'
[07:42:19][C][jk_bms_ble:088]: Cell Resistance 2 'jk-bms cell resistance 2'
[07:42:19][C][jk_bms_ble:088]: State Class: 'measurement'
[07:42:19][C][jk_bms_ble:088]: Unit of Measurement: 'Ω'
[07:42:19][C][jk_bms_ble:088]: Accuracy Decimals: 3
[07:42:19][C][jk_bms_ble:088]: Icon: 'mdi:omega'
[07:42:19][C][jk_bms_ble:089]: Cell Resistance 3 'jk-bms cell resistance 3'
[07:42:19][C][jk_bms_ble:089]: State Class: 'measurement'
[07:42:19][C][jk_bms_ble:089]: Unit of Measurement: 'Ω'
[07:42:19][C][jk_bms_ble:089]: Accuracy Decimals: 3
[07:42:19][C][jk_bms_ble:089]: Icon: 'mdi:omega'
[07:42:19][C][jk_bms_ble:090]: Cell Resistance 4 'jk-bms cell resistance 4'
[07:42:19][C][jk_bms_ble:090]: State Class: 'measurement'
[07:42:19][C][jk_bms_ble:090]: Unit of Measurement: 'Ω'
[07:42:19][C][jk_bms_ble:090]: Accuracy Decimals: 3
[07:42:19][C][jk_bms_ble:090]: Icon: 'mdi:omega'
[07:42:19][C][jk_bms_ble:091]: Cell Resistance 5 'jk-bms cell resistance 5'
[07:42:19][C][jk_bms_ble:091]: State Class: 'measurement'
[07:42:19][C][jk_bms_ble:091]: Unit of Measurement: 'Ω'
[07:42:19][C][jk_bms_ble:091]: Accuracy Decimals: 3
[07:42:19][C][jk_bms_ble:091]: Icon: 'mdi:omega'
[07:42:19][C][jk_bms_ble:092]: Cell Resistance 6 'jk-bms cell resistance 6'
[07:42:19][C][jk_bms_ble:092]: State Class: 'measurement'
[07:42:19][C][jk_bms_ble:092]: Unit of Measurement: 'Ω'
[07:42:19][C][jk_bms_ble:092]: Accuracy Decimals: 3
[07:42:19][C][jk_bms_ble:092]: Icon: 'mdi:omega'
[07:42:19][C][jk_bms_ble:093]: Cell Resistance 7 'jk-bms cell resistance 7'
[07:42:19][C][jk_bms_ble:093]: State Class: 'measurement'
[07:42:19][C][jk_bms_ble:093]: Unit of Measurement: 'Ω'
[07:42:19][C][jk_bms_ble:093]: Accuracy Decimals: 3
[07:42:19][C][jk_bms_ble:093]: Icon: 'mdi:omega'
[07:42:19][C][jk_bms_ble:111]: Total Voltage 'jk-bms total voltage'
[07:42:19][C][jk_bms_ble:111]: Device Class: 'voltage'
[07:42:19][C][jk_bms_ble:111]: State Class: 'measurement'
[07:42:19][C][jk_bms_ble:111]: Unit of Measurement: 'V'
[07:42:19][C][jk_bms_ble:111]: Accuracy Decimals: 2
[07:42:19][C][jk_bms_ble:112]: Current 'jk-bms current'
[07:42:19][C][jk_bms_ble:112]: Device Class: 'current'
[07:42:19][C][jk_bms_ble:112]: State Class: 'measurement'
[07:42:19][C][jk_bms_ble:112]: Unit of Measurement: 'A'
[07:42:19][C][jk_bms_ble:112]: Accuracy Decimals: 2
[07:42:19][C][jk_bms_ble:112]: Icon: 'mdi:current-dc'
[07:42:19][C][jk_bms_ble:113]: Power 'jk-bms power'
[07:42:19][C][jk_bms_ble:113]: Device Class: 'power'
[07:42:19][C][jk_bms_ble:113]: State Class: 'measurement'
[07:42:19][C][jk_bms_ble:113]: Unit of Measurement: 'W'
[07:42:19][C][jk_bms_ble:113]: Accuracy Decimals: 2
[07:42:19][C][jk_bms_ble:114]: Charging Power 'jk-bms charging power'
[07:42:19][C][jk_bms_ble:114]: Device Class: 'power'
[07:42:19][C][jk_bms_ble:114]: State Class: 'measurement'
[07:42:19][C][jk_bms_ble:114]: Unit of Measurement: 'W'
[07:42:19][C][jk_bms_ble:114]: Accuracy Decimals: 2
[07:42:19][C][jk_bms_ble:115]: Discharging Power 'jk-bms discharging power'
[07:42:19][C][jk_bms_ble:115]: Device Class: 'power'
[07:42:19][C][jk_bms_ble:115]: State Class: 'measurement'
[07:42:19][C][jk_bms_ble:115]: Unit of Measurement: 'W'
[07:42:19][C][jk_bms_ble:115]: Accuracy Decimals: 2
[07:42:19][C][jk_bms_ble:116]: Power Tube Temperature 'jk-bms power tube temperature'
[07:42:19][C][jk_bms_ble:116]: Device Class: 'temperature'
[07:42:19][C][jk_bms_ble:116]: State Class: 'measurement'
[07:42:19][C][jk_bms_ble:116]: Unit of Measurement: '°C'
[07:42:19][C][jk_bms_ble:116]: Accuracy Decimals: 1
[07:42:19][C][jk_bms_ble:117]: Temperature Sensor 1 'jk-bms temperature sensor 1'
[07:42:19][C][jk_bms_ble:117]: Device Class: 'temperature'
[07:42:19][C][jk_bms_ble:117]: State Class: 'measurement'
[07:42:19][C][jk_bms_ble:117]: Unit of Measurement: '°C'
[07:42:19][C][jk_bms_ble:117]: Accuracy Decimals: 1
[07:42:19][C][jk_bms_ble:118]: Temperature Sensor 2 'jk-bms temperature sensor 2'
[07:42:19][C][jk_bms_ble:118]: Device Class: 'temperature'
[07:42:19][C][jk_bms_ble:118]: State Class: 'measurement'
[07:42:19][C][jk_bms_ble:118]: Unit of Measurement: '°C'
[07:42:19][C][jk_bms_ble:118]: Accuracy Decimals: 1
[07:42:19][C][jk_bms_ble:119]: State Of Charge 'jk-bms state of charge'
[07:42:19][C][jk_bms_ble:119]: Device Class: 'battery'
[07:42:19][C][jk_bms_ble:119]: State Class: 'measurement'
[07:42:19][C][jk_bms_ble:119]: Unit of Measurement: '%'
[07:42:19][C][jk_bms_ble:119]: Accuracy Decimals: 0
[07:42:19][C][jk_bms_ble:120]: Capacity Remaining 'jk-bms capacity remaining'
[07:42:19][C][jk_bms_ble:120]: State Class: 'measurement'
[07:42:19][C][jk_bms_ble:120]: Unit of Measurement: 'Ah'
[07:42:19][C][jk_bms_ble:120]: Accuracy Decimals: 0
[07:42:19][C][jk_bms_ble:120]: Icon: 'mdi:battery-50'
[07:42:19][C][jk_bms_ble:121]: Total Battery Capacity Setting 'jk-bms total battery capacity setting'
[07:42:19][C][jk_bms_ble:121]: State Class: 'measurement'
[07:42:19][C][jk_bms_ble:121]: Unit of Measurement: 'Ah'
[07:42:19][C][jk_bms_ble:121]: Accuracy Decimals: 0
[07:42:19][C][jk_bms_ble:122]: Charging Cycles 'jk-bms charging cycles'
[07:42:19][C][jk_bms_ble:122]: State Class: 'measurement'
[07:42:19][C][jk_bms_ble:122]: Unit of Measurement: ''
[07:42:19][C][jk_bms_ble:122]: Accuracy Decimals: 0
[07:42:19][C][jk_bms_ble:122]: Icon: 'mdi:battery-sync'
[07:42:19][C][jk_bms_ble:123]: Total Charging Cycle Capacity 'jk-bms total charging cycle capacity'
[07:42:19][C][jk_bms_ble:123]: State Class: 'measurement'
[07:42:19][C][jk_bms_ble:123]: Unit of Measurement: 'Ah'
[07:42:19][C][jk_bms_ble:123]: Accuracy Decimals: 3
[07:42:19][C][jk_bms_ble:123]: Icon: 'mdi:counter'
[07:42:19][C][jk_bms_ble:124]: Total Runtime 'jk-bms total runtime'
[07:42:19][C][jk_bms_ble:124]: State Class: 'total_increasing'
[07:42:19][C][jk_bms_ble:124]: Unit of Measurement: 's'
[07:42:19][C][jk_bms_ble:124]: Accuracy Decimals: 0
[07:42:19][C][jk_bms_ble:124]: Icon: 'mdi:timelapse'
[07:42:19][C][jk_bms_ble:126]: Total Runtime Formatted 'jk-bms total runtime formatted'
[07:42:19][C][jk_bms_ble:126]: Icon: 'mdi:timelapse'
[07:42:19][C][jk_bms_ble:127]: Balancing 'jk-bms balancing'
[07:42:19][C][jk_bms_ble:128]: Charging 'jk-bms charging'
[07:42:19][C][jk_bms_ble:129]: Discharging 'jk-bms discharging'
[07:42:19][C][jk_bms_ble.button:010]: JkBmsBle Button 'jk-bms retrieve settings'
[07:42:19][C][jk_bms_ble.button:010]: Icon: 'mdi:cog'
[07:42:19][C][jk_bms_ble.button:010]: JkBmsBle Button 'jk-bms retrieve device info'
[07:42:19][C][jk_bms_ble.button:010]: Icon: 'mdi:information-variant'
[07:42:19][C][jk_bms_ble.number:009]: JkBmsBle Number 'jk-bms balance trigger voltage'
[07:42:19][C][jk_bms_ble.number:009]: Unit of Measurement: 'V'
[07:42:19][C][jk_bms_ble.number:009]: JkBmsBle Number 'jk-bms cell count'
[07:42:19][C][jk_bms_ble.number:009]: JkBmsBle Number 'jk-bms total battery capacity'
[07:42:19][C][jk_bms_ble.number:009]: Unit of Measurement: 'Ah'
[07:42:19][C][jk_bms_ble.number:009]: JkBmsBle Number 'jk-bms cell voltage overvoltage protection'
[07:42:19][C][jk_bms_ble.number:009]: Unit of Measurement: 'V'
[07:42:20][C][jk_bms_ble.number:009]: JkBmsBle Number 'jk-bms cell voltage overvoltage recovery'
[07:42:20][C][jk_bms_ble.number:009]: Unit of Measurement: 'V'
[07:42:20][C][jk_bms_ble.number:009]: JkBmsBle Number 'jk-bms cell voltage undervoltage protection'
[07:42:20][C][jk_bms_ble.number:009]: Unit of Measurement: 'V'
[07:42:20][C][jk_bms_ble.number:009]: JkBmsBle Number 'jk-bms cell voltage undervoltage recovery'
[07:42:20][C][jk_bms_ble.number:009]: Unit of Measurement: 'V'
[07:42:20][C][jk_bms_ble.number:009]: JkBmsBle Number 'jk-bms balance starting voltage'
[07:42:20][C][jk_bms_ble.number:009]: Unit of Measurement: 'V'
[07:42:20][C][jk_bms_ble.number:009]: JkBmsBle Number 'jk-bms voltage calibration'
[07:42:20][C][jk_bms_ble.number:009]: Unit of Measurement: 'V'
[07:42:20][C][jk_bms_ble.number:009]: JkBmsBle Number 'jk-bms current calibration'
[07:42:20][C][jk_bms_ble.number:009]: Unit of Measurement: 'A'
[07:42:20][C][jk_bms_ble.number:009]: JkBmsBle Number 'jk-bms power off voltage'
[07:42:20][C][jk_bms_ble.number:009]: Unit of Measurement: 'V'
[07:42:20][C][jk_bms_ble.number:009]: JkBmsBle Number 'jk-bms max balance current'
[07:42:20][C][jk_bms_ble.number:009]: Unit of Measurement: 'A'
[07:42:20][C][jk_bms_ble.number:009]: JkBmsBle Number 'jk-bms max charge current'
[07:42:20][C][jk_bms_ble.number:009]: Unit of Measurement: 'A'
[07:42:20][C][jk_bms_ble.number:009]: JkBmsBle Number 'jk-bms max discharge current'
[07:42:20][C][jk_bms_ble.number:009]: Unit of Measurement: 'A'
[07:42:20][C][jk_bms_ble.switch:068]: JkBmsBle Switch 'jk-bms charging'
[07:42:20][C][jk_bms_ble.switch:070]: Icon: 'mdi:battery-charging-50'
[07:42:20][C][jk_bms_ble.switch:091]: Restore Mode: always OFF
[07:42:20][C][jk_bms_ble.switch:068]: JkBmsBle Switch 'jk-bms discharging'
[07:42:20][C][jk_bms_ble.switch:070]: Icon: 'mdi:battery-charging-50'
[07:42:20][C][jk_bms_ble.switch:091]: Restore Mode: always OFF
[07:42:20][I][jk_bms_ble:467]: Cell info frame (version 3, 300 bytes) received
[07:42:20][D][sensor:094]: 'jk-bms cell voltage 1': Sending state 3.79400 V with 3 decimals of accuracy
[07:42:20][D][sensor:094]: 'jk-bms cell resistance 1': Sending state 0.30900 Ω with 3 decimals of accuracy
[07:42:20][D][sensor:094]: 'jk-bms cell voltage 2': Sending state 3.78900 V with 3 decimals of accuracy
[07:42:20][D][sensor:094]: 'jk-bms cell resistance 2': Sending state 0.30800 Ω with 3 decimals of accuracy
[07:42:20][D][sensor:094]: 'jk-bms cell voltage 3': Sending state 3.78700 V with 3 decimals of accuracy
[07:42:20][D][sensor:094]: 'jk-bms cell resistance 3': Sending state 0.30900 Ω with 3 decimals of accuracy
[07:42:20][D][sensor:094]: 'jk-bms cell voltage 4': Sending state 3.78900 V with 3 decimals of accuracy
[07:42:20][D][sensor:094]: 'jk-bms cell resistance 4': Sending state 0.30600 Ω with 3 decimals of accuracy
[07:42:20][D][sensor:094]: 'jk-bms cell voltage 5': Sending state 3.78500 V with 3 decimals of accuracy
[07:42:20][D][sensor:094]: 'jk-bms cell resistance 5': Sending state 0.30700 Ω with 3 decimals of accuracy
[07:42:20][D][sensor:094]: 'jk-bms cell voltage 6': Sending state 3.78400 V with 3 decimals of accuracy
[07:42:20][D][sensor:094]: 'jk-bms cell resistance 6': Sending state 0.30500 Ω with 3 decimals of accuracy
[07:42:20][D][sensor:094]: 'jk-bms cell voltage 7': Sending state 3.78900 V with 3 decimals of accuracy
[07:42:20][D][sensor:094]: 'jk-bms cell resistance 7': Sending state 0.30700 Ω with 3 decimals of accuracy
[07:42:20][D][sensor:094]: 'jk-bms min cell voltage': Sending state 3.78400 V with 3 decimals of accuracy
[07:42:20][D][sensor:094]: 'jk-bms max cell voltage': Sending state 3.79400 V with 3 decimals of accuracy
[07:42:20][D][sensor:094]: 'jk-bms average cell voltage': Sending state 3.78800 V with 3 decimals of accuracy
[07:42:20][D][sensor:094]: 'jk-bms delta cell voltage': Sending state 0.00600 V with 3 decimals of accuracy
[07:42:20][D][sensor:094]: 'jk-bms max voltage cell': Sending state 7.00000 with 0 decimals of accuracy
[07:42:20][D][sensor:094]: 'jk-bms min voltage cell': Sending state 2.00000 with 0 decimals of accuracy
[07:42:20][D][sensor:094]: 'jk-bms power tube temperature': Sending state 21.60000 °C with 1 decimals of accuracy
[07:42:20][D][jk_bms_ble:562]: Wire resistance warning bitmask: 0x00 0x00 0x00 0x00
[07:42:20][D][sensor:094]: 'jk-bms total voltage': Sending state 26.51500 V with 2 decimals of accuracy
[07:42:20][D][sensor:094]: 'jk-bms current': Sending state -1.40500 A with 2 decimals of accuracy
[07:42:20][D][sensor:094]: 'jk-bms power': Sending state -37.25358 W with 2 decimals of accuracy
[07:42:20][D][sensor:094]: 'jk-bms charging power': Sending state 0.00000 W with 2 decimals of accuracy
[07:42:20][D][sensor:094]: 'jk-bms discharging power': Sending state 37.25358 W with 2 decimals of accuracy
[07:42:20][D][sensor:094]: 'jk-bms temperature sensor 1': Sending state 16.00000 °C with 1 decimals of accuracy
[07:42:20][D][sensor:094]: 'jk-bms temperature sensor 2': Sending state 15.80000 °C with 1 decimals of accuracy
[07:42:20][D][sensor:094]: 'jk-bms errors bitmask': Sending state 0.00000 with 0 decimals of accuracy
[07:42:20][D][text_sensor:064]: 'jk-bms errors': Sending state ''
[07:42:20][D][sensor:094]: 'jk-bms balancing current': Sending state 0.00000 A with 2 decimals of accuracy
[07:42:20][D][sensor:094]: 'jk-bms state of charge': Sending state 79.00000 % with 0 decimals of accuracy
[07:42:20][D][sensor:094]: 'jk-bms capacity remaining': Sending state 131.19801 Ah with 0 decimals of accuracy
[07:42:20][D][sensor:094]: 'jk-bms total battery capacity setting': Sending state 165.00002 Ah with 0 decimals of accuracy
[07:42:20][D][sensor:094]: 'jk-bms charging cycles': Sending state 0.00000 with 0 decimals of accuracy
[07:42:20][D][sensor:094]: 'jk-bms total charging cycle capacity': Sending state 64.69801 Ah with 3 decimals of accuracy
[07:42:20][D][jk_bms_ble:647]: Unknown158: 0x64 0x00 (always 0x64 0x00?)
[07:42:20][D][jk_bms_ble:650]: Unknown160: 0x00 0x00 (always 0xC5 0x09?)
[07:42:20][D][sensor:094]: 'jk-bms total runtime': Sending state 438962.00000 s with 0 decimals of accuracy
[07:42:20][D][text_sensor:064]: 'jk-bms total runtime formatted': Sending state '5d 1h'
[07:42:20][D][jk_bms_ble:663]: Unknown168: 00.00.00.00.00.00.00.00.00.00.00.00.00.00 (14)
[07:42:20][D][jk_bms_ble:677]: Unknown189: 0x00 0x64
[07:42:20][D][jk_bms_ble:681]: Unknown192: 0x12
[07:42:20][D][jk_bms_ble:683]: Unknown193: 0x00 0xE7 (0x00 0x8D)
[07:42:20][D][jk_bms_ble:685]: Unknown195: 0xA3 0x3E (0x21 0x40)
[07:42:20][W][component:204]: Component esp32_ble took a long time for an operation (0.51 s).
[07:42:20][W][component:205]: Components should block for at most 20-30ms.
[07:42:20][C][jk_bms_ble.switch:068]: JkBmsBle Switch 'jk-bms balancer'
[07:42:20][C][jk_bms_ble.switch:070]: Icon: 'mdi:seesaw'
[07:42:20][C][jk_bms_ble.switch:091]: Restore Mode: always OFF
[07:42:20][C][jk_bms_ble.switch:068]: JkBmsBle Switch 'jk-bms emergency'
[07:42:20][C][jk_bms_ble.switch:070]: Icon: 'mdi:exit-run'
[07:42:20][C][jk_bms_ble.switch:073]: Assumed State: YES
[07:42:20][C][jk_bms_ble.switch:091]: Restore Mode: always OFF
[07:42:20][C][jk_bms_ble.switch:068]: JkBmsBle Switch 'jk-bms disable temperature sensors'
[07:42:20][C][jk_bms_ble.switch:070]: Icon: 'mdi:thermometer-off'
[07:42:21][C][jk_bms_ble.switch:091]: Restore Mode: always OFF
[07:42:21][C][jk_bms_ble.switch:068]: JkBmsBle Switch 'jk-bms display always on'
[07:42:21][C][jk_bms_ble.switch:070]: Icon: 'mdi:led-on'
[07:42:21][C][jk_bms_ble.switch:091]: Restore Mode: always OFF
[07:42:21][C][ble_switch:068]: BLE Client Switch 'jk-bms enable bluetooth connection'
[07:42:21][C][ble_switch:070]: Icon: 'mdi:bluetooth'
[07:42:21][C][ble_switch:091]: Restore Mode: always OFF
[07:42:21][C][esp32_ble:238]: ESP32 BLE:
[07:42:21][C][esp32_ble:240]: MAC address: 7C:9E:BD:F2:0C:42
[07:42:21][C][esp32_ble:241]: IO Capability: none
[07:42:21][C][esp32_ble_tracker:617]: BLE Tracker:
[07:42:21][C][esp32_ble_tracker:618]: Scan Duration: 300 s
[07:42:21][C][esp32_ble_tracker:619]: Scan Interval: 320.0 ms
[07:42:21][C][esp32_ble_tracker:620]: Scan Window: 30.0 ms
[07:42:21][C][esp32_ble_tracker:621]: Scan Type: ACTIVE
[07:42:21][C][esp32_ble_tracker:622]: Continuous Scanning: True
[07:42:21][C][ble_client:027]: BLE Client:
[07:42:21][C][ble_client:028]: Address: 20:22:08:25:17:41
[07:42:21][C][captive_portal:088]: Captive Portal:
[07:42:21][C][mdns:112]: mDNS:
[07:42:21][C][mdns:113]: Hostname: shunt
[07:42:21][C][ota:093]: Over-The-Air Updates:
[07:42:21][C][ota:094]: Address: shunt.local:3232
[07:42:21][C][ota:097]: Using Password.
[07:42:21][C][api:138]: API Server:
[07:42:21][C][api:139]: Address: shunt.local:6053
[07:42:21][C][api:141]: Using noise encryption: YES
[07:42:25][I][jk_bms_ble:467]: Cell info frame (version 3, 300 bytes) received
[07:42:25][D][sensor:094]: 'jk-bms cell voltage 1': Sending state 3.79100 V with 3 decimals of accuracy
[07:42:25][D][sensor:094]: 'jk-bms cell resistance 1': Sending state 0.30900 Ω with 3 decimals of accuracy
[07:42:25][D][sensor:094]: 'jk-bms cell voltage 2': Sending state 3.78700 V with 3 decimals of accuracy
[07:42:25][D][sensor:094]: 'jk-bms cell resistance 2': Sending state 0.30800 Ω with 3 decimals of accuracy
[07:42:25][D][sensor:094]: 'jk-bms cell voltage 3': Sending state 3.78600 V with 3 decimals of accuracy
[07:42:25][D][sensor:094]: 'jk-bms cell resistance 3': Sending state 0.30900 Ω with 3 decimals of accuracy
[07:42:25][D][sensor:094]: 'jk-bms cell voltage 4': Sending state 3.78700 V with 3 decimals of accuracy
[07:42:25][D][sensor:094]: 'jk-bms cell resistance 4': Sending state 0.30600 Ω with 3 decimals of accuracy
[07:42:25][D][sensor:094]: 'jk-bms cell voltage 5': Sending state 3.78400 V with 3 decimals of accuracy
[07:42:25][D][sensor:094]: 'jk-bms cell resistance 5': Sending state 0.30700 Ω with 3 decimals of accuracy
[07:42:25][D][sensor:094]: 'jk-bms cell voltage 6': Sending state 3.78400 V with 3 decimals of accuracy
[07:42:25][D][sensor:094]: 'jk-bms cell resistance 6': Sending state 0.30500 Ω with 3 decimals of accuracy
[07:42:25][D][sensor:094]: 'jk-bms cell voltage 7': Sending state 3.79100 V with 3 decimals of accuracy
[07:42:25][D][sensor:094]: 'jk-bms cell resistance 7': Sending state 0.30700 Ω with 3 decimals of accuracy
[07:42:25][D][sensor:094]: 'jk-bms min cell voltage': Sending state 3.78400 V with 3 decimals of accuracy
[07:42:25][D][sensor:094]: 'jk-bms max cell voltage': Sending state 3.79100 V with 3 decimals of accuracy
[07:42:26][D][sensor:094]: 'jk-bms average cell voltage': Sending state 3.78900 V with 3 decimals of accuracy
[07:42:26][D][sensor:094]: 'jk-bms delta cell voltage': Sending state 0.00700 V with 3 decimals of accuracy
[07:42:26][D][sensor:094]: 'jk-bms max voltage cell': Sending state 1.00000 with 0 decimals of accuracy
[07:42:26][D][sensor:094]: 'jk-bms min voltage cell': Sending state 6.00000 with 0 decimals of accuracy
[07:42:26][D][sensor:094]: 'jk-bms power tube temperature': Sending state 21.60000 °C with 1 decimals of accuracy
[07:42:26][D][jk_bms_ble:562]: Wire resistance warning bitmask: 0x00 0x00 0x00 0x00
[07:42:26][D][sensor:094]: 'jk-bms total voltage': Sending state 26.52100 V with 2 decimals of accuracy
[07:42:26][D][sensor:094]: 'jk-bms current': Sending state -1.24900 A with 2 decimals of accuracy
[07:42:26][D][sensor:094]: 'jk-bms power': Sending state -33.12473 W with 2 decimals of accuracy
[07:42:26][D][sensor:094]: 'jk-bms charging power': Sending state 0.00000 W with 2 decimals of accuracy
[07:42:26][D][sensor:094]: 'jk-bms discharging power': Sending state 33.12473 W with 2 decimals of accuracy
[07:42:26][D][sensor:094]: 'jk-bms temperature sensor 1': Sending state 16.00000 °C with 1 decimals of accuracy
[07:42:26][D][sensor:094]: 'jk-bms temperature sensor 2': Sending state 15.80000 °C with 1 decimals of accuracy
[07:42:26][D][sensor:094]: 'jk-bms errors bitmask': Sending state 0.00000 with 0 decimals of accuracy
[07:42:26][D][text_sensor:064]: 'jk-bms errors': Sending state ''
[07:42:26][D][sensor:094]: 'jk-bms balancing current': Sending state 0.00000 A with 2 decimals of accuracy
[07:42:26][D][sensor:094]: 'jk-bms state of charge': Sending state 79.00000 % with 0 decimals of accuracy
[07:42:26][D][sensor:094]: 'jk-bms capacity remaining': Sending state 131.19600 Ah with 0 decimals of accuracy
[07:42:26][D][sensor:094]: 'jk-bms total battery capacity setting': Sending state 165.00002 Ah with 0 decimals of accuracy
[07:42:26][D][sensor:094]: 'jk-bms charging cycles': Sending state 0.00000 with 0 decimals of accuracy
[07:42:26][D][sensor:094]: 'jk-bms total charging cycle capacity': Sending state 64.70000 Ah with 3 decimals of accuracy
[07:42:26][D][jk_bms_ble:647]: Unknown158: 0x64 0x00 (always 0x64 0x00?)
[07:42:26][D][jk_bms_ble:650]: Unknown160: 0x00 0x00 (always 0xC5 0x09?)
[07:42:26][D][sensor:094]: 'jk-bms total runtime': Sending state 438968.00000 s with 0 decimals of accuracy
[07:42:26][D][text_sensor:064]: 'jk-bms total runtime formatted': Sending state '5d 1h'
[07:42:26][D][jk_bms_ble:663]: Unknown168: 00.00.00.00.00.00.00.00.00.00.00.00.00.00 (14)
[07:42:26][D][jk_bms_ble:677]: Unknown189: 0x00 0x64
[07:42:26][D][jk_bms_ble:681]: Unknown192: 0x10
[07:42:26][D][jk_bms_ble:683]: Unknown193: 0x00 0xE7 (0x00 0x8D)
[07:42:26][D][jk_bms_ble:685]: Unknown195: 0xA3 0x3E (0x21 0x40)
[07:42:26][W][component:204]: Component esp32_ble took a long time for an operation (0.49 s).
[07:42:26][W][component:205]: Components should block for at most 20-30ms.
[07:42:31][I][jk_bms_ble:467]: Cell info frame (version 3, 300 bytes) received
[07:42:31][D][sensor:094]: 'jk-bms cell voltage 1': Sending state 3.79000 V with 3 decimals of accuracy
[07:42:31][D][sensor:094]: 'jk-bms cell resistance 1': Sending state 0.30900 Ω with 3 decimals of accuracy
[07:42:31][D][sensor:094]: 'jk-bms cell voltage 2': Sending state 3.78500 V with 3 decimals of accuracy
[07:42:31][D][sensor:094]: 'jk-bms cell resistance 2': Sending state 0.30800 Ω with 3 decimals of accuracy
[07:42:31][D][sensor:094]: 'jk-bms cell voltage 3': Sending state 3.78700 V with 3 decimals of accuracy
[07:42:31][D][sensor:094]: 'jk-bms cell resistance 3': Sending state 0.30900 Ω with 3 decimals of accuracy
[07:42:31][D][sensor:094]: 'jk-bms cell voltage 4': Sending state 3.78900 V with 3 decimals of accuracy
[07:42:31][D][sensor:094]: 'jk-bms cell resistance 4': Sending state 0.30600 Ω with 3 decimals of accuracy
[07:42:31][D][sensor:094]: 'jk-bms cell voltage 5': Sending state 3.78600 V with 3 decimals of accuracy
[07:42:31][D][sensor:094]: 'jk-bms cell resistance 5': Sending state 0.30700 Ω with 3 decimals of accuracy
[07:42:31][D][sensor:094]: 'jk-bms cell voltage 6': Sending state 3.78600 V with 3 decimals of accuracy
[07:42:31][D][sensor:094]: 'jk-bms cell resistance 6': Sending state 0.30500 Ω with 3 decimals of accuracy
[07:42:31][D][sensor:094]: 'jk-bms cell voltage 7': Sending state 3.79100 V with 3 decimals of accuracy
[07:42:31][D][sensor:094]: 'jk-bms cell resistance 7': Sending state 0.30700 Ω with 3 decimals of accuracy
[07:42:31][D][sensor:094]: 'jk-bms min cell voltage': Sending state 3.78500 V with 3 decimals of accuracy
[07:42:31][D][sensor:094]: 'jk-bms max cell voltage': Sending state 3.79100 V with 3 decimals of accuracy
[07:42:31][D][sensor:094]: 'jk-bms average cell voltage': Sending state 3.78700 V with 3 decimals of accuracy
[07:42:31][D][sensor:094]: 'jk-bms delta cell voltage': Sending state 0.00700 V with 3 decimals of accuracy
[07:42:31][D][sensor:094]: 'jk-bms max voltage cell': Sending state 1.00000 with 0 decimals of accuracy
[07:42:31][D][sensor:094]: 'jk-bms min voltage cell': Sending state 5.00000 with 0 decimals of accuracy
[07:42:31][D][sensor:094]: 'jk-bms power tube temperature': Sending state 21.60000 °C with 1 decimals of accuracy
[07:42:31][D][jk_bms_ble:562]: Wire resistance warning bitmask: 0x00 0x00 0x00 0x00
[07:42:31][D][sensor:094]: 'jk-bms total voltage': Sending state 26.51200 V with 2 decimals of accuracy
[07:42:31][D][sensor:094]: 'jk-bms current': Sending state -1.24900 A with 2 decimals of accuracy
[07:42:31][D][sensor:094]: 'jk-bms power': Sending state -33.11349 W with 2 decimals of accuracy
[07:42:31][D][sensor:094]: 'jk-bms charging power': Sending state 0.00000 W with 2 decimals of accuracy
[07:42:31][D][sensor:094]: 'jk-bms discharging power': Sending state 33.11349 W with 2 decimals of accuracy
[07:42:31][D][sensor:094]: 'jk-bms temperature sensor 1': Sending state 16.00000 °C with 1 decimals of accuracy
[07:42:31][D][sensor:094]: 'jk-bms temperature sensor 2': Sending state 15.80000 °C with 1 decimals of accuracy
[07:42:31][D][sensor:094]: 'jk-bms errors bitmask': Sending state 0.00000 with 0 decimals of accuracy
[07:42:31][D][text_sensor:064]: 'jk-bms errors': Sending state ''
[07:42:31][D][sensor:094]: 'jk-bms balancing current': Sending state 0.00000 A with 2 decimals of accuracy
[07:42:31][D][sensor:094]: 'jk-bms state of charge': Sending state 79.00000 % with 0 decimals of accuracy
[07:42:31][D][sensor:094]: 'jk-bms capacity remaining': Sending state 131.19400 Ah with 0 decimals of accuracy
[07:42:31][D][sensor:094]: 'jk-bms total battery capacity setting': Sending state 165.00002 Ah with 0 decimals of accuracy
[07:42:31][D][sensor:094]: 'jk-bms charging cycles': Sending state 0.00000 with 0 decimals of accuracy
[07:42:31][D][sensor:094]: 'jk-bms total charging cycle capacity': Sending state 64.70200 Ah with 3 decimals of accuracy
[07:42:31][D][jk_bms_ble:647]: Unknown158: 0x64 0x00 (always 0x64 0x00?)
[07:42:31][D][jk_bms_ble:650]: Unknown160: 0x00 0x00 (always 0xC5 0x09?)
[07:42:31][D][sensor:094]: 'jk-bms total runtime': Sending state 438973.00000 s with 0 decimals of accuracy
[07:42:31][D][text_sensor:064]: 'jk-bms total runtime formatted': Sending state '5d 1h'
[07:42:31][D][jk_bms_ble:663]: Unknown168: 00.00.00.00.00.00.00.00.00.00.00.00.00.00 (14)
[07:42:31][D][jk_bms_ble:677]: Unknown189: 0x00 0x64
[07:42:31][D][jk_bms_ble:681]: Unknown192: 0x10
[07:42:31][D][jk_bms_ble:683]: Unknown193: 0x00 0xE7 (0x00 0x8D)
[07:42:31][D][jk_bms_ble:685]: Unknown195: 0xA3 0x3E (0x21 0x40)
[07:42:31][W][component:204]: Component esp32_ble took a long time for an operation (0.50 s).
[07:42:31][W][component:205]: Components should block for at most 20-30ms.
[07:42:36][I][jk_bms_ble:467]: Cell info frame (version 3, 300 bytes) received
[07:42:36][D][sensor:094]: 'jk-bms cell voltage 1': Sending state 3.79100 V with 3 decimals of accuracy
[07:42:36][D][sensor:094]: 'jk-bms cell resistance 1': Sending state 0.30900 Ω with 3 decimals of accuracy
[07:42:36][D][sensor:094]: 'jk-bms cell voltage 2': Sending state 3.78600 V with 3 decimals of accuracy
[07:42:36][D][sensor:094]: 'jk-bms cell resistance 2': Sending state 0.30800 Ω with 3 decimals of accuracy
[07:42:36][D][sensor:094]: 'jk-bms cell voltage 3': Sending state 3.78600 V with 3 decimals of accuracy
[07:42:36][D][sensor:094]: 'jk-bms cell resistance 3': Sending state 0.30900 Ω with 3 decimals of accuracy
[07:42:36][D][sensor:094]: 'jk-bms cell voltage 4': Sending state 3.78900 V with 3 decimals of accuracy
[07:42:36][D][sensor:094]: 'jk-bms cell resistance 4': Sending state 0.30600 Ω with 3 decimals of accuracy
[07:42:36][D][sensor:094]: 'jk-bms cell voltage 5': Sending state 3.78400 V with 3 decimals of accuracy
[07:42:36][D][sensor:094]: 'jk-bms cell resistance 5': Sending state 0.30700 Ω with 3 decimals of accuracy
[07:42:36][D][sensor:094]: 'jk-bms cell voltage 6': Sending state 3.78600 V with 3 decimals of accuracy
[07:42:36][D][sensor:094]: 'jk-bms cell resistance 6': Sending state 0.30500 Ω with 3 decimals of accuracy
[07:42:36][D][sensor:094]: 'jk-bms cell voltage 7': Sending state 3.78900 V with 3 decimals of accuracy
[07:42:36][D][sensor:094]: 'jk-bms cell resistance 7': Sending state 0.30700 Ω with 3 decimals of accuracy
[07:42:36][D][sensor:094]: 'jk-bms min cell voltage': Sending state 3.78400 V with 3 decimals of accuracy
[07:42:36][D][sensor:094]: 'jk-bms max cell voltage': Sending state 3.79100 V with 3 decimals of accuracy
[07:42:36][D][sensor:094]: 'jk-bms average cell voltage': Sending state 3.78700 V with 3 decimals of accuracy
[07:42:36][D][sensor:094]: 'jk-bms delta cell voltage': Sending state 0.00600 V with 3 decimals of accuracy
[07:42:36][D][sensor:094]: 'jk-bms max voltage cell': Sending state 1.00000 with 0 decimals of accuracy
[07:42:36][D][sensor:094]: 'jk-bms min voltage cell': Sending state 2.00000 with 0 decimals of accuracy
[07:42:36][D][sensor:094]: 'jk-bms power tube temperature': Sending state 21.60000 °C with 1 decimals of accuracy
[07:42:36][D][jk_bms_ble:562]: Wire resistance warning bitmask: 0x00 0x00 0x00 0x00
[07:42:36][D][sensor:094]: 'jk-bms total voltage': Sending state 26.51100 V with 2 decimals of accuracy
[07:42:36][D][sensor:094]: 'jk-bms current': Sending state -1.32700 A with 2 decimals of accuracy
[07:42:36][D][sensor:094]: 'jk-bms power': Sending state -35.18010 W with 2 decimals of accuracy
[07:42:36][D][sensor:094]: 'jk-bms charging power': Sending state 0.00000 W with 2 decimals of accuracy
[07:42:37][D][sensor:094]: 'jk-bms discharging power': Sending state 35.18010 W with 2 decimals of accuracy
[07:42:37][D][sensor:094]: 'jk-bms temperature sensor 1': Sending state 16.00000 °C with 1 decimals of accuracy
[07:42:37][D][sensor:094]: 'jk-bms temperature sensor 2': Sending state 15.80000 °C with 1 decimals of accuracy
[07:42:37][D][sensor:094]: 'jk-bms errors bitmask': Sending state 0.00000 with 0 decimals of accuracy
[07:42:37][D][text_sensor:064]: 'jk-bms errors': Sending state ''
[07:42:37][D][sensor:094]: 'jk-bms balancing current': Sending state 0.00000 A with 2 decimals of accuracy
[07:42:37][D][sensor:094]: 'jk-bms state of charge': Sending state 79.00000 % with 0 decimals of accuracy
[07:42:37][D][sensor:094]: 'jk-bms capacity remaining': Sending state 131.19200 Ah with 0 decimals of accuracy
[07:42:37][D][sensor:094]: 'jk-bms total battery capacity setting': Sending state 165.00002 Ah with 0 decimals of accuracy
[07:42:37][D][sensor:094]: 'jk-bms charging cycles': Sending state 0.00000 with 0 decimals of accuracy
[07:42:37][D][sensor:094]: 'jk-bms total charging cycle capacity': Sending state 64.70400 Ah with 3 decimals of accuracy
[07:42:37][D][jk_bms_ble:647]: Unknown158: 0x64 0x00 (always 0x64 0x00?)
[07:42:37][D][jk_bms_ble:650]: Unknown160: 0x00 0x00 (always 0xC5 0x09?)
[07:42:37][D][sensor:094]: 'jk-bms total runtime': Sending state 438979.00000 s with 0 decimals of accuracy
[07:42:37][D][text_sensor:064]: 'jk-bms total runtime formatted': Sending state '5d 1h'
[07:42:37][D][jk_bms_ble:663]: Unknown168: 00.00.00.00.00.00.00.00.00.00.00.00.00.00 (14)
[07:42:37][D][jk_bms_ble:677]: Unknown189: 0x00 0x64
[07:42:37][D][jk_bms_ble:681]: Unknown192: 0x11
[07:42:37][D][jk_bms_ble:683]: Unknown193: 0x00 0xE7 (0x00 0x8D)
[07:42:37][D][jk_bms_ble:685]: Unknown195: 0xA3 0x3E (0x21 0x40)
[07:42:37][W][component:204]: Component esp32_ble took a long time for an operation (0.51 s).
[07:42:37][W][component:205]: Components should block for at most 20-30ms.

@mr-manuel
Copy link
Collaborator

Please provide the logs with timestamp, as we wrote everywhere. See also https://louisvdw.github.io/dbus-serialbattery/troubleshoot/#driver-log-files

Anyway, now the error is another.

@4000000065128866009ff72c ERROR:SerialBattery:No Bluetooth adapters found.

@itgenmar
Copy link
Author

itgenmar commented Sep 26, 2023

I had a second USB Bluetooth connected, i had removed it, reinstalled, and still the same included the log.

2023-09-26 09:21:00.146421500 *** CCGX booted (0) ***
2023-09-26 09:22:45.740005500 Missing device address argument
2023-09-26 09:22:47.432327500 INFO:SerialBattery:
2023-09-26 09:22:47.432752500 INFO:SerialBattery:Starting dbus-serialbattery
2023-09-26 09:22:47.433665500 INFO:SerialBattery:dbus-serialbattery v1.0.20230525beta
2023-09-26 09:22:47.870858500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-09-26 09:22:47.871406500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-09-26 09:23:02.831165500 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
2023-09-26 09:23:02.831174500 connect and scrape on address: 20:22:08:25:17:41
2023-09-26 09:23:02.831177500 btloop
2023-09-26 09:23:02.831179500 reconnect
2023-09-26 09:23:02.831180500 Exiting bt-loop
2023-09-26 09:23:03.117505500 Missing device address argument
2023-09-26 09:23:04.764602500 INFO:SerialBattery:
2023-09-26 09:23:04.765033500 INFO:SerialBattery:Starting dbus-serialbattery
2023-09-26 09:23:04.765953500 INFO:SerialBattery:dbus-serialbattery v1.0.20230525beta
2023-09-26 09:23:05.154074500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-09-26 09:23:05.154536500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-09-26 09:23:20.776226500 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
2023-09-26 09:23:20.776382500 connect and scrape on address: 20:22:08:25:17:41
2023-09-26 09:23:20.776386500 btloop
2023-09-26 09:23:20.776387500 reconnect
2023-09-26 09:23:20.776389500 Exiting bt-loop
2023-09-26 09:23:21.039026500 Missing device address argument
2023-09-26 09:23:22.115334500 INFO:SerialBattery:
2023-09-26 09:23:22.115969500 INFO:SerialBattery:Starting dbus-serialbattery
2023-09-26 09:23:22.116990500 INFO:SerialBattery:dbus-serialbattery v1.0.20230525beta
2023-09-26 09:23:22.493285500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-09-26 09:23:22.493944500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-09-26 09:23:37.782339500 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
2023-09-26 09:23:37.782491500 connect and scrape on address: 20:22:08:25:17:41
2023-09-26 09:23:37.782495500 btloop
2023-09-26 09:23:37.782497500 reconnect
2023-09-26 09:23:37.782498500 Exiting bt-loop
2023-09-26 09:23:38.051658500 Missing device address argument
2023-09-26 09:23:39.202712500 INFO:SerialBattery:
2023-09-26 09:23:39.203141500 INFO:SerialBattery:Starting dbus-serialbattery
2023-09-26 09:23:39.204127500 INFO:SerialBattery:dbus-serialbattery v1.0.20230525beta
2023-09-26 09:23:39.605594500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-09-26 09:23:39.606058500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-09-26 09:23:54.778567500 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
2023-09-26 09:23:54.778798500 connect and scrape on address: 20:22:08:25:17:41
2023-09-26 09:23:54.778802500 btloop
2023-09-26 09:23:54.778803500 reconnect
2023-09-26 09:23:54.778805500 Exiting bt-loop
2023-09-26 09:23:55.044528500 Missing device address argument
2023-09-26 09:23:56.151729500 INFO:SerialBattery:
2023-09-26 09:23:56.152160500 INFO:SerialBattery:Starting dbus-serialbattery
2023-09-26 09:23:56.153071500 INFO:SerialBattery:dbus-serialbattery v1.0.20230525beta
2023-09-26 09:23:56.551272500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-09-26 09:23:56.551932500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41


SVstats :
 svstat /service/dbus-blebattery.*
/service/dbus-blebattery.0: up (pid 3052) 7 seconds
root@VFIEVOX3:~# svstat /service/dbus-blebattery.*
/service/dbus-blebattery.0: up (pid 3052) 10 seconds
root@VFIEVOX3:~# svstat /service/dbus-blebattery.*
/service/dbus-blebattery.0: up (pid 3052) 10 seconds
root@VFIEVOX3:~# svstat /service/dbus-blebattery.*
/service/dbus-blebattery.0: up (pid 3052) 11 seconds
root@VFIEVOX3:~# svstat /service/dbus-blebattery.*
/service/dbus-blebattery.0: up (pid 3052) 12 seconds
root@VFIEVOX3:~# svstat /service/dbus-blebattery.*
/service/dbus-blebattery.0: up (pid 3052) 12 seconds
root@VFIEVOX3:~# svstat /service/dbus-blebattery.*
/service/dbus-blebattery.0: up (pid 3052) 12 seconds
root@VFIEVOX3:~# svstat /service/dbus-blebattery.*
/service/dbus-blebattery.0: up (pid 3052) 13 seconds
root@VFIEVOX3:~# svstat /service/dbus-blebattery.*
/service/dbus-blebattery.0: up (pid 3052) 13 seconds
root@VFIEVOX3:~# svstat /service/dbus-blebattery.*
/service/dbus-blebattery.0: up (pid 3052) 14 seconds
root@VFIEVOX3:~# svstat /service/dbus-blebattery.*
/service/dbus-blebattery.0: up (pid 3052) 14 seconds
root@VFIEVOX3:~# svstat /service/dbus-blebattery.*
/service/dbus-blebattery.0: up (pid 3052) 14 seconds
root@VFIEVOX3:~# svstat /service/dbus-blebattery.*
/service/dbus-blebattery.0: up (pid 3052) 15 seconds
root@VFIEVOX3:~# svstat /service/dbus-blebattery.*
/service/dbus-blebattery.0: up (pid 3052) 15 seconds
root@VFIEVOX3:~# svstat /service/dbus-blebattery.*
/service/dbus-blebattery.0: up (pid 3052) 16 seconds
root@VFIEVOX3:~# svstat /service/dbus-blebattery.*
/service/dbus-blebattery.0: up (pid 3052) 16 seconds
root@VFIEVOX3:~# svstat /service/dbus-blebattery.*
/service/dbus-blebattery.0: up (pid 3145) 0 seconds

@mr-manuel
Copy link
Collaborator

What is the output of

bluetoothctl scan on

Wait for some seconds, then exit with CTRL + C.

@mr-manuel
Copy link
Collaborator

Please tell me also the exact version of the driver you are using and Venus OS. Latest is not a useful answer.

If you are not running driver version v1.0.20230921beta then please install the latest nightly of the dev branch.

@M0ebiu5
Copy link

M0ebiu5 commented Oct 6, 2023

Hi, i have the same problem:

tried with: nightly - dev from today
venus os: v3.10
Jk Bms: JK_BD6A17S8P

Dmesg shows this:
[ 15.208783] Bluetooth: hci0: BCM: failed to write update baudrate (-110)
[ 15.215500] Bluetooth: hci0: Failed to set baudrate
[ 17.288765] Bluetooth: hci0: command 0x0c03 tx timeout
[ 25.448771] Bluetooth: hci0: BCM: Reset failed (-110)

Also, the cerbo is a little laggy since installation of the driver - every few seconds, keys are delayed (top didnt show high load) on ssh and remote console.

@40000000651fe93628d58784 Successful disconnected
@40000000651fe93b2c14243c Device 20:22:09:27:33:9B (public)
@40000000651fe93b2c144764 	Alias: JK_BD6A17S8P
@40000000651fe93b2c144f34 	Paired: no
@40000000651fe93b2c14531c 	Trusted: yes
@40000000651fe93b2c145aec 	Blocked: no
@40000000651fe93b2c145ed4 	Connected: no
@40000000651fe93b2c1462bc 	LegacyPairing: no
@40000000651fe93b2c146a8c 	RSSI: -54
@40000000651fe93b2c2c47ec 
@40000000651fe93d0428db84 INFO:SerialBattery:
@40000000651fe93d04330ce4 INFO:SerialBattery:Starting dbus-serialbattery
@40000000651fe93d0447dd04 INFO:SerialBattery:dbus-serialbattery v1.0.20230921dev
@40000000651fe93d1de55bc4 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:09:27:33:9B
@40000000651fe93d1df063fc INFO:SerialBattery:Test of Jkbms_Ble at 20:22:09:27:33:9B
@40000000651fe94c0213f98c ERROR:SerialBattery:No BMS found at 20:22:09:27:33:9B
@40000000651fe94c0220ceb4 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble

@Srekrek
Copy link

Srekrek commented Nov 2, 2023

Hi,

First of all: thanks for your fine work on this, it's much appreciated !

I have also same sort of a problem:

**Jk BMS :
JK_B1A8S20P
Serial number
Hardware v11.XW
SOFTWARE V11.261

Venus OS device type
Raspberry Pi 4

Venus OS version 3.12

Connection type
Bluetooth

Bluetoothctl info

Device C8:47:8C:EE:33:E2 (public)
        Name: NKON-125Ah
        Alias: NKON-125Ah
        Paired: no
        Trusted: yes
        Blocked: no
        Connected: no
        LegacyPairing: no
        UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
        UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
        UUID: Device Information        (0000180a-0000-1000-8000-00805f9b34fb)
        UUID: Battery Service           (0000180f-0000-1000-8000-00805f9b34fb)
        UUID: Unknown                   (0000ffe0-0000-1000-8000-00805f9b34fb)
        UUID: Vendor specific           (f000ffc0-0451-4000-b000-000000000000)
        Modalias: usb:v045Ep0040d0300

Config file

[DEFAULT]
BLUETOOTH_BMS = Jkbms_Ble C8:47:8C:EE:33:E2

/data/log/serial-starter/current

@400000006543bd362daefc04 *** CCGX booted (0) ***
@400000006543bd381516b074 *** starting serial-starter ***
@400000006543bd39220678dc serstart starting
@400000006543bd3923cf2aec INFO: loading config file /etc/venus/serial-starter.conf
@400000006543bd3d1acc7364 INFO: Create daemontools service vedirect-interface.ttyUSB0
@400000006543bd3f1ba0ceac INFO: Create daemontools service mk2-dbus.ttyUSB1
@400000006543bd432894159c INFO: Start service vedirect-interface.ttyUSB0 once
@400000006543bd4601e2db54 INFO: Start service mk2-dbus.ttyUSB1

/data/log/dbus-blebattery.*/current

@400000006543c8e70c417574 ERROR:SerialBattery:Unexpected err=ValueError('dbus_fast.signature.Variant size changed, may indicate binary incompatibility. Expected 24 from C header, got 20 from PyObject'),>
@400000006543c8e70c4810dc ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
@400000006543c8e70c4b452c
@400000006543c8e7190e15dc Missing device address argument
@400000006543c8e81fc2d23c INFO:SerialBattery:Starting dbus-serialbattery
@400000006543c8e81fd14d44 INFO:SerialBattery:dbus-serialbattery v1.0.20230531
@400000006543c8e836b33644 INFO:SerialBattery:Init of Jkbms_Ble at C8:47:8C:EE:33:E2
@400000006543c8e836badf34 INFO:SerialBattery:Test of Jkbms_Ble at C8:47:8C:EE:33:E2
@400000006543c8e9012962dc ERROR:SerialBattery:Unexpected err=ValueError('dbus_fast.signature.Variant size changed, may indicate binary incompatibility. Expected 24 from C header, got 20 from PyObject'),>
@400000006543c8e9012fe6d4 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
@400000006543c8e901346b14
@400000006543c8e90e20c494 Missing device address argument

Any ideas on how to solve this problem ?

@mr-manuel
Copy link
Collaborator

mr-manuel commented Nov 2, 2023

From the logs I see that you are using the driver version v1.0.20230531.

A needed Python module named dbus_fast was not installed. This is a known issue on weaker devices and was fixed some weeks ago. Just install the latest nightly from the dev branch and it should work.

@Srekrek
Copy link

Srekrek commented Nov 2, 2023

It doesn't seem to change things !?

@400000006543dfee193aafd4 INFO:Bluetooth details
@400000006543dfee1aab27f4 No default controller available
@400000006543dff31cedff8c
@400000006543dff42385316c INFO:SerialBattery:
@400000006543dff4238bd88c INFO:SerialBattery:Starting dbus-serialbattery
@400000006543dff42399a3cc INFO:SerialBattery:dbus-serialbattery v1.0.20231102dev
@400000006543dff43a42c1bc INFO:SerialBattery:Init of Jkbms_Ble at C8:47:8C:EE:33:E2
@400000006543dff43a497c64 INFO:SerialBattery:Test of Jkbms_Ble at C8:47:8C:EE:33:E2
@400000006543dff50785413c Exception in thread Thread-1:
@400000006543dff5078558ac Traceback (most recent call last):
@400000006543dff507856464   File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
@400000006543dff507857404     self.run()
@400000006543dff507857bd4   File "/usr/lib/python3.8/threading.py", line 870, in run
@400000006543dff507858b74     self._target(*self._args, **self._kwargs)
@400000006543dff50785972c   File "/opt/victronenergy/dbus-serialbattery/bms/jkbms_brn.py", line 430, in connect_and_scrape
@400000006543dff507870274     asyncio.run(self.asy_connect_and_scrape())
@400000006543dff507870e2c   File "/usr/lib/python3.8/asyncio/runners.py", line 44, in run
@400000006543dff507871dcc     return loop.run_until_complete(main)
@400000006543dff507872984   File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
@400000006543dff507873d0c     return future.result()
@400000006543dff50787a29c   File "/opt/victronenergy/dbus-serialbattery/bms/jkbms_brn.py", line 440, in asy_connect_and_scrape
@400000006543dff50787ba0c     client = BleakClient(self.address)
@400000006543dff50787c1dc   File "/usr/lib/python3.8/site-packages/bleak/__init__.py", line 518, in __init__
@400000006543dff50787d564     get_platform_client_backend_type() if backend is None else backend
@400000006543dff50787ecd4   File "/usr/lib/python3.8/site-packages/bleak/backends/client.py", line 260, in get_platform_client_backend_type
@400000006543dff50789022c     from bleak.backends.bluezdbus.client import BleakClientBlueZDBus
@400000006543dff5078911cc   File "/usr/lib/python3.8/site-packages/bleak/backends/bluezdbus/client.py", line 23, in <module>
@400000006543dff507892554     from dbus_fast.aio import MessageBus
@400000006543dff50789310c   File "/usr/lib/python3.8/site-packages/dbus_fast/__init__.py", line 1, in <module>
@400000006543dff50789a254     from . import introspection, message_bus, proxy_object, service
@400000006543dff50789b1f4   File "/usr/lib/python3.8/site-packages/dbus_fast/introspection.py", line 5, in <module>
@400000006543dff50789c57c     from .errors import InvalidIntrospectionError
@400000006543dff50789d51c   File "/usr/lib/python3.8/site-packages/dbus_fast/errors.py", line 57, in <module>
@400000006543dff50789e8a4     from .message import Message
@400000006543dff5078a427c   File "src/dbus_fast/message.py", line 1, in init dbus_fast.message
@400000006543dff5078a5604 ValueError: dbus_fast.signature.Variant size changed, may indicate binary incompatibility. Expected 24 from C header, got 20 from PyObject
@400000006543dffe1d760bac ERROR:SerialBattery:No BMS found at C8:47:8C:EE:33:E2
@400000006543dffe1d7d202c ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
@400000006543dffe2aff128c

@mr-manuel
Copy link
Collaborator

Try to run this manually:

export SKIP_CYTHON=false
opkg update
opkg install python3-misc python3-pip
echo
pip3 install bleak

And then as last

pip3 install dbus-fast

@Srekrek
Copy link

Srekrek commented Nov 2, 2023

Doesn't change much:

root@raspberrypi2:/data/etc/dbus-serialbattery# export SKIP_CYTHON=false
root@raspberrypi2:/data/etc/dbus-serialbattery# opkg update
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/all/Packages.gz.
Updated source 'all'.
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/cortexa7hf-neon-vfpv4/Packages.gz.
Updated source 'cortexa7hf-neon-vfpv4'.
Downloading https://updates.victronenergy.com/feeds/venus/release/packages/dunfell/raspberrypi2/Packages.gz.
Updated source 'raspberrypi2'.
root@raspberrypi2:/data/etc/dbus-serialbattery#  opkg install python3-misc python3-pip
No packages installed or removed.
root@raspberrypi2:/data/etc/dbus-serialbattery# echo
root@raspberrypi2:/data/etc/dbus-serialbattery# pip3 install bleak
Requirement already satisfied: bleak in /usr/lib/python3.8/site-packages (0.21.1)
Requirement already satisfied: async-timeout<5,>=3.0.0; python_version < "3.11" in /usr/lib/python3.8/site-packages (from bleak) (4.0.3)
Requirement already satisfied: typing-extensions>=4.7.0; python_version < "3.12" in /usr/lib/python3.8/site-packages (from bleak) (4.8.0)
Requirement already satisfied: dbus-fast<3,>=1.83.0; platform_system == "Linux" in /usr/lib/python3.8/site-packages (from bleak) (2.12.0)
root@raspberrypi2:/data/etc/dbus-serialbattery# pip3 install dbus-fast
Requirement already satisfied: dbus-fast in /usr/lib/python3.8/site-packages (2.12.0)

@mr-manuel
Copy link
Collaborator

mr-manuel commented Nov 2, 2023

You could try another dbus-fast version.

pip3 install dbus-fast==v1.93.0

There was a bug in dbus-fast some time ago. You can try different versions: https://github.com/Bluetooth-Devices/dbus-fast/releases

@Srekrek
Copy link

Srekrek commented Nov 3, 2023

Thanks for all the support, it does work now
image
I don't exactly know what I did (I even once needed to hard reset my rpi), but it now works with dbus-serialbattery v1.0.20230531.

export SKIP_CYTHON=false
bash /data/etc/dbus-serialbattery/reinstall-local.sh

the first line was needed because otherwise ik kept hanging during making a wheel for dbus-fast.

@mr-manuel
Copy link
Collaborator

@itgenmar @M0ebiu5 did you solve your problem? Have you changed the pin of the JKBMS?

@itgenmar
Copy link
Author

itgenmar commented Nov 3, 2023

Hi, I have installed the latest nightly v1.0.20231102dev, i have the default pins : 1234 and 123456 :
tried with dbus-fast==v1.93.0, with export SKIP_CYTHON=false

2023-11-03 08:56:42.184893500 Device 20:22:08:25:17:41 (public)
2023-11-03 08:56:42.184917500 Alias: JK_BD4A24S04
2023-11-03 08:56:42.184919500 Paired: no
2023-11-03 08:56:42.184921500 Trusted: yes
2023-11-03 08:56:42.184923500 Blocked: no
2023-11-03 08:56:42.185006500 Connected: no
2023-11-03 08:56:42.185008500 LegacyPairing: no
2023-11-03 08:56:42.185010500 RSSI: -48
2023-11-03 08:56:42.185949500
2023-11-03 08:56:43.326740500 INFO:SerialBattery:
2023-11-03 08:56:43.327189500 INFO:SerialBattery:Starting dbus-serialbattery
2023-11-03 08:56:43.328121500 INFO:SerialBattery:dbus-serialbattery v1.0.20231102dev
2023-11-03 08:56:43.721565500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 08:56:43.722009500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 08:56:46.222166500 INFO:SerialBattery:--> asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!
2023-11-03 08:56:48.856816500 INFO:SerialBattery:--> asy_connect_and_scrape(): Exit
2023-11-03 08:56:53.238361500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2023-11-03 08:56:53.238883500 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
2023-11-03 08:56:53.540250500
2023-11-03 08:56:53.540398500 INFO:Bluetooth details
2023-11-03 08:56:53.545915500 [CHG] Device 20:22:08:25:17:41 RSSI: -48
2023-11-03 08:56:53.545922500 [CHG] Device 20:22:08:25:17:41 RSSI: -52
2023-11-03 08:56:53.607303500 Attempting to disconnect from 20:22:08:25:17:41

@mr-manuel
Copy link
Collaborator

Can you enable LOGGING = DEBUG in the config.ini?

@itgenmar
Copy link
Author

itgenmar commented Nov 3, 2023

Done i change it for 100 lines

ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2023-11-03 09:04:37.551763500 ERROR:SerialBattery:ERROR >>No battery connection at Jkbms_Ble
2023-11-03 09:04:37.841692500
2023-11-03 09:04:37.841849500 INFO:Bluetooth details
2023-11-03 09:04:37.854726500 [CHG] Device 20:22:08:25:17:41 RSSI: -47
2023-11-03 09:04:37.854733500 [CHG] Device 20:22:08:25:17:41 RSSI: -48
2023-11-03 09:04:37.920157500 Attempting to disconnect from 20:22:08:25:17:41
2023-11-03 09:04:37.920164500 Successful disconnected
2023-11-03 09:04:42.983121500 Device 20:22:08:25:17:41 (public)
2023-11-03 09:04:42.983128500   Alias: JK_BD4A24S04
2023-11-03 09:04:42.983131500   Paired: no
2023-11-03 09:04:42.983132500   Trusted: yes
2023-11-03 09:04:42.983134500   Blocked: no
2023-11-03 09:04:42.983136500   Connected: no
2023-11-03 09:04:42.983138500   LegacyPairing: no
2023-11-03 09:04:42.983140500   RSSI: -52
2023-11-03 09:04:42.984081500
2023-11-03 09:04:44.114597500 INFO:SerialBattery:
2023-11-03 09:04:44.115053500 INFO:SerialBattery:Starting dbus-serialbattery
2023-11-03 09:04:44.116091500 INFO:SerialBattery:dbus-serialbattery v1.0.20231102dev
2023-11-03 09:04:44.505623500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:04:44.506071500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:04:45.499940500 INFO:SerialBattery:--asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be                                                       found!
2023-11-03 09:04:47.852888500 INFO:SerialBattery:--asy_connect_and_scrape(): Exit
2023-11-03 09:04:54.022188500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2023-11-03 09:04:54.022725500 ERROR:SerialBattery:ERROR >>No battery connection at Jkbms_Ble
2023-11-03 09:04:54.312203500
2023-11-03 09:04:54.312207500 INFO:Bluetooth details
2023-11-03 09:04:54.316849500 [CHG] Device 20:22:08:25:17:41 RSSI: -52
2023-11-03 09:04:54.316858500 [CHG] Device 20:22:08:25:17:41 RSSI: -52
2023-11-03 09:04:54.368526500 Attempting to disconnect from 20:22:08:25:17:41
2023-11-03 09:04:54.368533500 Successful disconnected
2023-11-03 09:04:59.456991500 Device 20:22:08:25:17:41 (public)
2023-11-03 09:04:59.456998500   Alias: JK_BD4A24S04
2023-11-03 09:04:59.457000500   Paired: no
2023-11-03 09:04:59.457002500   Trusted: yes
2023-11-03 09:04:59.457003500   Blocked: no
2023-11-03 09:04:59.457005500   Connected: no
2023-11-03 09:04:59.457007500   LegacyPairing: no
2023-11-03 09:04:59.457009500   RSSI: -52
2023-11-03 09:04:59.458016500
2023-11-03 09:05:00.581230500 INFO:SerialBattery:
2023-11-03 09:05:00.581709500 INFO:SerialBattery:Starting dbus-serialbattery
2023-11-03 09:05:00.604065500 INFO:SerialBattery:dbus-serialbattery v1.0.20231102dev
2023-11-03 09:05:01.067040500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:05:01.067510500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:05:02.442988500 INFO:SerialBattery:--asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be                                                       found!
2023-11-03 09:05:04.855436500 INFO:SerialBattery:--asy_connect_and_scrape(): Exit
2023-11-03 09:05:10.582120500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2023-11-03 09:05:10.582583500 ERROR:SerialBattery:ERROR >>No battery connection at Jkbms_Ble
2023-11-03 09:05:10.886756500 [CHG] Device 20:22:08:25:17:41 RSSI: -52
2023-11-03 09:05:10.886763500 [CHG] Device 20:22:08:25:17:41 RSSI: -48
2023-11-03 09:05:10.893377500
2023-11-03 09:05:10.893729500 INFO:Bluetooth details
2023-11-03 09:05:10.960535500 Attempting to disconnect from 20:22:08:25:17:41
2023-11-03 09:05:10.960542500 Successful disconnected
2023-11-03 09:05:16.113347500 Device 20:22:08:25:17:41 (public)
2023-11-03 09:05:16.113353500   Alias: JK_BD4A24S04
2023-11-03 09:05:16.113355500   Paired: no
2023-11-03 09:05:16.113357500   Trusted: yes
2023-11-03 09:05:16.113359500   Blocked: no
2023-11-03 09:05:16.113361500   Connected: no
2023-11-03 09:05:16.113363500   LegacyPairing: no
2023-11-03 09:05:16.113365500   RSSI: -48
2023-11-03 09:05:16.114120500
2023-11-03 09:05:17.346193500 INFO:SerialBattery:
2023-11-03 09:05:17.346684500 INFO:SerialBattery:Starting dbus-serialbattery
2023-11-03 09:05:17.347710500 INFO:SerialBattery:dbus-serialbattery v1.0.20231102dev
2023-11-03 09:05:17.745908500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:05:17.746353500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:05:20.197114500 INFO:SerialBattery:--asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be                                                       found!
2023-11-03 09:05:22.849617500 INFO:SerialBattery:--asy_connect_and_scrape(): Exit
2023-11-03 09:05:27.284289500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2023-11-03 09:05:27.284296500 ERROR:SerialBattery:ERROR >>No battery connection at Jkbms_Ble
2023-11-03 09:05:27.603059500
2023-11-03 09:05:27.603450500 INFO:Bluetooth details
2023-11-03 09:05:27.613114500 [CHG] Device 20:22:08:25:17:41 RSSI: -48
2023-11-03 09:05:27.613121500 [CHG] Device 20:22:08:25:17:41 RSSI: -48
2023-11-03 09:05:27.677630500 Attempting to disconnect from 20:22:08:25:17:41
2023-11-03 09:05:27.677637500 Successful disconnected
2023-11-03 09:05:32.745630500 Device 20:22:08:25:17:41 (public)
2023-11-03 09:05:32.745637500   Alias: JK_BD4A24S04
2023-11-03 09:05:32.745639500   Paired: no
2023-11-03 09:05:32.745641500   Trusted: yes
2023-11-03 09:05:32.745643500   Blocked: no
2023-11-03 09:05:32.745645500   Connected: no
2023-11-03 09:05:32.745646500   LegacyPairing: no
2023-11-03 09:05:32.745648500   RSSI: -48
2023-11-03 09:05:32.748002500
2023-11-03 09:05:33.883911500 INFO:SerialBattery:
2023-11-03 09:05:33.885685500 INFO:SerialBattery:Starting dbus-serialbattery
2023-11-03 09:05:33.887307500 INFO:SerialBattery:dbus-serialbattery v1.0.20231102dev
2023-11-03 09:05:34.289106500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:05:34.289890500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:05:35.352974500 INFO:SerialBattery:--asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be                                                       found!
2023-11-03 09:05:37.847820500 INFO:SerialBattery:--asy_connect_and_scrape(): Exit
2023-11-03 09:06:09.118351500
2023-11-03 09:06:09.118357500 INFO:Bluetooth details
2023-11-03 09:06:09.149162500 Attempting to disconnect from 20:22:08:25:17:41
2023-11-03 09:06:09.149168500 Successful disconnected
2023-11-03 09:06:14.208814500 Device 20:22:08:25:17:41 (public)
2023-11-03 09:06:14.208820500   Alias: JK_BD4A24S04
2023-11-03 09:06:14.208823500   Paired: no
2023-11-03 09:06:14.208824500   Trusted: yes
2023-11-03 09:06:14.208826500   Blocked: no
2023-11-03 09:06:14.208828500   Connected: no
2023-11-03 09:06:14.208830500   LegacyPairing: no
2023-11-03 09:06:14.208832500   RSSI: -47
2023-11-03 09:06:14.209971500
2023-11-03 09:06:15.354260500 INFO:SerialBattery:
2023-11-03 09:06:15.354782500 INFO:SerialBattery:Starting dbus-serialbattery
2023-11-03 09:06:15.355793500 INFO:SerialBattery:dbus-serialbattery v1.0.20231102dev
2023-11-03 09:06:15.823827500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:06:15.824416500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:06:15.828444500 DEBUG:SerialBattery:scraping thread started -main thread id: 1996263440 scraping thread: 1979700320
2023-11-03 09:06:15.830853500 DEBUG:SerialBattery:--asy_connect_and_scrape(): Connect and scrape on address: 20:22:08:25:17:41
2023-11-03 09:06:16.205931500 DEBUG:SerialBattery:--asy_connect_and_scrape(): btloop
2023-11-03 09:06:16.206398500 DEBUG:SerialBattery:--asy_connect_and_scrape(): reconnect
2023-11-03 09:06:18.216559500 INFO:SerialBattery:--asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be                                                       found!
2023-11-03 09:06:20.861465500 INFO:SerialBattery:--asy_connect_and_scrape(): Exit
2023-11-03 09:06:25.340853500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2023-11-03 09:06:25.341309500 ERROR:SerialBattery:ERROR >>No battery connection at Jkbms_Ble
2023-11-03 09:06:25.624997500
2023-11-03 09:06:25.625470500 INFO:Bluetooth details
2023-11-03 09:06:25.631052500 [CHG] Device 20:22:08:25:17:41 RSSI: -47
2023-11-03 09:06:25.631062500 [CHG] Device 20:22:08:25:17:41 RSSI: -47
^X2023-11-03 09:06:25.695545500 Attempting to disconnect from 20:22:08:25:17:41
2023-11-03 09:06:25.695552500 Successful disconnected
^Z
[4]+  Stopped(SIGTSTP)        tail -F -n 100 /data/log/dbus-blebattery.*/current | tai64nlocal
root@raspberrypi2:~# tail -F -n 100 /data/log/dbus-blebattery.*/current | tai64nlocal
2023-11-03 09:11:47.247730500 DEBUG:SerialBattery:--asy_connect_and_scrape(): Connect and scrape on address: 20:22:08:25:17:41
2023-11-03 09:11:47.618362500 DEBUG:SerialBattery:--asy_connect_and_scrape(): btloop
2023-11-03 09:11:47.618814500 DEBUG:SerialBattery:--asy_connect_and_scrape(): reconnect
2023-11-03 09:11:48.878702500 INFO:SerialBattery:--asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be                                                       found!
2023-11-03 09:11:50.857975500 INFO:SerialBattery:--asy_connect_and_scrape(): Exit
2023-11-03 09:11:56.758682500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2023-11-03 09:11:56.759158500 ERROR:SerialBattery:ERROR >>No battery connection at Jkbms_Ble
2023-11-03 09:11:57.054783500
2023-11-03 09:11:57.054937500 INFO:Bluetooth details
2023-11-03 09:11:57.060602500 [CHG] Device 20:22:08:25:17:41 RSSI: -48
2023-11-03 09:11:57.060613500 [CHG] Device 20:22:08:25:17:41 RSSI: -47
2023-11-03 09:11:57.132190500 Attempting to disconnect from 20:22:08:25:17:41
2023-11-03 09:11:57.132197500 Successful disconnected
2023-11-03 09:12:02.199848500 Device 20:22:08:25:17:41 (public)
2023-11-03 09:12:02.199854500   Alias: JK_BD4A24S04
2023-11-03 09:12:02.199857500   Paired: no
2023-11-03 09:12:02.199858500   Trusted: yes
2023-11-03 09:12:02.199860500   Blocked: no
2023-11-03 09:12:02.199862500   Connected: no
2023-11-03 09:12:02.199864500   LegacyPairing: no
2023-11-03 09:12:02.199866500   RSSI: -48
2023-11-03 09:12:02.200766500
2023-11-03 09:12:03.381712500 INFO:SerialBattery:
2023-11-03 09:12:03.382177500 INFO:SerialBattery:Starting dbus-serialbattery
2023-11-03 09:12:03.383214500 INFO:SerialBattery:dbus-serialbattery v1.0.20231102dev
2023-11-03 09:12:03.780587500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:12:03.781034500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:12:03.784330500 DEBUG:SerialBattery:scraping thread started -main thread id: 1996177424 scraping thread: 1979614304
2023-11-03 09:12:03.786206500 DEBUG:SerialBattery:--asy_connect_and_scrape(): Connect and scrape on address: 20:22:08:25:17:41
2023-11-03 09:12:04.130843500 DEBUG:SerialBattery:--asy_connect_and_scrape(): btloop
2023-11-03 09:12:04.131251500 DEBUG:SerialBattery:--asy_connect_and_scrape(): reconnect
2023-11-03 09:12:05.345878500 INFO:SerialBattery:--asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be                                                       found!
2023-11-03 09:12:07.854534500 INFO:SerialBattery:--asy_connect_and_scrape(): Exit
2023-11-03 09:12:13.314308500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2023-11-03 09:12:13.314317500 ERROR:SerialBattery:ERROR >>No battery connection at Jkbms_Ble
2023-11-03 09:12:13.620864500 [CHG] Device 20:22:08:25:17:41 RSSI: -48
2023-11-03 09:12:13.620871500 [CHG] Device 20:22:08:25:17:41 RSSI: -48
2023-11-03 09:12:13.623809500
2023-11-03 09:12:13.624064500 INFO:Bluetooth details
2023-11-03 09:12:13.678466500 Attempting to disconnect from 20:22:08:25:17:41
2023-11-03 09:12:13.678473500 Successful disconnected
2023-11-03 09:12:18.748205500 Device 20:22:08:25:17:41 (public)
2023-11-03 09:12:18.748214500   Alias: JK_BD4A24S04
2023-11-03 09:12:18.748219500   Paired: no
2023-11-03 09:12:18.748223500   Trusted: yes
2023-11-03 09:12:18.748227500   Blocked: no
2023-11-03 09:12:18.748229500   Connected: no
2023-11-03 09:12:18.748231500   LegacyPairing: no
2023-11-03 09:12:18.748233500   RSSI: -52
2023-11-03 09:12:19.094983500
2023-11-03 09:12:19.934348500 INFO:SerialBattery:
2023-11-03 09:12:19.934919500 INFO:SerialBattery:Starting dbus-serialbattery
2023-11-03 09:12:19.935943500 INFO:SerialBattery:dbus-serialbattery v1.0.20231102dev
2023-11-03 09:12:20.346197500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:12:20.346660500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:12:20.350186500 DEBUG:SerialBattery:scraping thread started -main thread id: 1995964432 scraping thread: 1979401312
2023-11-03 09:12:20.352359500 DEBUG:SerialBattery:--asy_connect_and_scrape(): Connect and scrape on address: 20:22:08:25:17:41
2023-11-03 09:12:20.732746500 DEBUG:SerialBattery:--asy_connect_and_scrape(): btloop
2023-11-03 09:12:20.733257500 DEBUG:SerialBattery:--asy_connect_and_scrape(): reconnect
2023-11-03 09:12:21.397051500 INFO:SerialBattery:--asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be                                                       found!
2023-11-03 09:12:23.854129500 INFO:SerialBattery:--asy_connect_and_scrape(): Exit
2023-11-03 09:12:29.876574500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2023-11-03 09:12:29.877076500 ERROR:SerialBattery:ERROR >>No battery connection at Jkbms_Ble
2023-11-03 09:12:30.161863500
2023-11-03 09:12:30.162003500 INFO:Bluetooth details
2023-11-03 09:12:30.180287500 [CHG] Device 20:22:08:25:17:41 RSSI: -52
2023-11-03 09:12:30.180295500 [CHG] Device 20:22:08:25:17:41 RSSI: -46
2023-11-03 09:12:30.248749500 Attempting to disconnect from 20:22:08:25:17:41
2023-11-03 09:12:30.248780500 [CHG] Device 4F:CF:59:55:62:6E TxPower is nil
2023-11-03 09:12:30.248784500 [CHG] Device 4F:CF:59:55:62:6E RSSI is nil
2023-11-03 09:12:30.248788500 [CHG] Device D8:E3:5E:A5:4C:BF TxPower is nil
2023-11-03 09:12:30.248791500 [CHG] Device D8:E3:5E:A5:4C:BF RSSI is nil
2023-11-03 09:12:30.248795500 [CHG] Device 6F:F2:99:5B:BE:32 TxPower is nil
2023-11-03 09:12:30.248799500 [CHG] Device 6F:F2:99:5B:BE:32 RSSI is nil
2023-11-03 09:12:30.248978500 [CHG] Device A5:C2:37:01:AD:77 RSSI is nil
2023-11-03 09:12:30.248982500 [CHG] Device 20:22:08:25:17:41 RSSI is nil
2023-11-03 09:12:30.248986500 [CHG] Device 6B:52:83:FD:5D:A4 TxPower is nil
2023-11-03 09:12:30.248989500 [CHG] Device 6B:52:83:FD:5D:A4 RSSI is nil
2023-11-03 09:12:30.248993500 [CHG] Controller B8:27:EB:2A:55:5A Discovering: no
2023-11-03 09:12:30.249020500 Successful disconnected
2023-11-03 09:12:35.317228500 Device 20:22:08:25:17:41 (public)
2023-11-03 09:12:35.317235500   Alias: JK_BD4A24S04
2023-11-03 09:12:35.317237500   Paired: no
2023-11-03 09:12:35.317238500   Trusted: yes
2023-11-03 09:12:35.317240500   Blocked: no
2023-11-03 09:12:35.317242500   Connected: no
2023-11-03 09:12:35.317244500   LegacyPairing: no
2023-11-03 09:12:35.317246500   RSSI: -48
2023-11-03 09:12:35.319718500
2023-11-03 09:12:36.480806500 INFO:SerialBattery:
2023-11-03 09:12:36.481264500 INFO:SerialBattery:Starting dbus-serialbattery
2023-11-03 09:12:36.482228500 INFO:SerialBattery:dbus-serialbattery v1.0.20231102dev
2023-11-03 09:12:36.873187500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:12:36.873752500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:12:36.877620500 DEBUG:SerialBattery:scraping thread started -main thread id: 1995681808 scraping thread: 1979118688
2023-11-03 09:12:36.881145500 DEBUG:SerialBattery:--asy_connect_and_scrape(): Connect and scrape on address: 20:22:08:25:17:41
2023-11-03 09:12:37.287575500 DEBUG:SerialBattery:--asy_connect_and_scrape(): btloop
2023-11-03 09:12:37.288067500 DEBUG:SerialBattery:--asy_connect_and_scrape(): reconnect
2023-11-03 09:12:38.380015500 INFO:SerialBattery:--asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be                                                       found!
2023-11-03 09:12:40.855999500 INFO:SerialBattery:--asy_connect_and_scrape(): Exit
^C
root@raspberrypi2:~# tail -F -n 100 /data/log/dbus-blebattery.*/current | tai64nlocal
2023-11-03 09:12:46.763798500 Attempting to disconnect from 20:22:08:25:17:41
2023-11-03 09:12:46.763805500 Successful disconnected
2023-11-03 09:12:51.829782500 Device 20:22:08:25:17:41 (public)
2023-11-03 09:12:51.829790500   Alias: JK_BD4A24S04
2023-11-03 09:12:51.829793500   Paired: no
2023-11-03 09:12:51.829794500   Trusted: yes
2023-11-03 09:12:51.829796500   Blocked: no
2023-11-03 09:12:51.829798500   Connected: no
2023-11-03 09:12:51.829800500   LegacyPairing: no
2023-11-03 09:12:51.829802500   RSSI: -48
2023-11-03 09:12:51.830111500
2023-11-03 09:12:52.990721500 INFO:SerialBattery:
2023-11-03 09:12:52.991210500 INFO:SerialBattery:Starting dbus-serialbattery
2023-11-03 09:12:52.992271500 INFO:SerialBattery:dbus-serialbattery v1.0.20231102dev
2023-11-03 09:12:53.384615500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:12:53.385091500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:12:53.388463500 DEBUG:SerialBattery:scraping thread started -main thread id: 1996333072 scraping thread: 1979769952
2023-11-03 09:12:53.390645500 DEBUG:SerialBattery:--asy_connect_and_scrape(): Connect and scrape on address: 20:22:08:25:17:41
2023-11-03 09:12:53.777252500 DEBUG:SerialBattery:--asy_connect_and_scrape(): btloop
2023-11-03 09:12:53.778000500 DEBUG:SerialBattery:--asy_connect_and_scrape(): reconnect
2023-11-03 09:12:55.207066500 INFO:SerialBattery:--asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be                                                       found!
2023-11-03 09:12:57.857162500 INFO:SerialBattery:--asy_connect_and_scrape(): Exit
2023-11-03 09:13:02.901465500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2023-11-03 09:13:02.901936500 ERROR:SerialBattery:ERROR >>No battery connection at Jkbms_Ble
2023-11-03 09:13:03.203365500
2023-11-03 09:13:03.203369500 INFO:Bluetooth details
2023-11-03 09:13:03.210883500 [CHG] Device 20:22:08:25:17:41 RSSI: -48
2023-11-03 09:13:03.210891500 [CHG] Device 20:22:08:25:17:41 RSSI: -47
2023-11-03 09:13:03.288520500 Attempting to disconnect from 20:22:08:25:17:41
2023-11-03 09:13:03.288528500 Successful disconnected
2023-11-03 09:13:08.357770500 Device 20:22:08:25:17:41 (public)
2023-11-03 09:13:08.357776500   Alias: JK_BD4A24S04
2023-11-03 09:13:08.357778500   Paired: no
2023-11-03 09:13:08.357780500   Trusted: yes
2023-11-03 09:13:08.357782500   Blocked: no
2023-11-03 09:13:08.357784500   Connected: no
2023-11-03 09:13:08.357785500   LegacyPairing: no
2023-11-03 09:13:08.357787500   RSSI: -48
2023-11-03 09:13:08.359455500
2023-11-03 09:13:09.511649500 INFO:SerialBattery:
2023-11-03 09:13:09.512110500 INFO:SerialBattery:Starting dbus-serialbattery
2023-11-03 09:13:09.513124500 INFO:SerialBattery:dbus-serialbattery v1.0.20231102dev
2023-11-03 09:13:09.909878500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:13:09.910356500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:13:09.913542500 DEBUG:SerialBattery:scraping thread started -main thread id: 1995583504 scraping thread: 1979020384
2023-11-03 09:13:09.915709500 DEBUG:SerialBattery:--asy_connect_and_scrape(): Connect and scrape on address: 20:22:08:25:17:41
2023-11-03 09:13:10.277797500 DEBUG:SerialBattery:--asy_connect_and_scrape(): btloop
2023-11-03 09:13:10.278251500 DEBUG:SerialBattery:--asy_connect_and_scrape(): reconnect
2023-11-03 09:13:11.314827500 INFO:SerialBattery:--asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be                                                       found!
2023-11-03 09:13:13.861963500 INFO:SerialBattery:--asy_connect_and_scrape(): Exit
2023-11-03 09:13:19.426495500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2023-11-03 09:13:19.662710500 ERROR:SerialBattery:ERROR >>No battery connection at Jkbms_Ble
2023-11-03 09:13:19.717219500
2023-11-03 09:13:19.717331500 INFO:Bluetooth details
2023-11-03 09:13:19.729863500 [CHG] Device 20:22:08:25:17:41 RSSI: -48
2023-11-03 09:13:19.729871500 [CHG] Device 20:22:08:25:17:41 RSSI: -46
2023-11-03 09:13:19.787215500 Attempting to disconnect from 20:22:08:25:17:41
2023-11-03 09:13:19.787223500 Successful disconnected
2023-11-03 09:13:24.874304500 Device 20:22:08:25:17:41 (public)
2023-11-03 09:13:24.874311500   Alias: JK_BD4A24S04
2023-11-03 09:13:24.874314500   Paired: no
2023-11-03 09:13:24.874315500   Trusted: yes
2023-11-03 09:13:24.874317500   Blocked: no
2023-11-03 09:13:24.874319500   Connected: no
2023-11-03 09:13:24.874321500   LegacyPairing: no
2023-11-03 09:13:24.874323500   RSSI: -48
2023-11-03 09:13:24.874665500
2023-11-03 09:13:26.024393500 INFO:SerialBattery:
2023-11-03 09:13:26.025124500 INFO:SerialBattery:Starting dbus-serialbattery
2023-11-03 09:13:26.026244500 INFO:SerialBattery:dbus-serialbattery v1.0.20231102dev
2023-11-03 09:13:26.418288500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:13:26.430129500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:13:26.430137500 DEBUG:SerialBattery:scraping thread started -main thread id: 1996029968 scraping thread: 1979466848
2023-11-03 09:13:26.430142500 DEBUG:SerialBattery:--asy_connect_and_scrape(): Connect and scrape on address: 20:22:08:25:17:41
2023-11-03 09:13:26.775328500 DEBUG:SerialBattery:--asy_connect_and_scrape(): btloop
2023-11-03 09:13:26.775742500 DEBUG:SerialBattery:--asy_connect_and_scrape(): reconnect
2023-11-03 09:13:27.358005500 INFO:SerialBattery:--asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be                                                       found!
^X2023-11-03 09:13:29.866394500 INFO:SerialBattery:--asy_connect_and_scrape(): Exit
^Z
[5]+  Stopped(SIGTSTP)        tail -F -n 100 /data/log/dbus-blebattery.*/current | tai64nlocal
root@raspberrypi2:~# tail -F -n 100 /data/log/dbus-blebattery.*/current | tai64nlocal
2023-11-03 09:12:46.763798500 Attempting to disconnect from 20:22:08:25:17:41
2023-11-03 09:12:46.763805500 Successful disconnected
2023-11-03 09:12:51.829782500 Device 20:22:08:25:17:41 (public)
2023-11-03 09:12:51.829790500   Alias: JK_BD4A24S04
2023-11-03 09:12:51.829793500   Paired: no
2023-11-03 09:12:51.829794500   Trusted: yes
2023-11-03 09:12:51.829796500   Blocked: no
2023-11-03 09:12:51.829798500   Connected: no
2023-11-03 09:12:51.829800500   LegacyPairing: no
2023-11-03 09:12:51.829802500   RSSI: -48
2023-11-03 09:12:51.830111500
2023-11-03 09:12:52.990721500 INFO:SerialBattery:
2023-11-03 09:12:52.991210500 INFO:SerialBattery:Starting dbus-serialbattery
2023-11-03 09:12:52.992271500 INFO:SerialBattery:dbus-serialbattery v1.0.20231102dev
2023-11-03 09:12:53.384615500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:12:53.385091500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:12:53.388463500 DEBUG:SerialBattery:scraping thread started -main thread id: 1996333072 scraping thread: 1979769952
2023-11-03 09:12:53.390645500 DEBUG:SerialBattery:--asy_connect_and_scrape(): Connect and scrape on address: 20:22:08:25:17:41
2023-11-03 09:12:53.777252500 DEBUG:SerialBattery:--asy_connect_and_scrape(): btloop
2023-11-03 09:12:53.778000500 DEBUG:SerialBattery:--asy_connect_and_scrape(): reconnect
2023-11-03 09:12:55.207066500 INFO:SerialBattery:--asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!
2023-11-03 09:12:57.857162500 INFO:SerialBattery:--asy_connect_and_scrape(): Exit
2023-11-03 09:13:02.901465500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2023-11-03 09:13:02.901936500 ERROR:SerialBattery:ERROR >>No battery connection at Jkbms_Ble
2023-11-03 09:13:03.203365500
2023-11-03 09:13:03.203369500 INFO:Bluetooth details
2023-11-03 09:13:03.210883500 [CHG] Device 20:22:08:25:17:41 RSSI: -48
2023-11-03 09:13:03.210891500 [CHG] Device 20:22:08:25:17:41 RSSI: -47
2023-11-03 09:13:03.288520500 Attempting to disconnect from 20:22:08:25:17:41
2023-11-03 09:13:03.288528500 Successful disconnected
2023-11-03 09:13:08.357770500 Device 20:22:08:25:17:41 (public)
2023-11-03 09:13:08.357776500   Alias: JK_BD4A24S04
2023-11-03 09:13:08.357778500   Paired: no
2023-11-03 09:13:08.357780500   Trusted: yes
2023-11-03 09:13:08.357782500   Blocked: no
2023-11-03 09:13:08.357784500   Connected: no
2023-11-03 09:13:08.357785500   LegacyPairing: no
2023-11-03 09:13:08.357787500   RSSI: -48
2023-11-03 09:13:08.359455500
2023-11-03 09:13:09.511649500 INFO:SerialBattery:
2023-11-03 09:13:09.512110500 INFO:SerialBattery:Starting dbus-serialbattery
2023-11-03 09:13:09.513124500 INFO:SerialBattery:dbus-serialbattery v1.0.20231102dev
2023-11-03 09:13:09.909878500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:13:09.910356500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:13:09.913542500 DEBUG:SerialBattery:scraping thread started -main thread id: 1995583504 scraping thread: 1979020384
2023-11-03 09:13:09.915709500 DEBUG:SerialBattery:--asy_connect_and_scrape(): Connect and scrape on address: 20:22:08:25:17:41
2023-11-03 09:13:10.277797500 DEBUG:SerialBattery:--asy_connect_and_scrape(): btloop
2023-11-03 09:13:10.278251500 DEBUG:SerialBattery:--asy_connect_and_scrape(): reconnect
2023-11-03 09:13:11.314827500 INFO:SerialBattery:--asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!
2023-11-03 09:13:13.861963500 INFO:SerialBattery:--asy_connect_and_scrape(): Exit
2023-11-03 09:13:19.426495500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2023-11-03 09:13:19.662710500 ERROR:SerialBattery:ERROR >>No battery connection at Jkbms_Ble
2023-11-03 09:13:19.717219500
2023-11-03 09:13:19.717331500 INFO:Bluetooth details
2023-11-03 09:13:19.729863500 [CHG] Device 20:22:08:25:17:41 RSSI: -48
2023-11-03 09:13:19.729871500 [CHG] Device 20:22:08:25:17:41 RSSI: -46
2023-11-03 09:13:19.787215500 Attempting to disconnect from 20:22:08:25:17:41
2023-11-03 09:13:19.787223500 Successful disconnected
2023-11-03 09:13:24.874304500 Device 20:22:08:25:17:41 (public)
2023-11-03 09:13:24.874311500   Alias: JK_BD4A24S04
2023-11-03 09:13:24.874314500   Paired: no
2023-11-03 09:13:24.874315500   Trusted: yes
2023-11-03 09:13:24.874317500   Blocked: no
2023-11-03 09:13:24.874319500   Connected: no
2023-11-03 09:13:24.874321500   LegacyPairing: no
2023-11-03 09:13:24.874323500   RSSI: -48
2023-11-03 09:13:24.874665500
2023-11-03 09:13:26.024393500 INFO:SerialBattery:
2023-11-03 09:13:26.025124500 INFO:SerialBattery:Starting dbus-serialbattery
2023-11-03 09:13:26.026244500 INFO:SerialBattery:dbus-serialbattery v1.0.20231102dev
2023-11-03 09:13:26.418288500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:13:26.430129500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:13:26.430137500 DEBUG:SerialBattery:scraping thread started -main thread id: 1996029968 scraping thread: 1979466848
2023-11-03 09:13:26.430142500 DEBUG:SerialBattery:--asy_connect_and_scrape(): Connect and scrape on address: 20:22:08:25:17:41
2023-11-03 09:13:26.775328500 DEBUG:SerialBattery:--asy_connect_and_scrape(): btloop
2023-11-03 09:13:26.775742500 DEBUG:SerialBattery:--asy_connect_and_scrape(): reconnect
2023-11-03 09:13:27.358005500 INFO:SerialBattery:--asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!
2023-11-03 09:13:29.866394500 INFO:SerialBattery:--asy_connect_and_scrape(): Exit
2023-11-03 09:13:35.935964500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2023-11-03 09:13:35.936645500 ERROR:SerialBattery:ERROR >>No battery connection at Jkbms_Ble
2023-11-03 09:13:36.268938500
2023-11-03 09:13:36.269056500 INFO:Bluetooth details
2023-11-03 09:13:36.288821500 [CHG] Device 20:22:08:25:17:41 RSSI: -48
2023-11-03 09:13:36.288829500 [CHG] Device 20:22:08:25:17:41 RSSI: -48
2023-11-03 09:13:36.348507500 Attempting to disconnect from 20:22:08:25:17:41
2023-11-03 09:13:36.348514500 Successful disconnected
2023-11-03 09:13:41.429621500 Device 20:22:08:25:17:41 (public)
2023-11-03 09:13:41.429627500   Alias: JK_BD4A24S04
2023-11-03 09:13:41.429629500   Paired: no
2023-11-03 09:13:41.429631500   Trusted: yes
2023-11-03 09:13:41.429632500   Blocked: no
2023-11-03 09:13:41.429634500   Connected: no
2023-11-03 09:13:41.429636500   LegacyPairing: no
2023-11-03 09:13:41.429638500   RSSI: -48
2023-11-03 09:13:41.432032500
2023-11-03 09:13:42.603780500 INFO:SerialBattery:
2023-11-03 09:13:42.604373500 INFO:SerialBattery:Starting dbus-serialbattery
2023-11-03 09:13:42.605391500 INFO:SerialBattery:dbus-serialbattery v1.0.20231102dev
2023-11-03 09:13:42.992247500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:13:42.992703500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:13:42.996251500 DEBUG:SerialBattery:scraping thread started -main thread id: 1996234768 scraping thread: 1979671648
2023-11-03 09:13:42.998476500 DEBUG:SerialBattery:--asy_connect_and_scrape(): Connect and scrape on address: 20:22:08:25:17:41
2023-11-03 09:13:43.393801500 DEBUG:SerialBattery:--asy_connect_and_scrape(): btloop
2023-11-03 09:13:43.394461500 DEBUG:SerialBattery:--asy_connect_and_scrape(): reconnect
2023-11-03 09:13:44.318921500 INFO:SerialBattery:--asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!
2023-11-03 09:13:46.857491500 INFO:SerialBattery:--asy_connect_and_scrape(): Exit
2023-11-03 09:13:52.511305500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2023-11-03 09:13:52.511774500 ERROR:SerialBattery:ERROR >>No battery connection at Jkbms_Ble
2023-11-03 09:13:52.811312500
2023-11-03 09:13:52.811441500 INFO:Bluetooth details
2023-11-03 09:13:52.833457500 [CHG] Device 20:22:08:25:17:41 RSSI: -48
2023-11-03 09:13:52.833464500 [CHG] Device 20:22:08:25:17:41 RSSI: -48
2023-11-03 09:13:52.885804500 Attempting to disconnect from 20:22:08:25:17:41
2023-11-03 09:13:52.885812500 [CHG] Device D8:E3:5E:A5:4C:BF TxPower is nil
2023-11-03 09:13:52.885816500 [CHG] Device D8:E3:5E:A5:4C:BF RSSI is nil
2023-11-03 09:13:52.885819500 [CHG] Device 6B:52:83:FD:5D:A4 TxPower is nil
2023-11-03 09:13:52.885823500 [CHG] Device 6B:52:83:FD:5D:A4 RSSI is nil
2023-11-03 09:13:52.885827500 [CHG] Device 4F:CF:59:55:62:6E TxPower is nil
2023-11-03 09:13:52.885831500 [CHG] Device 4F:CF:59:55:62:6E RSSI is nil
2023-11-03 09:13:52.885991500 [CHG] Device A5:C2:37:01:AD:77 RSSI is nil
2023-11-03 09:13:52.885996500 [CHG] Device 6F:F2:99:5B:BE:32 TxPower is nil
2023-11-03 09:13:52.885999500 [CHG] Device 6F:F2:99:5B:BE:32 RSSI is nil
2023-11-03 09:13:52.886003500 [CHG] Device 20:22:08:25:17:41 RSSI is nil
2023-11-03 09:13:52.886007500 [CHG] Controller B8:27:EB:2A:55:5A Discovering: no
2023-11-03 09:13:52.886034500 Successful disconnected
2023-11-03 09:13:57.953844500 Device 20:22:08:25:17:41 (public)
2023-11-03 09:13:57.953851500   Alias: JK_BD4A24S04
2023-11-03 09:13:57.953853500   Paired: no
2023-11-03 09:13:57.953854500   Trusted: yes
2023-11-03 09:13:57.953856500   Blocked: no
2023-11-03 09:13:57.953858500   Connected: no
2023-11-03 09:13:57.953860500   LegacyPairing: no
2023-11-03 09:13:57.953862500   RSSI: -48
2023-11-03 09:13:57.954957500
2023-11-03 09:13:59.073141500 INFO:SerialBattery:
2023-11-03 09:13:59.073811500 INFO:SerialBattery:Starting dbus-serialbattery
2023-11-03 09:13:59.074983500 INFO:SerialBattery:dbus-serialbattery v1.0.20231102dev
2023-11-03 09:13:59.475934500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:13:59.476630500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:13:59.480352500 DEBUG:SerialBattery:scraping thread started -main thread id: 1995616272 scraping thread: 1979053152
2023-11-03 09:13:59.482483500 DEBUG:SerialBattery:--asy_connect_and_scrape(): Connect and scrape on address: 20:22:08:25:17:41
2023-11-03 09:13:59.855391500 DEBUG:SerialBattery:--asy_connect_and_scrape(): btloop
2023-11-03 09:13:59.856167500 DEBUG:SerialBattery:--asy_connect_and_scrape(): reconnect
2023-11-03 09:14:01.228275500 INFO:SerialBattery:--asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!
2023-11-03 09:14:03.854887500 INFO:SerialBattery:--asy_connect_and_scrape(): Exit
2023-11-03 09:14:09.004290500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2023-11-03 09:14:09.004298500 ERROR:SerialBattery:ERROR >>No battery connection at Jkbms_Ble
2023-11-03 09:14:09.286619500
2023-11-03 09:14:09.286738500 INFO:Bluetooth details
2023-11-03 09:14:09.297011500 [CHG] Device 20:22:08:25:17:41 RSSI: -48
2023-11-03 09:14:09.297019500 [CHG] Device 20:22:08:25:17:41 RSSI: -52
2023-11-03 09:14:09.355809500 Attempting to disconnect from 20:22:08:25:17:41
2023-11-03 09:14:09.355816500 Successful disconnected
^Z
[6]+  Stopped(SIGTSTP)        tail -F -n 100 /data/log/dbus-blebattery.*/current | tai64nlocal
root@raspberrypi2:~# tail -F -n 100 /data/log/dbus-blebattery.*/current | tai64nlocal
2023-11-03 09:15:48.490162500 [CHG] Device 6F:F2:99:5B:BE:32 RSSI is nil
2023-11-03 09:15:48.506589500 [CHG] Device A5:C2:37:01:AD:77 RSSI is nil
2023-11-03 09:15:48.506595500 [CHG] Device D8:E3:5E:A5:4C:BF TxPower is nil
2023-11-03 09:15:48.506599500 [CHG] Device D8:E3:5E:A5:4C:BF RSSI is nil
2023-11-03 09:15:48.506602500 [CHG] Device 20:22:08:25:17:41 RSSI is nil
2023-11-03 09:15:48.506606500 [CHG] Controller B8:27:EB:2A:55:5A Discovering: no
2023-11-03 09:15:48.506721500 Successful disconnected
2023-11-03 09:15:53.575935500 Device 20:22:08:25:17:41 (public)
2023-11-03 09:15:53.575942500   Alias: JK_BD4A24S04
2023-11-03 09:15:53.575944500   Paired: no
2023-11-03 09:15:53.575946500   Trusted: yes
2023-11-03 09:15:53.575948500   Blocked: no
2023-11-03 09:15:53.575950500   Connected: no
2023-11-03 09:15:53.575951500   LegacyPairing: no
2023-11-03 09:15:53.575953500   RSSI: -52
2023-11-03 09:15:53.577755500
2023-11-03 09:15:54.708482500 INFO:SerialBattery:
2023-11-03 09:15:54.709216500 INFO:SerialBattery:Starting dbus-serialbattery
2023-11-03 09:15:54.710386500 INFO:SerialBattery:dbus-serialbattery v1.0.20231102dev
2023-11-03 09:15:55.097804500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:15:55.098491500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:15:55.101916500 DEBUG:SerialBattery:scraping thread started -main thread id: 1996132368 scraping thread: 1979569248
2023-11-03 09:15:55.104025500 DEBUG:SerialBattery:--asy_connect_and_scrape(): Connect and scrape on address: 20:22:08:25:17:41
2023-11-03 09:15:55.484377500 DEBUG:SerialBattery:--asy_connect_and_scrape(): btloop
2023-11-03 09:15:55.485104500 DEBUG:SerialBattery:--asy_connect_and_scrape(): reconnect
2023-11-03 09:15:56.371743500 INFO:SerialBattery:--asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!
2023-11-03 09:15:58.848891500 INFO:SerialBattery:--asy_connect_and_scrape(): Exit
2023-11-03 09:16:04.624303500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2023-11-03 09:16:04.624311500 ERROR:SerialBattery:ERROR >>No battery connection at Jkbms_Ble
2023-11-03 09:16:04.940349500 [CHG] Device 20:22:08:25:17:41 RSSI: -52
2023-11-03 09:16:04.940357500 [CHG] Device 20:22:08:25:17:41 RSSI: -48
2023-11-03 09:16:04.950904500
2023-11-03 09:16:04.951217500 INFO:Bluetooth details
2023-11-03 09:16:05.006631500 Attempting to disconnect from 20:22:08:25:17:41
2023-11-03 09:16:05.006638500 Successful disconnected
2023-11-03 09:16:10.075127500 Device 20:22:08:25:17:41 (public)
2023-11-03 09:16:10.075133500   Alias: JK_BD4A24S04
2023-11-03 09:16:10.075136500   Paired: no
2023-11-03 09:16:10.075137500   Trusted: yes
2023-11-03 09:16:10.075139500   Blocked: no
2023-11-03 09:16:10.075141500   Connected: no
2023-11-03 09:16:10.075143500   LegacyPairing: no
2023-11-03 09:16:10.075145500   RSSI: -47
2023-11-03 09:16:10.076534500
2023-11-03 09:16:11.277076500 INFO:SerialBattery:
2023-11-03 09:16:11.277797500 INFO:SerialBattery:Starting dbus-serialbattery
2023-11-03 09:16:11.278949500 INFO:SerialBattery:dbus-serialbattery v1.0.20231102dev
2023-11-03 09:16:11.677309500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:16:11.678097500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:16:11.681539500 DEBUG:SerialBattery:scraping thread started -main thread id: 1996443664 scraping thread: 1979880544
2023-11-03 09:16:11.683756500 DEBUG:SerialBattery:--asy_connect_and_scrape(): Connect and scrape on address: 20:22:08:25:17:41
2023-11-03 09:16:12.085998500 DEBUG:SerialBattery:--asy_connect_and_scrape(): btloop
2023-11-03 09:16:12.086902500 DEBUG:SerialBattery:--asy_connect_and_scrape(): reconnect
2023-11-03 09:16:13.317499500 INFO:SerialBattery:--asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!
2023-11-03 09:16:15.853987500 INFO:SerialBattery:--asy_connect_and_scrape(): Exit
2023-11-03 09:16:21.208647500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2023-11-03 09:16:21.208654500 ERROR:SerialBattery:ERROR >>No battery connection at Jkbms_Ble
2023-11-03 09:16:21.496949500
2023-11-03 09:16:21.497358500 INFO:Bluetooth details
2023-11-03 09:16:21.506604500 [CHG] Device 20:22:08:25:17:41 RSSI: -47
2023-11-03 09:16:21.506611500 [CHG] Device 20:22:08:25:17:41 RSSI: -48
2023-11-03 09:16:21.571132500 Attempting to disconnect from 20:22:08:25:17:41
2023-11-03 09:16:21.571139500 Successful disconnected
2023-11-03 09:16:26.644355500 Device 20:22:08:25:17:41 (public)
2023-11-03 09:16:26.644361500   Alias: JK_BD4A24S04
2023-11-03 09:16:26.644363500   Paired: no
2023-11-03 09:16:26.644365500   Trusted: yes
2023-11-03 09:16:26.644367500   Blocked: no
2023-11-03 09:16:26.644368500   Connected: no
2023-11-03 09:16:26.644370500   LegacyPairing: no
2023-11-03 09:16:26.644372500   RSSI: -52
2023-11-03 09:16:26.645993500
2023-11-03 09:16:27.836122500 INFO:SerialBattery:
2023-11-03 09:16:27.836983500 INFO:SerialBattery:Starting dbus-serialbattery
2023-11-03 09:16:27.838216500 INFO:SerialBattery:dbus-serialbattery v1.0.20231102dev
2023-11-03 09:16:28.235238500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:16:28.236060500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:16:28.239866500 DEBUG:SerialBattery:scraping thread started -main thread id: 1996345360 scraping thread: 1979782240
2023-11-03 09:16:28.242227500 DEBUG:SerialBattery:--asy_connect_and_scrape(): Connect and scrape on address: 20:22:08:25:17:41
2023-11-03 09:16:28.619230500 DEBUG:SerialBattery:--asy_connect_and_scrape(): btloop
2023-11-03 09:16:28.619969500 DEBUG:SerialBattery:--asy_connect_and_scrape(): reconnect
2023-11-03 09:16:29.343736500 INFO:SerialBattery:--asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!
2023-11-03 09:16:31.861138500 INFO:SerialBattery:--asy_connect_and_scrape(): Exit
2023-11-03 09:16:37.764276500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2023-11-03 09:16:37.764286500 ERROR:SerialBattery:ERROR >>No battery connection at Jkbms_Ble
2023-11-03 09:16:38.045158500
2023-11-03 09:16:38.045499500 INFO:Bluetooth details
2023-11-03 09:16:38.054133500 [CHG] Device 20:22:08:25:17:41 RSSI: -52
2023-11-03 09:16:38.054193500 [CHG] Device 20:22:08:25:17:41 RSSI: -52
2023-11-03 09:16:38.111596500 Attempting to disconnect from 20:22:08:25:17:41
2023-11-03 09:16:38.111602500 Successful disconnected
2023-11-03 09:16:43.194309500 Device 20:22:08:25:17:41 (public)
2023-11-03 09:16:43.194315500   Alias: JK_BD4A24S04
2023-11-03 09:16:43.194317500   Paired: no
2023-11-03 09:16:43.194319500   Trusted: yes
2023-11-03 09:16:43.194321500   Blocked: no
2023-11-03 09:16:43.194322500   Connected: no
2023-11-03 09:16:43.194324500   LegacyPairing: no
2023-11-03 09:16:43.194326500   RSSI: -52
2023-11-03 09:16:43.196750500
2023-11-03 09:16:44.313058500 INFO:SerialBattery:
2023-11-03 09:16:44.313755500 INFO:SerialBattery:Starting dbus-serialbattery
2023-11-03 09:16:44.314974500 INFO:SerialBattery:dbus-serialbattery v1.0.20231102dev
2023-11-03 09:16:44.700649500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:16:44.701334500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-03 09:16:44.704771500 DEBUG:SerialBattery:scraping thread started -main thread id: 1995481104 scraping thread: 1978917984
2023-11-03 09:16:44.706819500 DEBUG:SerialBattery:--asy_connect_and_scrape(): Connect and scrape on address: 20:22:08:25:17:41
2023-11-03 09:16:45.059795500 DEBUG:SerialBattery:--asy_connect_and_scrape(): btloop
2023-11-03 09:16:45.060511500 DEBUG:SerialBattery:--asy_connect_and_scrape(): reconnect
2023-11-03 09:16:47.201489500 INFO:SerialBattery:--asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!
2023-11-03 09:16:49.855170500 INFO:SerialBattery:--asy_connect_and_scrape(): Exit
2023-11-03 09:16:54.219555500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2023-11-03 09:16:54.220014500 ERROR:SerialBattery:ERROR >>No battery connection at Jkbms_Ble
2023-11-03 09:16:54.521818500
2023-11-03 09:16:54.522095500 INFO:Bluetooth details
2023-11-03 09:16:54.532753500 [CHG] Device 20:22:08:25:17:41 RSSI: -52
2023-11-03 09:16:54.532761500 [CHG] Device 20:22:08:25:17:41 RSSI: -48
2023-11-03 09:16:54.602741500 Attempting to disconnect from 20:22:08:25:17:41
2023-11-03 09:16:54.602747500 Successful disconnected
^Z
[7]+  Stopped(SIGTSTP)        tail -F -n 100 /data/log/dbus-blebattery.*/current | tai64nlocal
root@raspberrypi2:~# nano /data/log/dbus-blebattery.*/current
  GNU nano 4.9.3                                                                                        /data/log/dbus-blebattery.0/current
@400000006544ba4e1d374944 [^A^[[0;93m^BCHG^A^[[0m^B] Device 6F:F2:99:5B:BE:32 RSSI is nil
@400000006544ba4e1e31f13c [^A^[[0;93m^BCHG^A^[[0m^B] Device A5:C2:37:01:AD:77 RSSI is nil
@400000006544ba4e1e3208ac [^A^[[0;93m^BCHG^A^[[0m^B] Device D8:E3:5E:A5:4C:BF TxPower is nil
@400000006544ba4e1e32184c [^A^[[0;93m^BCHG^A^[[0m^B] Device D8:E3:5E:A5:4C:BF RSSI is nil
@400000006544ba4e1e322404 [^A^[[0;93m^BCHG^A^[[0m^B] Device 20:22:08:25:17:41 RSSI is nil
@400000006544ba4e1e3233a4 [^A^[[0;93m^BCHG^A^[[0m^B] Controller B8:27:EB:2A:55:5A Discovering: no
@400000006544ba4e1e33f4dc Successful disconnected
@400000006544ba532254140c Device 20:22:08:25:17:41 (public)
@400000006544ba5322542f64       Alias: JK_BD4A24S04
@400000006544ba5322543734       Paired: no
@400000006544ba5322543f04       Trusted: yes
@400000006544ba53225446d4       Blocked: no
@400000006544ba5322544ea4       Connected: no
@400000006544ba532254528c       LegacyPairing: no
@400000006544ba5322545a5c       RSSI: -52
@400000006544ba53226fd96c
@400000006544ba542a3a95c4 INFO:SerialBattery:
@400000006544ba542a45c8f4 INFO:SerialBattery:Starting dbus-serialbattery
@400000006544ba542a57a344 INFO:SerialBattery:dbus-serialbattery v1.0.20231102dev
@400000006544ba5505d460d4 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
@400000006544ba5505dedc6c INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
@400000006544ba5506131f54 DEBUG:SerialBattery:scraping thread started -main thread id: 1996132368 scraping thread: 1979569248
@400000006544ba5506334d9c DEBUG:SerialBattery:--asy_connect_and_scrape(): Connect and scrape on address: 20:22:08:25:17:41
@400000006544ba551cdf039c DEBUG:SerialBattery:--asy_connect_and_scrape(): btloop
@400000006544ba551cea1b74 DEBUG:SerialBattery:--asy_connect_and_scrape(): reconnect
@400000006544ba5616285b0c INFO:SerialBattery:--asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!
@400000006544ba5832990e6c INFO:SerialBattery:--asy_connect_and_scrape(): Exit
@400000006544ba5e25361d8c ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
@400000006544ba5e25363ccc ERROR:SerialBattery:ERROR >>No battery connection at Jkbms_Ble
@400000006544ba5e380c983c [^A^[[0;93m^BCHG^A^[[0m^B] Device 20:22:08:25:17:41 RSSI: -52
@400000006544ba5e380cb77c [^A^[[0;93m^BCHG^A^[[0m^B] Device 20:22:08:25:17:41 RSSI: -48
@400000006544ba5e38ada6b4
@400000006544ba5e38b26d5c INFO:Bluetooth details
@400000006544ba5f0065304c Attempting to disconnect from 20:22:08:25:17:41
@400000006544ba5f00654ba4 Successful disconnected
@400000006544ba64047a5acc Device 20:22:08:25:17:41 (public)
@400000006544ba64047a723c       Alias: JK_BD4A24S04
@400000006544ba64047a7df4       Paired: no
@400000006544ba64047a81dc       Trusted: yes
@400000006544ba64047a89ac       Blocked: no
@400000006544ba64047a917c       Connected: no
@400000006544ba64047a994c       LegacyPairing: no
@400000006544ba64047aa11c       RSSI: -47
@400000006544ba64048fd2e4
@400000006544ba651083da14 INFO:SerialBattery:
@400000006544ba65108eda7c INFO:SerialBattery:Starting dbus-serialbattery
@400000006544ba6510a06e7c INFO:SerialBattery:dbus-serialbattery v1.0.20231102dev
@400000006544ba65285eec3c INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
@400000006544ba65286af25c INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
@400000006544ba65289f77ac DEBUG:SerialBattery:scraping thread started -main thread id: 1996443664 scraping thread: 1979880544
@400000006544ba6528c14bd4 DEBUG:SerialBattery:--asy_connect_and_scrape(): Connect and scrape on address: 20:22:08:25:17:41
@400000006544ba6605203ba4 DEBUG:SerialBattery:--asy_connect_and_scrape(): btloop
@400000006544ba66052e06e4 DEBUG:SerialBattery:--asy_connect_and_scrape(): reconnect
@400000006544ba6712eca86c INFO:SerialBattery:--asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!
@400000006544ba6932e6d0ac INFO:SerialBattery:--asy_connect_and_scrape(): Exit
@400000006544ba6f0c6fb54c ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
@400000006544ba6f0c6fd0a4 ERROR:SerialBattery:ERROR >>No battery connection at Jkbms_Ble
@400000006544ba6f1d9ed8fc
@400000006544ba6f1da516a4 INFO:Bluetooth details

@rver2024
Copy link

rver2024 commented Nov 5, 2023

I have bluetooth connection issue on my Jkbms (JK-B2A8S20P) and the Cerbo GX running this dbus serial battery driver too. The jkbms connects to Cerbo GX fine after a reboot, but will be disconnected after a while, in which case Cerbo GX doesn’t seem to know about the disconnection and still shows the BMS on the remote console (of course without displaying the correct up-to-date battery information), I know it because the bluetooth indicator on jkbms flashes when it is not connected to something. Any advice on how to go about troubleshooting this issue? Thanks!

@mr-manuel
Copy link
Collaborator

@rver2024 this is a known issue and not yet fixed. See #720

@mr-manuel
Copy link
Collaborator

@itgenmar can you post a screenshot of the JKBMS displaying the hardware version?

@itgenmar
Copy link
Author

itgenmar commented Nov 8, 2023

Attached the Image

Screenshot_20231108_110249.jpg

@mr-manuel
Copy link
Collaborator

Sorry but the link is unavailable. Please insert the screenshot directly into GitHub.

@mr-manuel
Copy link
Collaborator

Also try the latest nightly from the dev branch. There were some relevant changes.

@itgenmar
Copy link
Author

Screenshot_20231108_110249

@itgenmar
Copy link
Author

itgenmar commented Nov 25, 2023

Still no luck, here is the log:

root@raspberrypi2:~# tail -F -n 100 /data/log/dbus-blebattery.*/current | tai64nlocal
2023-11-25 09:00:14.945526500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-25 09:00:16.929148500 INFO:SerialBattery:--> asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!
2023-11-25 09:00:19.371688500 INFO:SerialBattery:--> asy_connect_and_scrape(): Exit
2023-11-25 09:00:24.461210500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2023-11-25 09:00:24.461673500 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
2023-11-25 09:00:24.751878500
2023-11-25 09:00:24.751992500 INFO:Bluetooth details
2023-11-25 09:00:24.753956500 [CHG] Device 20:22:08:25:17:41 RSSI: -62
2023-11-25 09:00:24.753964500 [CHG] Device 20:22:08:25:17:41 RSSI: -62
2023-11-25 09:00:24.753967500 [CHG] Device 20:22:08:25:17:41 RSSI: -41
2023-11-25 09:00:24.803023500 Attempting to disconnect from 20:22:08:25:17:41
2023-11-25 09:00:24.803029500 Successful disconnected
2023-11-25 09:00:29.855923500 Device 20:22:08:25:17:41 (public)
2023-11-25 09:00:29.855930500   Alias: JK_BD4A24S04
2023-11-25 09:00:29.855932500   Paired: no
2023-11-25 09:00:29.855934500   Trusted: no
2023-11-25 09:00:29.855936500   Blocked: no
2023-11-25 09:00:29.855937500   Connected: no
2023-11-25 09:00:29.855939500   LegacyPairing: no
2023-11-25 09:00:29.855941500   RSSI: -57
2023-11-25 09:00:29.856893500
2023-11-25 09:00:31.016673500 INFO:SerialBattery:
2023-11-25 09:00:31.017238500 INFO:SerialBattery:Starting dbus-serialbattery
2023-11-25 09:00:31.018425500 INFO:SerialBattery:dbus-serialbattery v1.0.20231117dev
2023-11-25 09:00:31.496497500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-11-25 09:00:31.496963500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-25 09:00:34.203320500 INFO:SerialBattery:--> asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!
2023-11-25 09:00:36.387988500 INFO:SerialBattery:--> asy_connect_and_scrape(): Exit
2023-11-25 09:00:41.013618500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2023-11-25 09:00:41.014089500 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
2023-11-25 09:00:41.292225500
2023-11-25 09:00:41.292334500 INFO:Bluetooth details
2023-11-25 09:00:41.294299500 [CHG] Device 20:22:08:25:17:41 RSSI: -57
2023-11-25 09:00:41.294308500 [CHG] Device 20:22:08:25:17:41 RSSI: -56
2023-11-25 09:00:41.338501500 Attempting to disconnect from 20:22:08:25:17:41
2023-11-25 09:00:41.338508500 Successful disconnected
2023-11-25 09:00:46.390658500 Device 20:22:08:25:17:41 (public)
2023-11-25 09:00:46.390664500   Alias: JK_BD4A24S04
2023-11-25 09:00:46.390667500   Paired: no
2023-11-25 09:00:46.390668500   Trusted: no
2023-11-25 09:00:46.390670500   Blocked: no
2023-11-25 09:00:46.390672500   Connected: no
2023-11-25 09:00:46.390674500   LegacyPairing: no
2023-11-25 09:00:46.390676500   RSSI: -63
2023-11-25 09:00:46.392663500
2023-11-25 09:00:47.466390500 INFO:SerialBattery:
2023-11-25 09:00:47.467218500 INFO:SerialBattery:Starting dbus-serialbattery
2023-11-25 09:00:47.468530500 INFO:SerialBattery:dbus-serialbattery v1.0.20231117dev
2023-11-25 09:00:47.858728500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-11-25 09:00:47.859387500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-25 09:00:49.264848500 INFO:SerialBattery:--> asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!
2023-11-25 09:00:51.403430500 INFO:SerialBattery:--> asy_connect_and_scrape(): Exit
2023-11-25 09:00:57.374379500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2023-11-25 09:00:57.374882500 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
2023-11-25 09:00:57.655496500
2023-11-25 09:00:57.655604500 INFO:Bluetooth details
2023-11-25 09:00:57.666579500 [CHG] Device 20:22:08:25:17:41 RSSI: -63
2023-11-25 09:00:57.666585500 [CHG] Device 20:22:08:25:17:41 RSSI: -57
2023-11-25 09:00:57.714824500 Attempting to disconnect from 20:22:08:25:17:41
2023-11-25 09:00:57.714831500 Successful disconnected
2023-11-25 09:01:02.772857500 Device 20:22:08:25:17:41 (public)
2023-11-25 09:01:02.772862500   Alias: JK_BD4A24S04
2023-11-25 09:01:02.772865500   Paired: no
2023-11-25 09:01:02.772866500   Trusted: no
2023-11-25 09:01:02.772868500   Blocked: no
2023-11-25 09:01:02.772870500   Connected: no
2023-11-25 09:01:02.772872500   LegacyPairing: no
2023-11-25 09:01:02.772874500   RSSI: -62
2023-11-25 09:01:02.775143500
2023-11-25 09:01:03.876882500 INFO:SerialBattery:
2023-11-25 09:01:03.877315500 INFO:SerialBattery:Starting dbus-serialbattery
2023-11-25 09:01:03.878258500 INFO:SerialBattery:dbus-serialbattery v1.0.20231117dev
2023-11-25 09:01:04.248898500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-11-25 09:01:04.249332500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-25 09:01:07.191839500 INFO:SerialBattery:--> asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!
2023-11-25 09:01:09.375123500 INFO:SerialBattery:--> asy_connect_and_scrape(): Exit
2023-11-25 09:01:13.766384500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2023-11-25 09:01:13.766517500 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
2023-11-25 09:01:14.040521500
2023-11-25 09:01:14.040629500 INFO:Bluetooth details
2023-11-25 09:01:14.041917500 [CHG] Device 20:22:08:25:17:41 RSSI: -62
2023-11-25 09:01:14.041926500 [CHG] Device 20:22:08:25:17:41 RSSI: -56
2023-11-25 09:01:14.086145500 Attempting to disconnect from 20:22:08:25:17:41
2023-11-25 09:01:14.086152500 Successful disconnected
2023-11-25 09:01:19.142842500 Device 20:22:08:25:17:41 (public)
2023-11-25 09:01:19.142848500   Alias: JK_BD4A24S04
2023-11-25 09:01:19.142850500   Paired: no
2023-11-25 09:01:19.142852500   Trusted: no
2023-11-25 09:01:19.142853500   Blocked: no
2023-11-25 09:01:19.142855500   Connected: no
2023-11-25 09:01:19.142857500   LegacyPairing: no
2023-11-25 09:01:19.142859500   RSSI: -57
2023-11-25 09:01:19.144669500
2023-11-25 09:01:20.272112500 INFO:SerialBattery:
2023-11-25 09:01:20.272847500 INFO:SerialBattery:Starting dbus-serialbattery
2023-11-25 09:01:20.273910500 INFO:SerialBattery:dbus-serialbattery v1.0.20231117dev
2023-11-25 09:01:20.651157500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-11-25 09:01:20.651818500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-25 09:01:22.220554500 INFO:SerialBattery:--> asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!
2023-11-25 09:01:37.986973500 *** CCGX booted (0) ***
2023-11-25 09:03:51.289590500
2023-11-25 09:03:51.289596500 INFO:Bluetooth details
2023-11-25 09:03:51.334060500 Attempting to disconnect from 20:22:08:25:17:41
2023-11-25 09:03:51.334067500 Successful disconnected
2023-11-25 09:03:56.383225500 Device 20:22:08:25:17:41 (public)
2023-11-25 09:03:56.383232500   Alias: JK_BD4A24S04
2023-11-25 09:03:56.383234500   Paired: no
2023-11-25 09:03:56.383236500   Trusted: no
2023-11-25 09:03:56.383238500   Blocked: no
2023-11-25 09:03:56.383239500   Connected: no
2023-11-25 09:03:56.383241500   LegacyPairing: no
2023-11-25 09:03:56.383243500   RSSI: -56
2023-11-25 09:03:56.384455500
2023-11-25 09:03:58.180752500 INFO:SerialBattery:
2023-11-25 09:03:58.181198500 INFO:SerialBattery:Starting dbus-serialbattery
2023-11-25 09:03:58.182121500 INFO:SerialBattery:dbus-serialbattery v1.0.20231117dev
2023-11-25 09:03:58.644806500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-11-25 09:03:58.645291500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-25 09:04:03.638892500 INFO:SerialBattery:--> asy_connect_and_scrape(): error while connecti                                ng to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!
2023-11-25 09:04:05.911487500 INFO:SerialBattery:--> asy_connect_and_scrape(): Exit
2023-11-25 09:04:08.163346500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2023-11-25 09:04:08.163817500 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
2023-11-25 09:04:08.437017500
2023-11-25 09:04:08.437150500 INFO:Bluetooth details
2023-11-25 09:04:08.440587500 [CHG] Device 20:22:08:25:17:41 RSSI: -56
2023-11-25 09:04:08.440595500 [CHG] Device 20:22:08:25:17:41 RSSI: -41
2023-11-25 09:04:08.440599500 [CHG] Device 20:22:08:25:17:41 RSSI: -56
2023-11-25 09:04:08.500211500 Device 20:22:08:25:17:41 not available
2023-11-25 09:04:13.556907500 Device 20:22:08:25:17:41 (public)
2023-11-25 09:04:13.556914500   Alias: JK_BD4A24S04
2023-11-25 09:04:13.556916500   Paired: no
2023-11-25 09:04:13.556917500   Trusted: no
2023-11-25 09:04:13.556919500   Blocked: no
2023-11-25 09:04:13.556921500   Connected: no
2023-11-25 09:04:13.556923500   LegacyPairing: no
2023-11-25 09:04:13.556925500   RSSI: -63
2023-11-25 09:04:13.558490500
2023-11-25 09:04:14.641993500 INFO:SerialBattery:
2023-11-25 09:04:14.642638500 INFO:SerialBattery:Starting dbus-serialbattery
2023-11-25 09:04:14.643663500 INFO:SerialBattery:dbus-serialbattery v1.0.20231117dev
2023-11-25 09:04:15.021677500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-11-25 09:04:15.022663500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-25 09:04:16.782571500 INFO:SerialBattery:--> asy_connect_and_scrape(): error while connecti                                ng to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!
2023-11-25 09:04:18.876502500 INFO:SerialBattery:--> asy_connect_and_scrape(): Exit
2023-11-25 09:04:24.537235500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2023-11-25 09:04:24.537692500 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
2023-11-25 09:04:24.817920500
2023-11-25 09:04:24.817927500 INFO:Bluetooth details
2023-11-25 09:04:24.817931500 [CHG] Device 20:22:08:25:17:41 RSSI: -56
2023-11-25 09:04:24.868798500 Attempting to disconnect from 20:22:08:25:17:41
2023-11-25 09:04:24.868806500 Successful disconnected
2023-11-25 09:04:29.927643500 Device 20:22:08:25:17:41 (public)
2023-11-25 09:04:29.927650500   Alias: JK_BD4A24S04
2023-11-25 09:04:29.927652500   Paired: no
2023-11-25 09:04:29.927654500   Trusted: no
2023-11-25 09:04:29.927655500   Blocked: no
2023-11-25 09:04:29.927657500   Connected: no
2023-11-25 09:04:29.927659500   LegacyPairing: no
2023-11-25 09:04:29.927661500   RSSI: -56
2023-11-25 09:04:29.928550500
2023-11-25 09:04:31.021018500 INFO:SerialBattery:
2023-11-25 09:04:31.021520500 INFO:SerialBattery:Starting dbus-serialbattery
2023-11-25 09:04:31.022464500 INFO:SerialBattery:dbus-serialbattery v1.0.20231117dev
2023-11-25 09:04:31.428751500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-11-25 09:04:31.429189500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-25 09:04:34.595878500 INFO:SerialBattery:--> asy_connect_and_scrape(): error while connecti                                ng to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!
2023-11-25 09:04:36.868781500 INFO:SerialBattery:--> asy_connect_and_scrape(): Exit
2023-11-25 09:04:40.950662500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2023-11-25 09:04:40.950671500 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
2023-11-25 09:04:41.211800500
2023-11-25 09:04:41.211909500 INFO:Bluetooth details
2023-11-25 09:04:41.220100500 [CHG] Device 20:22:08:25:17:41 RSSI: -56
2023-11-25 09:04:41.220107500 [CHG] Device 20:22:08:25:17:41 RSSI: -56
2023-11-25 09:04:41.268636500 Attempting to disconnect from 20:22:08:25:17:41
2023-11-25 09:04:41.268642500 Successful disconnected
2023-11-25 09:04:46.328927500 Device 20:22:08:25:17:41 (public)
2023-11-25 09:04:46.328933500   Alias: JK_BD4A24S04
2023-11-25 09:04:46.328936500   Paired: no
2023-11-25 09:04:46.328937500   Trusted: no
2023-11-25 09:04:46.328939500   Blocked: no
2023-11-25 09:04:46.328941500   Connected: no
2023-11-25 09:04:46.328943500   LegacyPairing: no
2023-11-25 09:04:46.328945500   RSSI: -63
2023-11-25 09:04:46.330614500
2023-11-25 09:04:47.483698500 INFO:SerialBattery:
2023-11-25 09:04:47.484767500 INFO:SerialBattery:Starting dbus-serialbattery
2023-11-25 09:04:47.493340500 INFO:SerialBattery:dbus-serialbattery v1.0.20231117dev
2023-11-25 09:04:47.885499500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-11-25 09:04:47.885952500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-25 09:04:49.715702500 INFO:SerialBattery:--> asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!
2023-11-25 09:04:51.901230500 INFO:SerialBattery:--> asy_connect_and_scrape(): Exit
2023-11-25 09:04:57.401780500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2023-11-25 09:04:57.402310500 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
2023-11-25 09:04:57.680724500
2023-11-25 09:04:57.681007500 INFO:Bluetooth details
2023-11-25 09:04:57.687898500 [CHG] Device 20:22:08:25:17:41 RSSI: -63
2023-11-25 09:04:57.687905500 [CHG] Device 20:22:08:25:17:41 RSSI: -62
2023-11-25 09:04:57.729775500 Attempting to disconnect from 20:22:08:25:17:41
2023-11-25 09:04:57.729782500 Successful disconnected
2023-11-25 09:05:02.798619500 Device 20:22:08:25:17:41 (public)
2023-11-25 09:05:02.798625500   Alias: JK_BD4A24S04
2023-11-25 09:05:02.798627500   Paired: no
2023-11-25 09:05:02.798629500   Trusted: no
2023-11-25 09:05:02.798631500   Blocked: no
2023-11-25 09:05:02.798633500   Connected: no
2023-11-25 09:05:02.798635500   LegacyPairing: no
2023-11-25 09:05:02.798636500   RSSI: -56
2023-11-25 09:05:02.800541500
2023-11-25 09:05:03.892021500 INFO:SerialBattery:
2023-11-25 09:05:03.892463500 INFO:SerialBattery:Starting dbus-serialbattery
2023-11-25 09:05:03.893391500 INFO:SerialBattery:dbus-serialbattery v1.0.20231117dev
2023-11-25 09:05:04.278802500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-11-25 09:05:04.279236500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-25 09:05:06.290387500 INFO:SerialBattery:--> asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!
2023-11-25 09:05:08.904170500 INFO:SerialBattery:--> asy_connect_and_scrape(): Exit
2023-11-25 09:05:13.794480500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2023-11-25 09:05:13.794942500 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
2023-11-25 09:05:14.066718500
2023-11-25 09:05:14.066840500 INFO:Bluetooth details
2023-11-25 09:05:14.071734500 [CHG] Device 20:22:08:25:17:41 RSSI: -56
2023-11-25 09:05:14.071741500 [CHG] Device 20:22:08:25:17:41 RSSI: -56
2023-11-25 09:05:14.132645500 Attempting to disconnect from 20:22:08:25:17:41
2023-11-25 09:05:14.132652500 [CHG] Device 20:22:08:25:17:41 RSSI is nil
2023-11-25 09:05:14.132655500 [CHG] Device A5:C2:37:01:AD:77 RSSI is nil
2023-11-25 09:05:14.132659500 [CHG] Controller B8:27:EB:2A:55:5A Discovering: no
2023-11-25 09:05:14.132663500 Successful disconnected
2023-11-25 09:05:19.193937500 Device 20:22:08:25:17:41 (public)
2023-11-25 09:05:19.193943500   Alias: JK_BD4A24S04
2023-11-25 09:05:19.193946500   Paired: no
2023-11-25 09:05:19.193947500   Trusted: no
2023-11-25 09:05:19.193949500   Blocked: no
2023-11-25 09:05:19.193951500   Connected: no
2023-11-25 09:05:19.193953500   LegacyPairing: no
2023-11-25 09:05:19.193955500   RSSI: -56
2023-11-25 09:05:19.194856500
2023-11-25 09:05:20.371177500 INFO:SerialBattery:
2023-11-25 09:05:20.371901500 INFO:SerialBattery:Starting dbus-serialbattery
2023-11-25 09:05:20.372990500 INFO:SerialBattery:dbus-serialbattery v1.0.20231117dev
2023-11-25 09:05:20.769732500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-11-25 09:05:20.770404500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-25 09:05:22.698993500 INFO:SerialBattery:--> asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!
2023-11-25 09:05:24.887449500 INFO:SerialBattery:--> asy_connect_and_scrape(): Exit
2023-11-25 09:05:30.288156500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2023-11-25 09:05:30.288164500 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
2023-11-25 09:05:30.561097500
2023-11-25 09:05:30.561370500 INFO:Bluetooth details
2023-11-25 09:05:30.568488500 [CHG] Device 20:22:08:25:17:41 RSSI: -56
2023-11-25 09:05:30.568496500 [CHG] Device 20:22:08:25:17:41 RSSI: -56
2023-11-25 09:05:30.568500500 [CHG] Device 20:22:08:25:17:41 RSSI: -46
2023-11-25 09:05:30.612036500 Attempting to disconnect from 20:22:08:25:17:41
2023-11-25 09:05:30.612043500 Successful disconnected
2023-11-25 09:05:35.668543500 Device 20:22:08:25:17:41 (public)
2023-11-25 09:05:35.668549500   Alias: JK_BD4A24S04
2023-11-25 09:05:35.668552500   Paired: no
2023-11-25 09:05:35.668553500   Trusted: no
2023-11-25 09:05:35.668555500   Blocked: no
2023-11-25 09:05:35.668557500   Connected: no
2023-11-25 09:05:35.668559500   LegacyPairing: no
2023-11-25 09:05:35.668561500   RSSI: -56
2023-11-25 09:05:35.669434500
2023-11-25 09:05:36.755266500 INFO:SerialBattery:
2023-11-25 09:05:36.755677500 INFO:SerialBattery:Starting dbus-serialbattery
2023-11-25 09:05:36.756594500 INFO:SerialBattery:dbus-serialbattery v1.0.20231117dev
2023-11-25 09:05:37.143068500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-11-25 09:05:37.143508500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-25 09:05:38.780787500 INFO:SerialBattery:--> asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!
2023-11-25 09:05:40.867469500 INFO:SerialBattery:--> asy_connect_and_scrape(): Exit
2023-11-25 09:05:46.658627500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2023-11-25 09:05:46.659102500 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
2023-11-25 09:05:46.929082500
2023-11-25 09:05:46.929185500 INFO:Bluetooth details
2023-11-25 09:05:46.934554500 [CHG] Device 20:22:08:25:17:41 RSSI: -56
2023-11-25 09:05:46.934562500 [CHG] Device 20:22:08:25:17:41 RSSI: -62
2023-11-25 09:05:46.982547500 Attempting to disconnect from 20:22:08:25:17:41
2023-11-25 09:05:46.982553500 Successful disconnected
2023-11-25 09:05:52.036303500 Device 20:22:08:25:17:41 (public)
2023-11-25 09:05:52.036309500   Alias: JK_BD4A24S04
2023-11-25 09:05:52.036311500   Paired: no
2023-11-25 09:05:52.036313500   Trusted: no
2023-11-25 09:05:52.036315500   Blocked: no
2023-11-25 09:05:52.036316500   Connected: no
2023-11-25 09:05:52.036318500   LegacyPairing: no
2023-11-25 09:05:52.036320500   RSSI: -62
2023-11-25 09:05:52.038296500
2023-11-25 09:05:53.115098500 INFO:SerialBattery:
2023-11-25 09:05:53.115528500 INFO:SerialBattery:Starting dbus-serialbattery
2023-11-25 09:05:53.116444500 INFO:SerialBattery:dbus-serialbattery v1.0.20231117dev
2023-11-25 09:05:53.499294500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2023-11-25 09:05:53.499794500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2023-11-25 09:05:54.816510500 INFO:SerialBattery:--> asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!
2023-11-25 09:05:57.868027500 INFO:SerialBattery:--> asy_connect_and_scrape(): Exit

@itgenmar
Copy link
Author

itgenmar commented Nov 26, 2023

Hi it doesn't work :

root@VFIEVOX3:~# bluetoothctl
Agent registered
[CHG] Controller B8:27:EB:2A:55:5A Pairable: yes
[bluetooth]# scan on
Discovery started
[CHG] Controller B8:27:EB:2A:55:5A Discovering: yes
[CHG] Device 20:22:08:25:17:41 RSSI: -67
[NEW] Device A5:C2:37:01:AD:77 SP17S005P17S40A
[bluetooth]# scan off
Discovery stopped
[CHG] Device A5:C2:37:01:AD:77 RSSI is nil
[CHG] Device 20:22:08:25:17:41 RSSI is nil
[CHG] Controller B8:27:EB:2A:55:5A Discovering: no
[bluetooth]# connect 20:22:08:25:17:41
Attempting to connect to 20:22:08:25:17:41
[CHG] Device 20:22:08:25:17:41 Connected: yes
Connection successful
[CHG] Device 20:22:08:25:17:41 ServicesResolved: no
[CHG] Device 20:22:08:25:17:41 Connected: no
Failed to pair: org.bluez.Error.AuthenticationCanceled

@mr-manuel
Copy link
Collaborator

If you cannot connect that way, then you have another problem. Did you change the connection PIN of the BMS?

@itgenmar
Copy link
Author

itgenmar commented Nov 26, 2023 via email

@MisterX1000
Copy link

MisterX1000 commented Dec 13, 2023

Hi all,
any success here? I´m at the same point where I try to pair or connect to the jkbms without success.

Best regards
Alex

image

@itgenmar
Copy link
Author

I think your issue is easy

You need to install bleak

opkg update
opkg install python3-misc python3-pip
pip3 install bleak

@Honusnap
Copy link

Honusnap commented Jan 9, 2024

I think your issue is easy

You need to install bleak

opkg update opkg install python3-misc python3-pip pip3 install bleak

Itgenmar, did you found a solution to your problem ?

@itgenmar
Copy link
Author

itgenmar commented Jan 9, 2024

Not yet :(

@Honusnap
Copy link

Honusnap commented Jan 9, 2024

Not yet :(

Seems we got the same proplem : #909

I've opened an issue on the Bleak project : hbldh/bleak#1493
Cause it seems that even the 2 test scripts from Bleak do not work with my configuration.

My Jkbms is pretty old
Screenshot_2024-01-09-18-02-00-092_com jktech bms

I just bought a BMV 712, at 130€ i will avoid many futur fail of the system, for what i can see .. the multi layer just for bluetooth BLuez / Bleak / DbusSerial ... is prone to fail easily on every new VenusOS/other dependencies update.
Plus i got some weird slowdown since i installed the dbusserial driver, i will keep the driver installed for now and follow the resolution of this problem, i got an other Jkbms that i will swap tommorow to see if make any difference.

@Honusnap
Copy link

Not yet :(

I had the same kind of error then you had, turns out that for me the bluetooth communication ,is not "standard" enough to work with the Bleak API (it's not smart enough to me .. but it's an other problem). I've swapped my old JK for a newer one, and it work perfectly.
The Shunt i've ordered will still be usefull as a DC circuit counter, which is in fact kind mandatory for this whole system to work properly.

@pau1phi11ips
Copy link

Not yet :(

Am I correct in thinking you are connecting to the JK to a ESP HOME device and to Venus OS at the same time?

AFAIK, it can only connect to 1 device. If I power down the Venus and connect via my phone. It won't re-establish the Bluetooth connection when Venus is restarted.

@itgenmar
Copy link
Author

itgenmar commented Jan 18, 2024 via email

@itgenmar
Copy link
Author

itgenmar commented Jan 21, 2024

Just tried again with the latest night v.

 tail -F -n 100 /data/log/dbus-blebattery.*/current | tai64nlocal
2024-01-21 22:05:06.991919500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2024-01-21 22:05:06.991927500 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
2024-01-21 22:05:07.299180500 [CHG] Device 20:22:08:25:17:41 RSSI: -48
2024-01-21 22:05:07.299188500 [CHG] Device 20:22:08:25:17:41 RSSI: -48
2024-01-21 22:05:07.314368500
2024-01-21 22:05:07.314476500 INFO:Bluetooth details
2024-01-21 22:05:07.377149500 Attempting to disconnect from 20:22:08:25:17:41
2024-01-21 22:05:07.377158500 Successful disconnected
2024-01-21 22:05:12.444860500 Device 20:22:08:25:17:41 (public)
2024-01-21 22:05:12.444867500   Alias: JK_BD4A24S04
2024-01-21 22:05:12.444869500   Paired: no
2024-01-21 22:05:12.444871500   Trusted: yes
2024-01-21 22:05:12.444872500   Blocked: no
2024-01-21 22:05:12.444874500   Connected: no
2024-01-21 22:05:12.444876500   LegacyPairing: no
2024-01-21 22:05:12.444878500   RSSI: -31
2024-01-21 22:05:12.445913500
2024-01-21 22:05:27.148724500 *** CCGX booted (0) ***
2024-01-21 22:07:36.537228500
2024-01-21 22:07:36.537524500 INFO:Bluetooth details
2024-01-21 22:07:36.592828500 Attempting to disconnect from 20:22:08:25:17:41
2024-01-21 22:07:36.592835500 Successful disconnected
2024-01-21 22:07:41.677291500 Device 20:22:08:25:17:41 (public)
2024-01-21 22:07:41.677297500   Alias: JK_BD4A24S04
2024-01-21 22:07:41.677299500   Paired: no
2024-01-21 22:07:41.677301500   Trusted: yes
2024-01-21 22:07:41.677303500   Blocked: no
2024-01-21 22:07:41.677304500   Connected: no
2024-01-21 22:07:41.677306500   LegacyPairing: no
2024-01-21 22:07:41.690591500
2024-01-21 22:07:43.583273500 INFO:SerialBattery:
2024-01-21 22:07:43.583278500 INFO:SerialBattery:Starting dbus-serialbattery
2024-01-21 22:07:43.583281500 INFO:SerialBattery:dbus-serialbattery v1.1.20240112dev
2024-01-21 22:07:44.494770500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2024-01-21 22:07:44.494778500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2024-01-21 22:07:55.629462500 Exception in thread Thread-1:
2024-01-21 22:07:55.629469500 Traceback (most recent call last):
2024-01-21 22:07:55.629472500   File "/opt/victronenergy/dbus-serialbattery/bms/jkbms_brn.py", line 447, in asy_connect_and_scrape
2024-01-21 22:07:55.629477500     await client.connect()
2024-01-21 22:07:55.629479500   File "/usr/lib/python3.8/site-packages/bleak/__init__.py", line 605, in connect
2024-01-21 22:07:55.629484500     return await self._backend.connect(**kwargs)
2024-01-21 22:07:55.629487500   File "/usr/lib/python3.8/site-packages/bleak/backends/bluezdbus/client.py", line 140, in connect
2024-01-21 22:07:55.629820500     raise BleakDeviceNotFoundError(
2024-01-21 22:07:55.629824500 bleak.exc.BleakDeviceNotFoundError: Device with address 20:22:08:25:17:41 was not found.
2024-01-21 22:07:55.629829500
2024-01-21 22:07:55.629830500 During handling of the above exception, another exception occurred:
2024-01-21 22:07:55.629834500
2024-01-21 22:07:55.629835500 Traceback (most recent call last):
2024-01-21 22:07:55.629838500   File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
2024-01-21 22:07:55.629881500     self.run()
2024-01-21 22:07:55.629883500   File "/usr/lib/python3.8/threading.py", line 870, in run
2024-01-21 22:07:55.629887500     self._target(*self._args, **self._kwargs)
2024-01-21 22:07:55.629890500   File "/opt/victronenergy/dbus-serialbattery/bms/jkbms_brn.py", line 433, in connect_and_scrape
2024-01-21 22:07:55.629915500     asyncio.run(self.asy_connect_and_scrape())
2024-01-21 22:07:55.629919500   File "/usr/lib/python3.8/asyncio/runners.py", line 44, in run
2024-01-21 22:07:55.629977500     return loop.run_until_complete(main)
2024-01-21 22:07:55.629980500   File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
2024-01-21 22:07:55.629985500     return future.result()
2024-01-21 22:07:55.629988500   File "/opt/victronenergy/dbus-serialbattery/bms/jkbms_brn.py", line 468, in asy_connect_and_scrape
2024-01-21 22:07:55.629993500     ) = sys.exc_info()
2024-01-21 22:07:55.629995500 NameError: name 'sys' is not defined
2024-01-21 22:07:55.719759500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2024-01-21 22:07:55.720015500 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
2024-01-21 22:07:56.027600500
2024-01-21 22:07:56.027922500 INFO:Bluetooth details
2024-01-21 22:07:56.092554500 Attempting to disconnect from 20:22:08:25:17:41
2024-01-21 22:07:56.092561500 Successful disconnected
2024-01-21 22:08:01.167482500 Device 20:22:08:25:17:41 (public)
2024-01-21 22:08:01.167489500   Alias: JK_BD4A24S04
2024-01-21 22:08:01.167491500   Paired: no
2024-01-21 22:08:01.167493500   Trusted: yes
2024-01-21 22:08:01.167494500   Blocked: no
2024-01-21 22:08:01.167496500   Connected: no
2024-01-21 22:08:01.167498500   LegacyPairing: no
2024-01-21 22:08:01.167500500   RSSI: -47
2024-01-21 22:08:01.168908500
2024-01-21 22:08:02.450731500 INFO:SerialBattery:
2024-01-21 22:08:02.451165500 INFO:SerialBattery:Starting dbus-serialbattery
2024-01-21 22:08:02.452089500 INFO:SerialBattery:dbus-serialbattery v1.1.20240112dev
2024-01-21 22:08:02.866949500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2024-01-21 22:08:02.866956500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2024-01-21 22:08:06.609934500 Exception in thread Thread-1:
2024-01-21 22:08:06.609941500 Traceback (most recent call last):
2024-01-21 22:08:06.609944500   File "/opt/victronenergy/dbus-serialbattery/bms/jkbms_brn.py", line 449, in asy_connect_and_scrape
2024-01-21 22:08:06.609949500     await client.read_gatt_char(MODEL_NBR_UUID)
2024-01-21 22:08:06.609952500   File "/usr/lib/python3.8/site-packages/bleak/__init__.py", line 711, in read_gatt_char
2024-01-21 22:08:06.609957500     return await self._backend.read_gatt_char(char_specifier, **kwargs)
2024-01-21 22:08:07.642227500   File "/usr/lib/python3.8/site-packages/bleak/backends/bluezdbus/client.py", line 728, in read_gatt_char
2024-01-21 22:08:07.642236500     raise BleakError(
2024-01-21 22:08:07.642238500 bleak.exc.BleakError: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!
2024-01-21 22:08:07.642245500
2024-01-21 22:08:07.642246500 During handling of the above exception, another exception occurred:
2024-01-21 22:08:07.642433500
2024-01-21 22:08:07.642437500 Traceback (most recent call last):
2024-01-21 22:08:07.642442500   File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
2024-01-21 22:08:07.642447500     self.run()
2024-01-21 22:08:07.642448500   File "/usr/lib/python3.8/threading.py", line 870, in run
2024-01-21 22:08:07.642452500     self._target(*self._args, **self._kwargs)
2024-01-21 22:08:07.642456500   File "/opt/victronenergy/dbus-serialbattery/bms/jkbms_brn.py", line 433, in connect_and_scrape
2024-01-21 22:08:07.642495500     asyncio.run(self.asy_connect_and_scrape())
2024-01-21 22:08:07.642582500   File "/usr/lib/python3.8/asyncio/runners.py", line 44, in run
2024-01-21 22:08:07.642586500     return loop.run_until_complete(main)
2024-01-21 22:08:07.642589500   File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
2024-01-21 22:08:07.642594500     return future.result()
2024-01-21 22:08:07.642596500   File "/opt/victronenergy/dbus-serialbattery/bms/jkbms_brn.py", line 468, in asy_connect_and_scrape
2024-01-21 22:08:07.642628500     ) = sys.exc_info()
2024-01-21 22:08:07.642645500 NameError: name 'sys' is not defined
2024-01-21 22:08:12.380734500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2024-01-21 22:08:12.381193500 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
2024-01-21 22:08:12.658504500
2024-01-21 22:08:12.658847500 INFO:Bluetooth details
2024-01-21 22:08:12.660750500 [CHG] Device 20:22:08:25:17:41 RSSI: -47
2024-01-21 22:08:12.660771500 [CHG] Device 20:22:08:25:17:41 RSSI: -55
2024-01-21 22:08:12.660775500 [CHG] Device 20:22:08:25:17:41 RSSI: -47
2024-01-21 22:08:12.711452500 Attempting to disconnect from 20:22:08:25:17:41
2024-01-21 22:08:12.711459500 Successful disconnected
2024-01-21 22:08:17.776945500 Device 20:22:08:25:17:41 (public)
2024-01-21 22:08:17.776952500   Alias: JK_BD4A24S04
2024-01-21 22:08:17.776954500   Paired: no
2024-01-21 22:08:17.776956500   Trusted: yes
2024-01-21 22:08:17.776958500   Blocked: no
2024-01-21 22:08:17.776960500   Connected: no
2024-01-21 22:08:17.776961500   LegacyPairing: no
2024-01-21 22:08:17.776963500   RSSI: -47
2024-01-21 22:08:17.777872500
2024-01-21 22:08:18.997481500 INFO:SerialBattery:
2024-01-21 22:08:18.997912500 INFO:SerialBattery:Starting dbus-serialbattery
2024-01-21 22:08:18.998956500 INFO:SerialBattery:dbus-serialbattery v1.1.20240112dev
2024-01-21 22:08:19.406087500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2024-01-21 22:08:19.406361500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2024-01-21 22:08:23.601753500 Exception in thread Thread-1:
2024-01-21 22:08:23.601796500 Traceback (most recent call last):
2024-01-21 22:08:23.601798500   File "/opt/victronenergy/dbus-serialbattery/bms/jkbms_brn.py", line 449, in asy_connect_and_scrape
2024-01-21 22:08:23.601804500     await client.read_gatt_char(MODEL_NBR_UUID)
2024-01-21 22:08:23.601807500   File "/usr/lib/python3.8/site-packages/bleak/__init__.py", line 711, in read_gatt_char
2024-01-21 22:08:23.601812500     return await self._backend.read_gatt_char(char_specifier, **kwargs)
2024-01-21 22:08:23.601941500   File "/usr/lib/python3.8/site-packages/bleak/backends/bluezdbus/client.py", line 728, in read_gatt_char
2024-01-21 22:08:23.601947500     raise BleakError(
2024-01-21 22:08:23.601949500 bleak.exc.BleakError: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!
2024-01-21 22:08:23.601955500
2024-01-21 22:08:23.601956500 During handling of the above exception, another exception occurred:
2024-01-21 22:08:23.601984500
2024-01-21 22:08:23.601985500 Traceback (most recent call last):
2024-01-21 22:08:23.601988500   File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
2024-01-21 22:08:23.601992500     self.run()
2024-01-21 22:08:23.601994500   File "/usr/lib/python3.8/threading.py", line 870, in run
2024-01-21 22:08:23.601998500     self._target(*self._args, **self._kwargs)
2024-01-21 22:08:23.602001500   File "/opt/victronenergy/dbus-serialbattery/bms/jkbms_brn.py", line 433, in connect_and_scrape
2024-01-21 22:08:23.602028500     asyncio.run(self.asy_connect_and_scrape())
2024-01-21 22:08:23.602080500   File "/usr/lib/python3.8/asyncio/runners.py", line 44, in run
2024-01-21 22:08:23.602084500     return loop.run_until_complete(main)
2024-01-21 22:08:23.602087500   File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
2024-01-21 22:08:23.602092500     return future.result()
2024-01-21 22:08:23.602094500   File "/opt/victronenergy/dbus-serialbattery/bms/jkbms_brn.py", line 468, in asy_connect_and_scrape
2024-01-21 22:08:23.602122500     ) = sys.exc_info()
2024-01-21 22:08:23.602124500 NameError: name 'sys' is not defined
2024-01-21 22:08:28.924025500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2024-01-21 22:08:28.924503500 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
2024-01-21 22:08:29.241387500
2024-01-21 22:08:29.241499500 INFO:Bluetooth details
2024-01-21 22:08:29.246319500 [CHG] Device 20:22:08:25:17:41 RSSI: -47
2024-01-21 22:08:29.246327500 [CHG] Device 20:22:08:25:17:41 RSSI: -48
2024-01-21 22:08:29.294564500 Attempting to disconnect from 20:22:08:25:17:41
2024-01-21 22:08:29.294571500 Successful disconnected
2024-01-21 22:08:34.358861500 Device 20:22:08:25:17:41 (public)
2024-01-21 22:08:34.358868500   Alias: JK_BD4A24S04
2024-01-21 22:08:34.358870500   Paired: no
2024-01-21 22:08:34.358872500   Trusted: yes
2024-01-21 22:08:34.358874500   Blocked: no
2024-01-21 22:08:34.358876500   Connected: no
2024-01-21 22:08:34.358877500   LegacyPairing: no
2024-01-21 22:08:34.358879500   RSSI: -55
2024-01-21 22:08:34.361277500
2024-01-21 22:08:35.519397500 INFO:SerialBattery:
2024-01-21 22:08:35.519897500 INFO:SerialBattery:Starting dbus-serialbattery
2024-01-21 22:08:35.520832500 INFO:SerialBattery:dbus-serialbattery v1.1.20240112dev
2024-01-21 22:08:35.915130500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2024-01-21 22:08:35.915549500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2024-01-21 22:08:39.614133500 Exception in thread Thread-1:
2024-01-21 22:08:39.614140500 Traceback (most recent call last):
2024-01-21 22:08:39.614143500   File "/opt/victronenergy/dbus-serialbattery/bms/jkbms_brn.py", line 449, in asy_connect_and_scrape
2024-01-21 22:08:39.614149500     await client.read_gatt_char(MODEL_NBR_UUID)
2024-01-21 22:08:39.614152500   File "/usr/lib/python3.8/site-packages/bleak/__init__.py", line 711, in read_gatt_char
2024-01-21 22:08:39.614157500     return await self._backend.read_gatt_char(char_specifier, **kwargs)
2024-01-21 22:08:39.614345500   File "/usr/lib/python3.8/site-packages/bleak/backends/bluezdbus/client.py", line 728, in read_gatt_char
2024-01-21 22:08:39.614351500     raise BleakError(
2024-01-21 22:08:39.614354500 bleak.exc.BleakError: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!
2024-01-21 22:08:39.614359500
2024-01-21 22:08:39.614361500 During handling of the above exception, another exception occurred:
2024-01-21 22:08:39.614390500
2024-01-21 22:08:39.614392500 Traceback (most recent call last):
2024-01-21 22:08:39.614394500   File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
2024-01-21 22:08:39.614399500     self.run()
2024-01-21 22:08:39.614401500   File "/usr/lib/python3.8/threading.py", line 870, in run
2024-01-21 22:08:39.614404500     self._target(*self._args, **self._kwargs)
2024-01-21 22:08:39.614408500   File "/opt/victronenergy/dbus-serialbattery/bms/jkbms_brn.py", line 433, in connect_and_scrape
2024-01-21 22:08:39.614434500     asyncio.run(self.asy_connect_and_scrape())
2024-01-21 22:08:39.614486500   File "/usr/lib/python3.8/asyncio/runners.py", line 44, in run
2024-01-21 22:08:39.614490500     return loop.run_until_complete(main)
2024-01-21 22:08:39.614493500   File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
2024-01-21 22:08:39.614498500     return future.result()
2024-01-21 22:08:39.614500500   File "/opt/victronenergy/dbus-serialbattery/bms/jkbms_brn.py", line 468, in asy_connect_and_scrape
2024-01-21 22:08:39.614529500     ) = sys.exc_info()
2024-01-21 22:08:39.614531500 NameError: name 'sys' is not defined
2024-01-21 22:08:45.432107500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2024-01-21 22:08:45.432575500 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
2024-01-21 22:08:45.720281500 [CHG] Device 20:22:08:25:17:41 RSSI: -55
2024-01-21 22:08:45.720290500 [CHG] Device 20:22:08:25:17:41 RSSI: -54
2024-01-21 22:08:45.725625500
2024-01-21 22:08:45.725632500 INFO:Bluetooth details
2024-01-21 22:08:45.775765500 Attempting to disconnect from 20:22:08:25:17:41
2024-01-21 22:08:45.775771500 Successful disconnected
2024-01-21 22:08:50.862229500 Device 20:22:08:25:17:41 (public)
2024-01-21 22:08:50.862235500   Alias: JK_BD4A24S04
2024-01-21 22:08:50.862238500   Paired: no
2024-01-21 22:08:50.862239500   Trusted: yes
2024-01-21 22:08:50.862241500   Blocked: no
2024-01-21 22:08:50.862243500   Connected: no
2024-01-21 22:08:50.862245500   LegacyPairing: no
2024-01-21 22:08:50.862247500   RSSI: -47
2024-01-21 22:08:50.864102500
2024-01-21 22:08:52.039616500 INFO:SerialBattery:
2024-01-21 22:08:52.040096500 INFO:SerialBattery:Starting dbus-serialbattery
2024-01-21 22:08:52.041058500 INFO:SerialBattery:dbus-serialbattery v1.1.20240112dev
2024-01-21 22:08:52.432514500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2024-01-21 22:08:52.432953500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2024-01-21 22:08:56.628095500 Exception in thread Thread-1:
2024-01-21 22:08:56.628101500 Traceback (most recent call last):
2024-01-21 22:08:56.628104500   File "/opt/victronenergy/dbus-serialbattery/bms/jkbms_brn.py", line 449, in asy_connect_and_scrape
2024-01-21 22:08:56.628109500     await client.read_gatt_char(MODEL_NBR_UUID)
2024-01-21 22:08:56.628113500   File "/usr/lib/python3.8/site-packages/bleak/__init__.py", line 711, in read_gatt_char
2024-01-21 22:08:56.628118500     return await self._backend.read_gatt_char(char_specifier, **kwargs)
2024-01-21 22:08:56.628233500   File "/usr/lib/python3.8/site-packages/bleak/backends/bluezdbus/client.py", line 728, in read_gatt_char
2024-01-21 22:08:56.628240500     raise BleakError(
2024-01-21 22:08:56.628242500 bleak.exc.BleakError: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!
2024-01-21 22:08:56.628247500
2024-01-21 22:08:56.628249500 During handling of the above exception, another exception occurred:
2024-01-21 22:08:56.628278500
2024-01-21 22:08:56.628279500 Traceback (most recent call last):
2024-01-21 22:08:56.628282500   File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
2024-01-21 22:08:56.628286500     self.run()
2024-01-21 22:08:56.628288500   File "/usr/lib/python3.8/threading.py", line 870, in run
2024-01-21 22:08:56.628292500     self._target(*self._args, **self._kwargs)
2024-01-21 22:08:56.628295500   File "/opt/victronenergy/dbus-serialbattery/bms/jkbms_brn.py", line 433, in connect_and_scrape
2024-01-21 22:08:56.628383500     asyncio.run(self.asy_connect_and_scrape())
2024-01-21 22:08:56.628438500   File "/usr/lib/python3.8/asyncio/runners.py", line 44, in run
2024-01-21 22:08:56.628442500     return loop.run_until_complete(main)
2024-01-21 22:08:56.628445500   File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
2024-01-21 22:08:56.628450500     return future.result()
2024-01-21 22:08:56.628452500   File "/opt/victronenergy/dbus-serialbattery/bms/jkbms_brn.py", line 468, in asy_connect_and_scrape
2024-01-21 22:08:56.628479500     ) = sys.exc_info()
2024-01-21 22:08:56.628482500 NameError: name 'sys' is not defined

@itgenmar
Copy link
Author

options
disable ble

@mr-manuel
Copy link
Collaborator

mr-manuel commented Jan 22, 2024

It looks like your BMS is connected to another device at the moment you restarted the driver. The JKBMS can only be connected to one device at a time.

Please also add tripple ~ in the line before and after the code to properly format it.

@Honusnap
Copy link

To check if it is connected to an other device ?.. just start the Android app and see if you can connect to the BMS, if it is connected to an other device .. it will not show in the left list.

@mr-manuel
Copy link
Collaborator

@itgenmar please take a look at #900 (comment). Maybe this solves also this issue.

@itgenmar
Copy link
Author

itgenmar commented Jan 28, 2024

Just tried it with the latest Nightly

2024-01-28 15:13:49.302534500 [CHG] Device 20:22:08:25:17:41 RSSI: -68
2024-01-28 15:13:49.346633500 Attempting to disconnect from 20:22:08:25:17:41
2024-01-28 15:13:49.346640500 Successful disconnected
2024-01-28 15:13:54.405788500 Device 20:22:08:25:17:41 (public)
2024-01-28 15:13:54.405794500   Alias: JK_BD4A24S04
2024-01-28 15:13:54.405796500   Paired: no
2024-01-28 15:13:54.405798500   Trusted: yes
2024-01-28 15:13:54.405800500   Blocked: no
2024-01-28 15:13:54.405802500   Connected: no
2024-01-28 15:13:54.405804500   LegacyPairing: no
2024-01-28 15:13:54.405806500   RSSI: -68
2024-01-28 15:13:54.408237500
2024-01-28 15:13:55.541688500 INFO:SerialBattery:
2024-01-28 15:13:55.542097500 INFO:SerialBattery:Starting dbus-serialbattery
2024-01-28 15:13:55.543002500 INFO:SerialBattery:dbus-serialbattery v1.0.20231117dev
2024-01-28 15:13:55.915031500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2024-01-28 15:13:55.915467500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2024-01-28 15:13:55.919044500 DEBUG:SerialBattery:scraping thread started -> main thread id: 1995534352 scraping thread: 1979987040
2024-01-28 15:13:55.921040500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): Connect and scrape on address: 20:22:08:25:17:41
2024-01-28 15:13:56.256824500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): btloop
2024-01-28 15:13:56.257239500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): reconnect
2024-01-28 15:13:57.870355500 INFO:SerialBattery:--> asy_connect_and_scrape(): error while connecting to bt: Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!
2024-01-28 15:14:00.521282500 INFO:SerialBattery:--> asy_connect_and_scrape(): Exit
2024-01-28 15:14:05.434178500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2024-01-28 15:14:05.434635500 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble

I just can't pair the device. I got another Bluetooth 5.0 still can't connect..

@itgenmar
Copy link
Author

And sometimes I am getting this:

2024-01-28 15:22:27.843173500 INFO:SerialBattery:
2024-01-28 15:22:27.843824500 INFO:SerialBattery:Starting dbus-serialbattery
2024-01-28 15:22:27.844843500 INFO:SerialBattery:dbus-serialbattery v1.0.20231117dev
2024-01-28 15:22:28.224290500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2024-01-28 15:22:28.224942500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2024-01-28 15:22:28.228458500 DEBUG:SerialBattery:scraping thread started -> main thread id: 1995669520 scraping thread: 1980122208
2024-01-28 15:22:28.230665500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): Connect and scrape on address: 20:22:08:25:17:41
2024-01-28 15:22:28.587299500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): btloop
2024-01-28 15:22:28.588039500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): reconnect
2024-01-28 15:22:29.352171500 INFO:SerialBattery:--> asy_connect_and_scrape(): error while connecting to bt: [org.bluez.Error.Failed] Software caused connection abort
2024-01-28 15:22:29.352991500 INFO:SerialBattery:--> asy_connect_and_scrape(): Exit
2024-01-28 15:22:52.645988500 Missing device address argument
2024-01-28 15:22:54.309052500 INFO:SerialBattery:Starting dbus-serialbattery
2024-01-28 15:22:54.310023500 INFO:SerialBattery:dbus-serialbattery v1.0.20230531
2024-01-28 15:22:54.729476500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2024-01-28 15:22:54.729949500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2024-01-28 15:23:10.384565500 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
2024-01-28 15:23:10.384573500

@itgenmar
Copy link
Author

Bluetoothctl Log

[CHG] Device 20:22:08:25:17:41 Connected: yes
[NEW] Primary Service (Handle 0x6884)
        /org/bluez/hci1/dev_20_22_08_25_17_41/service0001
        0000ffe0-0000-1000-8000-00805f9b34fb
        Unknown
[NEW] Characteristic (Handle 0x685c)
        /org/bluez/hci1/dev_20_22_08_25_17_41/service0001/char0002
        0000ffe1-0000-1000-8000-00805f9b34fb
        Unknown
[NEW] Characteristic (Handle 0x685c)
        /org/bluez/hci1/dev_20_22_08_25_17_41/service0001/char0004
        0000ffe1-0000-1000-8000-00805f9b34fb
        Unknown
[NEW] Descriptor (Handle 0x37fc)
        /org/bluez/hci1/dev_20_22_08_25_17_41/service0001/char0004/desc0006
        00002902-0000-1000-8000-00805f9b34fb
        Client Characteristic Configuration
[CHG] Device 20:22:08:25:17:41 UUIDs: 0000ffe0-0000-1000-8000-00805f9b34fb
[CHG] Device 20:22:08:25:17:41 ServicesResolved: yes
[CHG] Device 20:22:08:25:17:41 ServicesResolved: no

@mr-manuel
Copy link
Collaborator

What is the current state?

Did you make sure, that only the dbus-serialbattery is connection to the JKBMS?

From all the intel you gave it seems you are trying to connect two devices at thesame time with the JKBMS, which do not work by JKBMS design.

@mr-manuel mr-manuel added the question Further information is requested label Feb 16, 2024
@itgenmar
Copy link
Author

HI Manuel,

i made sure to disconnect all other devices, i have bought another raspberry pi and still doesn't work.

here are the logs from dbus-serial battery version: v1.1.20240128dev with Venus OS version 3.14. and attached Bluethootlctl logs

2024-02-16 12:14:35.776104500 INFO:Bluetooth details
2024-02-16 12:14:35.802350500 Attempting to disconnect from 20:22:08:25:17:41
2024-02-16 12:14:35.802356500 Successful disconnected
2024-02-16 12:14:40.847744500 Device 20:22:08:25:17:41 (public)
2024-02-16 12:14:40.847750500   Alias: JK_BD4A24S04
2024-02-16 12:14:40.847752500   Paired: no
2024-02-16 12:14:40.847754500   Trusted: yes
2024-02-16 12:14:40.847756500   Blocked: no
2024-02-16 12:14:40.847758500   Connected: no
2024-02-16 12:14:40.847759500   LegacyPairing: no
2024-02-16 12:14:40.847761500   RSSI: -52
2024-02-16 12:14:40.848721500
2024-02-16 12:14:42.689852500 INFO:SerialBattery:
2024-02-16 12:14:42.690264500 INFO:SerialBattery:Starting dbus-serialbattery
2024-02-16 12:14:42.691173500 INFO:SerialBattery:dbus-serialbattery v1.1.20240128dev
2024-02-16 12:14:43.173352500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2024-02-16 12:14:43.173819500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2024-02-16 12:14:43.177375500 DEBUG:SerialBattery:scraping thread started -> main thread id: 1995792400 scraping thread: 1968174176
2024-02-16 12:14:43.180485500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): Connect and scrape on address: 20:22:08:25:17:41
2024-02-16 12:14:43.621520500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): btloop
2024-02-16 12:14:43.622157500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): reconnect
2024-02-16 12:14:44.471306500 INFO:SerialBattery:--> asy_connect_and_scrape(): error while connecting to bt: BleakError('Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!') of type <class 'bleak.exc.BleakError'> in /opt/victronenergy/dbus-serialbattery/bms/jkbms_brn.py line #455
2024-02-16 12:14:46.660927500 INFO:SerialBattery:--> asy_connect_and_scrape(): Exit
2024-02-16 12:14:46.664185500 DEBUG:SerialBattery:scraping thread ended: reseting bluetooth and restarting
2024-02-16 12:14:46.664982500 INFO:SerialBattery:Reset of system Bluetooth daemon triggered
2024-02-16 12:14:46.795317500 [CHG] Device 20:22:08:25:17:41 RSSI: -52
2024-02-16 12:14:46.795324500 [CHG] Device 20:22:08:25:17:41 RSSI: -54
2024-02-16 12:14:46.795328500 [CHG] Device 20:22:08:25:17:41 RSSI is nil
2024-02-16 12:14:48.773704500 Starting bluetooth: bluetoothd.
2024-02-16 12:14:48.801741500 INFO:SerialBattery:System Bluetooth daemon should have been restarted
2024-02-16 12:14:50.805918500 DEBUG:SerialBattery:scraping thread started -> main thread id: 1995792400 scraping thread: 1968174176
2024-02-16 12:14:50.807668500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): Connect and scrape on address: 20:22:08:25:17:41
2024-02-16 12:14:50.808463500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): btloop
2024-02-16 12:14:50.808867500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): reconnect
2024-02-16 12:14:51.725389500 INFO:SerialBattery:--> asy_connect_and_scrape(): error while connecting to bt: BleakError('Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!') of type <class 'bleak.exc.BleakError'> in /opt/victronenergy/dbus-serialbattery/bms/jkbms_brn.py line #455
2024-02-16 12:14:53.675049500 INFO:SerialBattery:--> asy_connect_and_scrape(): Exit
2024-02-16 12:14:53.705640500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2024-02-16 12:14:53.706201500 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
2024-02-16 12:14:54.018067500
2024-02-16 12:14:54.018172500 INFO:Bluetooth details
2024-02-16 12:14:54.057696500 Attempting to disconnect from 20:22:08:25:17:41
2024-02-16 12:14:54.057702500 Successful disconnected
2024-02-16 12:14:59.107082500 Device 20:22:08:25:17:41 (public)
2024-02-16 12:14:59.107088500   Alias: JK_BD4A24S04
2024-02-16 12:14:59.107090500   Paired: no
2024-02-16 12:14:59.107092500   Trusted: yes
2024-02-16 12:14:59.107094500   Blocked: no
2024-02-16 12:14:59.107095500   Connected: no
2024-02-16 12:14:59.107097500   LegacyPairing: no
2024-02-16 12:14:59.107099500   RSSI: -51
2024-02-16 12:14:59.109409500
2024-02-16 12:15:00.310530500 INFO:SerialBattery:
2024-02-16 12:15:00.310944500 INFO:SerialBattery:Starting dbus-serialbattery
2024-02-16 12:15:00.311866500 INFO:SerialBattery:dbus-serialbattery v1.1.20240128dev
2024-02-16 12:15:00.705659500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2024-02-16 12:15:00.706227500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2024-02-16 12:15:00.710353500 DEBUG:SerialBattery:scraping thread started -> main thread id: 1996455952 scraping thread: 1971319904
2024-02-16 12:15:00.713371500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): Connect and scrape on address: 20:22:08:25:17:41
2024-02-16 12:15:01.030024500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): btloop
2024-02-16 12:15:01.030441500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): reconnect
2024-02-16 12:15:02.444238500 INFO:SerialBattery:--> asy_connect_and_scrape(): error while connecting to bt: BleakError('Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!') of type <class 'bleak.exc.BleakError'> in /opt/victronenergy/dbus-serialbattery/bms/jkbms_brn.py line #455
2024-02-16 12:15:04.695378500 INFO:SerialBattery:--> asy_connect_and_scrape(): Exit
2024-02-16 12:15:04.700729500 DEBUG:SerialBattery:scraping thread ended: reseting bluetooth and restarting
2024-02-16 12:15:04.700739500 INFO:SerialBattery:Reset of system Bluetooth daemon triggered
2024-02-16 12:15:04.827114500 [CHG] Device 20:22:08:25:17:41 RSSI: -51
2024-02-16 12:15:04.827120500 [CHG] Device 20:22:08:25:17:41 RSSI: -54
2024-02-16 12:15:04.827124500 [CHG] Device 20:22:08:25:17:41 RSSI is nil
2024-02-16 12:15:06.795482500 Starting bluetooth: bluetoothd.
2024-02-16 12:15:06.816425500 INFO:SerialBattery:System Bluetooth daemon should have been restarted
2024-02-16 12:15:08.820788500 DEBUG:SerialBattery:scraping thread started -> main thread id: 1996455952 scraping thread: 1971319904
2024-02-16 12:15:08.822856500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): Connect and scrape on address: 20:22:08:25:17:41
2024-02-16 12:15:08.823777500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): btloop
2024-02-16 12:15:08.824384500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): reconnect
2024-02-16 12:15:09.693192500 INFO:SerialBattery:--> asy_connect_and_scrape(): error while connecting to bt: BleakError('Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!') of type <class 'bleak.exc.BleakError'> in /opt/victronenergy/dbus-serialbattery/bms/jkbms_brn.py line #455
2024-02-16 12:15:11.694493500 INFO:SerialBattery:--> asy_connect_and_scrape(): Exit
2024-02-16 12:15:11.726837500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2024-02-16 12:15:11.727349500 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
2024-02-16 12:15:12.021105500
2024-02-16 12:15:12.021111500 INFO:Bluetooth details
2024-02-16 12:15:12.058186500 Attempting to disconnect from 20:22:08:25:17:41
2024-02-16 12:15:12.058191500 Successful disconnected
2024-02-16 12:15:17.115819500 Device 20:22:08:25:17:41 (public)
2024-02-16 12:15:17.115825500   Alias: JK_BD4A24S04
2024-02-16 12:15:17.115828500   Paired: no
2024-02-16 12:15:17.115829500   Trusted: yes
2024-02-16 12:15:17.115831500   Blocked: no
2024-02-16 12:15:17.115833500   Connected: no
2024-02-16 12:15:17.115835500   LegacyPairing: no
2024-02-16 12:15:17.115837500   RSSI: -51
2024-02-16 12:15:17.117106500
2024-02-16 12:15:18.286709500 INFO:SerialBattery:
2024-02-16 12:15:18.287362500 INFO:SerialBattery:Starting dbus-serialbattery
2024-02-16 12:15:18.288414500 INFO:SerialBattery:dbus-serialbattery v1.1.20240128dev
2024-02-16 12:15:18.675449500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2024-02-16 12:15:18.676165500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2024-02-16 12:15:18.680128500 DEBUG:SerialBattery:scraping thread started -> main thread id: 1995812880 scraping thread: 1970271328
2024-02-16 12:15:18.682478500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): Connect and scrape on address: 20:22:08:25:17:41
2024-02-16 12:15:18.995031500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): btloop
2024-02-16 12:15:18.995645500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): reconnect
2024-02-16 12:15:20.423946500 INFO:SerialBattery:--> asy_connect_and_scrape(): error while connecting to bt: BleakError('Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!') of type <class 'bleak.exc.BleakError'> in /opt/victronenergy/dbus-serialbattery/bms/jkbms_brn.py line #455
2024-02-16 12:15:22.685051500 INFO:SerialBattery:--> asy_connect_and_scrape(): Exit
2024-02-16 12:15:22.689953500 DEBUG:SerialBattery:scraping thread ended: reseting bluetooth and restarting
2024-02-16 12:15:22.690422500 INFO:SerialBattery:Reset of system Bluetooth daemon triggered
2024-02-16 12:15:22.796305500 [CHG] Device 20:22:08:25:17:41 RSSI: -51
2024-02-16 12:15:22.796313500 [CHG] Device 20:22:08:25:17:41 RSSI: -52
2024-02-16 12:15:22.796317500 [CHG] Device 20:22:08:25:17:41 RSSI is nil
2024-02-16 12:15:24.785675500 Starting bluetooth: bluetoothd.
2024-02-16 12:15:24.806992500 INFO:SerialBattery:System Bluetooth daemon should have been restarted
2024-02-16 12:15:26.811298500 DEBUG:SerialBattery:scraping thread started -> main thread id: 1995812880 scraping thread: 1970271328
2024-02-16 12:15:26.813208500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): Connect and scrape on address: 20:22:08:25:17:41
2024-02-16 12:15:26.814012500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): btloop
2024-02-16 12:15:26.814417500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): reconnect
2024-02-16 12:15:27.688664500 INFO:SerialBattery:--> asy_connect_and_scrape(): error while connecting to bt: BleakError('Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!') of type <class 'bleak.exc.BleakError'> in /opt/victronenergy/dbus-serialbattery/bms/jkbms_brn.py line #455
2024-02-16 12:15:29.689586500 INFO:SerialBattery:--> asy_connect_and_scrape(): Exit
2024-02-16 12:15:29.700635500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2024-02-16 12:15:29.701097500 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
2024-02-16 12:15:29.982358500
2024-02-16 12:15:29.982465500 INFO:Bluetooth details
2024-02-16 12:15:30.030227500 Attempting to disconnect from 20:22:08:25:17:41
2024-02-16 12:15:30.030235500 Successful disconnected
2024-02-16 12:15:35.080916500 Device 20:22:08:25:17:41 (public)
2024-02-16 12:15:35.080922500   Alias: JK_BD4A24S04
2024-02-16 12:15:35.080924500   Paired: no
2024-02-16 12:15:35.080926500   Trusted: yes
2024-02-16 12:15:35.080928500   Blocked: no
2024-02-16 12:15:35.080929500   Connected: no
2024-02-16 12:15:35.080931500   LegacyPairing: no
2024-02-16 12:15:35.080933500   RSSI: -51
2024-02-16 12:15:35.081864500
2024-02-16 12:15:36.284553500 INFO:SerialBattery:
2024-02-16 12:15:36.284966500 INFO:SerialBattery:Starting dbus-serialbattery
2024-02-16 12:15:36.285895500 INFO:SerialBattery:dbus-serialbattery v1.1.20240128dev
2024-02-16 12:15:36.671222500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2024-02-16 12:15:36.671646500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2024-02-16 12:15:36.676255500 DEBUG:SerialBattery:scraping thread started -> main thread id: 1996013584 scraping thread: 1970271328
2024-02-16 12:15:36.678724500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): Connect and scrape on address: 20:22:08:25:17:41
2024-02-16 12:15:37.048793500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): btloop
2024-02-16 12:15:37.049267500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): reconnect
2024-02-16 12:15:38.415632500 INFO:SerialBattery:--> asy_connect_and_scrape(): error while connecting to bt: BleakError('Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!') of type <class 'bleak.exc.BleakError'> in /opt/victronenergy/dbus-serialbattery/bms/jkbms_brn.py line #455
2024-02-16 12:15:40.673660500 INFO:SerialBattery:--> asy_connect_and_scrape(): Exit
2024-02-16 12:15:40.677058500 DEBUG:SerialBattery:scraping thread ended: reseting bluetooth and restarting
2024-02-16 12:15:40.677561500 INFO:SerialBattery:Reset of system Bluetooth daemon triggered
2024-02-16 12:15:40.839570500 [CHG] Device 20:22:08:25:17:41 RSSI: -51
2024-02-16 12:15:40.839578500 [CHG] Device 20:22:08:25:17:41 RSSI: -51
2024-02-16 12:15:40.839581500 [CHG] Device 20:22:08:25:17:41 RSSI is nil
2024-02-16 12:15:42.775755500 Starting bluetooth: bluetoothd.
2024-02-16 12:15:42.797831500 INFO:SerialBattery:System Bluetooth daemon should have been restarted
2024-02-16 12:15:44.802089500 DEBUG:SerialBattery:scraping thread started -> main thread id: 1996013584 scraping thread: 1970271328
2024-02-16 12:15:44.803920500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): Connect and scrape on address: 20:22:08:25:17:41
2024-02-16 12:15:44.804749500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): btloop
2024-02-16 12:15:44.805163500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): reconnect
2024-02-16 12:15:45.728724500 INFO:SerialBattery:--> asy_connect_and_scrape(): error while connecting to bt: BleakError('Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!') of type <class 'bleak.exc.BleakError'> in /opt/victronenergy/dbus-serialbattery/bms/jkbms_brn.py line #455
2024-02-16 12:15:47.681158500 INFO:SerialBattery:--> asy_connect_and_scrape(): Exit
2024-02-16 12:15:47.692699500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2024-02-16 12:15:47.693572500 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
2024-02-16 12:15:48.006614500
2024-02-16 12:15:48.006722500 INFO:Bluetooth details
2024-02-16 12:15:48.052022500 Attempting to disconnect from 20:22:08:25:17:41
2024-02-16 12:15:48.052027500 Successful disconnected
tail: /data/log/dbus-blebattery.0/current has been replaced; following end of new file
2024-02-16 12:15:53.117747500
2024-02-16 12:15:54.249960500 INFO:SerialBattery:
2024-02-16 12:15:54.250379500 INFO:SerialBattery:Starting dbus-serialbattery
2024-02-16 12:15:54.251306500 INFO:SerialBattery:dbus-serialbattery v1.1.20240128dev
2024-02-16 12:15:54.634199500 INFO:SerialBattery:Init of Jkbms_Ble at 20:22:08:25:17:41
2024-02-16 12:15:54.634633500 INFO:SerialBattery:Test of Jkbms_Ble at 20:22:08:25:17:41
2024-02-16 12:15:54.637883500 DEBUG:SerialBattery:scraping thread started -> main thread id: 1995849744 scraping thread: 1970271328
2024-02-16 12:15:54.640528500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): Connect and scrape on address: 20:22:08:25:17:41
2024-02-16 12:15:54.941695500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): btloop
2024-02-16 12:15:54.942130500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): reconnect
2024-02-16 12:15:56.461327500 INFO:SerialBattery:--> asy_connect_and_scrape(): error while connecting to bt: BleakError('Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!') of type <class 'bleak.exc.BleakError'> in /opt/victronenergy/dbus-serialbattery/bms/jkbms_brn.py line #455
2024-02-16 12:15:58.669486500 INFO:SerialBattery:--> asy_connect_and_scrape(): Exit
2024-02-16 12:15:58.673426500 DEBUG:SerialBattery:scraping thread ended: reseting bluetooth and restarting
2024-02-16 12:15:58.674009500 INFO:SerialBattery:Reset of system Bluetooth daemon triggered
2024-02-16 12:15:58.809151500 [CHG] Device 20:22:08:25:17:41 RSSI: -51
2024-02-16 12:15:58.809158500 [CHG] Device 20:22:08:25:17:41 RSSI: -54
2024-02-16 12:15:58.809162500 [CHG] Device 20:22:08:25:17:41 RSSI is nil
2024-02-16 12:16:00.777176500 Starting bluetooth: bluetoothd.
2024-02-16 12:16:00.802427500 INFO:SerialBattery:System Bluetooth daemon should have been restarted
2024-02-16 12:16:02.806713500 DEBUG:SerialBattery:scraping thread started -> main thread id: 1995849744 scraping thread: 1970271328
2024-02-16 12:16:02.808834500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): Connect and scrape on address: 20:22:08:25:17:41
2024-02-16 12:16:02.809779500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): btloop
2024-02-16 12:16:02.810309500 DEBUG:SerialBattery:--> asy_connect_and_scrape(): reconnect
2024-02-16 12:16:03.697904500 INFO:SerialBattery:--> asy_connect_and_scrape(): error while connecting to bt: BleakError('Characteristic with UUID 00002a24-0000-1000-8000-00805f9b34fb could not be found!') of type <class 'bleak.exc.BleakError'> in /opt/victronenergy/dbus-serialbattery/bms/jkbms_brn.py line #455
2024-02-16 12:16:05.701166500 INFO:SerialBattery:--> asy_connect_and_scrape(): Exit
2024-02-16 12:16:05.754829500 ERROR:SerialBattery:No BMS found at 20:22:08:25:17:41
2024-02-16 12:16:05.755308500 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
2024-02-16 12:16:06.039079500
2024-02-16 12:16:06.039359500 INFO:Bluetooth details
2024-02-16 12:16:06.096313500 Attempting to disconnect from 20:22:08:25:17:41
2024-02-16 12:16:06.096320500 Successful disconnected

bluetoothctl both logs running in the same time

root@raspberrypi2:~# bluetoothctl
Agent registered
[CHG] Controller B8:27:EB:83:A6:83 Pairable: yes
[CHG] Controller B8:27:EB:83:A6:83 Powered: no
[CHG] Controller B8:27:EB:83:A6:83 Discovering: no
Agent unregistered
[DEL] Device 20:22:08:25:17:41 JK_BD4A24S04
[DEL] Controller B8:27:EB:83:A6:83 BlueZ 5.55 [default]
Agent registered
[bluetooth]# 
[CHG] Controller B8:27:EB:83:A6:83 Powered: yes
[CHG] Controller B8:27:EB:83:A6:83 Discovering: yes
[CHG] Device 20:22:08:25:17:41 RSSI: -52
[CHG] Device 20:22:08:25:17:41 ManufacturerData Key: 0x4b4a
[CHG] Device 20:22:08:25:17:41 ManufacturerData Value:
  00 01                                            ..
[CHG] Device 20:22:08:25:17:41 AdvertisingFlags:
  06                                               .
[CHG] Device 20:22:08:25:17:41 RSSI: -54
[CHG] Device 20:22:08:25:17:41 Connected: yes
[NEW] Primary Service (Handle 0x5884)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001
        0000ffe0-0000-1000-8000-00805f9b34fb
        Unknown
[NEW] Characteristic (Handle 0x585c)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001/char0002
        0000ffe1-0000-1000-8000-00805f9b34fb
        Unknown
[NEW] Characteristic (Handle 0x585c)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001/char0004
        0000ffe1-0000-1000-8000-00805f9b34fb
        Unknown
[NEW] Descriptor (Handle 0x4ae4)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001/char0004/desc0006
        00002902-0000-1000-8000-00805f9b34fb
        Client Characteristic Configuration
[CHG] Device 20:22:08:25:17:41 ServicesResolved: yes
[CHG] Device 20:22:08:25:17:41 ServicesResolved: no
[CHG] Device 20:22:08:25:17:41 Connected: no
[CHG] Controller B8:27:EB:83:A6:83 Powered: no
[CHG] Controller B8:27:EB:83:A6:83 Discovering: no
[CHG] Device 20:22:08:25:17:41 RSSI is nil
Agent unregistered
[DEL] Characteristic (Handle 0x97b4)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001/char0002
        0000ffe1-0000-1000-8000-00805f9b34fb
        Unknown
[DEL] Descriptor (Handle 0xe2bc)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001/char0004/desc0006
        00002902-0000-1000-8000-00805f9b34fb
        Client Characteristic Configuration
[DEL] Characteristic (Handle 0x3cf0)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001/char0004
        0000ffe1-0000-1000-8000-00805f9b34fb
        Unknown
[DEL] Primary Service (Handle 0x0020)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001
        0000ffe0-0000-1000-8000-00805f9b34fb
        Unknown
[DEL] Device 20:22:08:25:17:41 JK_BD4A24S04
[DEL] Controller B8:27:EB:83:A6:83 BlueZ 5.55 [default]
Agent registered
[CHG] Controller B8:27:EB:83:A6:83 Powered: yes
[CHG] Controller B8:27:EB:83:A6:83 Discovering: yes
[CHG] Device 20:22:08:25:17:41 RSSI: -54
[CHG] Device 20:22:08:25:17:41 ManufacturerData Key: 0x4b4a
[CHG] Device 20:22:08:25:17:41 ManufacturerData Value:
  00 01                                            ..
[CHG] Device 20:22:08:25:17:41 AdvertisingFlags:
  06                                               .
[CHG] Device 20:22:08:25:17:41 RSSI is nil
[CHG] Controller B8:27:EB:83:A6:83 Discovering: no
[CHG] Device 20:22:08:25:17:41 Connected: yes
[NEW] Primary Service (Handle 0x5884)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001
        0000ffe0-0000-1000-8000-00805f9b34fb
        Unknown
[NEW] Characteristic (Handle 0x585c)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001/char0002
        0000ffe1-0000-1000-8000-00805f9b34fb
        Unknown
[NEW] Characteristic (Handle 0x585c)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001/char0004
        0000ffe1-0000-1000-8000-00805f9b34fb
        Unknown
[NEW] Descriptor (Handle 0x4e44)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001/char0004/desc0006
        00002902-0000-1000-8000-00805f9b34fb
        Client Characteristic Configuration
[CHG] Device 20:22:08:25:17:41 ServicesResolved: yes
[CHG] Device 20:22:08:25:17:41 ServicesResolved: no
[CHG] Device 20:22:08:25:17:41 Connected: no
[CHG] Controller B8:27:EB:83:A6:83 Discovering: yes
[CHG] Device 20:22:08:25:17:41 RSSI: -51
[CHG] Device 20:22:08:25:17:41 RSSI: -54
[CHG] Device 20:22:08:25:17:41 Connected: yes
[CHG] Device 20:22:08:25:17:41 ServicesResolved: yes
[CHG] Device 20:22:08:25:17:41 ServicesResolved: no
[CHG] Device 20:22:08:25:17:41 Connected: no
[CHG] Controller B8:27:EB:83:A6:83 Powered: no
[CHG] Controller B8:27:EB:83:A6:83 Discovering: no
[CHG] Device 20:22:08:25:17:41 RSSI is nil
Agent unregistered
[DEL] Characteristic (Handle 0xaed4)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001/char0002
        0000ffe1-0000-1000-8000-00805f9b34fb
        Unknown
[DEL] Descriptor (Handle 0xe2bc)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001/char0004/desc0006
        00002902-0000-1000-8000-00805f9b34fb
        Client Characteristic Configuration
[DEL] Characteristic (Handle 0x97e8)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001/char0004
        0000ffe1-0000-1000-8000-00805f9b34fb
        Unknown
[DEL] Primary Service (Handle 0x0020)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001
        0000ffe0-0000-1000-8000-00805f9b34fb
        Unknown
[DEL] Device 20:22:08:25:17:41 JK_BD4A24S04
[DEL] Controller B8:27:EB:83:A6:83 BlueZ 5.55 [default]
Agent registered
[CHG] Controller B8:27:EB:83:A6:83 Powered: yes
[CHG] Controller B8:27:EB:83:A6:83 Discovering: yes
[CHG] Device 20:22:08:25:17:41 RSSI: -51
[CHG] Device 20:22:08:25:17:41 ManufacturerData Key: 0x4b4a
[CHG] Device 20:22:08:25:17:41 ManufacturerData Value:
  00 01                                            ..
[CHG] Device 20:22:08:25:17:41 AdvertisingFlags:
  06                                               .
[CHG] Device 20:22:08:25:17:41 RSSI is nil
[CHG] Controller B8:27:EB:83:A6:83 Discovering: no
[CHG] Device 20:22:08:25:17:41 Connected: yes
[NEW] Primary Service (Handle 0x5884)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001
        0000ffe0-0000-1000-8000-00805f9b34fb
        Unknown
[NEW] Characteristic (Handle 0x585c)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001/char0002
        0000ffe1-0000-1000-8000-00805f9b34fb
        Unknown
[NEW] Characteristic (Handle 0x585c)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001/char0004
        0000ffe1-0000-1000-8000-00805f9b34fb
        Unknown
[NEW] Descriptor (Handle 0xc0a4)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001/char0004/desc0006
        00002902-0000-1000-8000-00805f9b34fb
        Client Characteristic Configuration
[CHG] Device 20:22:08:25:17:41 ServicesResolved: yes
[CHG] Device 20:22:08:25:17:41 ServicesResolved: no
[CHG] Device 20:22:08:25:17:41 Connected: no
[CHG] Controller B8:27:EB:83:A6:83 Discovering: yes
[CHG] Device 20:22:08:25:17:41 RSSI: -51
[CHG] Device 20:22:08:25:17:41 RSSI: -52
[CHG] Device 20:22:08:25:17:41 Connected: yes
[CHG] Device 20:22:08:25:17:41 ServicesResolved: yes
[CHG] Device 20:22:08:25:17:41 ServicesResolved: no
[CHG] Device 20:22:08:25:17:41 Connected: no
[CHG] Controller B8:27:EB:83:A6:83 Powered: no
[CHG] Controller B8:27:EB:83:A6:83 Discovering: no
[CHG] Device 20:22:08:25:17:41 RSSI is nil
Agent unregistered
[DEL] Characteristic (Handle 0x63b4)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001/char0002
        0000ffe1-0000-1000-8000-00805f9b34fb
        Unknown
[DEL] Descriptor (Handle 0xe2bc)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001/char0004/desc0006
        00002902-0000-1000-8000-00805f9b34fb
        Client Characteristic Configuration
[DEL] Characteristic (Handle 0xef40)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001/char0004
        0000ffe1-0000-1000-8000-00805f9b34fb
        Unknown
[DEL] Primary Service (Handle 0x0020)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001
        0000ffe0-0000-1000-8000-00805f9b34fb
        Unknown
[DEL] Device 20:22:08:25:17:41 JK_BD4A24S04
[DEL] Controller B8:27:EB:83:A6:83 BlueZ 5.55 [default]
Agent registered
[CHG] Controller B8:27:EB:83:A6:83 Powered: yes
[CHG] Controller B8:27:EB:83:A6:83 Discovering: yes
[CHG] Device 20:22:08:25:17:41 RSSI: -50
[CHG] Device 20:22:08:25:17:41 ManufacturerData Key: 0x4b4a
[CHG] Device 20:22:08:25:17:41 ManufacturerData Value:
  00 01                                            ..
[CHG] Device 20:22:08:25:17:41 AdvertisingFlags:
  06                                               .
[CHG] Device 20:22:08:25:17:41 RSSI is nil
[CHG] Controller B8:27:EB:83:A6:83 Discovering: no
[CHG] Device 20:22:08:25:17:41 Connected: yes
[NEW] Primary Service (Handle 0x5884)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001
        0000ffe0-0000-1000-8000-00805f9b34fb
        Unknown
[NEW] Characteristic (Handle 0x585c)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001/char0002
        0000ffe1-0000-1000-8000-00805f9b34fb
        Unknown
[NEW] Characteristic (Handle 0x585c)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001/char0004
        0000ffe1-0000-1000-8000-00805f9b34fb
        Unknown
[NEW] Descriptor (Handle 0xeddc)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001/char0004/desc0006
        00002902-0000-1000-8000-00805f9b34fb
        Client Characteristic Configuration
[CHG] Device 20:22:08:25:17:41 ServicesResolved: yes
[CHG] Device 20:22:08:25:17:41 ServicesResolved: no
[CHG] Device 20:22:08:25:17:41 Connected: no
[CHG] Controller B8:27:EB:83:A6:83 Discovering: yes
[CHG] Device 20:22:08:25:17:41 RSSI: -51
[CHG] Device 20:22:08:25:17:41 RSSI: -51
[CHG] Device 20:22:08:25:17:41 Connected: yes
[CHG] Device 20:22:08:25:17:41 ServicesResolved: yes
[CHG] Device 20:22:08:25:17:41 ServicesResolved: no
[CHG] Device 20:22:08:25:17:41 Connected: no
[CHG] Controller B8:27:EB:83:A6:83 Powered: no
[CHG] Controller B8:27:EB:83:A6:83 Discovering: no
[CHG] Device 20:22:08:25:17:41 RSSI is nil
Agent unregistered
[DEL] Characteristic (Handle 0x3cbc)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001/char0002
        0000ffe1-0000-1000-8000-00805f9b34fb
        Unknown
[DEL] Descriptor (Handle 0xe2bc)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001/char0004/desc0006
        00002902-0000-1000-8000-00805f9b34fb
        Client Characteristic Configuration
[DEL] Characteristic (Handle 0x63e8)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001/char0004
        0000ffe1-0000-1000-8000-00805f9b34fb
        Unknown
[DEL] Primary Service (Handle 0x0020)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001
        0000ffe0-0000-1000-8000-00805f9b34fb
        Unknown
[DEL] Device 20:22:08:25:17:41 JK_BD4A24S04
[DEL] Controller B8:27:EB:83:A6:83 BlueZ 5.55 [default]
Agent registered
[CHG] Controller B8:27:EB:83:A6:83 Powered: yes
[CHG] Controller B8:27:EB:83:A6:83 Discovering: yes
[CHG] Device 20:22:08:25:17:41 RSSI: -51
[CHG] Device 20:22:08:25:17:41 ManufacturerData Key: 0x4b4a
[CHG] Device 20:22:08:25:17:41 ManufacturerData Value:
  00 01                                            ..
[CHG] Device 20:22:08:25:17:41 AdvertisingFlags:
  06                                               .
[CHG] Device 20:22:08:25:17:41 RSSI is nil
[CHG] Controller B8:27:EB:83:A6:83 Discovering: no
[CHG] Device 20:22:08:25:17:41 Connected: yes
[NEW] Primary Service (Handle 0x5884)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001
        0000ffe0-0000-1000-8000-00805f9b34fb
        Unknown
[NEW] Characteristic (Handle 0x585c)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001/char0002
        0000ffe1-0000-1000-8000-00805f9b34fb
        Unknown
[NEW] Characteristic (Handle 0x585c)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001/char0004
        0000ffe1-0000-1000-8000-00805f9b34fb
        Unknown
[NEW] Descriptor (Handle 0xe6c4)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001/char0004/desc0006
        00002902-0000-1000-8000-00805f9b34fb
        Client Characteristic Configuration
[CHG] Device 20:22:08:25:17:41 ServicesResolved: yes
[CHG] Device 20:22:08:25:17:41 ServicesResolved: no
[CHG] Device 20:22:08:25:17:41 Connected: no
[CHG] Controller B8:27:EB:83:A6:83 Discovering: yes
[CHG] Device 20:22:08:25:17:41 RSSI: -51
[CHG] Device 20:22:08:25:17:41 RSSI: -54
[CHG] Device 20:22:08:25:17:41 Connected: yes
[CHG] Device 20:22:08:25:17:41 ServicesResolved: yes
[CHG] Device 20:22:08:25:17:41 ServicesResolved: no
[CHG] Device 20:22:08:25:17:41 Connected: no
[CHG] Controller B8:27:EB:83:A6:83 Powered: no
[CHG] Controller B8:27:EB:83:A6:83 Discovering: no
[CHG] Device 20:22:08:25:17:41 RSSI is nil
Agent unregistered
[DEL] Characteristic (Handle 0x9cdc)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001/char0002
        0000ffe1-0000-1000-8000-00805f9b34fb
        Unknown
[DEL] Descriptor (Handle 0xe2bc)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001/char0004/desc0006
        00002902-0000-1000-8000-00805f9b34fb
        Client Characteristic Configuration
[DEL] Characteristic (Handle 0xe300)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001/char0004
        0000ffe1-0000-1000-8000-00805f9b34fb
        Unknown
[DEL] Primary Service (Handle 0x0020)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001
        0000ffe0-0000-1000-8000-00805f9b34fb
        Unknown
[DEL] Device 20:22:08:25:17:41 JK_BD4A24S04
[DEL] Controller B8:27:EB:83:A6:83 BlueZ 5.55 [default]
Agent registered
[CHG] Controller B8:27:EB:83:A6:83 Powered: yes
[CHG] Controller B8:27:EB:83:A6:83 Discovering: yes
[CHG] Device 20:22:08:25:17:41 RSSI: -51
[CHG] Device 20:22:08:25:17:41 ManufacturerData Key: 0x4b4a
[CHG] Device 20:22:08:25:17:41 ManufacturerData Value:
  00 01                                            ..
[CHG] Device 20:22:08:25:17:41 AdvertisingFlags:
  06                                               .
[CHG] Device 20:22:08:25:17:41 RSSI is nil
[CHG] Controller B8:27:EB:83:A6:83 Discovering: no
[CHG] Device 20:22:08:25:17:41 Connected: yes
[NEW] Primary Service (Handle 0x5884)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001
        0000ffe0-0000-1000-8000-00805f9b34fb
        Unknown
[NEW] Characteristic (Handle 0x585c)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001/char0002
        0000ffe1-0000-1000-8000-00805f9b34fb
        Unknown
[NEW] Characteristic (Handle 0x585c)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001/char0004
        0000ffe1-0000-1000-8000-00805f9b34fb
        Unknown
[NEW] Descriptor (Handle 0xd73c)
        /org/bluez/hci0/dev_20_22_08_25_17_41/service0001/char0004/desc0006
        00002902-0000-1000-8000-00805f9b34fb
        Client Characteristic Configuration
[CHG] Device 20:22:08:25:17:41 ServicesResolved: yes
[CHG] Device 20:22:08:25:17:41 ServicesResolved: no
[CHG] Device 20:22:08:25:17:41 Connected: no
[CHG] Controller B8:27:EB:83:A6:83 Discovering: yes
[CHG] Device 20:22:08:25:17:41 RSSI: -52

@mr-manuel
Copy link
Collaborator

Could you write me on Discord?

mr-manuel added a commit to mr-manuel/venus-os_dbus-serialbattery that referenced this issue Feb 23, 2024
@mr-manuel
Copy link
Collaborator

Fixed with v1.2.20240223dev.

mr-manuel added a commit to mr-manuel/venus-os_dbus-serialbattery that referenced this issue Feb 23, 2024
Louisvdw pushed a commit that referenced this issue Feb 28, 2024
* fix Sinowealth not loading
#702

* fix unique identifier function

* enable BMS over config, if disabled by default
Now you can also add more then one BMS for BMS_TYPE

* show battery port in log

* ANT BMS fixes
Fixed that other devices are recognized as ANT BMS

* Sinowealth BMS fixes
Fixed that other devices are recognized as Sinowealth BMS

* improved publish_battery error handling
switched from error count to seconds

* Improve Battery Voltage Handling in Linear Absorption Mode

* Refactor change time() to int(time()) for consistency in max_voltage_start_time and tDiff calculation
* Refactor battery voltage calculations for efficiency and clarity
* Remove penalty_buffer
* Reset max_voltage_start_time wenn we going to bulk(dynamic) mode

* updated changelog

* fix reply processing

* Reduce the big inrush current, if the CVL jumps
from Bulk/Absorbtion to Float
fix #659

* Check returned data lenght for Seplos BMS

Be stricter about the return data we accept, might fix the problem of grid meters accidently being recognized as a Seplos

* Validate current, voltage, capacity and SoC for all BMS
This prevents that a device, which is no BMS, is detected as BMS

* removed double check

* bump version

* fix validation if None

* updated changelog

* proposal to #659 formatted :)

* bugfix proposal to #659

* refactor setting float charge_mode

* fix type error, removed bluetooth cronjob

* updated changelog

* fix rs485 write communication errors by inserting sleeps, add debug print for charge mode and fix crash on write soc failures

* fix write problem on set_soc. also changed the switch charge/discharge function, just in case

* debug msg

* Bluetooth optimizations

* Fixes by @peterohman
#505 (comment)

* fix #712

* fix meaningless time to go values

* fix meaningless time to go values

* Duration of transition to float depends on number of cells

* Float transition - Voltage drop per second

* Update hlpdatabms4s.py

* Validate setting of FLOAT_CELL_VOLTAGE and avoid misconfiguration

* consider utils.LINEAR_RECALCULATION_EVERY to refresh CVL

* cleanup

* consider utils.LINEAR_RECALCULATION_EVERY to refresh CVL

* small refactor, introduced set_cvl_linear function to set CVL only once every LINEAR_RECALCULATION_EVERY seconds

* fix typo

* updated changelog

* remove debug msg

* remove debug msg

* undo debug change

* Daly BMS make auto reset soc configurable

* added debug and error information for CVL

* fix proposal for #733 (#735)

* Added: Tollerance to enter float voltage once the timer is triggered

* Add bulk voltage
Load to bulk voltage every x days to reset the SoC to 100% for some BMS

* JKBMS disable high voltage warning on bulk
reenable after bulk was completed

* fixed error

* disable high voltage warning for all BMS
when charging to bulk voltage

* fix error and change default value
measurementToleranceVariation from 0.025 to 0.5 else in OffGrid mode max voltage is always kept

* Added temperature names to dbus/mqtt

* Use current avg of last 300 cycles for TTG & TTS

* Calculate only positive Time-to-SoC points

* added current average of last 5 minutes

* make CCL and DCL more clear

* fix small error

* bugfix: LLTJBD BMS SOC different in Xiaoxiang app and dbus-serialbattery

* black formatting

* JDB BMS - Control FETs for charge, discharge and disable / enable balancer (#761)

* feature: Allow to control charge / discharge FET
* feature: Allow to enable / disable balancer

* bugfix: Cycle Capacity is in 10 mAh

Fixes SoC with factor 100 * 100% percentage

* JBD BMS show balancer state in GUI page IO (#763)

* Bump version

* Fix typos

* Smaller fixes
- fixes #792 (comment)

* Removed comments from utils.py
This should make more clear that there are no values to change

* Updated changelog

* possible fix for LLT/JBS connection problems
#769
#777

* bugfix: LLT/JBD BMS general packet data size check

* improved reinstall and disable script

* LLT/JBD BMS - Improved error handling and automatical driver restart
in case of error. Should fix:
- #730
- #769
- #777

* Fixed Building wheel for dbus-fast won't finish on weak systems
Fixes #785

* Support for Daly CAN Bus (#169)

* support for Daly CAN Bus
* fix constructor args
* revert port, needs fix
* add can filters
* comment logger

Some changes are still needed to work with the latest version. They will follow in a next PR.

---------

Co-authored-by: Samuel Brucksch <samuel@iternio.com>
Co-authored-by: Manuel <mr-manuel@outlook.it>

* JKBMS BLE - Introduction of automatic SOC reset (HW Version 11) (#736)

* Introduction of automatic SOC reset for JK BMS (HW Version 11)
* Fixed value mapping
* Rework of the code to make it simpler to use without additional configuration.
Moved execution of SOC reset. It's now executed while changing from "Float" to "Float Transition".
* Implementation of suggested changes
Persist initial BMS OVP and OVPR settings
Make use of max_cell_voltage to calculate trigger value for OVP alert

* Added: Daly CAN and JKBMS CAN

* added CAN bms to installation script
optimized CAN drivers

* smaller fixes

* Trigger JK BLE SOC reset when using Step Mode

* Moved trigger_soc_reset()

* fixes LLT/JBD SOC > 100%
#769

* changed VOLTAGE_DROP behaviour

* Fix JKBMS not starting if BMS manuf. date is empty

* corrected bulk, absorption and soc reset terms

* fix typo

* add JKBMS_BLE debugging data

* fix small error

* Some changes for lost bluetooth connection / hci_uart stack restart

* added logging to config

* add sleep before starting driver
prevents lot of timeouts after reinstalling the driver, since the restart is now much faster than before

* changed post install info

* fix error

* Daly BMS fixed embedded null byte
#837

* added info for SoC reset to default config file

* fix for #716
#716

* fix for #716 and JKBMS model recognition
#716

* optimized logging

* fix JKBMS recognition

* added debugging

* fixes #716
#716

* Bind device instance to unique_identifier
#718

* added data types to battery class
disabled unused variables

* save current charge state
#840

* correct file permissions

* updated changelog

* added periodic saveChargeDetails

* fix some small errors

* fix issue with ruuvi tags
When there are hundreds of unused ruuvi tags in the settings list that where added because thei where nearby the driver does not start correctly. These stale entries are disabled on the driver startup.
The issue was already filed to Victron developers

* CVL with i-controller instead of penaltysum

* cvl_controller: switch to choose PenaltySum or ICOntroller + documentation

* docu enhancement

* Add setting and install logic for usb bluetooth module

* round temperatures

* changed battery disconnect behaviour

* Fixes #891
#891

* updated changelog

* Add bluetooth device note to config.default.ini

* Fix typo in bluetooth note in config.default.ini

* fixed error in new cvl_controller

* fixed float division by zero and code optimization

* Restart MAX_VOLTAGE_TIME_SEC if cell diff > CELL_VOLTAGE_DIFF_KEEP_MAX_VOLTAGE_TIME_RESTART

* Calculation of the SOC based on coloumb-counting (#868)

* Calculation of the SOC in the driver based on coloumb-counting

* soc_calc: add current correction before integration

* soc_calc: correction map for current

* Soc_calc: CorrectionMap, switch to turn on/off correction, selectable initial value

* soc_calc: Bugfix

* soc_calc: Bugfix

* store soc in dbus for restart

* store soc in dbus for restart (formatted)

* store soc in dbus for restart (bugfix)

* save soc_calc only after change > 1.0

* store soc in dbus for restart (bugfix)

* logger does not work this way. do not know why

* writing and reading to dbus works

* Removed options: SOC_CALC_CURRENT_CORRECTION, SOC_CALC_RESET_VALUE_ON_RESTART, SOC_CALC_INIT_VALUE
sort soc_calc alphabetically

* fixed comments

* Updated changelog, small fixes

* Changed: PUBLISH_CONFIG_VALUES from 0/1 to True/False

* Changed: Code optimizations
- Changed some variables to be more clear
- Added comments for easier code understanding

* Calculated SOC: Added two decimals, added BMS SOC for MQTT & Node-RED

* Updated changelog, small fixes

* Changed: PUBLISH_CONFIG_VALUES from 0/1 to True/False

* Changed: Code optimizations
- Changed some variables to be more clear
- Added comments for easier code understanding

* Calculated SOC: Added two decimals, added BMS SOC for MQTT & Node-RED

* Fix #898
#898

* Changed: Fix issue loading settings from dbus

* Added nightly install option
makes it easier for users to pretest fixes

* Changed: more detailed error output when an exception happens

* Possible fix for #912
#912

* Fixes #919
#919

* Changed: Exit script with error, if port excluded
else the serialstarter stops at the dbus-serialbattery

* Fixed some smaller errors

* Updated pre-release workflow

* Fix JK BMS connection restart when bluetooth fails.

This fix installs a new thread to monitor the state of the original
scraping thread.
If scraping thread dies, it verifies that it did not because the
scraping was intentionally stopped by calling stop_scrapping.
When restarting the scrapper, it first calls the bluetooth
reset lambda function that was passed in the class contructor, such that
bluetooth is ready to make a proper connection.

* Fixes #916
#916

* Added Venus OS version to logfile

* Fix #840
#840

* Small code formatting fixes

* Optimized reinstall script. Restart GUI only on changes.

* Display debugging data in GUI when DEBUG enabled

* Install script now shows repositories and version numbers

* Update daly_can.py

Fixing #950 for DalyBMS

* Update jkbms_can.py

Fixing #950 for Jk BMS

* Fix black lint check

* Fixes #970
#970

* Fixed some errors in restoring values from dbus settings

* Moved sleep on start for all BMS

* Update config description

* Reworked a part of the default config

* fix typo in stopping services when reinstalling

* Fix Time-to-SoC and Time-to-Go calculation

* Add changelog info

* Round sum and diff voltage

* Temperature limitation variables where changed

* SoC limitation variables where changed

* Added error messages

* Remove unneeded code

* Reset SoC to 0% if empty

* Add GUIv2 for dbus-serialbattery

* Check free space before installing

* Added new GUIv2 version

* Removed Python 2 compatibility

* Changelog update

* Code cleanup
- Removed: get_temperatures()
- Removed: update_last_seen()

* Bluetooth code optimizations

* Fixed some JKBMS BLE not starting
#819

* Check if packages are already installed before install

* Fixed some SOC calculation errors

* Fixed None SOC on driver start

* Do not show and allow button change when callback is missing for:
- ForceChargingOff
- ForceDischargingOff
- TurnBalancingOff

* Check if a device instance is already used by creating a PID file

* Log and execute SOC reset to 100% or 0% only once

* Update GitHub workflow and issue templates

* Fixed LLT/JBD BMS with only on temperature sensor #791
#971

* Fix warning on reinstall

* Fix missing IO control for JBDBMS #992
#992

* Prepare for removing dev branch

---------

Co-authored-by: ogurevich <50322596+ogurevich@users.noreply.github.com>
Co-authored-by: Bernd Stahlbock <6627385+transistorgit@users.noreply.github.com>
Co-authored-by: wollew <wollew@users.noreply.github.com>
Co-authored-by: Oleg Gurevich <oleg@gurevich.de>
Co-authored-by: peterohman <psub@fieber.se>
Co-authored-by: Strawder, Paul <paul@coach-ai.com>
Co-authored-by: Paul Strawder <paulidstein@gmail.com>
Co-authored-by: Samuel Brucksch <SamuelBrucksch@users.noreply.github.com>
Co-authored-by: Samuel Brucksch <samuel@iternio.com>
Co-authored-by: ArendsM <136503378+ArendsM@users.noreply.github.com>
Co-authored-by: Meik Arends <github@arends.info>
Co-authored-by: Marvo2011 <Marvin.Edeler@gmail.com>
Co-authored-by: cflenker <christian.flenker@gmx.de>
Co-authored-by: cflenker <125555670+cflenker@users.noreply.github.com>
Co-authored-by: Cupertino Miranda <cupertinomiranda@gmail.com>
Co-authored-by: Martin Polehla <p0l0us@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested support Support request
Projects
None yet
Development

No branches or pull requests

8 participants