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

Battery Temperature shows 100 degrees #916

Closed
JurgenDaniel opened this issue Jan 11, 2024 · 10 comments
Closed

Battery Temperature shows 100 degrees #916

JurgenDaniel opened this issue Jan 11, 2024 · 10 comments
Labels
support Support request

Comments

@JurgenDaniel
Copy link

Describe the problem

Hi,
just installed a JK bms and connect it through bluetooth to my cerbo gx.
Unfortunately i have a problem with the battery temp, the cerbo shows a temp of 100 degrees, while the Jk bms shows the correct temp in the Jk app. (see screenshot below)
In the log i see that the temperature is 6552.1 & 6552.3 (The screenshot and log is not from the same time and temperature.)
Is this a bug that can be fixed by software? I have already tried somethings, like using different versions and also de nightly dev.
Could someone help me?

Screenshot JK BMS (Please note that the temps are below 0)

Driver version

1.1.20231224dev

Venus OS device type

Cerbo GX

Venus OS version

v3.13

BMS type

JKBMS / Heltec BMS

Cell count

15

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 = Jkbms_Ble C8:47:8C:10:10:20
TEMP_BATTERY = 0
LOGGING = DEBUG

Relevant log output

2024-01-11 17:15:51.548359500 DEBUG:SerialBattery:--> assemble_frame() -> self.frame_buffer (before extend) -> lenght:  0
2024-01-11 17:15:51.548369500 DEBUG:SerialBattery:[]
2024-01-11 17:15:51.548371500 DEBUG:SerialBattery:--> assemble_frame() -> self.frame_buffer (after extend) -> lenght:  128
2024-01-11 17:15:51.548375500 DEBUG:SerialBattery:[85, 170, 235, 144, 2, 212, 197, 12, 196, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 127, 0, 0, 197, 12, 2, 0, 3, 5, 57, 0, 66, 0, 53, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 51, 0, 51, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
2024-01-11 17:15:51.584210500 DEBUG:SerialBattery:--> NEW PACKAGE! lenght:  22
2024-01-11 17:15:51.585217500 DEBUG:SerialBattery:ncallback(): \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0b\x00\x00\x00\x00\x00
2024-01-11 17:15:51.585843500 DEBUG:SerialBattery:--> assemble_frame() -> self.frame_buffer (before extend) -> lenght:  128
2024-01-11 17:15:51.586667500 DEBUG:SerialBattery:[85, 170, 235, 144, 2, 212, 197, 12, 196, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 127, 0, 0, 197, 12, 2, 0, 3, 5, 57, 0, 66, 0, 53, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 51, 0, 51, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
2024-01-11 17:15:51.587264500 DEBUG:SerialBattery:--> assemble_frame() -> self.frame_buffer (after extend) -> lenght:  150
2024-01-11 17:15:51.588323500 DEBUG:SerialBattery:[85, 170, 235, 144, 2, 212, 197, 12, 196, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 127, 0, 0, 197, 12, 2, 0, 3, 5, 57, 0, 66, 0, 53, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 51, 0, 51, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0]
2024-01-11 17:15:51.601579500 DEBUG:SerialBattery:--> NEW PACKAGE! lenght:  128
2024-01-11 17:15:51.603625500 DEBUG:SerialBattery:ncallback(): \x8b\xbf\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf1\xff\xf3\xff\x00\x00\x00\x00\x00\x00\x00\x42\x8b\xdb\x02\x00\xc0\x45\x04\x00\x00\x00\x00\x00\x2d\x00\x00\x00\x64\x00\x00\x00\x28\x2b\x03\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\x00\x01\x00\x00\x00\x3c\x04\x00\x00\x00\x00\x74\x32\x3d\x40\x00\x00\x00\x00\x27\x13\x29\x16\x00\x01\x00\x01\x00\x05\x00\x00\x89\x2c\x10\x00\x00\x00\x00\x00\x0b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
2024-01-11 17:15:51.604311500 DEBUG:SerialBattery:--> assemble_frame() -> self.frame_buffer (before extend) -> lenght:  150
2024-01-11 17:15:51.605440500 DEBUG:SerialBattery:[85, 170, 235, 144, 2, 212, 197, 12, 196, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 127, 0, 0, 197, 12, 2, 0, 3, 5, 57, 0, 66, 0, 53, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 51, 0, 51, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0]
2024-01-11 17:15:51.606204500 DEBUG:SerialBattery:--> assemble_frame() -> self.frame_buffer (after extend) -> lenght:  278
2024-01-11 17:15:51.608236500 DEBUG:SerialBattery:[85, 170, 235, 144, 2, 212, 197, 12, 196, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 127, 0, 0, 197, 12, 2, 0, 3, 5, 57, 0, 66, 0, 53, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 51, 0, 51, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 139, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 241, 255, 243, 255, 0, 0, 0, 0, 0, 0, 0, 66, 139, 219, 2, 0, 192, 69, 4, 0, 0, 0, 0, 0, 45, 0, 0, 0, 100, 0, 0, 0, 40, 43, 3, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 1, 0, 0, 0, 60, 4, 0, 0, 0, 0, 116, 50, 61, 64, 0, 0, 0, 0, 39, 19, 41, 22, 0, 1, 0, 1, 0, 5, 0, 0, 137, 44, 16, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
2024-01-11 17:15:51.643949500 DEBUG:SerialBattery:--> NEW PACKAGE! lenght:  22
2024-01-11 17:15:51.644951500 DEBUG:SerialBattery:ncallback(): \x00\x00\x00\x00\x00\x00\x00\x00\x00\xfe\xff\x7f\xdc\x0f\x01\x00\x00\x00\x00\x00\x00\xf7
2024-01-11 17:15:51.645593500 DEBUG:SerialBattery:--> assemble_frame() -> self.frame_buffer (before extend) -> lenght:  278
2024-01-11 17:15:51.646781500 DEBUG:SerialBattery:[85, 170, 235, 144, 2, 212, 197, 12, 196, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 127, 0, 0, 197, 12, 2, 0, 3, 5, 57, 0, 66, 0, 53, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 51, 0, 51, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 139, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 241, 255, 243, 255, 0, 0, 0, 0, 0, 0, 0, 66, 139, 219, 2, 0, 192, 69, 4, 0, 0, 0, 0, 0, 45, 0, 0, 0, 100, 0, 0, 0, 40, 43, 3, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 1, 0, 0, 0, 60, 4, 0, 0, 0, 0, 116, 50, 61, 64, 0, 0, 0, 0, 39, 19, 41, 22, 0, 1, 0, 1, 0, 5, 0, 0, 137, 44, 16, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
2024-01-11 17:15:51.647563500 DEBUG:SerialBattery:--> assemble_frame() -> self.frame_buffer (after extend) -> lenght:  300
2024-01-11 17:15:51.648785500 DEBUG:SerialBattery:[85, 170, 235, 144, 2, 212, 197, 12, 196, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 127, 0, 0, 197, 12, 2, 0, 3, 5, 57, 0, 66, 0, 53, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 51, 0, 51, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 139, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 241, 255, 243, 255, 0, 0, 0, 0, 0, 0, 0, 66, 139, 219, 2, 0, 192, 69, 4, 0, 0, 0, 0, 0, 45, 0, 0, 0, 100, 0, 0, 0, 40, 43, 3, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 1, 0, 0, 0, 60, 4, 0, 0, 0, 0, 116, 50, 61, 64, 0, 0, 0, 0, 39, 19, 41, 22, 0, 1, 0, 1, 0, 5, 0, 0, 137, 44, 16, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 255, 127, 220, 15, 1, 0, 0, 0, 0, 0, 0, 247]
2024-01-11 17:15:51.649799500 DEBUG:SerialBattery:compair recvd. crc: 247 vs calc. crc: 247
2024-01-11 17:15:51.650431500 DEBUG:SerialBattery:great success! frame complete and sane, lets decode
2024-01-11 17:15:51.651615500 DEBUG:SerialBattery:[85, 170, 235, 144, 2, 212, 197, 12, 196, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 127, 0, 0, 197, 12, 2, 0, 3, 5, 57, 0, 66, 0, 53, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 51, 0, 51, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 139, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 241, 255, 243, 255, 0, 0, 0, 0, 0, 0, 0, 66, 139, 219, 2, 0, 192, 69, 4, 0, 0, 0, 0, 0, 45, 0, 0, 0, 100, 0, 0, 0, 40, 43, 3, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 1, 0, 0, 0, 60, 4, 0, 0, 0, 0, 116, 50, 61, 64, 0, 0, 0, 0, 39, 19, 41, 22, 0, 1, 0, 1, 0, 5, 0, 0, 137, 44, 16, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 255, 127, 220, 15, 1, 0, 0, 0, 0, 0, 0, 247]
2024-01-11 17:15:51.652336500 DEBUG:SerialBattery:fb[38]: 0.0.0.0.0
2024-01-11 17:15:51.652966500 DEBUG:SerialBattery:fb[54]: 0.0.0.0.0
2024-01-11 17:15:51.653556500 DEBUG:SerialBattery:fb[70]: 0.0.255.127.0
2024-01-11 17:15:51.654157500 DEBUG:SerialBattery:fb[134]: 0.0.0.0.0
2024-01-11 17:15:51.654714500 DEBUG:SerialBattery:fb[144]: 0.0.11.0.0
2024-01-11 17:15:51.655278500 DEBUG:SerialBattery:fb[289]: 254.255.127.220.15
2024-01-11 17:15:51.655824500 DEBUG:SerialBattery:bms_max_cell_count recognized: 32
2024-01-11 17:15:51.656376500 DEBUG:SerialBattery:processing frame with battery cell info
2024-01-11 17:15:51.663200500 DEBUG:SerialBattery:decode_cellinfo_jk02(): self.frame_buffer
2024-01-11 17:15:51.664435500 DEBUG:SerialBattery:[85, 170, 235, 144, 2, 212, 197, 12, 196, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 127, 0, 0, 197, 12, 2, 0, 3, 5, 57, 0, 66, 0, 53, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 51, 0, 51, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 139, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 241, 255, 243, 255, 0, 0, 0, 0, 0, 0, 0, 66, 139, 219, 2, 0, 192, 69, 4, 0, 0, 0, 0, 0, 45, 0, 0, 0, 100, 0, 0, 0, 40, 43, 3, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 1, 0, 0, 0, 60, 4, 0, 0, 0, 0, 116, 50, 61, 64, 0, 0, 0, 0, 39, 19, 41, 22, 0, 1, 0, 1, 0, 5, 0, 0, 137, 44, 16, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 255, 127, 220, 15, 1, 0, 0, 0, 0, 0, 0, 247]
2024-01-11 17:15:51.665864500 DEBUG:SerialBattery:{'model_nbr': 'BK-BLE-1.0', 'device_info': {'hw_rev': '11.XW', 'sw_rev': '11.261', 'uptime': 201600, 'vendor_id': 'JK_B1A20S15P', 'manufacturing_date': '231219', 'serial_number': '3040142672', 'production': 'Input Us'}, 'last_update': 1704993351.1303413, 'settings': {'cell_uvp': 2.6, 'cell_uvpr': 2.65, 'cell_ovp': 3.6, 'cell_ovpr': 3.5500000000000003, 'balance_trigger_voltage': 0.01, 'power_off_voltage': 2.5, 'max_charge_current': 25.0, 'max_discharge_current': 10.0, 'max_balance_current': 25.0, 'cell_count': 15, 'charging_switch': True, 'discharging_switch': True, 'balancing_switch': True}, 'cell_info': {'voltages': [3.269, 3.2680000000000002, 3.269, 3.269, 3.269, 3.269, 3.269, 3.269, 3.269, 3.269, 3.269, 3.269, 3.269, 3.269, 3.269], 'average_cell_voltage': 3.269, 'delta_cell_voltage': 0.002, 'max_voltage_cell': 3, 'min_voltage_cell': 5, 'resistances': [0.057, 0.066, 0.053, 0.052000000000000005, 0.052000000000000005, 0.052000000000000005, 0.052000000000000005, 0.052000000000000005, 0.052000000000000005, 0.052000000000000005, 0.052000000000000005, 0.052000000000000005, 0.051000000000000004, 0.051000000000000004, 0.056, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'total_voltage': 49.035000000000004, 'current': 0.0, 'temperature_sensor_1': 6552.1, 'temperature_sensor_2': 6552.3, 'temperature_mos': 1.1, 'balancing_current': 0.0, 'balancing_action': 0.0, 'battery_soc': 66, 'capacity_remain': 187.275, 'capacity_nominal': 280.0, 'cycle_count': 0, 'cycle_capacity': 0.045, 'charging_switch_enabled': True, 'discharging_switch_enabled': True, 'balancing_active': False, 'error_bitmask_16': '0x0', 'error_bitmask_2': '0000000000000000', 'power': 0.0}, 'warnings': {'resistance_too_high': False, 'cell_count_wrong': False, 'charge_overtemp': False, 'charge_undertemp': False, 'discharge_overtemp': False, 'cell_overvoltage': False, 'cell_undervoltage': False, 'charge_overcurrent': False, 'discharge_overcurrent': False}}
2024-01-11 17:15:51.681561500 DEBUG:SerialBattery:logged to dbus [66]
2024-01-11 17:15:51.683519500 DEBUG:SerialBattery:Cells:[1]3.269V [2]3.2680000000000002V [3]3.269V [4]3.269V [5]3.269V [6]3.269V [7]3.269V [8]3.269V [9]3.269V [10]3.269V [11]3.269V [12]3.269V [13]3.269V [14]3.269V [15]3.269V [16]NoneV [17]NoneV [18]NoneV [19]NoneV [20]NoneV [21]NoneV [22]NoneV [23]NoneV [24]NoneV [25]NoneV [26]NoneV [27]NoneV [28]NoneV [29]NoneV [30]NoneV
tail: /data/log/dbus-blebattery.0/current has been replaced; following end of new file
2024-01-11 17:15:52.216697500 DEBUG:SerialBattery:{'model_nbr': 'BK-BLE-1.0', 'device_info': {'hw_rev': '11.XW', 'sw_rev': '11.261', 'uptime': 201600, 'vendor_id': 'JK_B1A20S15P', 'manufacturing_date': '231219', 'serial_number': '3040142672', 'production': 'Input Us'}, 'last_update': 1704993351.6659205, 'settings': {'cell_uvp': 2.6, 'cell_uvpr': 2.65, 'cell_ovp': 3.6, 'cell_ovpr': 3.5500000000000003, 'balance_trigger_voltage': 0.01, 'power_off_voltage': 2.5, 'max_charge_current': 25.0, 'max_discharge_current': 10.0, 'max_balance_current': 25.0, 'cell_count': 15, 'charging_switch': True, 'discharging_switch': True, 'balancing_switch': True}, 'cell_info': {'voltages': [3.269, 3.2680000000000002, 3.2680000000000002, 3.269, 3.2680000000000002, 3.2680000000000002, 3.2680000000000002, 3.269, 3.2680000000000002, 3.269, 3.269, 3.269, 3.269, 3.269, 3.269], 'average_cell_voltage': 3.2680000000000002, 'delta_cell_voltage': 0.002, 'max_voltage_cell': 3, 'min_voltage_cell': 5, 'resistances': [0.057, 0.066, 0.053, 0.052000000000000005, 0.052000000000000005, 0.052000000000000005, 0.052000000000000005, 0.052000000000000005, 0.052000000000000005, 0.052000000000000005, 0.052000000000000005, 0.052000000000000005, 0.051000000000000004, 0.051000000000000004, 0.056, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'total_voltage': 49.026, 'current': 0.0, 'temperature_sensor_1': 6552.1, 'temperature_sensor_2': 6552.3, 'temperature_mos': 1.1, 'balancing_current': 0.0, 'balancing_action': 0.0, 'battery_soc': 66, 'capacity_remain': 187.275, 'capacity_nominal': 280.0, 'cycle_count': 0, 'cycle_capacity': 0.045, 'charging_switch_enabled': True, 'discharging_switch_enabled': True, 'balancing_active': False, 'error_bitmask_16': '0x0', 'error_bitmask_2': '0000000000000000', 'power': 0.0}, 'warnings': {'resistance_too_high': False, 'cell_count_wrong': False, 'charge_overtemp': False, 'charge_undertemp': False, 'discharge_overtemp': False, 'cell_overvoltage': False, 'cell_undervoltage': False, 'charge_overcurrent': False, 'discharge_overcurrent': False}}
2024-01-11 17:15:52.266181500 DEBUG:SerialBattery:logged to dbus [66]
2024-01-11 17:15:52.271164500 DEBUG:SerialBattery:Cells:[1]3.269V [2]3.2680000000000002V [3]3.2680000000000002V [4]3.269V [5]3.2680000000000002V [6]3.2680000000000002V [7]3.2680000000000002V [8]3.269V [9]3.2680000000000002V [10]3.269V [11]3.269V [12]3.269V [13]3.269V [14]3.269V [15]3.269V [16]NoneV [17]NoneV [18]NoneV [19]NoneV [20]NoneV [21]NoneV [22]NoneV [23]NoneV [24]NoneV [25]NoneV [26]NoneV [27]NoneV [28]NoneV [29]NoneV [30]NoneV
2024-01-11 17:15:52.622811500 DEBUG:SerialBattery:--> NEW PACKAGE! lenght:  128
2024-01-11 17:15:52.624870500 DEBUG:SerialBattery:ncallback(): \x55\xaa\xeb\x90\x02\xd6\xc5\x0c\xc4\x0c\xc5\x0c\xc5\x0c\xc5\x0c\xc4\x0c\xc5\x0c\xc5\x0c\xc4\x0c\xc6\x0c\xc6\x0c\xc5\x0c\xc5\x0c\xc5\x0c\xc5\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\x7f\x00\x00\xc5\x0c\x02\x00\x03\x05\x39\x00\x42\x00\x35\x00\x34\x00\x34\x00\x34\x00\x34\x00\x34\x00\x34\x00\x34\x00\x34\x00\x34\x00\x33\x00\x33\x00\x38\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
2024-01-11 17:15:52.625533500 DEBUG:SerialBattery:--> assemble_frame() -> self.frame_buffer (before extend) -> lenght:  0
2024-01-11 17:15:52.626103500 DEBUG:SerialBattery:[]
2024-01-11 17:15:52.626729500 DEBUG:SerialBattery:--> assemble_frame() -> self.frame_buffer (after extend) -> lenght:  128
2024-01-11 17:15:52.627678500 DEBUG:SerialBattery:[85, 170, 235, 144, 2, 214, 197, 12, 196, 12, 197, 12, 197, 12, 197, 12, 196, 12, 197, 12, 197, 12, 196, 12, 198, 12, 198, 12, 197, 12, 197, 12, 197, 12, 197, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 127, 0, 0, 197, 12, 2, 0, 3, 5, 57, 0, 66, 0, 53, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 51, 0, 51, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
2024-01-11 17:15:52.665186500 DEBUG:SerialBattery:--> NEW PACKAGE! lenght:  22
2024-01-11 17:15:52.666240500 DEBUG:SerialBattery:ncallback(): \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0b\x00\x00\x00\x00\x00
2024-01-11 17:15:52.666874500 DEBUG:SerialBattery:--> assemble_frame() -> self.frame_buffer (before extend) -> lenght:  128
2024-01-11 17:15:52.667964500 DEBUG:SerialBattery:[85, 170, 235, 144, 2, 214, 197, 12, 196, 12, 197, 12, 197, 12, 197, 12, 196, 12, 197, 12, 197, 12, 196, 12, 198, 12, 198, 12, 197, 12, 197, 12, 197, 12, 197, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 127, 0, 0, 197, 12, 2, 0, 3, 5, 57, 0, 66, 0, 53, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 51, 0, 51, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
2024-01-11 17:15:52.668783500 DEBUG:SerialBattery:--> assemble_frame() -> self.frame_buffer (after extend) -> lenght:  150
2024-01-11 17:15:52.669734500 DEBUG:SerialBattery:[85, 170, 235, 144, 2, 214, 197, 12, 196, 12, 197, 12, 197, 12, 197, 12, 196, 12, 197, 12, 197, 12, 196, 12, 198, 12, 198, 12, 197, 12, 197, 12, 197, 12, 197, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 127, 0, 0, 197, 12, 2, 0, 3, 5, 57, 0, 66, 0, 53, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 51, 0, 51, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0]
2024-01-11 17:15:52.697902500 DEBUG:SerialBattery:--> NEW PACKAGE! lenght:  128
2024-01-11 17:15:52.699871500 DEBUG:SerialBattery:ncallback(): \x85\xbf\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf1\xff\xf3\xff\x00\x00\x00\x00\x00\x00\x00\x42\x8b\xdb\x02\x00\xc0\x45\x04\x00\x00\x00\x00\x00\x2d\x00\x00\x00\x64\x00\x00\x00\x29\x2b\x03\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\x00\x01\x00\x00\x00\x3c\x04\x00\x00\x00\x00\x74\x32\x3d\x40\x00\x00\x00\x00\x26\x13\x29\x16\x00\x01\x00\x01\x00\x05\x00\x00\x94\x2c\x10\x00\x00\x00\x00\x00\x0b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
2024-01-11 17:15:52.700531500 DEBUG:SerialBattery:--> assemble_frame() -> self.frame_buffer (before extend) -> lenght:  150
2024-01-11 17:15:52.701473500 DEBUG:SerialBattery:[85, 170, 235, 144, 2, 214, 197, 12, 196, 12, 197, 12, 197, 12, 197, 12, 196, 12, 197, 12, 197, 12, 196, 12, 198, 12, 198, 12, 197, 12, 197, 12, 197, 12, 197, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 127, 0, 0, 197, 12, 2, 0, 3, 5, 57, 0, 66, 0, 53, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 51, 0, 51, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0]
2024-01-11 17:15:52.702231500 DEBUG:SerialBattery:--> assemble_frame() -> self.frame_buffer (after extend) -> lenght:  278
2024-01-11 17:15:52.703353500 DEBUG:SerialBattery:[85, 170, 235, 144, 2, 214, 197, 12, 196, 12, 197, 12, 197, 12, 197, 12, 196, 12, 197, 12, 197, 12, 196, 12, 198, 12, 198, 12, 197, 12, 197, 12, 197, 12, 197, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 127, 0, 0, 197, 12, 2, 0, 3, 5, 57, 0, 66, 0, 53, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 51, 0, 51, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 133, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 241, 255, 243, 255, 0, 0, 0, 0, 0, 0, 0, 66, 139, 219, 2, 0, 192, 69, 4, 0, 0, 0, 0, 0, 45, 0, 0, 0, 100, 0, 0, 0, 41, 43, 3, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 1, 0, 0, 0, 60, 4, 0, 0, 0, 0, 116, 50, 61, 64, 0, 0, 0, 0, 38, 19, 41, 22, 0, 1, 0, 1, 0, 5, 0, 0, 148, 44, 16, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
2024-01-11 17:15:52.724661500 DEBUG:SerialBattery:--> NEW PACKAGE! lenght:  22
2024-01-11 17:15:52.725688500 DEBUG:SerialBattery:ncallback(): \x00\x00\x00\x00\x00\x00\x00\x00\x00\xfe\xff\x7f\xdc\x0f\x01\x00\x00\x00\x00\x00\x00\xfe
2024-01-11 17:15:52.726369500 DEBUG:SerialBattery:--> assemble_frame() -> self.frame_buffer (before extend) -> lenght:  278
2024-01-11 17:15:52.727627500 DEBUG:SerialBattery:[85, 170, 235, 144, 2, 214, 197, 12, 196, 12, 197, 12, 197, 12, 197, 12, 196, 12, 197, 12, 197, 12, 196, 12, 198, 12, 198, 12, 197, 12, 197, 12, 197, 12, 197, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 127, 0, 0, 197, 12, 2, 0, 3, 5, 57, 0, 66, 0, 53, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 51, 0, 51, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 133, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 241, 255, 243, 255, 0, 0, 0, 0, 0, 0, 0, 66, 139, 219, 2, 0, 192, 69, 4, 0, 0, 0, 0, 0, 45, 0, 0, 0, 100, 0, 0, 0, 41, 43, 3, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 1, 0, 0, 0, 60, 4, 0, 0, 0, 0, 116, 50, 61, 64, 0, 0, 0, 0, 38, 19, 41, 22, 0, 1, 0, 1, 0, 5, 0, 0, 148, 44, 16, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
2024-01-11 17:15:52.728407500 DEBUG:SerialBattery:--> assemble_frame() -> self.frame_buffer (after extend) -> lenght:  300
2024-01-11 17:15:52.729620500 DEBUG:SerialBattery:[85, 170, 235, 144, 2, 214, 197, 12, 196, 12, 197, 12, 197, 12, 197, 12, 196, 12, 197, 12, 197, 12, 196, 12, 198, 12, 198, 12, 197, 12, 197, 12, 197, 12, 197, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 127, 0, 0, 197, 12, 2, 0, 3, 5, 57, 0, 66, 0, 53, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 51, 0, 51, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 133, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 241, 255, 243, 255, 0, 0, 0, 0, 0, 0, 0, 66, 139, 219, 2, 0, 192, 69, 4, 0, 0, 0, 0, 0, 45, 0, 0, 0, 100, 0, 0, 0, 41, 43, 3, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 1, 0, 0, 0, 60, 4, 0, 0, 0, 0, 116, 50, 61, 64, 0, 0, 0, 0, 38, 19, 41, 22, 0, 1, 0, 1, 0, 5, 0, 0, 148, 44, 16, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 255, 127, 220, 15, 1, 0, 0, 0, 0, 0, 0, 254]
2024-01-11 17:15:52.730611500 DEBUG:SerialBattery:compair recvd. crc: 254 vs calc. crc: 254
2024-01-11 17:15:52.731175500 DEBUG:SerialBattery:great success! frame complete and sane, lets decode
2024-01-11 17:15:52.732316500 DEBUG:SerialBattery:[85, 170, 235, 144, 2, 214, 197, 12, 196, 12, 197, 12, 197, 12, 197, 12, 196, 12, 197, 12, 197, 12, 196, 12, 198, 12, 198, 12, 197, 12, 197, 12, 197, 12, 197, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 127, 0, 0, 197, 12, 2, 0, 3, 5, 57, 0, 66, 0, 53, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 51, 0, 51, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 133, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 241, 255, 243, 255, 0, 0, 0, 0, 0, 0, 0, 66, 139, 219, 2, 0, 192, 69, 4, 0, 0, 0, 0, 0, 45, 0, 0, 0, 100, 0, 0, 0, 41, 43, 3, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 1, 0, 0, 0, 60, 4, 0, 0, 0, 0, 116, 50, 61, 64, 0, 0, 0, 0, 38, 19, 41, 22, 0, 1, 0, 1, 0, 5, 0, 0, 148, 44, 16, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 255, 127, 220, 15, 1, 0, 0, 0, 0, 0, 0, 254]
2024-01-11 17:15:52.732944500 DEBUG:SerialBattery:fb[38]: 0.0.0.0.0
2024-01-11 17:15:52.733668500 DEBUG:SerialBattery:fb[54]: 0.0.0.0.0
2024-01-11 17:15:52.734335500 DEBUG:SerialBattery:fb[70]: 0.0.255.127.0
2024-01-11 17:15:52.734917500 DEBUG:SerialBattery:fb[134]: 0.0.0.0.0
2024-01-11 17:15:52.735481500 DEBUG:SerialBattery:fb[144]: 0.0.11.0.0
2024-01-11 17:15:52.736034500 DEBUG:SerialBattery:fb[289]: 254.255.127.220.15
2024-01-11 17:15:52.736567500 DEBUG:SerialBattery:bms_max_cell_count recognized: 32
2024-01-11 17:15:52.737161500 DEBUG:SerialBattery:processing frame with battery cell info
2024-01-11 17:15:52.743887500 DEBUG:SerialBattery:decode_cellinfo_jk02(): self.frame_buffer
2024-01-11 17:15:52.745978500 DEBUG:SerialBattery:[85, 170, 235, 144, 2, 214, 197, 12, 196, 12, 197, 12, 197, 12, 197, 12, 196, 12, 197, 12, 197, 12, 196, 12, 198, 12, 198, 12, 197, 12, 197, 12, 197, 12, 197, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 127, 0, 0, 197, 12, 2, 0, 3, 5, 57, 0, 66, 0, 53, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 51, 0, 51, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 133, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 241, 255, 243, 255, 0, 0, 0, 0, 0, 0, 0, 66, 139, 219, 2, 0, 192, 69, 4, 0, 0, 0, 0, 0, 45, 0, 0, 0, 100, 0, 0, 0, 41, 43, 3, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 1, 0, 0, 0, 60, 4, 0, 0, 0, 0, 116, 50, 61, 64, 0, 0, 0, 0, 38, 19, 41, 22, 0, 1, 0, 1, 0, 5, 0, 0, 148, 44, 16, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 255, 127, 220, 15, 1, 0, 0, 0, 0, 0, 0, 254]
2024-01-11 17:15:52.749298500 DEBUG:SerialBattery:{'model_nbr': 'BK-BLE-1.0', 'device_info': {'hw_rev': '11.XW', 'sw_rev': '11.261', 'uptime': 201600, 'vendor_id': 'JK_B1A20S15P', 'manufacturing_date': '231219', 'serial_number': '3040142672', 'production': 'Input Us'}, 'last_update': 1704993352.2149296, 'settings': {'cell_uvp': 2.6, 'cell_uvpr': 2.65, 'cell_ovp': 3.6, 'cell_ovpr': 3.5500000000000003, 'balance_trigger_voltage': 0.01, 'power_off_voltage': 2.5, 'max_charge_current': 25.0, 'max_discharge_current': 10.0, 'max_balance_current': 25.0, 'cell_count': 15, 'charging_switch': True, 'discharging_switch': True, 'balancing_switch': True}, 'cell_info': {'voltages': [3.269, 3.2680000000000002, 3.269, 3.269, 3.269, 3.2680000000000002, 3.269, 3.269, 3.2680000000000002, 3.27, 3.27, 3.269, 3.269, 3.269, 3.269], 'average_cell_voltage': 3.269, 'delta_cell_voltage': 0.002, 'max_voltage_cell': 3, 'min_voltage_cell': 5, 'resistances': [0.057, 0.066, 0.053, 0.052000000000000005, 0.052000000000000005, 0.052000000000000005, 0.052000000000000005, 0.052000000000000005, 0.052000000000000005, 0.052000000000000005, 0.052000000000000005, 0.052000000000000005, 0.051000000000000004, 0.051000000000000004, 0.056, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'total_voltage': 49.029, 'current': 0.0, 'temperature_sensor_1': 6552.1, 'temperature_sensor_2': 6552.3, 'temperature_mos': 1.1, 'balancing_current': 0.0, 'balancing_action': 0.0, 'battery_soc': 66, 'capacity_remain': 187.275, 'capacity_nominal': 280.0, 'cycle_count': 0, 'cycle_capacity': 0.045, 'charging_switch_enabled': True, 'discharging_switch_enabled': True, 'balancing_active': False, 'error_bitmask_16': '0x0', 'error_bitmask_2': '0000000000000000', 'power': 0.0}, 'warnings': {'resistance_too_high': False, 'cell_count_wrong': False, 'charge_overtemp': False, 'charge_undertemp': False, 'discharge_overtemp': False, 'cell_overvoltage': False, 'cell_undervoltage': False, 'charge_overcurrent': False, 'discharge_overcurrent': False}}
2024-01-11 17:15:52.781189500 DEBUG:SerialBattery:logged to dbus [66]
2024-01-11 17:15:52.783177500 DEBUG:SerialBattery:Cells:[1]3.269V [2]3.2680000000000002V [3]3.269V [4]3.269V [5]3.269V [6]3.2680000000000002V [7]3.269V [8]3.269V [9]3.2680000000000002V [10]3.27V [11]3.27V [12]3.269V [13]3.269V [14]3.269V [15]3.269V [16]NoneV [17]NoneV [18]NoneV [19]NoneV [20]NoneV [21]NoneV [22]NoneV [23]NoneV [24]NoneV [25]NoneV [26]NoneV [27]NoneV [28]NoneV [29]NoneV [30]NoneV
tail: /data/log/dbus-blebattery.0/current has been replaced; following end of new file
2024-01-11 17:15:53.294998500 DEBUG:SerialBattery:compair recvd. crc: 6 vs calc. crc: 6
2024-01-11 17:15:53.295006500 DEBUG:SerialBattery:great success! frame complete and sane, lets decode
2024-01-11 17:15:53.295010500 DEBUG:SerialBattery:[85, 170, 235, 144, 2, 215, 197, 12, 196, 12, 197, 12, 198, 12, 197, 12, 196, 12, 196, 12, 197, 12, 196, 12, 197, 12, 197, 12, 197, 12, 197, 12, 197, 12, 196, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 127, 0, 0, 197, 12, 2, 0, 3, 5, 57, 0, 66, 0, 53, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 52, 0, 51, 0, 51, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 133, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 241, 255, 243, 255, 0, 0, 0, 0, 0, 0, 0, 66, 139, 219, 2, 0, 192, 69, 4, 0, 0, 0, 0, 0, 45, 0, 0, 0, 100, 0, 0, 0, 42, 43, 3, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 1, 0, 0, 0, 60, 4, 0, 0, 0, 0, 116, 50, 61, 64, 0, 0, 0, 0, 38, 19, 45, 22, 0, 1, 0, 1, 0, 5, 0, 0, 153, 44, 16, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 255, 127, 220, 15, 1, 0, 0, 0, 0, 0, 0, 6]
2024-01-11 17:15:53.295215500 DEBUG:SerialBattery:fb[38]: 0.0.0.0.0
2024-01-11 17:15:53.295218500 DEBUG:SerialBattery:fb[54]: 0.0.0.0.0
2024-01-11 17:15:53.295220500 DEBUG:SerialBattery:fb[70]: 0.0.255.127.0
2024-01-11 17:15:53.295222500 DEBUG:SerialBattery:fb[134]: 0.0.0.0.0
2024-01-11 17:15:53.295224500 DEBUG:SerialBattery:fb[144]: 0.0.11.0.0
2024-01-11 17:15:53.295227500 DEBUG:SerialBattery:fb[289]: 254.255.127.220.15
2024-01-11 17:15:53.295229500 DEBUG:SerialBattery:bms_max_cell_count recognized: 32
2024-01-11 17:15:53.295250500 DEBUG:SerialBattery:processing frame with battery cell info

Any other information that may be helpful

No response

@JurgenDaniel JurgenDaniel added the support Support request label Jan 11, 2024
@JurgenDaniel
Copy link
Author

Here is a screenshot of the 100 degree battery. . . little to high.
image

@kommando828
Copy link

kommando828 commented Jan 11, 2024

This looks like a int16 register being seen as uint16 (or the other way round as its confusing ;) ).

So temps of -1.5 and -1.3 are seen as 6552.1 and 6552.3 when all are divided by 10

This tool allows you to see conversions

https://cryptii.com/pipes/integer-converter as seen in the screenshot

Screenshot (15)

@JurgenDaniel
Copy link
Author

Thanks for your quick response!
It helped me a lot, i have looked into the code a little bit but couldn't find the self.translate function.
Today its alittle above 0 degrees where i live and right now it works fine. so it has probably something to do with the freezing temperature.
Does anyone else have 100 degree battery temps in their history when its freezing?
image

@kommando828
Copy link

kommando828 commented Jan 12, 2024

Nearest I get to programming is Node-red but within Node-red I have to do a lot of int32 to int16 plus int16 to uint16 conversions inside nodes feeding modbus servers so I recognised the numbers. There will be code that is misreading 16623 and 16621 as above 100 instead of them actually being negative numbers. As modbus registers cannot contain either negative numbers or decimal points you have to know what type of number they are and apply a signed to unsigned conversion and apply a multiplier ie 01 /10 becomes 0.1.

@mr-manuel
Copy link
Collaborator

What model and hardware version is your BMS?

@pau1phi11ips
Copy link

pau1phi11ips commented Jan 18, 2024

I have a JK BMS, JK-B2A8S20P, connected via Bluetooth and also getting 100°C for the temps when it's below zero.

Hardware version JKBMS 11.XW 8 cells (20231009)

Serial Battery version 1.0.20231126dev
Also tried Serial Battery version 1.0.20240112dev - same result

You can see the temp dropping to zero and then jump to 100 as it goes negative.

image

It's currently reporting ~50°C as 1 temp sensor is 3°C and the other is -0.5°C, but it's doing the average of 3 and 100.

image

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

The issue should be fixed with the nightly of the dev branch from my repo. Could you please try?

wget -O /tmp/install.sh https://raw.githubusercontent.com/Louisvdw/dbus-serialbattery/master/etc/dbus-serialbattery/install.sh

bash /tmp/install.sh

Select nightly build and then dev (mr-manuel's repo).

@pau1phi11ips
Copy link

Thanks, I'll give it a try tonight. The air temps have gone up a lot since but I'll stick one of the sensors in some frozen peas 😁

@pau1phi11ips
Copy link

pau1phi11ips commented Jan 23, 2024

Select nightly build and then dev (mr-manuel's repo).

Hiya, sorry for the delay.

The air temp is currently 8°C and the both battery probes read 8°C. I put one of the probes in the frozen peas and it slowly crept down... 6, 4, 3, 2, 1... then jumped to -20°C. It didn't budge on the -20. Average battery temp was showing -6.

Should the -20 have been -2?

@mr-manuel
Copy link
Collaborator

mr-manuel commented Jan 28, 2024

I found the error. Please install the latest nightly and report back.

mr-manuel added a commit to mr-manuel/venus-os_dbus-serialbattery that referenced this issue Jan 28, 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
support Support request
Projects
None yet
Development

No branches or pull requests

4 participants