JK BMS, serialbattery und config.ini

Moin, ich habe seid venus os 3.5 immer wieder Probleme bei der Einrichtung von dbus-serialbattery und deren config.ini .

mit dieser Config habe ich immer gearbeitet und hatte auch keine Probleme.

[DEFAULT]

; --------- Set logging level ---------
LOGGING = INFO

; --------- Battery Current limits ---------
MAX_BATTERY_CHARGE_CURRENT = 100
MAX_BATTERY_DISCHARGE_CURRENT = 100

; --------- Cell Voltages ---------
MIN_CELL_VOLTAGE = 2.800
MAX_CELL_VOLTAGE = 3.500
FLOAT_CELL_VOLTAGE = 3.450

; --------- BMS disconnect behaviour ---------
BLOCK_ON_DISCONNECT = True

; --------- Charge mode ---------
LINEAR_LIMITATION_ENABLE = True
LINEAR_RECALCULATION_EVERY = 60
LINEAR_RECALCULATION_ON_PERC_CHANGE = 5

; --------- Charge Voltage limitation (affecting CVL) ---------
CVCM_ENABLE = True
CELL_VOLTAGE_DIFF_KEEP_MAX_VOLTAGE_UNTIL = 0.010
CELL_VOLTAGE_DIFF_KEEP_MAX_VOLTAGE_TIME_RESTART = 0.015
CELL_VOLTAGE_DIFF_TO_RESET_VOLTAGE_LIMIT = 0.080
MAX_VOLTAGE_TIME_SEC = 600
SOC_LEVEL_TO_RESET_VOLTAGE_LIMIT = 85

; --------- SOC calculation ---------
SOC_CALCULATION = False

; --------- Cell Voltage Current limitation (affecting CCL/DCL) ---------
CCCM_CV_ENABLE = True
DCCM_CV_ENABLE = True
CELL_VOLTAGES_WHILE_CHARGING = 3.55, 3.45, 3.42, 3.38, 3.30
MAX_CHARGE_CURRENT_CV_FRACTION = 0, 0.07, 0.7, 1, 1
CELL_VOLTAGES_WHILE_DISCHARGING = 2.70, 2.80, 2.90, 3.10
MAX_DISCHARGE_CURRENT_CV_FRACTION = 0, 0.1, 0.5, 1

; --------- Temperature limitation (affecting CCL/DCL) ---------
CCCM_T_ENABLE = True
DCCM_T_ENABLE = True
TEMPERATURES_WHILE_CHARGING = 0, 2, 5, 10, 15, 20, 35, 40, 55
MAX_CHARGE_CURRENT_T_FRACTION = 0.00, 0.10, 0.20, 0.50, 1.00, 1.00, 1.00, 0.40, 0.00
TEMPERATURES_WHILE_DISCHARGING = -20, 0, 5, 10, 15, 45, 55
MAX_DISCHARGE_CURRENT_T_FRACTION = 0.00, 0.20, 0.50, 0.80, 1.00, 1.00, 0.00

; --------- Additional settings ---------
BMS_TYPE = Jkbms
AUTO_RESET_SOC = False
PUBLISH_CONFIG_VALUES = True
BATTERY_CELL_DATA_FORMAT = 0
MIDPOINT_ENABLE = False
TEMP_BATTERY = 0
TEMP_1_NAME = Temp Akku 1
TEMP_2_NAME = Temp Akku 2
TEMP_3_NAME = Temp Akku 3
TEMP_4_NAME = Temp Akku 4

; --------- BMS specific settings ---------
JKBMS_CAN_CELL_COUNT = 18

Nach dem updates von venus os auf 3.55 lief schon nichts mehr ohne stÀndig die Fehlermeldung #119 invalid settings JK (BMS) und ich habe schon mal einiges deaktiviert, um nach und nach jede Zeile wieder dazu einzubinden.

[DEFAULT]

; --------- Set logging level ---------
LOGGING = INFO (DEBUG)

; --------- Battery Current limits ---------
MAX_BATTERY_CHARGE_CURRENT = 100
MAX_BATTERY_DISCHARGE_CURRENT = 100

; --------- Cell Voltages ---------
MIN_CELL_VOLTAGE = 2.800
MAX_CELL_VOLTAGE = 3.500
FLOAT_CELL_VOLTAGE = 3.450

; --------- BMS disconnect behaviour ---------
BLOCK_ON_DISCONNECT = True

bis dahin lÀuft alles ohne Probleme.

Hier gehen mir die Versuche aus, was den Fehler auslöst.

LINEAR_LIMITATION_ENABLE = True
;LINEAR_RECALCULATION_EVERY = 60
;LINEAR_RECALCULATION_ON_PERC_CHANGE = 5

; --------- Charge Voltage limitation (affecting CVL) ---------
;CVCM_ENABLE = True
;CELL_VOLTAGE_DIFF_KEEP_MAX_VOLTAGE_UNTIL = 0.010
;CELL_VOLTAGE_DIFF_KEEP_MAX_VOLTAGE_TIME_RESTART = 0.015
;CELL_VOLTAGE_DIFF_TO_RESET_VOLTAGE_LIMIT = 0.080
;MAX_VOLTAGE_TIME_SEC = 600
;SOC_LEVEL_TO_RESET_VOLTAGE_LIMIT = 85

; --------- SOC calculation ---------
;SOC_CALCULATION = False

; --------- Cell Voltage Current limitation (affecting CCL/DCL) ---------
CCCM_CV_ENABLE = True
DCCM_CV_ENABLE = True
CELL_VOLTAGES_WHILE_CHARGING = 3.55, 3.45, 3.42, 3.38, 3.30
MAX_CHARGE_CURRENT_CV_FRACTION = 0, 0.07, 0.7, 1, 1
CELL_VOLTAGES_WHILE_DISCHARGING = 2.70, 2.80, 2.90, 3.10
MAX_DISCHARGE_CURRENT_CV_FRACTION = 0, 0.1, 0.5, 1

; --------- Temperature limitation (affecting CCL/DCL) ---------
;CCCM_T_ENABLE = True
;DCCM_T_ENABLE = True
;TEMPERATURES_WHILE_CHARGING = 0, 2, 5, 10, 15, 20, 35, 40, 55
;MAX_CHARGE_CURRENT_T_FRACTION = 0.00, 0.10, 0.20, 0.50, 1.00, 1.00, 1.00, 0.40, 0.00
;TEMPERATURES_WHILE_DISCHARGING = -20, 0, 5, 10, 15, 45, 55
;MAX_DISCHARGE_CURRENT_T_FRACTION = 0.00, 0.20, 0.50, 0.80, 1.00, 1.00, 0.00

; --------- Additional settings ---------
BMS_TYPE = Jkbms
AUTO_RESET_SOC = False
PUBLISH_CONFIG_VALUES = True
BATTERY_CELL_DATA_FORMAT = 0
MIDPOINT_ENABLE = False
TEMP_BATTERY = 0
TEMP_1_NAME = Temp Akku 1
TEMP_2_NAME = Temp Akku 2
;TEMP_3_NAME = Temp Akku 3
;TEMP_4_NAME = Temp Akku 4

; --------- BMS specific settings ---------
;JKBMS_CAN_CELL_COUNT = 18

wenn mich nicht alles tĂ€uscht .. gibt es fĂŒr das JK BMS ein Update..

mußt hier mal etwas suchen ;O)))

Moin, ein update fĂŒr das BMS? ich dachte das update wird dann ĂŒber das Handy eigespielt, bisher gab es da noch keine angezeigt.

kann auch dafĂŒr sein
.. ich besitze das nicht .. aber meine es hier gelesen zu haben.

bin schon am suchen, aber das fette Inverter BMS habe ich leider nicht.

There is more info in the log file

/data/log/dbus-serialbattery.ttyUSBX/current

I had some issues and the answer was in the log file

das ergebnis

root@raspberrypi4:~# /data/log/dbus-serialbattery.ttyUSBX/current
-sh: /data/log/dbus-serialbattery.ttyUSBX/current: No such file or directory
root@raspberrypi4:~#

also updates finde ich wohl infos, aber diese sind fĂŒr die riesigen Inverter BMS. nicht fĂŒr meine.

X was for the USB device

I have USB0 and USB1

image

Moin, du meinst das in etwa so?

Bus 001 Device 001: ID 1d6b:0002 Linux 5.10.110 xhci-hcd xHCI Host Controller
Bus 001 Device 002: ID 2109:3431 USB2.0 Hub
Bus 001 Device 009: ID 1a86:55d3 USB Single Serial
Bus 002 Device 001: ID 1d6b:0003 Linux 5.10.110 xhci-hcd xHCI Host Controller
root@raspberrypi4:~#

monentan bekomme ich nicht mal mehr die Batterie angezeigt, obwohl ich die Config.ini wieder reduziert habe auf anfang und es sauber fehlerfrei angezeigt wurde.

MfG Smu-Joe

Ich habe jetzt mal mit der alten config ein bisschen ausprobiert und hoffe mal nur die Sachen jetzt ausgeklammert zu haben, welche gleich den Fehler ‘119 invalid settings bringen. ich möchte euch mal die Datei zeigen und auch die Ausgabe, welche ich in der Konsole finde. vielleicht wĂ€re es möglich mir zu erklĂ€ren, warum ich die Dinge nicht mehr brauche oder welches Risiko fĂŒr mein Akku besteht? ich stehe hier echt wie der Ochse vorm Berg.

[DEFAULT]

; --------- Set logging level ---------
LOGGING = DEBUG

; --------- Battery Current limits ---------
MAX_BATTERY_CHARGE_CURRENT = 100
MAX_BATTERY_DISCHARGE_CURRENT = 100

; --------- Cell Voltages ---------
MIN_CELL_VOLTAGE = 2.800
MAX_CELL_VOLTAGE = 3.500
FLOAT_CELL_VOLTAGE = 3.400

; --------- BMS disconnect behaviour ---------
;BLOCK_ON_DISCONNECT = True

; --------- Charge mode ---------
;LINEAR_LIMITATION_ENABLE = True
;LINEAR_RECALCULATION_EVERY = 60
;LINEAR_RECALCULATION_ON_PERC_CHANGE = 5

; --------- Charge Voltage limitation (affecting CVL) ---------
;CVCM_ENABLE = True
;CELL_VOLTAGE_DIFF_KEEP_MAX_VOLTAGE_UNTIL = 0.010
;CELL_VOLTAGE_DIFF_KEEP_MAX_VOLTAGE_TIME_RESTART = 0.015
;CELL_VOLTAGE_DIFF_TO_RESET_VOLTAGE_LIMIT = 0.080
;MAX_VOLTAGE_TIME_SEC = 600
;SOC_LEVEL_TO_RESET_VOLTAGE_LIMIT = 85

; --------- SOC calculation ---------
SOC_CALCULATION = False

; --------- Cell Voltage Current limitation (affecting CCL/DCL) ---------
CCCM_CV_ENABLE = True
DCCM_CV_ENABLE = True
CELL_VOLTAGES_WHILE_CHARGING = 3.55, 3.45, 3.42, 3.38, 3.30
MAX_CHARGE_CURRENT_CV_FRACTION = 0, 0.07, 0.7, 1, 1
CELL_VOLTAGES_WHILE_DISCHARGING = 2.70, 2.80, 2.90, 3.10
MAX_DISCHARGE_CURRENT_CV_FRACTION = 0, 0.1, 0.5, 1

; --------- Temperature limitation (affecting CCL/DCL) ---------
CCCM_T_ENABLE = True
DCCM_T_ENABLE = True
TEMPERATURES_WHILE_CHARGING = 0, 2, 5, 10, 15, 20, 35, 40, 55
MAX_CHARGE_CURRENT_T_FRACTION = 0.00, 0.10, 0.20, 0.50, 1.00, 1.00, 1.00, 0.40, 0.00
TEMPERATURES_WHILE_DISCHARGING = -20, 0, 5, 10, 15, 45, 55
MAX_DISCHARGE_CURRENT_T_FRACTION = 0.00, 0.20, 0.50, 0.80, 1.00, 1.00, 0.00

; --------- Additional settings ---------
;BMS_TYPE = Jkbms
;AUTO_RESET_SOC = False
;PUBLISH_CONFIG_VALUES = True
;BATTERY_CELL_DATA_FORMAT = 0
;MIDPOINT_ENABLE = False
;TEMP_BATTERY = 0
;TEMP_1_NAME = Temp Akku 1
;TEMP_2_NAME = Temp Akku 2
;TEMP_3_NAME = Temp Akku 3
;TEMP_4_NAME = Temp Akku 4

; --------- BMS specific settings ---------
;JKBMS_CAN_CELL_COUNT = 18

No,

Login and go to /data/log

cd /data/log

ls -l dbus-serialbattery.ttyUSB*

(in my case I see 2 devices en I go to the first /dbus-serialbattery.ttyUSB0)

cd dbus-serialbattery.ttyUSB0

ls -l (for file listing)

use more for display the current of the current file

more current

I have restart the dbus-serialbattery (needed when the config is changed)

Do you have a 18S battery?

Are you showing the config.default.ini or the config.ini

For config-er you do not change the config.default.ini only config.ini

my config.ini

[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.
; NOTICE: Do not copy the whole file, but only the values/settings you want to change.

; Example (remove the semicolon “;” to uncomment and activate the value/setting):
; MAX_BATTERY_CHARGE_CURRENT = 50.0
; MAX_BATTERY_DISCHARGE_CURRENT = 60.0
MAX_CELL_VOLTAGE = 3.549
FLOAT_CELL_VOLTAGE = 3.450
;CELL_VOLTAGES_WHILE_CHARGING = 3.500, 3.450, 3.425, 3.400, 3.375
CELL_VOLTAGES_WHILE_CHARGING = 3.550, 3.500, 3.450, 3.425, 3.400
MAX_CHARGE_CURRENT_CV_FRACTION = 0.000, 0.010, 0.100, 0.250, 1.000

BMS_TYPE = Jkbms

Hello Fredd,

my english ist not realy good. I will give you the informations. To your first post today:

to your second post: yes i have a pack 18S. for installing a new system on a Raspberry PI 4 i will become a working system with dbus-serial and battery Aggregator. This was in the last time the onlyone Problem i had. The config i have posted is from my actually running system with with venus os 3.55. i used the old driver from Louis with this config i send. This have 4 Packs and with one i will taste the new System.

I cant understand the context from config.ini and config.default.ini. Sure i had copy my file from pc to raspy. All changings i hve done in the file config.ini.

thanks for your help

now i have tasted ls -l

thanks

you have a /dev/ttyACM0 adapeter?

Is that an USB RS485 adapter connected to your JK Bms

yes

and when i have done changings in the file config.ini, so also i have done a reboot from the pi.

Guten Morgen,

Du hast auch ein Treiber Update gemacht und die Changelog nicht gelesen! Bei der neuen Version wurden einige Sachen “um benannt” damit der Treiber mit den neuesten OS Versionen lĂ€uft! Du must deine config.ini anhand der neuen config.default.ini anpassen.

Der Fehler 119 liegt ziemlich sicher hier: LINEAR_LIMITATION_ENABLE = True

Das heißt jetzt: CHARGE_MODE = 1

Die Grenzwerte max Zellspannung 
. dĂŒrfen nicht kleiner als deine max Ladegrenzen sein!!