Louisvdw / dbus-serialbattery

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

BatteryAggregator by pulquero shows 0% SOC even if the batteries are between 20-30% SOC #884

Closed Martinmaker92 closed 10 months ago

Martinmaker92 commented 10 months ago

Describe the bug

I have installed the BatteryAggregator by pulquero via Setuphelper and it works fine. There is only a problem that the Aggregator sometimes shows 0% SOC but just for a short time. (10-30seconds)

i am using V2.4 of the aggregator 18S system with JK BMS

dsfad battery aggregator

How to reproduce

it happens randomly over the day

Expected behavior

it should not go to 0% soc

Driver version

1.0.20230531

Venus OS device type

Cerbo GX

Venus OS version

3.11

BMS type

JKBMS / Heltec BMS

Cell count

18

Connection type

Serial USB adapter to RS485

Config file

[DEFAULT]

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

; --------- Cell Voltages ---------
; Description: Cell min/max voltages which are used to calculate the min/max ba                                                                                                                                                             >
; Example: 16 cells * 3.45V/cell = 55.2V max charge voltage. 16 cells * 2.90V =                                                                                                                                                             >
MIN_CELL_VOLTAGE   = 2.700
; Max voltage can seen as absorption voltage
MAX_CELL_VOLTAGE   = 3.460
FLOAT_CELL_VOLTAGE = 3.45

; --------- Bluetooth BMS ---------
; Description: List the Bluetooth BMS here that you want to install
; -- Available Bluetooth BMS:
; Jkbms_Ble, LltJbd_Ble
; Example:
;     1 BMS: Jkbms_Ble C8:47:8C:00:00:00
;     3 BMS: Jkbms_Ble C8:47:8C:00:00:00, Jkbms_Ble C8:47:8C:00:00:11, Jkbms_Bl                                                                                                                                                             >
BLUETOOTH_BMS =

; --------- BMS disconnect behaviour ---------
; Description: Block charge and discharge when the communication to the BMS is                                                                                                                                                              >
;              BMS on purpose, then you have to restart the driver/system to re                                                                                                                                                             >
; False: Charge and discharge is not blocked on BMS communication loss
; True: Charge and discharge is blocked on BMS communication loss, it's unblock                                                                                                                                                             >
;       again or the driver/system is restarted
BLOCK_ON_DISCONNECT = False

; --------- Charge mode ---------
; Choose the mode for voltage / current limitations (True / False)
; False is a step mode: This is the default with limitations on hard boundary s                                                                                                                                                             >
; True is a linear mode:
;     For CCL and DCL the values between the steps are calculated for smoother                                                                                                                                                              >
;     For CVL max battery voltage is calculated dynamically in order that the m                                                                                                                                                             >
LINEAR_LIMITATION_ENABLE = False

; Specify in seconds how often the linear values should be recalculated
LINEAR_RECALCULATION_EVERY = 60
; Specify in percent when the linear values should be recalculated immediately
; Example: 5 for a immediate change, when the value changes by more than 5%
LINEAR_RECALCULATION_ON_PERC_CHANGE = 5

; --------- Charge Voltage limitation (affecting CVL) ---------
; Description: Limit max charging voltage (MAX_CELL_VOLTAGE * cell count), swit                                                                                                                                                             >
;              voltage (FLOAT_CELL_VOLTAGE * cell count) and back
;     False: Max charging voltage is always kept
;     True: Max charging voltage is reduced based on charge mode
;         Step mode: After max voltage is reached for MAX_VOLTAGE_TIME_SEC it s                                                                                                                                                             >
;                    SoC is below SOC_LEVEL_TO_RESET_VOLTAGE_LIMIT it switches                                                                                                                                                              >
;         Linear mode: After max voltage is reachend and cell voltage differenc                                                                                                                                                             >
;                      CELL_VOLTAGE_DIFF_KEEP_MAX_VOLTAGE_UNTIL it switches to                                                                                                                                                              >
;                      additional seconds.
;                      After cell voltage difference is greater or equal to CEL                                                                                                                                                             >
;                      OR
;                      SoC is below SOC_LEVEL_TO_RESET_VOLTAGE_LIMIT

Relevant log output

login as: root
root@192.168.68.116's password:
Last login: Fri Dec  1 08:22:33 2023
root@einstein:~# nano /data/etc/dbus-serialbattery/config.default.ini
root@einstein:~# nano /data/log/serial-starter/current
  GNU nano 4.9.3                                                                                         /data/log/serial-starter/current
@400000006568690c3a6418e4 *** starting serial-starter ***
@400000006568690d255e4ab4 serstart starting
@400000006568690d27ad0d14 INFO: loading config file /etc/venus/serial-starter.conf
@400000006568690e299ab414 INFO: loading config file /data/conf/serial-starter.d/dbus-serialbattery.conf
@400000006568691036223144 INFO: Create daemontools service mk2-dbus.ttyS4
@40000000656869121e4a18d4 INFO: Create daemontools service vedirect-interface.ttyS5
@4000000065686914013787f4 INFO: Create daemontools service vedirect-interface.ttyS6
@400000006568691520bc8034 INFO: Create daemontools service vedirect-interface.ttyS7
@40000000656869170a3b06b4 INFO: Start service mk2-dbus.ttyS4
@400000006568691725d2f5e4 INFO: Create daemontools service dbus-serialbattery.ttyUSB0
@40000000656869182c89e8ac INFO: Start service vedirect-interface.ttyS5
@40000000656869191a450b54 INFO: Create daemontools service dbus-serialbattery.ttyUSB1
@400000006568691a0da0ea1c INFO: Start service vedirect-interface.ttyS6
@400000006568691b0aea49e4 INFO: Create daemontools service dbus-serialbattery.ttyUSB2
@400000006568691b319aefbc INFO: Start service vedirect-interface.ttyS7
@400000006568691d35fc55dc INFO: Start service dbus-serialbattery.ttyUSB0 once
@400000006568691f26c9aa24 INFO: Start service dbus-serialbattery.ttyUSB1 once
@40000000656869211a5db3d4 INFO: Start service dbus-serialbattery.ttyUSB2 once
@4000000065686cea04b7e0cc INFO: Create daemontools service dbus-cgwacs.ttyUSB0
@4000000065686cec3188cb34 INFO: Create daemontools service dbus-cgwacs.ttyUSB1
@4000000065686cee14c2c7fc INFO: Create daemontools service dbus-cgwacs.ttyUSB2
@4000000065686cf0142b0084 INFO: Start service dbus-cgwacs.ttyUSB0 once
@4000000065686cf302ef9834 INFO: Start service dbus-cgwacs.ttyUSB1 once
@4000000065686cf417c4a9d4 INFO: Start service dbus-cgwacs.ttyUSB2 once
@4000000065686cf60f723364 INFO: Create daemontools service gps-dbus.ttyUSB0
@4000000065686cf71915f964 INFO: Create daemontools service gps-dbus.ttyUSB1
@4000000065686cf82564038c INFO: Create daemontools service gps-dbus.ttyUSB2
@4000000065686cfc1311188c INFO: Start service gps-dbus.ttyUSB0 once
@4000000065686cfd1b597124 INFO: Start service gps-dbus.ttyUSB1 once
@4000000065686cfe27c1ae54 INFO: Start service gps-dbus.ttyUSB2 once
@4000000065686d060376c1c4 INFO: Create daemontools service vedirect-interface.ttyUSB0
@4000000065686d07113cecfc INFO: Create daemontools service vedirect-interface.ttyUSB1
@4000000065686d081ccd6bb4 INFO: Create daemontools service vedirect-interface.ttyUSB2
@4000000065686d0c05fedbd4 INFO: Start service vedirect-interface.ttyUSB0 once
@4000000065686d0d13bf32dc INFO: Start service vedirect-interface.ttyUSB1 once
@4000000065686d0e1f21df1c INFO: Start service vedirect-interface.ttyUSB2 once
@4000000065686d0f3089e164 INFO: Start service dbus-serialbattery.ttyUSB0 once
@4000000065686d1104422fe4 INFO: Start service dbus-serialbattery.ttyUSB1 once
@4000000065686d12175820ac INFO: Start service dbus-serialbattery.ttyUSB2 once
@40000000656997c911912b64 *** CCGX booted (30253) ***
@40000000656997c93502daac *** starting serial-starter ***
@40000000656997ca14208cbc serstart starting
@40000000656997ca175a14ac INFO: loading config file /etc/venus/serial-starter.conf
@40000000656997cb15e7bc14 INFO: loading config file /data/conf/serial-starter.d/dbus-serialbattery.conf
@40000000656997cd1b1c5c6c INFO: Create daemontools service mk2-dbus.ttyS4
@40000000656997ce3aef22a4 INFO: Create daemontools service vedirect-interface.ttyS5
@40000000656997d01f2146c4 INFO: Create daemontools service vedirect-interface.ttyS6
@40000000656997d201e9b53c INFO: Create daemontools service vedirect-interface.ttyS7
@40000000656997d32dc9aff4 INFO: Start service mk2-dbus.ttyS4
@40000000656997d33b683aa4 INFO: Create daemontools service dbus-serialbattery.ttyUSB0
@40000000656997d50d8db424 INFO: Start service vedirect-interface.ttyS5
@40000000656997d52b4a4874 INFO: Create daemontools service dbus-serialbattery.ttyUSB1
@40000000656997d62b5ac334 INFO: Start service vedirect-interface.ttyS6
@40000000656997d718358c44 INFO: Create daemontools service dbus-serialbattery.ttyUSB2
@40000000656997d8123cf00c INFO: Start service vedirect-interface.ttyS7
@40000000656997da1159660c INFO: Start service dbus-serialbattery.ttyUSB0 once
@40000000656997db34bffd7c INFO: Start service dbus-serialbattery.ttyUSB1 once
@40000000656997dd2415ec34 INFO: Start service dbus-serialbattery.ttyUSB2 once

Any other information that may be helpful

No response

mr-manuel commented 10 months ago

Is only the aggregator showing 0% or also this driver?

Martinmaker92 commented 10 months ago

What do you mean the driver?

in the remote console?

this is interresting about 9:00 it showed 0% the lower one is the aggregator.

soc

mr-manuel commented 10 months ago

What do you mean the driver?

dbus-serialbattery

You have to open an issue in the repository of the aggregator and not dbus-serialbattery. We cannot do anything here.