Louisvdw / dbus-serialbattery

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

CVL & CCL & DCL Fixed not matching BMS settings #187

Closed NunoRgP closed 2 years ago

NunoRgP commented 2 years ago

Describe the bug SerialBattery/Parameters seem to be oscillating between certain values :

CVL : 55.2 V CCL : 50 A DCL : 15A / 30 A

On the JBD BMS settings I am using 50A as maximum charge current and 100 A as discharge current as well as on the utils.py

I selected the SMART Shunt to be used as the battery monitor but it seems the cerboGX is taking the above values on serial battery as the system limits . At the DCL parameter ( 30A or 15A ) the Inverter throttles down .

I wand to use the dbus-serialbattery as only a monitoring tool as I currently have 2 batteries in parallel . So I would prefer to use the tool with DVCC off but as soon as I turn it off the inverter gives me the low voltage error and turns on passthrough .

Is there a way to make these values fixed ? Is this expected behaviour ?

Expected behavior Have the SerialBattery/Parameters CVL & CCL & DCL as fixed values

Screenshots DVCC battery monitor utils py Parameters WhatsApp Image 2022-08-21 at 9 32 29 PM

VenusOS (please complete the following information):

Battery/BMS (please complete the following information):

Additional context

Add any other context about the problem here.

NunoRgP commented 2 years ago

Ok I managed to change the settings and it seems they are fixed now, I had to do the CCM_Enable = False . ( My bad for not reading the features part ) After placing it as False the cerboGX is now using the max battery charge current and discharge current from the utils.py .

I am only missing now where is the CVL of 55.2 coming from ?

Is it possible to use the driver as a monitoring tool only ? I miss alot of settings that could be used before installing the driver, and it seems to be impossibel now to revert back without resetting the cerbo to factory .

Louisvdw commented 2 years ago

Correct. CCCM dynamicly changes your charge current from the SOC value. It does use the battery SOC value not the GX SOC as it is a battery feature.

For the CVL it gets calculated from your cell count. See CVL in features