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

JBD SP14S004 not working on BLE #120

Open
warwickchapman opened this issue Dec 6, 2024 · 4 comments
Open

JBD SP14S004 not working on BLE #120

warwickchapman opened this issue Dec 6, 2024 · 4 comments
Labels
support Support request

Comments

@warwickchapman
Copy link

warwickchapman commented Dec 6, 2024

Describe the problem

Can't get it to work over BLE. Works over serial.

image

image

Driver version of the currently installed driver

dbus-serialbattery v1.5.20241202

Driver version of the last known working driver

?

Venus OS device type

Cerbo GX

Venus OS version

Venus OS v3.52 running on Cerbo GX

BMS type

Jiabaida JDB BMS (LLT Power, Overkill Solar, Smart BMS)

Cell count

8

Battery count

1

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 = LltJbd_Ble A5:C2:37:03:B4:F1

Relevant log output

2024-12-06 11:42:37.139538500 Successful disconnected
2024-12-06 11:42:42.262498500 Device A5:C2:37:03:B4:F1 (public)
2024-12-06 11:42:42.262506500 	Alias: SP14S004L13S20A
2024-12-06 11:42:42.262508500 	Paired: no
2024-12-06 11:42:42.262509500 	Trusted: no
2024-12-06 11:42:42.262511500 	Blocked: no
2024-12-06 11:42:42.262512500 	Connected: no
2024-12-06 11:42:42.262514500 	LegacyPairing: no
2024-12-06 11:42:42.262515500 	UUID: Device Information        (0000180a-0000-1000-8000-00805f9b34fb)
2024-12-06 11:42:42.262518500 	RSSI: -52
2024-12-06 11:42:42.263404500
2024-12-06 11:42:45.724135500 INFO:SerialBattery:
2024-12-06 11:42:45.725075500 INFO:SerialBattery:Starting dbus-serialbattery
2024-12-06 11:42:45.727917500 INFO:SerialBattery:Venus OS v3.52 running on Cerbo GX
2024-12-06 11:42:45.728643500 INFO:SerialBattery:dbus-serialbattery v1.5.20241202
2024-12-06 11:42:46.184648500 INFO:SerialBattery:Init of LltJbd_Ble at A5:C2:37:03:B4:F1
2024-12-06 11:42:46.185513500 INFO:SerialBattery:Test of LltJbd_Ble at A5:C2:37:03:B4:F1
2024-12-06 11:42:51.201695500 ERROR:SerialBattery:No BMS found at A5:C2:37:03:B4:F1
2024-12-06 11:42:51.202490500 ERROR:SerialBattery:ERROR >>> No battery connection at LltJbd_Ble
2024-12-06 11:42:53.511252500 INFO:SerialBattery:BLE client disconnected
2024-12-06 11:42:53.960910500
2024-12-06 11:42:53.961268500
2024-12-06 11:42:53.961598500 INFO:Preparing Bluetooth for connection to BMS
2024-12-06 11:42:53.961862500 INFO:Bluetooth details
2024-12-06 11:42:54.018568500 [CHG] Device A5:C2:37:03:B4:F1 RSSI: -52
2024-12-06 11:42:54.018579500 [CHG] Device A5:C2:37:03:B4:F1 RSSI: -52
2024-12-06 11:42:54.135877500 Attempting to disconnect from A5:C2:37:03:B4:F1

Any other information that may be helpful

Ps. Works fine over USB:

2024-12-06 11:52:48.873419500 INFO:SerialBattery:
2024-12-06 11:52:48.874256500 INFO:SerialBattery:Starting dbus-serialbattery
2024-12-06 11:52:48.877497500 INFO:SerialBattery:Venus OS v3.52 running on Cerbo GX
2024-12-06 11:52:48.878365500 INFO:SerialBattery:dbus-serialbattery v1.5.20241202
2024-12-06 11:53:04.895549500 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
2024-12-06 11:53:04.896437500 INFO:SerialBattery:Testing Daly at address "\x40"
2024-12-06 11:53:05.041900500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-12-06 11:53:05.042837500 INFO:SerialBattery:Testing Daly at address "\x80"
2024-12-06 11:53:05.185848500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-12-06 11:53:05.186788500 INFO:SerialBattery:Testing Daren485 at address "\x01"
2024-12-06 11:53:05.611884500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-12-06 11:53:05.612672500 INFO:SerialBattery:Testing Ecs
2024-12-06 11:53:05.672169500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-12-06 11:53:05.673044500 INFO:SerialBattery:Testing EG4_Lifepower at address "\x01"
2024-12-06 11:53:05.943628500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-12-06 11:53:06.213858500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-12-06 11:53:06.215208500 INFO:SerialBattery:Testing EG4_LL at address "\x01"
2024-12-06 11:53:06.485617500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-12-06 11:53:06.486786500 INFO:SerialBattery:Testing HeltecModbus at address "\x01"
2024-12-06 11:53:10.335371500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-12-06 11:53:10.336755500 INFO:SerialBattery:Testing HLPdataBMS4S
2024-12-06 11:53:11.465205500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-12-06 11:53:11.466040500 INFO:SerialBattery:Testing Jkbms
2024-12-06 11:53:11.754540500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-12-06 11:53:11.772966500 INFO:SerialBattery:Testing Jkbms_pb at address "\x01"
2024-12-06 11:53:12.043985500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-12-06 11:53:12.064003500 INFO:SerialBattery:Testing LltJbd at address "\x00"
2024-12-06 11:53:12.675162500 INFO:SerialBattery:-- Connection established to LltJbd
2024-12-06 11:53:16.223084500 INFO:SerialBattery:Reconnected to previously identified battery with DeviceInstance: 1
2024-12-06 11:53:16.487986500 INFO:SerialBattery:Use DeviceInstance: 1
2024-12-06 11:53:16.490042500 INFO:SerialBattery:Use dbus ServiceName: com.victronenergy.battery.ttyACM0
2024-12-06 11:53:16.526816500 INFO:SerialBattery:Polling interval: 1.000 s
2024-12-06 11:53:16.528570500 INFO:SerialBattery:Battery LLT/JBD connected to dbus from /dev/ttyACM0
2024-12-06 11:53:16.529498500 INFO:SerialBattery:========== Settings ==========
2024-12-06 11:53:16.530503500 INFO:SerialBattery:> Connection voltage: 27.8 V | Current: 0.0 A | SoC: 100%
2024-12-06 11:53:16.531434500 INFO:SerialBattery:> Cell count: 8 | Cells populated: 8
2024-12-06 11:53:16.533423500 INFO:SerialBattery:> LINEAR LIMITATION ENABLE: True
2024-12-06 11:53:16.536716500 INFO:SerialBattery:> MIN CELL VOLTAGE: 2.900 V | MAX CELL VOLTAGE: 3.450 V| FLOAT CELL VOLTAGE: 3.375 V
2024-12-06 11:53:16.536726500 INFO:SerialBattery:> MAX BATTERY CHARGE CURRENT: 50.0 A | MAX BATTERY DISCHARGE CURRENT: 60.0 A
2024-12-06 11:53:16.536731500 INFO:SerialBattery:> MAX BATTERY CHARGE CURRENT: 25.0 A | MAX BATTERY DISCHARGE CURRENT: 25.0 A (read from BMS)
2024-12-06 11:53:16.537250500 INFO:SerialBattery:> CVCM:     True
2024-12-06 11:53:16.544713500 INFO:SerialBattery:> CCCM CV:  True  | DCCM CV:  True
2024-12-06 11:53:16.547316500 INFO:SerialBattery:> CCCM T:   True  | DCCM T:   True
2024-12-06 11:53:16.549574500 INFO:SerialBattery:> CCCM SOC: False | DCCM SOC: False
2024-12-06 11:53:16.550563500 INFO:SerialBattery:> CHARGE FET: True | DISCHARGE FET: True | BALANCE FET: True
2024-12-06 11:53:16.551688500 INFO:SerialBattery:Serial Number/Unique Identifier: 20_100.0Ah
@warwickchapman warwickchapman added the support Support request label Dec 6, 2024
@warwickchapman
Copy link
Author

@idstein @Marvo2011

@IamSierraCharlie
Copy link

Best advice is not to use it - at least not in a production environment. The driver that the Bluetooth relies on is very flaky (in particular the Broadcom driver). I discussed briefly with mr-manuel in the past 36 hours about it - it was never stable. Many people report that they can get a BMS working on the Cerbo with Bluetooth, but it randomly drops and never recovers unless you reboot - typically segmentation faults or "connection caused software abort" via the BLEAK module.

@Marvo2011
Copy link
Contributor

Bluetooth is very complex, I got my JBD stable with my patch on a raspberry pi and an external usb device. I don't now if JBD has swapt the protocol with this new device. Has somwere more informations for this device ?

@warwickchapman
Copy link
Author

warwickchapman commented Dec 23, 2024

@Marvo2011 May I look at your patch?

@IamSierraCharlie in the logs, it looks like it finds the device, but does not recognize it. I will try a Bluetooth dongle and see if that makes any difference.

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

3 participants