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 keeps disconnecting #148

Closed
Felixrising opened this issue Dec 30, 2024 · 1 comment
Closed

JKBMS BLE keeps disconnecting #148

Felixrising opened this issue Dec 30, 2024 · 1 comment
Labels
support Support request

Comments

@Felixrising
Copy link

Describe the problem

jkbms over ble keeps disconnecting and then throwing errors.

Driver version of the currently installed driver

v1.5.20241215

Driver version of the last known working driver

No response

Venus OS device type

Raspberry Pi

Venus OS version

v3.52

BMS type

JKBMS (Heltec BMS)

Cell count

8

Battery count

1

Connection type

Bluetooth

Config file

[DEFAULT]
;LOGGING = DEBUG

; --------- Battery Current Limits ---------
MAX_BATTERY_CHARGE_CURRENT    = 25.0
MAX_BATTERY_DISCHARGE_CURRENT = 80.0

; --------- Cell Voltages ---------
MIN_CELL_VOLTAGE   = 2.500
MAX_CELL_VOLTAGE   = 3.600
FLOAT_CELL_VOLTAGE = 3.350

; --------- SoC Reset Voltage ---------
SOC_RESET_VOLTAGE = 3.550

; --------- Bluetooth BMS ---------
BLUETOOTH_BMS = Jkbms_Ble C8:47:8C:ED:1B:EE

; --------- BMS Disconnect Behavior ---------
;BLOCK_ON_DISCONNECT = True
BLOCK_ON_DISCONNECT = False


; --------- Cell Voltage Current Limitation ---------
CCCM_CV_ENABLE = True
DCCM_CV_ENABLE = True

CELL_VOLTAGES_WHILE_CHARGING      = 3.60, 3.55, 3.45, 3.30
MAX_CHARGE_CURRENT_CV_FRACTION    =  0.0,  0.2,  0.5,  1.0
CELL_VOLTAGES_WHILE_DISCHARGING   = 2.50, 2.60, 2.65, 3.00
MAX_DISCHARGE_CURRENT_CV_FRACTION =  0.0,  0.2,  0.5,  1.0

; --------- Temperature Limitation ---------
CCCM_T_ENABLE = True
DCCM_T_ENABLE = True

TEMPERATURES_WHILE_CHARGING      =   0,  10,  20,  35,  55
MAX_CHARGE_CURRENT_T_FRACTION    = 0.0, 0.4, 0.8, 1.0, 0.0
TEMPERATURES_WHILE_DISCHARGING   = -10,   0,  10,  45,  55
MAX_DISCHARGE_CURRENT_T_FRACTION = 0.0, 0.2, 0.8, 1.0, 0.0

Relevant log output

@4000000067727640079fb6ac Starting bluetooth: bluetoothd.
@400000006772764008d3162c INFO:SerialBattery:System Bluetooth daemon should have been restarted
@40000000677276411c91398c ERROR:SerialBattery:No BMS found at C8:47:8C:ED:1B:EE
@40000000677276411c914d14 ERROR:SerialBattery:ERROR >>> No battery connection at Jkbms_Ble
@40000000677276421b963f8c
@40000000677276421b965314
@40000000677276421b965ae4 INFO:Preparing Bluetooth for connection to BMS
@40000000677276421b96669c INFO:Bluetooth details
@40000000677276421d6e5aec Attempting to disconnect from C8:47:8C:ED:1B:EE
@40000000677276421d6e6e74 Successful disconnected
@400000006772764720f48024 Device C8:47:8C:ED:1B:EE (public)
@400000006772764720f49794       Alias: MP4Kjkbms
@400000006772764720f49f64       Paired: no
@400000006772764720f4a734       Trusted: no
@400000006772764720f4b2ec       Blocked: no
@400000006772764720f4babc       Connected: no
@400000006772764720f4c28c       LegacyPairing: no
@400000006772764720f4ce44       UUID: Device Information        (0000180a-0000-1000-8000-00805f9b34fb)
@400000006772764720f4d9fc       RSSI: -61
@400000006772764721016cbc
@40000000677276491c661e64 INFO:SerialBattery:
@40000000677276491c6a8364 INFO:SerialBattery:Starting dbus-serialbattery
@40000000677276491c804d84 INFO:SerialBattery:Venus OS v3.52 running on Raspberry Pi 4 Model B Rev 1.1
@40000000677276491c849b14 INFO:SerialBattery:dbus-serialbattery v1.5.20241215
@400000006772764929f7b4ac INFO:SerialBattery:Init of Jkbms_Ble at C8:47:8C:ED:1B:EE
@400000006772764929fc19ac INFO:SerialBattery:Test of Jkbms_Ble at C8:47:8C:ED:1B:EE
@400000006772764f0ccde694 INFO:SerialBattery:BAT: JKBMS 11.XW 8S (20231203)
@400000006772764f0cd8eae4 INFO:SerialBattery:-- Connection established to Jkbms_Ble
@400000006772764f1e0f9c2c INFO:SerialBattery:Reconnected to previously identified battery with DeviceInstance: 1
@400000006772764f2878f064 INFO:SerialBattery:Use DeviceInstance: 1
@400000006772764f288920ec INFO:SerialBattery:Use dbus ServiceName: com.victronenergy.battery.ble_c8478ced1bee
@400000006772764f29d08954 INFO:SerialBattery:Battery JKBMS BLE connected to dbus from ble_c8478ced1bee
@400000006772764f29ebe924 INFO:SerialBattery:========== Settings ==========
@400000006772764f29ebfcac INFO:SerialBattery:> Connection voltage: 26.97 V | Current: 15.2 A | SoC: 83%
@400000006772764f29ec0c4c INFO:SerialBattery:> Cell count: 8 | Cells populated: 8
@400000006772764f29ee8134 INFO:SerialBattery:> LINEAR LIMITATION ENABLE: True
@400000006772764f29f493e4 INFO:SerialBattery:> MIN CELL VOLTAGE: 2.500 V | MAX CELL VOLTAGE: 3.600 V| FLOAT CELL VOLTAGE: 3.350 V
@400000006772764f2a0a8514 INFO:SerialBattery:> MAX BATTERY CHARGE CURRENT: 25.0 A | MAX BATTERY DISCHARGE CURRENT: 80.0 A
@400000006772764f2a151fec INFO:SerialBattery:> CVCM:     True
@400000006772764f2a21b694 INFO:SerialBattery:> CCCM CV:  True  | DCCM CV:  True
@400000006772764f2a3970cc INFO:SerialBattery:> CCCM T:   True  | DCCM T:   True
@400000006772764f2a4d6244 INFO:SerialBattery:> CCCM SOC: False | DCCM SOC: False
@400000006772764f2ab5a994 INFO:SerialBattery:> CHARGE FET: True | DISCHARGE FET: True | BALANCE FET: True
@400000006772764f2abba0ec INFO:SerialBattery:Serial Number/Unique Identifier: 3020744689
@4000000067727651241718fc
@40000000677276512418d264
@40000000677276512418de1c INFO:Preparing Bluetooth for connection to BMS
@40000000677276512419bcc4 INFO:Bluetooth details
@40000000677276512964949c [CHG] Device C8:47:8C:ED:1B:EE RSSI: -61
@40000000677276512964a824 [CHG] Device C8:47:8C:ED:1B:EE RSSI: -39
@400000006772765417d1966c Attempting to disconnect from C8:47:8C:ED:1B:EE
@400000006772765417d1a9f4 [CHG] Device 25:61:08:9F:0D:1A RSSI is nil
@400000006772765417d1b994 [DEL] Device 25:61:08:9F:0D:1A 25-61-08-9F-0D-1A
@400000006772765417d1c54c [CHG] Device 6E:CA:D8:D0:69:31 RSSI is nil
@400000006772765417d1d4ec [DEL] Device 6E:CA:D8:D0:69:31 6E-CA-D8-D0-69-31
@400000006772765417d1e0a4 [CHG] Device F4:7E:27:04:50:43 RSSI is nil
@400000006772765417d1ec5c [DEL] Device F4:7E:27:04:50:43 F4-7E-27-04-50-43
@400000006772765417d33864 [CHG] Device DB:49:4C:1D:3F:7D RSSI is nil
@400000006772765417d34804 [CHG] Device 4D:14:0E:6A:07:41 RSSI is nil
@400000006772765417d353bc [CHG] Device E0:79:8D:2E:4A:94 RSSI is nil
@400000006772765417d35f74 [CHG] Device FC:CF:41:4C:FB:F0 RSSI is nil
@400000006772765417d36f14 [CHG] Device 3D:1A:1C:52:18:91 RSSI is nil
@400000006772765417d37acc [CHG] Device C8:12:0B:AA:4B:C0 RSSI is nil
@400000006772765417d3e05c [CHG] Device 4E:D7:62:EB:6F:F3 TxPower is nil
@400000006772765417d3effc [CHG] Device 4E:D7:62:EB:6F:F3 RSSI is nil
@400000006772765417d3fbb4 [CHG] Device C8:47:8C:ED:1B:EE RSSI is nil
@400000006772765417d4076c [CHG] Device 44:3D:84:01:08:B2 TxPower is nil
@400000006772765417d41324 [CHG] Device 44:3D:84:01:08:B2 RSSI is nil
@400000006772765417d4f99c [CHG] Device CD:E3:67:4B:26:AC RSSI is nil
@400000006772765417d50554 [CHG] Device EE:6B:7C:AA:57:E3 RSSI is nil
@400000006772765417d514f4 [CHG] Device 5E:C6:27:92:99:21 TxPower is nil
@400000006772765417d520ac [CHG] Device 5E:C6:27:92:99:21 RSSI is nil
@400000006772765417d52c64 [CHG] Controller DC:A6:32:03:D5:9A Discovering: no
@400000006772765417d591f4 [CHG] Device C8:47:8C:ED:1B:EE ServicesResolved: no
@400000006772765417d5a194 Successful disconnected
@40000000677276591d62b674 Device C8:47:8C:ED:1B:EE (public)
@40000000677276591d62c9fc       Alias: MP4Kjkbms
@40000000677276591d62d5b4       Paired: no
@40000000677276591d62e16c       Trusted: no
@40000000677276591d62e93c       Blocked: no
@40000000677276591d62f10c       Connected: no
@40000000677276591d62f8dc       LegacyPairing: no
@40000000677276591d630494       UUID: Device Information        (0000180a-0000-1000-8000-00805f9b34fb)
@40000000677276591d63104c       RSSI: -44
@40000000677276591d71394c
@400000006772765b19455e34 INFO:SerialBattery:
@400000006772765b194af7cc INFO:SerialBattery:Starting dbus-serialbattery
@400000006772765b1964c92c INFO:SerialBattery:Venus OS v3.52 running on Raspberry Pi 4 Model B Rev 1.1
@400000006772765b1969a35c INFO:SerialBattery:dbus-serialbattery v1.5.20241215
@400000006772765b27d380d4 INFO:SerialBattery:Init of Jkbms_Ble at C8:47:8C:ED:1B:EE
@400000006772765b27d7f95c INFO:SerialBattery:Test of Jkbms_Ble at C8:47:8C:ED:1B:EE
@400000006772765d0afa10f4 INFO:SerialBattery:--> asy_connect_and_scrape(): error while connecting to bt: BleakDBusError('org.bluez.Error.Failed', 'Software caused connection abort') of type <class 'bleak.exc.BleakDBusError'> in /opt/victronenergy/dbus-serialbattery/bms/jkbms_brn.py line #443
@400000006772765d0b027d34 INFO:SerialBattery:--> asy_connect_and_scrape(): Exit
@400000006772765d0b41c084 INFO:SerialBattery:Reset of system Bluetooth daemon triggered
@400000006772765d12e593ec [CHG] Device C8:47:8C:ED:1B:EE RSSI: -44
@400000006772765d12e5ab5c [CHG] Device C8:47:8C:ED:1B:EE RSSI: -40
@400000006772765d12e5b714 [CHG] Device C8:47:8C:ED:1B:EE RSSI is nil
@400000006772765f10ef03ac Starting bluetooth: bluetoothd.
@400000006772765f12188ba4 INFO:SerialBattery:System Bluetooth daemon should have been restarted
root@raspberrypi4:~# cat /data/log/dbus-blebattery.*/current
@40000000677276a423423114
@40000000677276a61e1627f4 INFO:SerialBattery:
@40000000677276a61e1af66c INFO:SerialBattery:Starting dbus-serialbattery
@40000000677276a61e31ca2c INFO:SerialBattery:Venus OS v3.52 running on Raspberry Pi 4 Model B Rev 1.1
@40000000677276a61e365e0c INFO:SerialBattery:dbus-serialbattery v1.5.20241215
root@raspberrypi4:~# cat /data/log/dbus-blebattery.*/current
@40000000677276a423423114
@40000000677276a61e1627f4 INFO:SerialBattery:
@40000000677276a61e1af66c INFO:SerialBattery:Starting dbus-serialbattery
@40000000677276a61e31ca2c INFO:SerialBattery:Venus OS v3.52 running on Raspberry Pi 4 Model B Rev 1.1
@40000000677276a61e365e0c INFO:SerialBattery:dbus-serialbattery v1.5.20241215
@40000000677276a632182284 INFO:SerialBattery:Init of Jkbms_Ble at C8:47:8C:ED:1B:EE
@40000000677276a6321d5e5c INFO:SerialBattery:Test of Jkbms_Ble at C8:47:8C:ED:1B:EE
@40000000677276a80b89c604 INFO:SerialBattery:--> asy_connect_and_scrape(): error while connecting to bt: BleakDBusError('org.bluez.Error.Failed', 'Software caused connection abort') of type <class 'bleak.exc.BleakDBusError'> in /opt/victronenergy/dbus-serialbattery/bms/jkbms_brn.py line #443
@40000000677276a80b9f97f4 INFO:SerialBattery:--> asy_connect_and_scrape(): Exit
@40000000677276a80bf5fd24 INFO:SerialBattery:Reset of system Bluetooth daemon triggered
@40000000677276a813b26584 [CHG] Device C8:47:8C:ED:1B:EE RSSI: -44
@40000000677276a813b27cf4 [CHG] Device C8:47:8C:ED:1B:EE RSSI: -37
@40000000677276a813b288ac [CHG] Device C8:47:8C:ED:1B:EE RSSI is nil
@40000000677276aa11e94de4 Starting bluetooth: bluetoothd.
@40000000677276aa13109b8c INFO:SerialBattery:System Bluetooth daemon should have been restarted

Any other information that may be helpful

No response

@Felixrising Felixrising added the support Support request label Dec 30, 2024
@mr-manuel
Copy link
Owner

See #86

@mr-manuel mr-manuel changed the title jkbms keeps disconnecting JKBMS BLE keeps disconnecting Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Support request
Projects
None yet
Development

No branches or pull requests

2 participants