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

Improvement/tesla-expansion #769

Merged

Conversation

josiahhiggs
Copy link
Contributor

@josiahhiggs josiahhiggs commented Jan 8, 2025

What

Added Tesla BMS_serialNumber to More Battery info to better document what battery is in use.

Add autodetect of 0x352 BMS_energyStatus, some batteries are using mux and others are not. If we can detect the Mux, we can display the correct data in More Battery Info and properly calculate SOH.
Example from @dalathegreat, add "static bool new_352_mux = false;" variable to store. Add "if (mux == 2) { new_352_mux = true; }" to can message to detect mux. Still need to get webserver to display correctly.

Remove Errors from printDebugIfActive; Not affecting operation but may be need to send frames to satisfy BMS.
BMS_a022_SW_Over_Current
BMS_a050_SW_Brick_Voltage_MIA
BMS_a090_SW_Gateway_MIA
BMS_a091_SW_ChargePort_MIA
BMS_a092_SW_ChargePort_Mia_On_Hv
BMS_a094_SW_Drive_Inverter_MIA

Correct data BrickModelTMax.

Uncomment multiple lines in More Battery Info data that is not adding useful information and causing confusion.
Organize data for easy reading.

Fix Bug Issue #775 for double battery compile errors.

Add 0x2A4 PCS_thermalStatus to webserver advanced battery for viewing, Issue #661 is requesting event alerts from this data.
Updated 0x2A4 PCS_thermalStatus DBC start bit to read data correctly.

Why

Why does it do it?

How

How does it do it?

@josiahhiggs josiahhiggs marked this pull request as draft January 8, 2025 08:49
@josiahhiggs josiahhiggs marked this pull request as ready for review January 15, 2025 03:42
@josiahhiggs
Copy link
Contributor Author

This PR is now ready for others to test out on their packs to confirm data is reading correctly.

Copy link
Owner

@dalathegreat dalathegreat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's merge this, and start working on the next iteration in another PR (optimizations? :) )

@dalathegreat dalathegreat merged commit aadcede into dalathegreat:main Jan 19, 2025
55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants