Skip to content

Commit

Permalink
Reduce the big inrush current, if the CVL jumps
Browse files Browse the repository at this point in the history
from Bulk/Absorbtion to Float
fix Louisvdw#659
  • Loading branch information
mr-manuel committed Jun 11, 2023
1 parent 041f6a9 commit 80aa06c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
7 changes: 4 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@
* Changed: Enable BMS that are disabled by default by specifying it in the config file. No more need to edit scripts by @mr-manuel
* Changed: Fix Sinowealth not loading https://github.com/Louisvdw/dbus-serialbattery/issues/702 by @mr-manuel
* Changed: Fixed error in `reinstall-local.sh` script for Bluetooth installation by @mr-manuel
* Changed: Fixed that other devices are recognized as ANT BMS by @mr-manuel
* Changed: Fixed that other devices are recognized as ANT BMS https://github.com/Louisvdw/dbus-serialbattery/issues/479 by @mr-manuel
* Changed: Fixed that other devices are recognized as Sinowealth BMS by @mr-manuel
* Changed: Fixed typo in `config.ini` sample by @hoschult
* Changed: For BMS_TYPE now multiple BMS can be specified by @mr-manuel
* Changed: Improved driver reinstall when multiple Bluetooth BMS are enabled by @mr-manuel
* Changed: Improved Jkbms_Ble driver by @seidler2547 & @mr-manuel
* Changed: Improved battery error handling on connection loss by @mr-manuel
* Changed: Improved battery voltage handling in linear absorption mode by @ogurevich
* Changed: Improved driver reinstall when multiple Bluetooth BMS are enabled by @mr-manuel
* Changed: Improved Jkbms_Ble driver by @seidler2547 & @mr-manuel
* Changed: Reduce the big inrush current if the CVL jumps from Bulk/Absorbtion to Float https://github.com/Louisvdw/dbus-serialbattery/issues/659 by @Rikkert-RS


## v1.0.20230531
Expand Down
11 changes: 8 additions & 3 deletions etc/dbus-serialbattery/battery.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,14 @@ def manage_charge_voltage_linear(self) -> None:
)

else:
self.control_voltage = round(
(utils.FLOAT_CELL_VOLTAGE * self.cell_count), 3
)
floatVoltage = round((utils.FLOAT_CELL_VOLTAGE * self.cell_count), 3)
if self.control_voltage:
if self.control_voltage >= (floatVoltage + 0.005):
self.control_voltage -= 0.005
else:
self.control_voltage = floatVoltage
else:
self.control_voltage = floatVoltage
self.charge_mode = "Float"

if (
Expand Down

0 comments on commit 80aa06c

Please sign in to comment.