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

Bugfix: Halt only CAN sending towards battery while BMS resetting #814

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dalathegreat
Copy link
Owner

@dalathegreat dalathegreat commented Jan 22, 2025

What

This PR makes the BMS Reset only halt CAN message sending towards battery

Why

The current implementation pauses CAN sending globally. That means that if you use a CAN based inverter + Period BMS reset, the inverter will also get starved of CAN messages while the reset is active. This is not desired, since it risks using power from battery while it is off. This new fix makes it pause only sending CAN towards battery while it is down.

Another issue was also that the original implementation only stopped ESP32.CAN , which was the first CAN interface. So it was impossible to use the feature right on setups where battery was not connected to fist CAN port

How

Moved the isBMSResetActive into the datalayer datalayer.system.status.BMS_reset_in_progress. Also simplified the code a bit.

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.

1 participant