Skip to content

Commit 9fcf1a5

Browse files
authored
Changes 2023.05.03
* Changed: Default FLOAT_CELL_VOLTAGE from 3.350 V to 3.375 V by @mr-manuel * Changed: Default LINEAR_LIMITATION_ENABLE from False to True by @mr-manuel * Changed: Moved Bluetooth part to `reinstall-local.sh` by @mr-manuel * Changed: Renamed scripts for better reading #532 by @mr-manuel * Changed: Reworked and optimized installation scripts by @mr-manuel
2 parents a1972c8 + 2c9d3dd commit 9fcf1a5

26 files changed

+810
-726
lines changed

.github/workflows/github-pages.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ on:
55
# Runs on pushes targeting the default branch
66
push:
77
# Run on changes in the master branch
8-
#branches: [master]:
8+
branches:
9+
- master
10+
- docusaurus
911

1012
# Run on changes in the docs folder
1113
paths:
@@ -37,6 +39,9 @@ jobs:
3739
url: ${{ steps.deployment.outputs.page_url }}
3840
runs-on: ubuntu-latest
3941

42+
# execute only in Louisvdw repository
43+
if: github.repository_owner == 'Louisvdw'
44+
4045
#defaults:
4146
# run:
4247
# working-directory: 'docs' # Here the path to the folder where package-lock.json is located.

.github/workflows/release.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,10 @@ jobs:
1919
find . -type f -name "run" -exec chmod +x {} \;
2020
tar -czvf venus-data.tar.gz \
2121
--mode='a+rwX' \
22-
--exclude battery_template.py \
2322
--exclude __pycache__ \
24-
--exclude restartservice.sh \
25-
--exclude revov.py \
26-
--exclude test_max17853.py \
27-
--exclude util_max17853.py \
23+
--exclude bms/battery_template.py \
24+
--exclude bms/revov.py \
25+
--exclude bms/test_max17853.py \
2826
etc/dbus-serialbattery/
2927
3028
- name: Release

CHANGELOG.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,17 @@
3636
* Added: Support for HLPdata BMS4S https://github.com/Louisvdw/dbus-serialbattery/pull/505 by @peterohman
3737
* Added: Support for Seplos BMS https://github.com/Louisvdw/dbus-serialbattery/pull/530 by @wollew
3838
* Added: Temperature name for temperature sensor 1 & 2. This allows to see which sensor is low and high (e.g. battery and cable) by @mr-manuel
39-
* Changed: `reinstalllocal.sh` to recreate `/data/conf/serial-starter.d` if deleted by `disabledriver.sh` --> to check if the file `conf/serial-starter.d` could now be removed from the repository by @mr-manuel
40-
* Changed: Added QML to `restoregui.sh` by @mr-manuel
39+
* Changed: `reinstall-local.sh` to recreate `/data/conf/serial-starter.d`, if deleted by `disable.sh` --> to check if the file `conf/serial-starter.d` could now be removed from the repository by @mr-manuel
40+
* Changed: Added QML to `restore-gui.sh` by @mr-manuel
4141
* Changed: Bash output by @mr-manuel
4242
* Changed: Default config file by @mr-manuel
4343
* Added missing descriptions to make it much clearer to understand by @mr-manuel
4444
* Changed name from `default_config.ini` to `config.default.ini` https://github.com/Louisvdw/dbus-serialbattery/pull/412#issuecomment-1434287942 by @mr-manuel
4545
* Changed TimeToSoc default value `TIME_TO_SOC_VALUE_TYPE` from `Both seconds and time string "<seconds> [<days>d <hours>h <minutes>m <seconds>s]"` to `1 Seconds` by @mr-manuel
4646
* Changed TimeToSoc description by @mr-manuel
4747
* Changed value positions, added groups and much clearer descriptions by @mr-manuel
48+
* Changed: Default FLOAT_CELL_VOLTAGE from 3.350 V to 3.375 V by @mr-manuel
49+
* Changed: Default LINEAR_LIMITATION_ENABLE from False to True by @mr-manuel
4850
* Changed: Disabled ANT BMS by default https://github.com/Louisvdw/dbus-serialbattery/issues/479 by @mr-manuel
4951
* Changed: Fix for https://github.com/Louisvdw/dbus-serialbattery/issues/239 by @mr-manuel
5052
* Changed: Fix for https://github.com/Louisvdw/dbus-serialbattery/issues/311 by @mr-manuel
@@ -57,13 +59,14 @@
5759
* Changed: Fixed Time-To-Go is not working, if `TIME_TO_SOC_VALUE_TYPE` is set to other than `1` https://github.com/Louisvdw/dbus-serialbattery/pull/424#issuecomment-1440511018 by @mr-manuel
5860
* Changed: Improved JBD BMS soc calculation https://github.com/Louisvdw/dbus-serialbattery/pull/439 by @aaronreek
5961
* Changed: Logging to get relevant data by @mr-manuel
60-
* Changed: Moved Bluetooth part to `installble.sh` by @mr-manuel
62+
* Changed: Moved Bluetooth part to `reinstall-local.sh` by @mr-manuel
6163
* Changed: Moved BMS scripts to subfolder by @mr-manuel
62-
* Changed: Optimized installation scripts by @mr-manuel
6364
* Changed: Removed cell voltage penalty. Replaced by automatic voltage calculation. Max voltage is kept until cells are balanced and reset when cells are inbalanced by @mr-manuel
6465
* Changed: Removed wildcard imports from several BMS drivers and fixed black lint errors by @mr-manuel
65-
* Changed: Serial-Starter file is now created from `reinstalllocal.sh`. Fixes also https://github.com/Louisvdw/dbus-serialbattery/issues/520 by @mr-manuel
66+
* Changed: Renamed scripts for better reading #532 by @mr-manuel
67+
* Changed: Reworked and optimized installation scripts by @mr-manuel
6668
* Changed: Separate Time-To-Go and Time-To-SoC activation by @mr-manuel
69+
* Changed: Serial-Starter file is now created from `reinstall-local.sh`. Fixes also https://github.com/Louisvdw/dbus-serialbattery/issues/520 by @mr-manuel
6770
* Changed: Temperature alarm changed in order to not trigger all in the same condition for JKBMS by @mr-manuel
6871
* Changed: Time-To-Soc repetition from cycles to seconds. Minimum value is every 5 seconds. This prevents CPU overload and ensures system stability. Renamed `TIME_TO_SOC_LOOP_CYCLES` to `TIME_TO_SOC_RECALCULATE_EVERY` by @mr-manuel
6972
* Changed: Time-To-Soc string from `days, HR:MN:SC` to `<days>d <hours>h <minutes>m <seconds>s` (same as Time-To-Go) by @mr-manuel

README.md

Lines changed: 44 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,66 @@
11
# dbus-serialbattery
2-
This is a driver for VenusOS devices (any GX device sold by Victron or a Raspberry Pi running the VenusOS image).
2+
This is a driver for Venus OS devices (any GX device sold by Victron or a Raspberry Pi running the Venus OS image).
33

4-
The driver will communicate with a Battery Management System (BMS) that support serial communication (RS232, RS485 or TTL UART) and publish this data to the VenusOS system. The main purpose is to act as a Battery Monitor in your GX and supply State of Charge (SoC) and other values to the inverter.
4+
The driver will communicate with a Battery Management System (BMS) that support serial communication (RS232, RS485 or TTL UART) and publish this data to the Venus OS system. The main purpose is to act as a Battery Monitor in your GX and supply State Of Charge (SOC) and other values to the inverter.
55

6-
## Documentation
7-
Check the documenation for more informations.
8-
* [Introduction](https://louisvdw.github.io/dbus-serialbattery/)
9-
* [Features](https://louisvdw.github.io/dbus-serialbattery/general/features)
10-
* [Supported BMS](https://louisvdw.github.io/dbus-serialbattery/general/supported-bms)
11-
* [How to install](https://louisvdw.github.io/dbus-serialbattery/general/install)
12-
* [Troubleshoot](https://louisvdw.github.io/dbus-serialbattery/troubleshoot/)
13-
* [FAQ (Frequently Asked Questions)](https://louisvdw.github.io/dbus-serialbattery/troubleshoot/faq)
6+
* [BMS Types supported](https://github.com/Louisvdw/dbus-serialbattery/wiki/BMS-types-supported)
7+
* [FAQ](https://github.com/Louisvdw/dbus-serialbattery/wiki/FAQ)
8+
* [Features](https://github.com/Louisvdw/dbus-serialbattery/wiki/Features)
9+
* [How to install](https://github.com/Louisvdw/dbus-serialbattery/wiki/How-to-install)
10+
* [Troubleshoot](https://github.com/Louisvdw/dbus-serialbattery/wiki/Troubleshoot)
1411

15-
## Supporting this project:
12+
### Supporting this project:
1613
If you find this driver helpful please considder supporting this project. You can buy me a Ko-Fi or get in contact if you would like to donate hardware.
1714

1815
[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/Z8Z73LCW1) or using [Paypal.me](https://paypal.me/innernet)
1916

20-
## Developer Remarks
17+
### Developer Remarks
2118
To develop this project, install the requirements. This project makes use of velib_python which is pre-installed on
22-
Venus OS Devices under `/opt/victronenergy/dbus-systemcalc-py/ext/velib_python`. To use the python files locally,
19+
Venus-OS Devices under `/opt/victronenergy/dbus-systemcalc-py/ext/velib_python`. To use the python files locally,
2320
`git clone` the [velib_python](https://github.com/victronenergy/velib_python) project to velib_python and add
2421
velib_python to the `PYTHONPATH` environment variable.
2522

26-
## How it works
23+
#### How it works
2724
* Each supported BMS needs to implement the abstract base class `Battery` from `battery.py`.
2825
* `dbus-serialbattery.py` tries to figure out the correct connected BMS by looping through all known implementations of
2926
`Battery` and executing its `test_connection()`. If this returns true, `dbus-serialbattery.py` sticks with this battery
30-
and then periodically executes `dbushelper.publish_battery()`. `publish_battery()` executes `Battery.refresh_data()` which
27+
and then periodically executes `dbushelpert.publish_battery()`. `publish_battery()` executes `Battery.refresh_data()` which
3128
updates the fields of Battery. It then publishes those fields to dbus using `dbushelper.publish_dbus()`
3229
* The Victron Device will be "controlled" by the values published on `/Info/` - namely:
3330
* `/Info/MaxChargeCurrent `
3431
* `/Info/MaxDischargeCurrent`
3532
* `/Info/MaxChargeVoltage`
36-
* `/Info/BatteryLowVoltage` (note that Low Voltage is ignored by the system)
33+
* `/Info/BatteryLowVoltage`
3734
* `/Info/ChargeRequest` (not implemented in dbus-serialbattery)
3835

39-
For more details on the Victron dbus interface see [the official Victron dbus documentation](https://github.com/victronenergy/venus/wiki/dbus).
36+
For more details on the victron dbus interface see [the official victron dbus documentation](https://github.com/victronenergy/venus/wiki/dbus)
37+
38+
## Screenshots
39+
40+
### Venus OS
41+
42+
![VenusOS](docs/screenshots/venus-os_001.png)
43+
![VenusOS](docs/screenshots/venus-os_002.png)
44+
![VenusOS](docs/screenshots/venus-os_003.png)
45+
![VenusOS](docs/screenshots/venus-os_004.png)
46+
![VenusOS](docs/screenshots/venus-os_005.png)
47+
![VenusOS](docs/screenshots/venus-os_006.png)
48+
![VenusOS](docs/screenshots/venus-os_007.png)
49+
![VenusOS](docs/screenshots/venus-os_008.png)
50+
![VenusOS](docs/screenshots/venus-os_009.png)
51+
![VenusOS](docs/screenshots/venus-os_010.png)
52+
![VenusOS](docs/screenshots/venus-os_011.png)
53+
![VenusOS](docs/screenshots/venus-os_012.png)
54+
![VenusOS](docs/screenshots/venus-os_013.png)
55+
56+
### VRM Portal
57+
58+
![VenusOS](docs/screenshots/vrm-portal_001.png)
59+
![VenusOS](docs/screenshots/vrm-portal_002.png)
60+
![VenusOS](docs/screenshots/vrm-portal_003.png)
61+
![VenusOS](docs/screenshots/vrm-portal_004.png)
62+
![VenusOS](docs/screenshots/vrm-portal_005.png)
63+
![VenusOS](docs/screenshots/vrm-portal_006.png)
64+
![VenusOS](docs/screenshots/vrm-portal_007.png)
65+
![VenusOS](docs/screenshots/vrm-portal_008.png)
66+
![VenusOS](docs/screenshots/vrm-portal_009.png)

docs/docs/general/install.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ In [VRM](https://vrm.victronenergy.com/) look under the device list for your ins
7474
2. Run these commands to install or update to the latest release version.
7575

7676
```bash
77-
wget -O /tmp/installrelease.sh https://raw.githubusercontent.com/Louisvdw/dbus-serialbattery/master/etc/dbus-serialbattery/installrelease.sh
77+
wget -O /tmp/install-release.sh https://raw.githubusercontent.com/Louisvdw/dbus-serialbattery/master/etc/dbus-serialbattery/install-release.sh
7878

79-
bash /tmp/installrelease.sh
79+
bash /tmp/install-release.sh
8080

8181
reboot
8282
```
@@ -138,7 +138,7 @@ If you use the cell voltage limits, temperature limits or SoC limits you also ne
138138

139139
### Settings location/path
140140

141-
💡 After updating the settings reboot the device or run `/data/etc/dbus-serialbattery/reinstalllocal.sh` to apply the changes.
141+
💡 After updating the settings reboot the device or run `/data/etc/dbus-serialbattery/reinstall-local.sh` to apply the changes.
142142

143143
#### Driver version `<= v0.14.3`
144144
Edit `/data/etc/dbus-serialbattery/utils.py` to update the constants.
@@ -204,7 +204,7 @@ Edit `/data/etc/dbus-serialbattery/dbus-serialbattery.py` and uncommented (witho
204204
You can disable the driver so that it will not be run by the GX device. To do that run the following command in SSH.
205205

206206
```bash
207-
bash /data/etc/dbus-serialbattery/disabledriver.sh
207+
bash /data/etc/dbus-serialbattery/disable.sh
208208
```
209209

210210
You also need to configure your MPPTs to run in `Stand alone mode` again. Follow the Victron guide for [Err 67 - BMS Connection lost](https://www.victronenergy.com/live/mppt-error-codes#err_67_-_bms_connection_lost).
@@ -213,7 +213,7 @@ You also need to configure your MPPTs to run in `Stand alone mode` again. Follow
213213
To enable the driver again you can run the installer.
214214

215215
```bash
216-
bash /data/etc/dbus-serialbattery/reinstalllocal.sh
216+
bash /data/etc/dbus-serialbattery/reinstall-local.sh
217217
```
218218

219219
## Uninstall/remove the driver
@@ -236,11 +236,11 @@ rm -rf /opt/victronenergy/service/dbus-serialbattery
236236
rm -rf /opt/victronenergy/service-templates/dbus-serialbattery
237237
rm -rf /opt/victronenergy/dbus-serialbattery
238238

239-
# kill if running
239+
# kill driver, if running
240240
pkill -f "python .*/dbus-serialbattery.py"
241241

242242
# remove install-script from rc.local
243-
sed -i "/sh \/data\/etc\/dbus-serialbattery\/reinstalllocal.sh/d" /data/rc.local
243+
sed -i "/sh \/data\/etc\/dbus-serialbattery\/reinstall-local.sh/d" /data/rc.local
244244
```
245245

246246
> If after the uninstall for some reason several items in the GUI were red, DO NOT reboot your GX device. See [Uninstalling driver bricked my cerbo #576](https://github.com/Louisvdw/dbus-serialbattery/issues/576)

0 commit comments

Comments
 (0)