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

LLT/JBD - BMS with LLT app support connection issue/fix #778

Closed
nzlysenko opened this issue Aug 13, 2023 · 4 comments
Closed

LLT/JBD - BMS with LLT app support connection issue/fix #778

nzlysenko opened this issue Aug 13, 2023 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@nzlysenko
Copy link

Describe the problem

I have this LiFePO4 battery Volt Polska. It has its own vendor baked BMS app, which doesn't expose any information about BMS model. But I've found that LLT app also works for the battery. In LLT app parameters the BMS manufacturer and model are identified as:

  • manufacturer: DR
  • device model: DR21S04100-101-V1
  • barcode: 12V150A00684

When I run a configuration with LltJbd_Ble it gives a connection error. After some debug session I found the condition which fails connection test. In this part len(gen_data) < 27 my gen_data has length 25. After updating the condition with len(gen_data) < 25 the connection works and pulled data also look similar to the values which I have in BMS app.
So, could the LltJbd_Ble BMS module be updated to support this type of BMS and are there some points I need to check to confirm the module completely supports my battery BMS?

Driver version

v1.0.20230531

Venus OS device type

Raspberry Pi

Venus OS version

v3.01

BMS type

Smart BMS (LLT, JBD, Overkill Solar)

Cell count

4

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 = 70.0
MAX_BATTERY_DISCHARGE_CURRENT = 150.0
BLUETOOTH_BMS = LltJbd_Ble EA:61:4A:23:82:81

Relevant log output

@4000000064d8c62e25fdd674 INFO:SerialBattery:Starting dbus-serialbattery
@4000000064d8c62e260be804 INFO:SerialBattery:dbus-serialbattery v1.0.20230531
@4000000064d8c62f0870dda4 INFO:SerialBattery:Init of LltJbd_Ble at EA:61:4A:23:82:81
@4000000064d8c62f0877cefc INFO:SerialBattery:Test of LltJbd_Ble at EA:61:4A:23:82:81
@4000000064d8c63606d5fa24 INFO:SerialBattery:Connection established to LltJbd_Ble
@4000000064d8c63606de8d74 INFO:SerialBattery:Battery LltJbd_Ble connected to dbus from bleea614a238281
@4000000064d8c63606e4cf04 INFO:SerialBattery:========== Settings ==========
@4000000064d8c63606ebf70c INFO:SerialBattery:> Connection voltage: 13.71V | Current: 12.39A | SoC: 99.2%
@4000000064d8c63606f253f4 INFO:SerialBattery:> Cell count: 4 | Cells populated: 4
@4000000064d8c63606f8b8ac INFO:SerialBattery:> LINEAR LIMITATION ENABLE: True
@4000000064d8c63606ff5be4 INFO:SerialBattery:> MAX BATTERY CHARGE CURRENT: 70.0A | MAX BATTERY DISCHARGE CURRENT: 150.0A
@4000000064d8c63607060ebc INFO:SerialBattery:> MAX BATTERY CHARGE CURRENT: 165.0A | MAX BATTERY DISCHARGE CURRENT: -170.0A (read from BMS)
@4000000064d8c636070c5434 INFO:SerialBattery:> CVCM:     True
@4000000064d8c63607130324 INFO:SerialBattery:> MIN CELL VOLTAGE: 2.9V | MAX CELL VOLTAGE: 3.45V
@4000000064d8c636071992d4 INFO:SerialBattery:> CCCM CV:  True  | DCCM CV:  True
@4000000064d8c63607200efc INFO:SerialBattery:> CCCM T:   True  | DCCM T:   True
@4000000064d8c636072692f4 INFO:SerialBattery:> CCCM SOC: True  | DCCM SOC: True
@4000000064d8c6360948656c INFO:SerialBattery:DeviceInstance = 1
@4000000064d8c6360952d934 INFO:SerialBattery:com.victronenergy.battery.bleea614a238281
@4000000064d8c637135ab44c INFO:SerialBattery:publish config values = 1

Any other information that may be helpful

No response

@nzlysenko nzlysenko added the support Support request label Aug 13, 2023
@idstein
Copy link
Contributor

idstein commented Sep 2, 2023

Indeed that check assumes there exist at least 2 temperature sensors!

It can even be changed to 23 to have the bare minimum information. For every temperature sensor the length increments by 2 bytes.

@mr-manuel
Copy link
Collaborator

@idstein would it be possible to change this, so that the number of temperature sensors is automatically adjusted? If you find some time in the future :-)

@mr-manuel mr-manuel added enhancement New feature or request help wanted Extra attention is needed and removed support Support request labels Sep 4, 2023
@mr-manuel mr-manuel changed the title BMS with LLT app support connection issue/fix LLT/JBD - BMS with LLT app support connection issue/fix Sep 4, 2023
@mr-manuel
Copy link
Collaborator

mr-manuel commented Sep 4, 2023

@nzlysenko please try to install the nightly from the dev branch. I just pushed some changes.

@mr-manuel
Copy link
Collaborator

This was fixed with the latest nightly build from the dev branch and will be available in the next release and pre-release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants