Skip to content

How to add different BMS to the drive? #97

Closed Answered by Louisvdw
stanhausc asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @stanhausc
You should start by making a copy of the battery_template.py and naming it for your BMS. The template is a small example implementation. In theory this is the only file you will need to edit to add your BMS, except when adding this new file as a reference to the main program.

Rename the BatteryTemplate class for your BMS and then you need to use the 3 main functions that are implemented to read and populate data for your BMS. (test_connection, get_settings & refresh_data)
These functions are called at different times.

There is a helper function at the bottem that you can use to write the commands and read your data. There are small differences in each comms protocol and this…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by mr-manuel
Comment options

You must be logged in to vote
1 reply
@stanhausc
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants