diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f185e48..d0fd233d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -60,6 +60,7 @@ ## v1.4.x * Added: EG4 LL BMS by @tuxntoast +* Added: JKBMS PB Model with https://github.com/mr-manuel/venus-os_dbus-serialbattery/pull/39 by @KoljaWindeler * Added: Show details about driver internals in GUI -> Serialbattery -> Parameters by setting `GUI_PARAMETERS_SHOW_ADDITIONAL_INFO` to `True` by @mr-manuel * Changed: Optimized code and error handling by @mr-manuel * Changed: Renamed Lifepower to EG4_Lifepower by @mr-manuel diff --git a/README.md b/README.md index f0432bf0..da780625 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,10 @@ The driver will communicate with a Battery Management System (BMS) that support ## History The first version of this driver was released by [Louisvdw](https://github.com/Louisvdw/dbus-serialbattery) in September 2020. -In February 2023 I (mr-manuel) made my first PR, since Louis did not have time anymore to contribute to this project. -With the release of `v1.0.0` I became the main developer of this project and since then I'm maintaining and updating it. + +In February 2023 I ([mr-manuel](https://github.com/mr-manuel)) made my first PR, since Louis did not have time anymore to contribute to this project. + +With the release of `v1.0.0` I became the main developer of this project. From then on, I have been maintaining the project and developing it further. I'm also solving 99% of the issues on GitHub. A big thanks to [Louisvdw](https://github.com/Louisvdw/dbus-serialbattery) for the initiation of this project. diff --git a/etc/dbus-serialbattery/bms/daly.py b/etc/dbus-serialbattery/bms/daly.py index 4126e106..6117fa92 100644 --- a/etc/dbus-serialbattery/bms/daly.py +++ b/etc/dbus-serialbattery/bms/daly.py @@ -114,7 +114,7 @@ def refresh_data(self): result = self.read_soc_data(ser) self.reset_soc = self.soc if self.soc else 0 if self.runtime > 0.200: # TROUBLESHOOTING for no reply errors - logger.info( + logger.debug( " |- refresh_data: read_soc_data - result: " + str(result) + " - runtime: " @@ -124,7 +124,7 @@ def refresh_data(self): result = self.read_fed_data(ser) and result if self.runtime > 0.200: # TROUBLESHOOTING for no reply errors - logger.info( + logger.debug( " |- refresh_data: read_fed_data - result: " + str(result) + " - runtime: " @@ -134,7 +134,7 @@ def refresh_data(self): result = self.read_cell_voltage_range_data(ser) and result if self.runtime > 0.200: # TROUBLESHOOTING for no reply errors - logger.info( + logger.debug( " |- refresh_data: read_cell_voltage_range_data - result: " + str(result) + " - runtime: " @@ -144,7 +144,7 @@ def refresh_data(self): self.write_soc_and_datetime(ser) if self.runtime > 0.200: # TROUBLESHOOTING for no reply errors - logger.info( + logger.debug( " |- refresh_data: write_soc_and_datetime - result: " + str(result) + " - runtime: " @@ -154,7 +154,7 @@ def refresh_data(self): result = self.read_alarm_data(ser) and result if self.runtime > 0.200: # TROUBLESHOOTING for no reply errors - logger.info( + logger.debug( " |- refresh_data: read_alarm_data - result: " + str(result) + " - runtime: " @@ -164,7 +164,7 @@ def refresh_data(self): result = self.read_temperature_range_data(ser) and result if self.runtime > 0.200: # TROUBLESHOOTING for no reply errors - logger.info( + logger.debug( " |- refresh_data: read_temperature_range_data - result: " + str(result) + " - runtime: " @@ -174,7 +174,7 @@ def refresh_data(self): result = self.read_balance_state(ser) and result if self.runtime > 0.200: # TROUBLESHOOTING for no reply errors - logger.info( + logger.debug( " |- refresh_data: read_balance_state - result: " + str(result) + " - runtime: " @@ -184,7 +184,7 @@ def refresh_data(self): result = self.read_cells_volts(ser) and result if self.runtime > 0.200: # TROUBLESHOOTING for no reply errors - logger.info( + logger.debug( " |- refresh_data: read_cells_volts - result: " + str(result) + " - runtime: " @@ -201,7 +201,10 @@ def refresh_data(self): logger.warning("Couldn't open serial port") if not result: # TROUBLESHOOTING for no reply errors - logger.info("refresh_data: result: " + str(result)) + logger.info( + f"refresh_data: result: {result}." + + " If you don't see this warning very often, you can ignore it." + ) return result diff --git a/etc/dbus-serialbattery/utils.py b/etc/dbus-serialbattery/utils.py index 150d7088..f8d80ed2 100644 --- a/etc/dbus-serialbattery/utils.py +++ b/etc/dbus-serialbattery/utils.py @@ -37,7 +37,7 @@ def _get_list_from_config( # Constants -DRIVER_VERSION = "1.4.20240627dev" +DRIVER_VERSION = "1.4.20240629dev" zero_char = chr(48) degree_sign = "\N{DEGREE SIGN}" @@ -415,7 +415,7 @@ def _get_list_from_config( # -- Seplos V3 settings SEPLOS_USE_BMS_VALUES: bool = "True" == config["DEFAULT"]["SEPLOS_USE_BMS_VALUES"] -# --------- Battery monitor specific settings --------- +# --------- Voltage drop --------- VOLTAGE_DROP: float = float(config["DEFAULT"]["VOLTAGE_DROP"])