Louisvdw / dbus-serialbattery

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

SOC reset voltage not reachable and SOC not resetting. #1018

Closed Rutgerdek closed 6 months ago

Rutgerdek commented 6 months ago

Describe the problem

Probably a user error, but here's what I encounter.

I'm unable to get the system to charge to SOC_RESET_VOLTAGE as this voltage needs to be higher than MAX_CELL_VOLTAGE, at which the Victron system stops charging. I've set both values at 0.001v apart and the battery sees that voltage regularly for a few seconds but no reset.

I also tried raising the voltages, thus charging the batteries, then lovering them and rebooting the Cerbo. This causes the cells to be higher then SOC_RESET_VOLTAGE for a few minutes but still no reset.

Driver version

1.120240121

Venus OS device type

Cerbo GX

Venus OS version

3.13 (LargeOS)

BMS type

Smart BMS (LLT, JBD, Overkill Solar)

Cell count

8

Battery count

2

Connection type

Serial USB adapter to TTL

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

MAX_BATTERY_CHARGE_CURRENT = 100.0
MAX_BATTERY_DISCHARGE_CURRENT = 200.0

MIN_CELL_VOLTAGE   = 2.900
MAX_CELL_VOLTAGE   = 3.295
; Max voltage (can seen as absorption voltage)
FLOAT_CELL_VOLTAGE = 3.294
; Float voltage (can be seen as resting voltage), lager dan max
SOC_RESET_VOLTAGE = 3.296
; moet hoger zijn dan max_cell_voltage
SOC_RESET_AFTER_DAYS = 1

LINEAR_LIMITATION_ENABLE = False
CVCM_ENABLE = False
CCCM_CV_ENABLE = False
DCCM_CV_ENABLE = False
CCCM_T_ENABLE = False
DCCM_T_ENABLE = False
TIME_TO_GO_ENABLE = False
BMS_TYPE = LltJbd
EXCLUDED_DEVICES = /dev/ttyusb0
CUSTOM_BATTERY_NAMES = /dev/ttyusb1

Relevant log output

@4000000065fd423711f6b394 ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyUSB1
@4000000065fd424707d51e8c INFO:SerialBattery:
@4000000065fd424708afbb64 INFO:SerialBattery:Starting dbus-serialbattery
@4000000065fd424708d1d9c4 INFO:SerialBattery:dbus-serialbattery v1.1.20240121
@4000000065fd425709ff5d44 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
@4000000065fd425709ff806c INFO:SerialBattery:Testing LltJbd
@4000000065fd42571cffd9dc ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd42573b54780c INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
@4000000065fd42573b5f2a54 INFO:SerialBattery:Testing LltJbd
@4000000065fd425810935ad4 ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd42582eebdd1c INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
@4000000065fd42582ef8ae5c INFO:SerialBattery:Testing LltJbd
@4000000065fd4259045b70bc ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd425922e1c964 ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyUSB1
@4000000065fd426f126265e4 INFO:SerialBattery:
@4000000065fd426f126fead4 INFO:SerialBattery:Starting dbus-serialbattery
@4000000065fd426f1286b2dc INFO:SerialBattery:dbus-serialbattery v1.1.20240121
@4000000065fd427f136d424c INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
@4000000065fd427f137badb4 INFO:SerialBattery:Testing LltJbd
@4000000065fd427f2595642c ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd42800853a52c INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
@4000000065fd4280086fe78c INFO:SerialBattery:Testing LltJbd
@4000000065fd4280196e855c ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd428037c84fc4 INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
@4000000065fd428037d33ca4 INFO:SerialBattery:Testing LltJbd
@4000000065fd42810d2e2b1c ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd42812b7920a4 ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyUSB1
@4000000065fd42931d093c34 INFO:SerialBattery:
@4000000065fd42931d1388ec INFO:SerialBattery:Starting dbus-serialbattery
@4000000065fd42931d2b6e1c INFO:SerialBattery:dbus-serialbattery v1.1.20240121
@4000000065fd42a31d7ce97c INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
@4000000065fd42a31d87c2d4 INFO:SerialBattery:Testing LltJbd
@4000000065fd42a32e44eebc ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd42a410fc0f84 INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
@4000000065fd42a4110b1344 INFO:SerialBattery:Testing LltJbd
@4000000065fd42a4236a2f5c ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd42a506215024 INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
@4000000065fd42a5062c3d04 INFO:SerialBattery:Testing LltJbd
@4000000065fd42a517a598b4 ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd42a535f024c4 ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyUSB1
@4000000065fd42b70e1a6f7c INFO:SerialBattery:
@4000000065fd42b70e25e8fc INFO:SerialBattery:Starting dbus-serialbattery
@4000000065fd42b70e3b7c6c INFO:SerialBattery:dbus-serialbattery v1.1.20240121
@4000000065fd42c70f2a83d4 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
@4000000065fd42c70f357884 INFO:SerialBattery:Testing LltJbd
@4000000065fd42c71fb9354c ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd42c80277b0e4 INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
@4000000065fd42c80282f79c INFO:SerialBattery:Testing LltJbd
@4000000065fd42c813b28c94 ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd42c83257deec INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
@4000000065fd42c8327507c4 INFO:SerialBattery:Testing LltJbd
@4000000065fd42c908b6a8d4 ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd42c92771a224 ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyUSB1
@4000000065fd42d928eab17c INFO:SerialBattery:
@4000000065fd42d928f77ed4 INFO:SerialBattery:Starting dbus-serialbattery
@4000000065fd42d9290fae3c INFO:SerialBattery:dbus-serialbattery v1.1.20240121
@4000000065fd42e92a035d0c INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
@4000000065fd42e92a1162e4 INFO:SerialBattery:Testing LltJbd
@4000000065fd42e93ab23ccc ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd42ea1d6c3fdc INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
@4000000065fd42ea1d7c938c INFO:SerialBattery:Testing LltJbd
@4000000065fd42ea2ed0bfb4 ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd42eb11884ddc INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
@4000000065fd42eb11944844 INFO:SerialBattery:Testing LltJbd
@4000000065fd42eb22474a9c ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd42ec057b3c84 ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyUSB1
@4000000065fd42fb2fc83f14 INFO:SerialBattery:
@4000000065fd42fb2fdd0b4c INFO:SerialBattery:Starting dbus-serialbattery
@4000000065fd42fb2fff394c INFO:SerialBattery:dbus-serialbattery v1.1.20240121
@4000000065fd430b310070f4 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
@4000000065fd430b310fb71c INFO:SerialBattery:Testing LltJbd
@4000000065fd430c06fa5aa4 ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd430c254c0ebc INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
@4000000065fd430c2556d48c INFO:SerialBattery:Testing LltJbd
@4000000065fd430c374aaf9c ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd430d19fb7b4c INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
@4000000065fd430d1a06029c INFO:SerialBattery:Testing LltJbd
@4000000065fd430d2bf17d24 ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd430e0ea74a14 ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyUSB1
@4000000065fd431e23dbb1f4 INFO:SerialBattery:
@4000000065fd431e23e9a05c INFO:SerialBattery:Starting dbus-serialbattery
@4000000065fd431e24a84124 INFO:SerialBattery:dbus-serialbattery v1.1.20240121
@4000000065fd432e2542e314 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
@4000000065fd432e254e29cc INFO:SerialBattery:Testing LltJbd
@4000000065fd432e375b93d4 ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd432f1a55052c INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
@4000000065fd432f1a5cb204 INFO:SerialBattery:Testing LltJbd
@4000000065fd432f2d724124 ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd433010268f44 INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
@4000000065fd433010311e64 INFO:SerialBattery:Testing LltJbd
@4000000065fd4330210481cc ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd433103afbf9c ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyUSB1
@4000000065fd4342262042f4 INFO:SerialBattery:
@4000000065fd4342262c7bdc INFO:SerialBattery:Starting dbus-serialbattery
@4000000065fd43422642bb2c INFO:SerialBattery:dbus-serialbattery v1.1.20240121
@4000000065fd435226f361d4 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
@4000000065fd4352270042b4 INFO:SerialBattery:Testing LltJbd
@4000000065fd435239164fac ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd43531bce3b94 INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
@4000000065fd43531bd8a3a4 INFO:SerialBattery:Testing LltJbd
@4000000065fd43532d9b4cf4 ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd43541056de74 INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
@4000000065fd43541061d70c INFO:SerialBattery:Testing LltJbd
@4000000065fd435420eb353c ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd435503c5148c ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyUSB1
@4000000065fd43641c22146c INFO:SerialBattery:
@4000000065fd43641c33bbf4 INFO:SerialBattery:Starting dbus-serialbattery
@4000000065fd43641c525014 INFO:SerialBattery:dbus-serialbattery v1.1.20240121
@4000000065fd43741d62e93c INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
@4000000065fd43741d84e474 INFO:SerialBattery:Testing LltJbd
@4000000065fd43742ebf52c4 ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd4375117b558c INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
@4000000065fd43751188078c INFO:SerialBattery:Testing LltJbd
@4000000065fd43752224d264 ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd437604d90914 INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
@4000000065fd437604e4385c INFO:SerialBattery:Testing LltJbd
@4000000065fd43761707495c ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd4376355def14 ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyUSB1
@4000000065fd4388320f8764 INFO:SerialBattery:
@4000000065fd438832236d24 INFO:SerialBattery:Starting dbus-serialbattery
@4000000065fd4388323cf834 INFO:SerialBattery:dbus-serialbattery v1.1.20240121
@4000000065fd4398333060b4 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
@4000000065fd4398333b41dc INFO:SerialBattery:Testing LltJbd
@4000000065fd43990955ea5c ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd439927ac5d4c INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
@4000000065fd439927b824ec INFO:SerialBattery:Testing LltJbd
@4000000065fd439939b0ca8c ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd439a1c7272a4 INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
@4000000065fd439a1c7d57b4 INFO:SerialBattery:Testing LltJbd
@4000000065fd439a2e2dd4ac ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd439b10f9a26c ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyUSB1
@4000000065fd43ac10cd71ec INFO:SerialBattery:
@4000000065fd43ac10dfbd84 INFO:SerialBattery:Starting dbus-serialbattery
@4000000065fd43ac10fd20f4 INFO:SerialBattery:dbus-serialbattery v1.1.20240121
@4000000065fd43bc117c7e6c INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
@4000000065fd43bc11897e8c INFO:SerialBattery:Testing LltJbd
@4000000065fd43bc22531624 ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd43bd050a7184 INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
@4000000065fd43bd051575d4 INFO:SerialBattery:Testing LltJbd
@4000000065fd43bd163ff604 ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd43bd349426d4 INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
@4000000065fd43bd34a276e4 INFO:SerialBattery:Testing LltJbd
@4000000065fd43be0bbb9fbc ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd43be2a6439ec ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyUSB1
@4000000065fd43ce311fa154 INFO:SerialBattery:
@4000000065fd43ce311fbcac INFO:SerialBattery:Starting dbus-serialbattery
@4000000065fd43ce312f7804 INFO:SerialBattery:dbus-serialbattery v1.1.20240121
@4000000065fd43de31c0f61c INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
@4000000065fd43de31cd793c INFO:SerialBattery:Testing LltJbd
@4000000065fd43df0700f9f4 ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd43df254d4b24 INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
@4000000065fd43df255810f4 INFO:SerialBattery:Testing LltJbd
@4000000065fd43df3615dd04 ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd43e018c78b44 INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
@4000000065fd43e018d23d8c INFO:SerialBattery:Testing LltJbd
@4000000065fd43e02abd2f5c ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd43e10db9ec74 ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyUSB1
@4000000065fd43f2156a0864 INFO:SerialBattery:
@4000000065fd43f21575ef44 INFO:SerialBattery:Starting dbus-serialbattery
@4000000065fd43f2158b3494 INFO:SerialBattery:dbus-serialbattery v1.1.20240121
@4000000065fd44021634f984 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
@4000000065fd44021641420c INFO:SerialBattery:Testing LltJbd
@4000000065fd440226eac2cc ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd440309a2dd94 INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
@4000000065fd440309ada364 INFO:SerialBattery:Testing LltJbd
@4000000065fd44031b52b294 ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd440339ac946c INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
@4000000065fd440339ba6b64 INFO:SerialBattery:Testing LltJbd
@4000000065fd440411725cac ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd44042fc3d62c ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyUSB1
@4000000065fd441436e978e4 INFO:SerialBattery:
@4000000065fd441436fb08fc INFO:SerialBattery:Starting dbus-serialbattery
@4000000065fd441437121b3c INFO:SerialBattery:dbus-serialbattery v1.1.20240121
@4000000065fd442437a40a9c INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
@4000000065fd442437afed94 INFO:SerialBattery:Testing LltJbd
@4000000065fd44250ded6c0c ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd44252c426fcc INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
@4000000065fd44252c4ce77c INFO:SerialBattery:Testing LltJbd
@4000000065fd442601783e5c ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd44261fcb61a4 INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
@4000000065fd44261fd901ec INFO:SerialBattery:Testing LltJbd
@4000000065fd44263209fd6c ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd442714c6fe1c ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyUSB1
@4000000065fd443638562844 INFO:SerialBattery:
@4000000065fd4436386dc724 INFO:SerialBattery:Starting dbus-serialbattery
@4000000065fd4436389315ec INFO:SerialBattery:dbus-serialbattery v1.1.20240121
@4000000065fd44463991dc94 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
@4000000065fd4446399c40bc INFO:SerialBattery:Testing LltJbd
@4000000065fd44470f57c5c4 ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd44472dd0dfcc INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
@4000000065fd44472ddb7e8c INFO:SerialBattery:Testing LltJbd
@4000000065fd444802d3983c ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd444821207224 INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
@4000000065fd4448212b246c INFO:SerialBattery:Testing LltJbd
@4000000065fd444832ad8c84 ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd444915be566c ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyUSB1
@4000000065fd44590989f694 INFO:SerialBattery:
@4000000065fd44590996d38c INFO:SerialBattery:Starting dbus-serialbattery
@4000000065fd44590a22892c INFO:SerialBattery:dbus-serialbattery v1.1.20240121
@4000000065fd44690b1837b4 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
@4000000065fd44690b1b587c INFO:SerialBattery:Testing LltJbd
@4000000065fd44691bc01e4c ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd44693a2b2aac INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
@4000000065fd44693a2b4dd4 INFO:SerialBattery:Testing LltJbd
@4000000065fd446a0ffc2bb4 ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd446a2e4ff30c INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
@4000000065fd446a2e5aa554 INFO:SerialBattery:Testing LltJbd
@4000000065fd446b03e53eec ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd446b223c6d5c ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyUSB1
@4000000065fd447a34d30494 INFO:SerialBattery:
@4000000065fd447a34e684c4 INFO:SerialBattery:Starting dbus-serialbattery
@4000000065fd447a34ff92d4 INFO:SerialBattery:dbus-serialbattery v1.1.20240121
@4000000065fd448a36158ee4 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
@4000000065fd448a3622834c INFO:SerialBattery:Testing LltJbd
@4000000065fd448b0edba084 ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd448b2d3d69cc INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
@4000000065fd448b2d48f6d4 INFO:SerialBattery:Testing LltJbd
@4000000065fd448c02f47a34 ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd448c2152b16c INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
@4000000065fd448c215f4bfc INFO:SerialBattery:Testing LltJbd
@4000000065fd448c3412508c ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd448d16c39554 ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyUSB1
@4000000065fd449c2aa59c34 INFO:SerialBattery:
@4000000065fd449c2ab5fb9c INFO:SerialBattery:Starting dbus-serialbattery
@4000000065fd449c2ad09434 INFO:SerialBattery:dbus-serialbattery v1.1.20240121
@4000000065fd44ac2bccc6b4 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
@4000000065fd44ac2bde4b14 INFO:SerialBattery:Testing LltJbd
@4000000065fd44ad01a5b6fc ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd44ad1ff0336c INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
@4000000065fd44ad1ffb5ecc INFO:SerialBattery:Testing LltJbd
@4000000065fd44ad3139c4bc ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd44ae13f2b65c INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
@4000000065fd44ae13fd0314 INFO:SerialBattery:Testing LltJbd
@4000000065fd44ae250d67ac ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd44af07c42ab4 ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyUSB1
@4000000065fd44bf04caff54 INFO:SerialBattery:
@4000000065fd44bf04dc1a3c INFO:SerialBattery:Starting dbus-serialbattery
@4000000065fd44bf04fec53c INFO:SerialBattery:dbus-serialbattery v1.1.20240121
@4000000065fd44cf05a64fdc INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
@4000000065fd44cf05b1254c INFO:SerialBattery:Testing LltJbd
@4000000065fd44cf17c80534 ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd44cf361227cc INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
@4000000065fd44cf361d33ec INFO:SerialBattery:Testing LltJbd
@4000000065fd44d00b20d6bc ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd44d0299df034 INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
@4000000065fd44d029aaf43c INFO:SerialBattery:Testing LltJbd
@4000000065fd44d101bda3fc ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd44d1201900bc ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyUSB1
@4000000065fd44e124d9d874 INFO:SerialBattery:
@4000000065fd44e124e6192c INFO:SerialBattery:Starting dbus-serialbattery
@4000000065fd44e12500a9f4 INFO:SerialBattery:dbus-serialbattery v1.1.20240121
@4000000065fd44f126074484 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
@4000000065fd44f126123934 INFO:SerialBattery:Testing LltJbd
@4000000065fd44f137d7efc4 ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd44f21a8ffaec INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
@4000000065fd44f21a9cbc8c INFO:SerialBattery:Testing LltJbd
@4000000065fd44f22b80c5ac ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd44f30e393e34 INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
@4000000065fd44f30e43e0dc INFO:SerialBattery:Testing LltJbd
@4000000065fd44f3207ee6ac ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd44f4033b08b4 ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyUSB1
@4000000065fd450507f3aadc INFO:SerialBattery:
@4000000065fd45050807abf4 INFO:SerialBattery:Starting dbus-serialbattery
@4000000065fd4505082d028c INFO:SerialBattery:dbus-serialbattery v1.1.20240121
@4000000065fd451508d471d4 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
@4000000065fd451508df4f14 INFO:SerialBattery:Testing LltJbd
@4000000065fd45151adcee24 ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd4515392ff614 INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
@4000000065fd4515393e07a4 INFO:SerialBattery:Testing LltJbd
@4000000065fd45160eb06234 ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd45162d30a05c INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
@4000000065fd45162d3e86f4 INFO:SerialBattery:Testing LltJbd
@4000000065fd451704280894 ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd45172290d2d4 ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyUSB1
@4000000065fd452730be10c4 INFO:SerialBattery:
@4000000065fd452730cef114 INFO:SerialBattery:Starting dbus-serialbattery
@4000000065fd452730ec7f7c INFO:SerialBattery:dbus-serialbattery v1.1.20240121
@4000000065fd453731f68124 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
@4000000065fd45373201a0cc INFO:SerialBattery:Testing LltJbd
@4000000065fd453806cdeba4 ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd4538251537ac INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
@4000000065fd4538251fd66c INFO:SerialBattery:Testing LltJbd
@4000000065fd453836b17124 ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd453919826b1c INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
@4000000065fd453919829614 INFO:SerialBattery:Testing LltJbd
@4000000065fd45392a983e54 ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd453a0dcedbd4 ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyUSB1
@4000000065fd454b10b8152c INFO:SerialBattery:
@4000000065fd454b10c9051c INFO:SerialBattery:Starting dbus-serialbattery
@4000000065fd454b10e22a9c INFO:SerialBattery:dbus-serialbattery v1.1.20240121
@4000000065fd455b11cd849c INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
@4000000065fd455b11d8c76c INFO:SerialBattery:Testing LltJbd
@4000000065fd455b233dcffc ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd455c05ed3834 INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
@4000000065fd455c05f8677c INFO:SerialBattery:Testing LltJbd
@4000000065fd455c178ed87c ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd455c3601b4dc INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
@4000000065fd455c3601dbec INFO:SerialBattery:Testing LltJbd
@4000000065fd455d0b747114 ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd455d29d8a774 ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyUSB1
@4000000065fd456d34cbe074 INFO:SerialBattery:
@4000000065fd456d34db0b44 INFO:SerialBattery:Starting dbus-serialbattery
@4000000065fd456d34f12384 INFO:SerialBattery:dbus-serialbattery v1.1.20240121
@4000000065fd457d358437dc INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
@4000000065fd457d358f3844 INFO:SerialBattery:Testing LltJbd
@4000000065fd457e0a1e37b4 ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd457e2989b86c INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
@4000000065fd457e29a896c4 INFO:SerialBattery:Testing LltJbd
@4000000065fd457e3ab9b6dc ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd457f1da1422c INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
@4000000065fd457f1da1693c INFO:SerialBattery:Testing LltJbd
@4000000065fd457f3006b35c ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd458012c3db1c ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyUSB1
@4000000065fd459113fc052c INFO:SerialBattery:
@4000000065fd4591140e50c4 INFO:SerialBattery:Starting dbus-serialbattery
@4000000065fd45911424e21c INFO:SerialBattery:dbus-serialbattery v1.1.20240121
@4000000065fd45a1152d93d4 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
@4000000065fd45a115388c6c INFO:SerialBattery:Testing LltJbd
@4000000065fd45a12663916c ERROR:SerialBattery:>>> ERROR: No reply - returning
@4000000065fd45a2095d54cc INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
@4000000065fd45a2095d7bdc INFO:SerialBattery:Testing LltJbd
@4000000065fd45a21b49409c ERROR:SerialBattery:>>> ERROR: No reply - returning

Any other information that may be helpful

This might be completely irrelevant but when I'm opening config.default.ini externally, via file explorer in "MeshCentral", the file starts at:

d on dbus [Valid values 0,1,2,3] ; 0 Do not publish all the cells (only the min/max cell data as used by the default GX) ; 1 Format: /Voltages/Cell (also available for display on Remote Console) ; 2 Format: /Cell/#/Volts ; 3 Both formats 1 and 2 BATTERY_CELL_DATA_FORMAT = 1

All text above this is just missing. If I open the file (via SSH) locally on the Cerbo, the whole file is there so probably just an issue with MeshCentral.

mr-manuel commented 6 months ago

Enable debugging in the config file and check the parameters page in the GUI.

If you have the voltages of SOC_RESET_VOLTAGE and MAX_CELL_VOLTAGE only 0.001 V apart the test is not very useful, since the values are rounded. Try at least 0.01 V difference between the values.

Your log does even say that it cannot connect to the battery, therefore it's strange that you can see even data in the GUI.

If the config.default.ini would be truncated then the driver won't even start as above and throw a lot of errors.

Rutgerdek commented 6 months ago

Hi Manuel,

Thanks for your answer. What do you mean by check the parameters page in the GUI? In the Cerbo I've tried disabling DVCC and changing/turning off BMS control, ESS is at "Keep batteries charged".

I'm now at: MAX_CELL_VOLTAGE = 3.295 FLOAT_CELL_VOLTAGE = 3.285 SOC_RESET_VOLTAGE = 3.305

Changing that seems to have changed things a bit. The MPPT's are now charging to 26.64v/3.33v. System voltage is at 26.50v now, with all cells above 3.305v. Still, no reset though.

The driver does indeed start and sometimes the connection with the battery drops (it was a bug then and I assumed it still is). It always comes back within a minute though. I've had that issue with multiple interfaces and with Venus as well as Cerbo.

Logging changed to debug and attached current logfiles. current.txt current2.txt

mr-manuel commented 6 months ago

What do you mean by check the parameters page in the GUI?

Open the Remote Console/GUI and navigate to your Battery -> Parameters. Then post a screenshot of that page.

Still, no reset though.

I think you missunderstood the function. The driver itself is not resetting the SOC, but the BMS. Different BMS resets the SOC at different cell voltages with different settings. You have to check first at which voltage your BMS resets the SOC to 100% and then set this voltage - some little diff like 0.005 V.

E.g. if your BMS resets the SOC at 3.600 V then try to set SOC_RESET_VOLTAGE to 3.595 V. You have to try and see which voltage fits best for you. There are many other issues where this is described. https://github.com/Louisvdw/dbus-serialbattery/issues?q=SOC_RESET_VOLTAGE

Rutgerdek commented 6 months ago

Hi Manuel, attached the screenshots of both batteries. I'm expecting the driver to overrule the BMS setting that is indeed resetting SOC at 28.6v/8. I understand my current settings are crazy low but it's just for testing.

Sorry but I cannot find any topics in your link that explain how the system should behave when SOC_RESET_VOLTAGE is reached. In the config, I read: "

"Specify the cell voltage where the SoC should be reset to 100% by the BMS."

That is exactly what I want, to overrule the BMS setting and tell it to reset SOC at a lower voltage than the setting it has in it's own configuration. If that's not how I should read the sentence above, please let me know. 1 2

mr-manuel commented 6 months ago

"Specify the cell voltage where the SoC should be reset to 100% by the BMS."

The driver and the BMS need to work together. The driver cannot override BMS settings.

mr-manuel commented 6 months ago

Now I found the threat I meaned: https://github.com/Louisvdw/dbus-serialbattery/issues/703

Rutgerdek commented 6 months ago

That's unfortunate, I was indeed looking for a way to "unconditionally" override the BMS settings. As my target cell voltage and the BMS settings are 0.1125v apart, I now understand this is not going to work anyway.

Thanks anyway for your support and great battery driver! Good to see active development and support.

mr-manuel commented 6 months ago

Then you could use the soc calculation from the driver.

Rutgerdek commented 6 months ago

Thanks again, I will give that a try.