Louisvdw / dbus-serialbattery

Battery Monitor driver for serial battery in VenusOS GX systems
MIT License
541 stars 165 forks source link

Battery Temperature shows 100 degrees #916

Closed JurgenDaniel closed 9 months ago

JurgenDaniel commented 10 months ago

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 commented 10 months ago

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

kommando828 commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

What model and hardware version is your BMS?

pau1phi11ips commented 10 months ago

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 commented 9 months ago

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 commented 9 months ago

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 commented 9 months ago

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 commented 9 months ago

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