question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New JK BMS Hardware Model JK-B2A8S20P-H Erroneous Readings

See original GitHub issue

I was able to successfully poll this new hardware with the JK02 protocol. Model: JK-B2A8S20P-H Hardware: 11.XW Software: 11.12 Some of the readings don’t match the JIKONG BMS app. See resistance_cell04 through 8, capacity_remain, and cycle_count?

`Command: getCellData - BLE Cell Data inquiry


Parameter Value Unit

header 55aaeb90

record_type 02

record_counter 47

voltage_cell01 3.186 V

voltage_cell02 3.185 V

voltage_cell03 3.186 V

voltage_cell04 3.185 V

voltage_cell05 3.185 V

voltage_cell06 3.186 V

voltage_cell07 3.185 V

voltage_cell08 3.186 V

voltage_cell09 0.0 V

voltage_cell10 0.0 V

voltage_cell11 0.0 V

voltage_cell12 0.0 V

voltage_cell13 0.0 V

voltage_cell14 0.0 V

voltage_cell15 0.0 V

voltage_cell16 0.0 V

voltage_cell17 0.0 V

voltage_cell18 0.0 V

voltage_cell19 0.0 V

voltage_cell20 0.0 V

voltage_cell21 0.0 V

voltage_cell22 0.0 V

voltage_cell23 0.0 V

voltage_cell24 0.0 V

average_cell_voltage 0.0 V

delta_cell_voltage 0.0 V

current_balancer 0.0

resistance_cell01 0.0 Ohm

resistance_cell02 0.0 Ohm

resistance_cell03 0.0 Ohm

resistance_cell04 0.255 Ohm

resistance_cell05 0.0 Ohm

resistance_cell06 3.186 Ohm

resistance_cell07 0.002 Ohm

resistance_cell08 0.007 Ohm

resistance_cell09 0.049 Ohm

resistance_cell10 0.049 Ohm

resistance_cell11 0.049 Ohm

resistance_cell12 0.049 Ohm

resistance_cell13 0.049 Ohm

resistance_cell14 0.049 Ohm

resistance_cell15 0.049 Ohm

resistance_cell16 0.048 Ohm

resistance_cell17 0.0 Ohm

resistance_cell18 0.0 Ohm

resistance_cell19 0.0 Ohm

resistance_cell20 0.0 Ohm

resistance_cell21 0.0 Ohm

resistance_cell22 0.0 Ohm

resistance_cell23 0.0 Ohm

resistance_cell24 0.0 Ohm

battery_voltage 0.0 V

battery_power 0 W

balance_current 0.0 A

battery_t1 0.0 °C

battery_t2 0.0 °C

mos_temp 0.0 °C

percent_remain 0 %

capacity_remain 17694.72 Ah

nominal_capacity 0.0 Ah

cycle_count 25485

cycle_capacity 14.883 Ah

time 157D0H22M41S

current_charge 25.6

current_discharge 0.0 `

Debug attached. BMS_Debug.txt

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
stcancommented, Nov 8, 2022

Thank you for the hint with the 32 cells… I added 8 cells in protocols/jk02.py and the read values fit perfectly !!!

Thanks a lot!

  ```

[“LittleHex2Short:r/1000”, 2, “Voltage_Cell15”, “V”], [“LittleHex2Short:r/1000”, 2, “Voltage_Cell16”, “V”], [“LittleHex2Short:r/1000”, 2, “Voltage_Cell17”, “V”], [“LittleHex2Short:r/1000”, 2, “Voltage_Cell18”, “V”], [“LittleHex2Short:r/1000”, 2, “Voltage_Cell19”, “V”], [“LittleHex2Short:r/1000”, 2, “Voltage_Cell20”, “V”], [“LittleHex2Short:r/1000”, 2, “Voltage_Cell21”, “V”], [“LittleHex2Short:r/1000”, 2, “Voltage_Cell22”, “V”], [“LittleHex2Short:r/1000”, 2, “Voltage_Cell23”, “V”], [“LittleHex2Short:r/1000”, 2, “Voltage_Cell24”, “V”], [“LittleHex2Short:r/1000”, 2, “Voltage_Cell25”, “V”], [“LittleHex2Short:r/1000”, 2, “Voltage_Cell26”, “V”], [“LittleHex2Short:r/1000”, 2, “Voltage_Cell27”, “V”], [“LittleHex2Short:r/1000”, 2, “Voltage_Cell28”, “V”], [“LittleHex2Short:r/1000”, 2, “Voltage_Cell29”, “V”], [“LittleHex2Short:r/1000”, 2, “Voltage_Cell30”, “V”], [“LittleHex2Short:r/1000”, 2, “Voltage_Cell31”, “V”], [“LittleHex2Short:r/1000”, 2, “Voltage_Cell32”, “V”], [“discard”, 4, “discard1”, “”], [“LittleHex2Short:r/1000”, 2, “Average_Cell_Voltage”, “V”], [“LittleHex2Short:r/1000”, 2, “Delta_Cell_Voltage”, “V”], [“LittleHex2Short:r/1000”, 2, “Current_Balancer”, “”], [“LittleHex2Short:r/1000”, 2, “Resistance_Cell01”, “Ohm”], [“LittleHex2Short:r/1000”, 2, “Resistance_Cell02”, “Ohm”], [“LittleHex2Short:r/1000”, 2, “Resistance_Cell03”, “Ohm”], [“LittleHex2Short:r/1000”, 2, “Resistance_Cell04”, “Ohm”], [“LittleHex2Short:r/1000”, 2, “Resistance_Cell05”, “Ohm”], [“LittleHex2Short:r/1000”, 2, “Resistance_Cell06”, “Ohm”], [“LittleHex2Short:r/1000”, 2, “Resistance_Cell07”, “Ohm”], [“LittleHex2Short:r/1000”, 2, “Resistance_Cell08”, “Ohm”], [“LittleHex2Short:r/1000”, 2, “Resistance_Cell09”, “Ohm”], [“LittleHex2Short:r/1000”, 2, “Resistance_Cell10”, “Ohm”], [“LittleHex2Short:r/1000”, 2, “Resistance_Cell11”, “Ohm”], [“LittleHex2Short:r/1000”, 2, “Resistance_Cell12”, “Ohm”], [“LittleHex2Short:r/1000”, 2, “Resistance_Cell13”, “Ohm”], [“LittleHex2Short:r/1000”, 2, “Resistance_Cell14”, “Ohm”], [“LittleHex2Short:r/1000”, 2, “Resistance_Cell15”, “Ohm”], [“LittleHex2Short:r/1000”, 2, “Resistance_Cell16”, “Ohm”], [“LittleHex2Short:r/1000”, 2, “Resistance_Cell17”, “Ohm”], [“LittleHex2Short:r/1000”, 2, “Resistance_Cell18”, “Ohm”], [“LittleHex2Short:r/1000”, 2, “Resistance_Cell19”, “Ohm”], [“LittleHex2Short:r/1000”, 2, “Resistance_Cell20”, “Ohm”], [“LittleHex2Short:r/1000”, 2, “Resistance_Cell21”, “Ohm”], [“LittleHex2Short:r/1000”, 2, “Resistance_Cell22”, “Ohm”], [“LittleHex2Short:r/1000”, 2, “Resistance_Cell23”, “Ohm”], [“LittleHex2Short:r/1000”, 2, “Resistance_Cell24”, “Ohm”], [“LittleHex2Short:r/1000”, 2, “Resistance_Cell25”, “Ohm”], [“LittleHex2Short:r/1000”, 2, “Resistance_Cell26”, “Ohm”], [“LittleHex2Short:r/1000”, 2, “Resistance_Cell27”, “Ohm”], [“LittleHex2Short:r/1000”, 2, “Resistance_Cell28”, “Ohm”], [“LittleHex2Short:r/1000”, 2, “Resistance_Cell29”, “Ohm”], [“LittleHex2Short:r/1000”, 2, “Resistance_Cell30”, “Ohm”], [“LittleHex2Short:r/1000”, 2, “Resistance_Cell31”, “Ohm”], [“LittleHex2Short:r/1000”, 2, “Resistance_Cell32”, “Ohm”],



jkbms -p c8:47:8c:e5:be:34 -b 115200 -P JK02 -c getCellData
Command: getCellData - BLE Cell Data inquiry
------------------------------------------------------------
Parameter                       Value           Unit
header                          55aaeb90
record_type                     02
record_counter                  136
voltage_cell01                  3.21            V
voltage_cell02                  3.212           V
voltage_cell03                  3.21            V
voltage_cell04                  3.209           V
voltage_cell05                  3.21            V
voltage_cell06                  3.21            V
voltage_cell07                  3.21            V
voltage_cell08                  3.209           V
voltage_cell09                  0.0             V
voltage_cell10                  0.0             V
voltage_cell11                  0.0             V
voltage_cell12                  0.0             V
voltage_cell13                  0.0             V
voltage_cell14                  0.0             V
voltage_cell15                  0.0             V
voltage_cell16                  0.0             V
voltage_cell17                  0.0             V
voltage_cell18                  0.0             V
voltage_cell19                  0.0             V
voltage_cell20                  0.0             V
voltage_cell21                  0.0             V
voltage_cell22                  0.0             V
voltage_cell23                  0.0             V
voltage_cell24                  0.0             V
voltage_cell25                  0.0             V
voltage_cell26                  0.0             V
voltage_cell27                  0.0             V
voltage_cell28                  0.0             V
voltage_cell29                  0.0             V
voltage_cell30                  0.0             V
voltage_cell31                  0.0             V
voltage_cell32                  0.0             V
average_cell_voltage            3.21            V
delta_cell_voltage              0.004           V
current_balancer                0.773
resistance_cell01               0.048           Ohm
resistance_cell02               0.049           Ohm
resistance_cell03               0.046           Ohm
resistance_cell04               0.045           Ohm
resistance_cell05               0.046           Ohm
resistance_cell06               0.048           Ohm
resistance_cell07               0.048           Ohm
resistance_cell08               0.049           Ohm
resistance_cell09               0.0             Ohm
resistance_cell10               0.0             Ohm
resistance_cell11               0.0             Ohm
resistance_cell12               0.0             Ohm
resistance_cell13               0.0             Ohm
resistance_cell14               0.0             Ohm
resistance_cell15               0.0             Ohm
resistance_cell16               0.0             Ohm
resistance_cell17               0.0             Ohm
resistance_cell18               0.0             Ohm
resistance_cell19               0.0             Ohm
resistance_cell20               0.0             Ohm
resistance_cell21               0.0             Ohm
resistance_cell22               0.0             Ohm
resistance_cell23               0.0             Ohm
resistance_cell24               0.0             Ohm
resistance_cell25               0.0             Ohm
resistance_cell26               0.0             Ohm
resistance_cell27               0.0             Ohm
resistance_cell28               0.0             Ohm
resistance_cell29               0.0             Ohm
resistance_cell30               0.0             Ohm
resistance_cell31               0.0             Ohm
resistance_cell32               0.0             Ohm
battery_voltage                 25.68           V
battery_power                   0               W
balance_current                 0.0             A
battery_t1                      11.9            °C
battery_t2                      11.7            °C
mos_temp                        0.0             °C
percent_remain                  65              %
capacity_remain                 151.165         Ah
nominal_capacity                230.0           Ah
cycle_count                     0
cycle_capacity                  178.097         Ah
time                            37D1H43M35S
current_charge                  0.003
current_discharge               0.0
0reactions
stcancommented, Nov 9, 2022

I have not changed anything except adding 8 cells in the voltage and resistance section. This cron job has run 24h so far without any problems: ***** /usr/local/bin/jkbms -p c8:47:8c:e5:be:34 -b 115200 -P JK02 -c getCellData -o mqtt -q 192.168.0.55 > /dev/null 2>&1

The edited file: jk02.zip

Read more comments on GitHub >

github_iconTop Results From Across the Web

SUPPORT - JK BMS
JKBMS has professional Battery BMS/Battery Balancer/Battery monitors engineer team to desing high quality series BMS/Balancer/Monitors support ...
Read more >
JK-BMS: all settings and menus explained. How to ... - YouTube
In this very detailed video, I explain all the settings and menu options of the JK - BMS. If you're new to the...
Read more >
JK BMS Erratic current readings? - DIY Solar Power Forum
Anyone able to offer some advice? Got the JK BMS hooked up.. all good heat shrinked ring terminal connections.
Read more >
Cannot connect to JK BMS/Active Balancer · Issue #170 - GitHub
My cell voltage readings seem pretty stable - during charge / discharge cycles all cells stay within 0.05v of each other and no...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found