-
-
Notifications
You must be signed in to change notification settings - Fork 60
added initial support for Valence U-BMS on CAN #221
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Looks good at the first sight. Just fix the failed checks. |
Also make sure to complete this checklist: https://mr-manuel.github.io/venus-os_dbus-serialbattery_docs/general/supported-bms#add-by-opening-a-pull-request |
Hi, thanks for your feedback. I have cvoncluded the open actions. |
Two are missing:
|
mr-manuel
reviewed
Mar 24, 2025
|
mr-manuel
pushed a commit
that referenced
this pull request
Mar 24, 2025
Co-authored-by: gimx <einkauf.cn@gmail.com>
mr-manuel
reviewed
Mar 24, 2025
mr-manuel
pushed a commit
that referenced
this pull request
Mar 24, 2025
Co-authored-by: gimx <einkauf.cn@gmail.com>
transistorgit
pushed a commit
to transistorgit/venus-os_dbus-serialbattery
that referenced
this pull request
Mar 31, 2025
Co-authored-by: gimx <einkauf.cn@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
it took longer than anticipated but eventually I am done supporting the Valence U-BMS on can. There are still a number of things TODO where I believe some of them require upstream fixes. A significant difference to the BMS that are supported so far is, that the U-BMS supports multiple strings of modules of 4 cells each, e.g. a 4(x4)s2p config I have at home. That means it can not be assumed that the sum of the cell voltages equals the pack voltage. Each battery module features its own internal balancer. I did not dig deeper, but despite calculating the correct pack voltage, it is either ignored or overwritten upstream. In my case the cell voltage tab shows twice the voltage (becaue of 2 parallel strings), while the main menu overview correctly reports the self.voltage value that has been calculated in the code. I have also attached a candump which you might want to use for testing.
ubms_can_dump.log
Cheers,
Torsten
Actions
->General
->Actions permissions
the optionAllow all actions and reusable workflows
. Check also in your repository settings underActions
->General
->Workflow permissions
ifRead and write permissions
are selected. After this changes you have to make a new commit, if you don't see any Actions run. This will check your code for Flake8 and Black Lint errors. Here is a short instruction on how to set up Flake8 and Black Lint checks in VS Code. This will save you a lot of time.etc/dbus-serialbattery/dbus-serialbattery.py
docs/general/features.md
docs/general/supported-bms.md
*
self.max_battery_charge_current
andself.max_battery_discharge_current
with values read from the BMSself.unique_identifier
with a unique value to distinguish the BMS in a multiple battery setupdocs/general/install.md
; --------- BMS specific settings ---------
section in theetc/dbus-serialbattery/config.default.ini
; --------- Additional settings ---------
in theconfig.default.ini
bug_report.yml
underid: bms_type
support_request.yml
underid: bms_type