Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JDB BLE support #499

Merged
merged 244 commits into from
May 23, 2023
Merged
Show file tree
Hide file tree
Changes from 232 commits
Commits
Show all changes
244 commits
Select commit Hold shift + click to select a range
fe6b89c
first commits for jkbms ble integration
Dec 10, 2022
6a68d3c
implemented most warnings except undercurrent(?), imbalance
Dec 25, 2022
f214263
getting things together, removed most obvious mistakes; connection te…
Dec 25, 2022
cb5f865
sync to upstream
Dec 26, 2022
97b8918
merge
Dec 26, 2022
fcb8a17
bugfixes, working on manual run :)
Dec 26, 2022
46c918b
give the bluetooth-jkbms a dummy-serialport that will fail to open, s…
baranator Dec 28, 2022
a8b031d
Sync with upstream; Merge remote-tracking branch 'upstream/master'
baranator Dec 29, 2022
4fb1066
sync to upstream
Jan 6, 2023
57cee54
added installation dependencies to installlocal; added error-handling…
Jan 6, 2023
4555bb0
tidy up code
Jan 7, 2023
68b26a3
satisfy lint
Jan 7, 2023
1f9eb87
lint #2
Jan 7, 2023
973718b
lint #3
Jan 7, 2023
c0ea4a0
lint again
Jan 7, 2023
39345da
cleanup imports & None-check
Jan 7, 2023
672192f
lint
Jan 7, 2023
6732d41
missing import
Jan 7, 2023
bdc777c
Bluetooth-Support for JK BMS (#372)
baranator Jan 9, 2023
9774633
Update jkbms_brn.py (#411)
baranator Jan 14, 2023
7052a7b
update version
Louisvdw Jan 14, 2023
183910c
update version
Louisvdw Jan 14, 2023
60a4cf4
workaround for crash of bluetooth-stack
Jan 20, 2023
4af0a5a
lint
Jan 20, 2023
7d0e167
added info-message
Jan 21, 2023
edd9da8
workaround for dying bluetooth working
baranator Feb 7, 2023
e35cc51
added battery details
mr-manuel Feb 9, 2023
a02e71d
changed cell imbalance thresholds
mr-manuel Feb 11, 2023
8bac054
added battery details
mr-manuel Feb 12, 2023
a668a24
JKBMS Bluetooth - added battery details (#454)
mr-manuel Feb 13, 2023
f07eb01
added support for the newer 32s systems, that have slightly different…
baranator Feb 15, 2023
770d054
syncing with upstream
Feb 16, 2023
4e8bbb5
added stop of scraping if detection of jkbms fails
Feb 16, 2023
c734938
lint
Feb 16, 2023
ea6a1c3
indentation was wrong
mr-manuel Feb 17, 2023
fbbd17b
adding fix for Venus OS >= v3.00~14 QML files
mr-manuel Feb 20, 2023
23a60db
merge with baranator:dbus-serialbattery:master
mr-manuel Mar 5, 2023
2eae591
BLE JK BMS model recognition
mr-manuel Mar 5, 2023
d9518f2
Small fixes
mr-manuel Mar 6, 2023
de39112
Added driver restart script
mr-manuel Mar 6, 2023
a6668f6
added informations to run the driver
mr-manuel Mar 9, 2023
c8a5796
pasted code in wrong function
mr-manuel Mar 9, 2023
dd14607
fixed cell balancing color
mr-manuel Mar 10, 2023
3ba192d
Merge branch 'master' into jdb_ble
Mar 18, 2023
b05738d
BLE support for JBD
Mar 22, 2023
dd2f7b3
feature: Improve BLE async communication
Mar 23, 2023
99e1835
bugfix: Failing dbus-systemcalc due to ':' in /Mgmt/Connection
Mar 23, 2023
3d140f1
clean-up
Mar 23, 2023
a37244f
Fix dbus-systemcalc requires for TimeToGo integer value only
Mar 23, 2023
30dacf6
clean-up #2
Mar 23, 2023
eecd512
clean-up
Mar 23, 2023
7009e65
Remove dependency on statistics (not available by default on VenusOS)
Mar 23, 2023
3f67884
BLE JK BMS model recognition (#462)
tcrichton Mar 27, 2023
500e7ab
Merge branch 'jkbms_ble' into master
baranator Mar 28, 2023
b0a97e3
install BLE battery as local independent service
Mar 28, 2023
79f82f0
add disconnect before starting the service
Mar 29, 2023
2a65d6c
unique id per BLE device
Mar 29, 2023
646ca4c
Merge branch 'jkbms_ble' into jkbms_ble
mr-manuel Mar 29, 2023
0a2adb2
enable logging and improve error messages
Mar 29, 2023
f5eb089
Merge pull request #466 from baranator/master
mr-manuel Apr 12, 2023
8eabbc4
Merge branch 'jkbms_ble' into jkbms_ble
mr-manuel Apr 13, 2023
acea6bf
Merge pull request #503 from mr-manuel/jkbms_ble
mr-manuel Apr 13, 2023
20d828f
Merge branch 'jkbms_ble' into jkbms_ble
mr-manuel Apr 13, 2023
5065083
Merge pull request #502 from seidler2547/jkbms_ble
mr-manuel Apr 13, 2023
5f3fc34
Update jkbms_ble from master
mr-manuel Apr 13, 2023
534c483
fixes
mr-manuel Apr 13, 2023
26e07aa
Merge pull request #527 from mr-manuel/jkbms_ble
mr-manuel Apr 13, 2023
9c0290f
moved ble part to installble.sh
mr-manuel Apr 15, 2023
ee840ce
added script to install directly from repository
mr-manuel Apr 15, 2023
9488b83
added QML
mr-manuel Apr 15, 2023
953fbb4
create empty config.ini for easier user usage
mr-manuel Apr 15, 2023
92bb2a0
optimize installation scripts
mr-manuel Apr 15, 2023
cd8a30f
changed bash output
mr-manuel Apr 15, 2023
efd5555
added post install notes
mr-manuel Apr 15, 2023
60ddcf2
corrected errors
mr-manuel Apr 15, 2023
c3a50a4
fix black lint errors
mr-manuel Apr 15, 2023
3b82562
Merge branch 'Louisvdw:jkbms_ble' into jkbms_ble
mr-manuel Apr 15, 2023
fd1894a
fix black lint errors
mr-manuel Apr 15, 2023
5ead8b4
Merge branch 'jkbms_ble' of https://github.com/mr-manuel/venus-os_dbu…
mr-manuel Apr 15, 2023
59d91e7
fix black lint errors
mr-manuel Apr 15, 2023
194b83f
bump version
mr-manuel Apr 15, 2023
567f953
Improvements and preparation to merge with master
mr-manuel Apr 15, 2023
3219e70
fixed serial-starter.d
mr-manuel Apr 15, 2023
144d46b
fix errors, move install notes to show always
mr-manuel Apr 18, 2023
8ed26c7
fix errors
mr-manuel Apr 18, 2023
962d21d
Update install-nightly.sh
mr-manuel Apr 18, 2023
008082c
Update install-nightly.sh
mr-manuel Apr 18, 2023
5e029bf
make use of bluetooth configurable
mr-manuel Apr 19, 2023
94411e2
remove modules with uninstall script
mr-manuel Apr 19, 2023
a695052
fix typo
mr-manuel Apr 19, 2023
8f3d76e
Bluetooth enable over config file
mr-manuel Apr 19, 2023
1ad14e6
Added install notes
mr-manuel Apr 19, 2023
fe9cfdf
fix #351
mr-manuel Apr 20, 2023
bda2534
fix #351
mr-manuel Apr 20, 2023
0963923
fix System Switch in IO page
mr-manuel Apr 20, 2023
520eedc
fix #239
mr-manuel Apr 20, 2023
4ed644f
fix black lint errors
mr-manuel Apr 20, 2023
9646528
Merge branch 'Louisvdw:jkbms_ble' into jkbms_ble
mr-manuel Apr 20, 2023
13863f8
run code analyse only on code change
mr-manuel Apr 21, 2023
2bdfc56
Merge branch 'jkbms_ble' of https://github.com/mr-manuel/venus-os_dbu…
mr-manuel Apr 21, 2023
a4da321
fix #311
mr-manuel Apr 21, 2023
a32c738
Separate Time-To-Go and Time-To-SoC activation
mr-manuel Apr 23, 2023
017df8a
fix UnicodeDecodeError
mr-manuel Apr 25, 2023
d8a5d64
Some fixes
mr-manuel Apr 25, 2023
e0a55e9
fix UnicodeDecodeError
mr-manuel Apr 25, 2023
307e40c
Merge branch 'Louisvdw:jkbms_ble' into jkbms_ble
mr-manuel Apr 26, 2023
f11897b
fix UnicodeDecodeError
mr-manuel Apr 26, 2023
627383d
optimize uninstall script
mr-manuel Apr 26, 2023
65a5ef2
fix typo in log_settings
mr-manuel Apr 26, 2023
4890ad1
add charge mode display
mr-manuel Apr 26, 2023
c935363
Merge branch 'jkbms_ble' of https://github.com/mr-manuel/venus-os_dbu…
mr-manuel Apr 26, 2023
a28ae98
Merge branch 'Louisvdw:jkbms_ble' into jkbms_ble
mr-manuel Apr 26, 2023
9d993fc
Added: Temp name for sensor 1 & 2
mr-manuel Apr 26, 2023
8067045
Added: Choose how battery temperature is assembled
mr-manuel Apr 26, 2023
3777d50
Added/Changed alarms for JKBMS
mr-manuel Apr 26, 2023
89dfdbf
Removed Alarms/HighCellVoltage
mr-manuel Apr 26, 2023
8ffa730
Changed: Moved charge mode
mr-manuel Apr 26, 2023
1940d5d
Added: Show (dis)charge current limitation reason
mr-manuel Apr 26, 2023
acd9ea3
added changelog
mr-manuel Apr 26, 2023
b46c67f
Fixes and improvements
mr-manuel Apr 26, 2023
2e67a5e
corrected file permissions
mr-manuel Apr 26, 2023
3f81fa5
fix dbus-daemon memory leak
seidler2547 Apr 26, 2023
3caad73
fix typo
mr-manuel Apr 26, 2023
e0b4e99
fix dbus-daemon memory leak
mr-manuel Apr 26, 2023
3429fe2
Merge branch 'Louisvdw:jkbms_ble' into jkbms_ble
mr-manuel Apr 26, 2023
e28facf
Update readme
mr-manuel Apr 26, 2023
ed80385
Merge branch 'jkbms_ble' of https://github.com/mr-manuel/venus-os_dbu…
mr-manuel Apr 26, 2023
b011e0e
Remove bluetooth option from the config file
mr-manuel Apr 26, 2023
8d0db98
Small word case changes
mr-manuel Apr 26, 2023
2ffa358
Added: Show specific TimeToSoC points in GUI
mr-manuel Apr 26, 2023
5a16cbd
fix black lint error
mr-manuel Apr 26, 2023
964ec17
Some improvement and fixes
mr-manuel Apr 26, 2023
1e6d410
Improved JBD BMS soc calculation
mr-manuel Apr 27, 2023
922b82c
Fix for #397
mr-manuel Apr 27, 2023
23356f6
small fixes
mr-manuel Apr 27, 2023
4bd257f
sort bms imports
mr-manuel Apr 27, 2023
c56a9d1
Add support for HLPdata BMS4S
mr-manuel Apr 27, 2023
314bb93
Add support for Seplos BMS
mr-manuel Apr 27, 2023
aceeac9
change flake8 settings
mr-manuel Apr 27, 2023
64a08f4
fix black lint errors
mr-manuel Apr 27, 2023
31647db
removed wildcard imports
mr-manuel Apr 27, 2023
8d3f25e
fixed black lint errors
mr-manuel Apr 27, 2023
a4a3efb
change flake8 settings
mr-manuel Apr 27, 2023
4a26d0d
remove wildcard import and fix black lint errors
mr-manuel Apr 27, 2023
564d4ed
removed wildcard import
mr-manuel Apr 27, 2023
41cdadb
fixed black lint check
mr-manuel Apr 27, 2023
440b113
config changes
mr-manuel Apr 27, 2023
bc91973
remove old log message in handle_changed_setting()
mr-manuel Apr 27, 2023
83668b6
simplified condition for Time-To-Go/Soc
mr-manuel Apr 27, 2023
ed4d57b
Improvements and fixes
mr-manuel Apr 27, 2023
aee71f0
fix renogy import
mr-manuel Apr 27, 2023
362916c
Merge pull request #588 from mr-manuel/jkbms_ble
mr-manuel Apr 27, 2023
9e358fa
added BMS info and cleanup
mr-manuel Apr 28, 2023
09034a1
moved BMS to subfolder
mr-manuel Apr 28, 2023
a0918ee
moved BMS to subfolder
mr-manuel Apr 28, 2023
8f7d705
corrected installble to run correct script
mr-manuel Apr 28, 2023
3a62eed
Added self.unique_identifier to the battery class
mr-manuel Apr 28, 2023
d882937
changed ble service name
mr-manuel Apr 28, 2023
0aed855
Changes 2023.04.28
mr-manuel Apr 28, 2023
d3a72d6
read installed capacity at startup
transistorgit Apr 28, 2023
b113bff
Merge pull request #594 from transistorgit/daly_capacity
mr-manuel Apr 28, 2023
9cea902
disable ANT BMS by default
mr-manuel Apr 29, 2023
49694b6
fix cell voltage header parser
transistorgit Apr 29, 2023
3a583ed
rework daly receive routine
transistorgit Apr 29, 2023
554c01d
improve read cell voltages - only work on sufficient data, drop only …
transistorgit Apr 29, 2023
e8ad26d
allow read_soc to also retry serial transmission
transistorgit Apr 29, 2023
93a4e98
add daly cell balance state info. cells are red only if unbalanced now
transistorgit Apr 29, 2023
fdd0bd1
bump version
mr-manuel Apr 29, 2023
ec04969
typo
mr-manuel Apr 29, 2023
ae1e447
Fixes
mr-manuel Apr 29, 2023
878014b
Merge branch 'Louisvdw:jkbms_ble' into jkbms_ble
transistorgit Apr 29, 2023
d1238e0
moved read_serialport_data() to daly.py
transistorgit May 1, 2023
62422de
revert read_serialport_data() to the state before my changes
transistorgit May 1, 2023
a3915cb
fix connection log startup message.
transistorgit May 1, 2023
4d4d256
Revert utils.py changes, improved Daly driver
mr-manuel May 1, 2023
3153962
black reformatting
transistorgit May 1, 2023
ec4a334
flake config change
mr-manuel May 1, 2023
31a1e53
added linear voltage recalculation interval
mr-manuel May 1, 2023
295efd1
replaced penalty voltage calculation
mr-manuel May 1, 2023
f95dc05
fix black lint errors
mr-manuel May 1, 2023
52fdc4a
updated config.default.ini
mr-manuel May 1, 2023
d820050
Changes 2023.05.01
mr-manuel May 1, 2023
912cd74
update nightly install script
mr-manuel May 1, 2023
4de2ae5
update nightly install script
mr-manuel May 1, 2023
93caa23
Removed line
mr-manuel May 1, 2023
fce00b9
fixed error in HLPdataBMS4S
mr-manuel May 1, 2023
9e4b069
fixed wrong variable assignment
mr-manuel May 2, 2023
80e2c67
updated battery template
mr-manuel May 2, 2023
70658e9
Fix for #450
mr-manuel May 2, 2023
fbfdcc7
Read charge/discharge limit JKBMS
mr-manuel May 2, 2023
5c9d30a
updated battery template
mr-manuel May 2, 2023
6a9ee0a
Progress with config limits reason
mr-manuel May 2, 2023
ebfb5bc
updated CELL_VOLTAGE_DIFF_TO_RESET_VOLTAGE_LIMIT default value
mr-manuel May 2, 2023
1d82436
Changes 2023.05.02
mr-manuel May 2, 2023
f44157a
added SoC round for LLT/JBD
mr-manuel May 2, 2023
da3fa07
fixed log typo
mr-manuel May 2, 2023
cf46dab
reworked installation procedure
mr-manuel May 2, 2023
9907912
Merge branch 'Louisvdw:jkbms_ble' into jkbms_ble
mr-manuel May 2, 2023
94b1a21
Merge branch 'master' into jkbms_ble
mr-manuel May 2, 2023
93cb3f0
Merge branch 'jkbms_ble' of https://github.com/mr-manuel/venus-os_dbu…
mr-manuel May 2, 2023
557b9ac
Merge branch 'master' of into jkbms_ble
mr-manuel May 2, 2023
335a0e7
GitHub pages config change
mr-manuel May 2, 2023
9f1da97
cleanup
mr-manuel May 2, 2023
74b459a
Renamed scripts for better reading #532
mr-manuel May 3, 2023
dff74d7
update docusaurus dependencies
mr-manuel May 3, 2023
c615a61
change sh with bash
mr-manuel May 3, 2023
a1972c8
Merge branch 'master' into jkbms_ble
mr-manuel May 3, 2023
43368fe
limitation reason cleanup
mr-manuel May 3, 2023
ad2855d
changed default config settings
mr-manuel May 3, 2023
2c9d3dd
Merge branch 'jkbms_ble' into jkbms_ble
mr-manuel May 3, 2023
9fcf1a5
Changes 2023.05.03
mr-manuel May 3, 2023
66f982a
removed testing line
mr-manuel May 3, 2023
524321c
Cleanup duplicated files
mr-manuel May 3, 2023
ff1b143
Cleanup
mr-manuel May 3, 2023
12ec57e
MOSFET temperature was displayed twice after merge
mr-manuel May 3, 2023
84556e8
updated changelog
mr-manuel May 3, 2023
56fecf3
Small fixes
mr-manuel May 3, 2023
bbb7b1b
fix disconnection behaviour: on disconnect, show '---' after 10s and …
transistorgit May 3, 2023
1514206
fix merge conflicts
transistorgit May 3, 2023
d647b1e
fix flake errors
transistorgit May 3, 2023
f496103
Merge pull request #4 from transistorgit/jkbms_ble
mr-manuel May 4, 2023
8ed42ae
small fix
mr-manuel May 4, 2023
77fc212
Added: apply max voltage if CVCM_ENABLE is False
mr-manuel May 4, 2023
9acfb15
fixed type error
mr-manuel May 4, 2023
7e1ada1
Added: BMS disconnect behaviour
mr-manuel May 4, 2023
2b32e11
Changed: Remove wildcard import from dbushelper.py
mr-manuel May 4, 2023
cd8c22a
small fixes
mr-manuel May 4, 2023
8a37bf2
Changes 2023.05.04
mr-manuel May 4, 2023
b423d20
Fix test routine
May 5, 2023
bd54368
Merge branch 'jkbms_ble' into jdb_ble
May 5, 2023
0301a62
Update imports
May 5, 2023
143c06e
Revert changes
May 5, 2023
5d0ed22
Merge remote-tracking branch 'upstream/dev' into jdb_ble
May 19, 2023
5242573
Remove unused
May 19, 2023
da6ef9e
Add reading current limits
May 19, 2023
ac674fc
clean-up
May 19, 2023
0902d59
Prototype primitive SoC calibration
May 19, 2023
2b2bdfd
Sync Temp 3 / 4 with config.default.ini
May 19, 2023
df12cbb
black lint
May 19, 2023
6e33458
Jbd uses digit like mac address 70:3E:97:D2:F4:D0
May 19, 2023
6da9e3d
Jbd uses digit like mac address 70:3E:97:D2:F4:D0
May 19, 2023
ef5380b
Fix reading settings
May 19, 2023
f7d61c7
Fix issue with bluetooth restarts (e.g. cronjob)
May 21, 2023
9b669e4
Fix issue with bluetooth restarts (e.g. cronjob)
May 22, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 9 additions & 15 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
[flake8]
max-line-length = 120
per-file-ignores =
./etc/dbus-serialbattery/utils.py: E501
exclude =
./etc/dbus-serialbattery/ant.py,
./etc/dbus-serialbattery/battery_template.py,
./etc/dbus-serialbattery/daly.py,
./etc/dbus-serialbattery/dbus-serialbattery.py,
./etc/dbus-serialbattery/dbushelper.py,
./etc/dbus-serialbattery/ecs.py,
./etc/dbus-serialbattery/lifepower.py,
./etc/dbus-serialbattery/lltjbd.py,
./etc/dbus-serialbattery/bms/battery_template.py,
./etc/dbus-serialbattery/bms/mnb_test_max17853.py,
./etc/dbus-serialbattery/bms/mnb_utils_max17853.py,
./etc/dbus-serialbattery/bms/revov.py,
#./etc/dbus-serialbattery/dbus-serialbattery.py,
#./etc/dbus-serialbattery/dbushelper.py,
./etc/dbus-serialbattery/minimalmodbus.py,
./etc/dbus-serialbattery/mnb.py,
./etc/dbus-serialbattery/renogy.py,
./etc/dbus-serialbattery/revov.py,
./etc/dbus-serialbattery/sinowealth.py,
./etc/dbus-serialbattery/test_max17853.py,
./etc/dbus-serialbattery/util_max17853.py,
./velib_python
venv
extend-ignore:
# E203 whitespace fefore ':' conflicts with black code formatting. Will be ignored in flake8
# E203 whitespace before ':' conflicts with black code formatting. Will be ignored in flake8
E203
7 changes: 6 additions & 1 deletion .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ on:
# Runs on pushes targeting the default branch
push:
# Run on changes in the master branch
#branches: [master]:
branches:
- master
- docusaurus

# Run on changes in the docs folder
paths:
Expand Down Expand Up @@ -37,6 +39,9 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest

# execute only in Louisvdw repository
if: github.repository_owner == 'Louisvdw'

#defaults:
# run:
# working-directory: 'docs' # Here the path to the folder where package-lock.json is located.
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,20 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3

- name: build release archive
run: |
find . -type f -name "*.py" -exec chmod +x {} \;
find . -type f -name "*.sh" -exec chmod +x {} \;
find . -type f -name "run" -exec chmod +x {} \;
tar -czvf venus-data.tar.gz \
--mode='a+rwX' \
--exclude battery_template.py \
--exclude __pycache__ \
--exclude restartservice.sh \
--exclude revov.py \
--exclude test_max17853.py \
conf/serial-starter.d \
--exclude bms/battery_template.py \
--exclude bms/revov.py \
--exclude bms/test_max17853.py \
etc/dbus-serialbattery/

- name: Release
uses: softprops/action-gh-release@v1
with:
Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,17 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

# VS Code
.vscode/

# Custom for this repo
venus-data.tar.gz
BMS-trials
.DS_Store
.project
.pydevproject
*.prefs
etc/dbus-serialbattery/config.ini

# Local Clone of velib_python
velib_python
velib_python
79 changes: 79 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Changelog

## v1.0.0-jkbms_ble

### ATTENTION: Breaking changes! The config is now done in the `config.ini`. All values from the `utils.py` gets lost. The changes in the `config.ini` will persists future updates.

* Added: `self.unique_identifier` to the battery class. Used to identify a BMS when multiple BMS are connected - planned for future use by @mr-manuel
* Added: Alert is triggered, when BMS communication is lost by @mr-manuel
* Added: Apply max voltage, if `CVCM_ENABLE` is `False`. Before float voltage was applied by @mr-manuel
* Added: Balancing status for JKBMS by @mr-manuel
* Added: Balancing switch status for JKBMS by @mr-manuel
* Added: Balancing switch status to the GUI -> SerialBattery -> IO by @mr-manuel
* Added: Block charge/discharge when BMS communication is lost. Can be enabled trough the config file by @mr-manuel
* Added: Charge Mode display by @mr-manuel
* Added: Choose how battery temperature is assembled (mean temp 1 & 2, only temp 1 or only temp 2) by @mr-manuel
* Added: Config file by @ppuetsch
* Added: Create empty `config.ini` for easier user usage by @mr-manuel
* Added: Cronjob to restart Bluetooth service every 12 hours by @mr-manuel
* Added: Daly BMS read capacity https://github.com/Louisvdw/dbus-serialbattery/pull/594 by @transistorgit
* Added: Driver uninstall script by @mr-manuel
* Added: Fix for Venus OS >= v3.00~14 showing unused items https://github.com/Louisvdw/dbus-serialbattery/issues/469 by @mr-manuel
* Added: HighInternalTemperature alarm (MOSFET) for JKBMS by @mr-manuel
* Added: Install needed Bluetooth components automatically after a Venus OS upgrade by @mr-manuel
* Added: JKBMS - MOS temperature https://github.com/Louisvdw/dbus-serialbattery/pull/440 by @baphomett
* Added: JKBMS BLE - Balancing switch status by @mr-manuel
* Added: JKBMS BLE - Capacity by @mr-manuel
* Added: JKBMS BLE - Cell imbalance alert by @mr-manuel
* Added: JKBMS BLE - Charging switch status by @mr-manuel
* Added: JKBMS BLE - Discharging switch status by @mr-manuel
* Added: JKBMS BLE - MOS temperature by @mr-manuel
* Added: JKBMS BLE - Show if balancing is active and which cells are balancing by @mr-manuel
* Added: Post install notes by @mr-manuel
* Added: Read charge/discharge limits from JKBMS by @mr-manuel
* Added: Recalculation interval in linear mode for CVL, CCL and DCL by @mr-manuel
* Added: Reset values to None, if battery goes offline (not reachable for 10s) by @transistorgit
* Added: Script to install directly from repository by @mr-manuel
* Added: Show charge mode (absorption, bulk, ...) in Parameters page by @mr-manuel
* Added: Show charge/discharge limitation reason by @mr-manuel
* Added: Show MOSFET temperature for JKBMS https://github.com/Louisvdw/dbus-serialbattery/pull/440 by @baphomett
* Added: Show specific TimeToSoC points in GUI, if 0%, 10%, 20%, 80%, 90% and/or 100% are selected by @mr-manuel
* Added: Show TimeToGo in GUI only, if enabled by @mr-manuel
* Added: Support for HLPdata BMS4S https://github.com/Louisvdw/dbus-serialbattery/pull/505 by @peterohman
* Added: Support for Seplos BMS https://github.com/Louisvdw/dbus-serialbattery/pull/530 by @wollew
* 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
* 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
* Changed: Added QML to `restore-gui.sh` by @mr-manuel
* Changed: Bash output by @mr-manuel
* Changed: Default config file by @mr-manuel
* Added missing descriptions to make it much clearer to understand by @mr-manuel
* Changed name from `default_config.ini` to `config.default.ini` https://github.com/Louisvdw/dbus-serialbattery/pull/412#issuecomment-1434287942 by @mr-manuel
* 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
* Changed TimeToSoc description by @mr-manuel
* Changed value positions, added groups and much clearer descriptions by @mr-manuel
* 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: Disabled ANT BMS by default https://github.com/Louisvdw/dbus-serialbattery/issues/479 by @mr-manuel
* Changed: Fix for https://github.com/Louisvdw/dbus-serialbattery/issues/239 by @mr-manuel
* Changed: Fix for https://github.com/Louisvdw/dbus-serialbattery/issues/311 by @mr-manuel
* Changed: Fix for https://github.com/Louisvdw/dbus-serialbattery/issues/351 by @mr-manuel
* Changed: Fix for https://github.com/Louisvdw/dbus-serialbattery/issues/397 by @transistorgit
* Changed: Fix for https://github.com/Louisvdw/dbus-serialbattery/issues/421 by @mr-manuel
* Changed: Fix for https://github.com/Louisvdw/dbus-serialbattery/issues/450 by @mr-manuel
* Changed: Fixed black lint errors by @mr-manuel
* Changed: Fixed cell balancing background for cells 17-24 by @mr-manuel
* 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
* Changed: Improved JBD BMS soc calculation https://github.com/Louisvdw/dbus-serialbattery/pull/439 by @aaronreek
* Changed: Logging to get relevant data by @mr-manuel
* Changed: Moved Bluetooth part to `reinstall-local.sh` by @mr-manuel
* Changed: Moved BMS scripts to subfolder by @mr-manuel
* 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
* Changed: Removed all wildcard imports and fixed black lint errors by @mr-manuel
* Changed: Renamed scripts for better reading #532 by @mr-manuel
* Changed: Reworked and optimized installation scripts by @mr-manuel
* Changed: Separate Time-To-Go and Time-To-SoC activation by @mr-manuel
* Changed: Serial-Starter file is now created from `reinstall-local.sh`. Fixes also https://github.com/Louisvdw/dbus-serialbattery/issues/520 by @mr-manuel
* Changed: Temperature alarm changed in order to not trigger all in the same condition for JKBMS by @mr-manuel
* 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
* 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
* Changed: Uninstall also installed Bluetooth modules on uninstall by @mr-manuel
3 changes: 0 additions & 3 deletions conf/serial-starter.d

This file was deleted.

14 changes: 7 additions & 7 deletions docs/docs/general/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ In [VRM](https://vrm.victronenergy.com/) look under the device list for your ins
2. Run these commands to install or update to the latest release version.

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

bash /tmp/installrelease.sh
bash /tmp/install-release.sh

reboot
```
Expand Down Expand Up @@ -138,7 +138,7 @@ If you use the cell voltage limits, temperature limits or SoC limits you also ne

### Settings location/path

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

#### Driver version `<= v0.14.3`
Edit `/data/etc/dbus-serialbattery/utils.py` to update the constants.
Expand Down Expand Up @@ -204,7 +204,7 @@ Edit `/data/etc/dbus-serialbattery/dbus-serialbattery.py` and uncommented (witho
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.

```bash
bash /data/etc/dbus-serialbattery/disabledriver.sh
bash /data/etc/dbus-serialbattery/disable.sh
```

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).
Expand All @@ -213,7 +213,7 @@ You also need to configure your MPPTs to run in `Stand alone mode` again. Follow
To enable the driver again you can run the installer.

```bash
bash /data/etc/dbus-serialbattery/reinstalllocal.sh
bash /data/etc/dbus-serialbattery/reinstall-local.sh
```

## Uninstall/remove the driver
Expand All @@ -236,11 +236,11 @@ rm -rf /opt/victronenergy/service/dbus-serialbattery
rm -rf /opt/victronenergy/service-templates/dbus-serialbattery
rm -rf /opt/victronenergy/dbus-serialbattery

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

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

> 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)
Loading