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

Correct the mask on EG4 LifePower Cell voltages #156

Merged
merged 2 commits into from
Jan 6, 2025

Conversation

dchiquito
Copy link
Contributor

The reverse engineered EG4 LifePower protocol documentation mentioned that the high bit on cell voltages would ocassionally be set, possibly relating to a high power alarm: https://github.com/slim-bean/powermon?tab=readme-ov-file#group-1

Apparently the second highest bit can also be set sometimes, so that also needs to be masked out. Adjust the mask accordingly.

Fixes #155

The reverse engineered EG4 LifePower protocol documentation mentioned
that the high bit on cell voltages would ocassionally be set, possibly
relating to a high power alarm.

Apparently the second highest bit can also be set sometimes, so that
also needs to be masked out. Adjust the mask accordingly.
@dchiquito
Copy link
Contributor Author

Note that I no longer own this battery and so cannot actually test this change. Fingers crossed

@mr-manuel
Copy link
Owner

Thanks!

@mr-manuel mr-manuel merged commit 300f2f5 into mr-manuel:master Jan 6, 2025
2 checks passed
@dchiquito dchiquito deleted the eg4-high-bit-bug branch January 6, 2025 19:12
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.

wrong displayed cell voltage when cell voltage is over 3.45V (or higher than float cell voltage?)
2 participants