Repository navigation
Conversation
Firmware size reportBase: 79b6626 on
To test this firmware on your device:
|
…stimation - Estimate pack internal resistance from load steps (signed dV/dI, EWMA) - Voltage-based SOC (SOC Havrla) using per-chemistry 60/94/120Ah lookup tables - New setting BMWI3SOCHAVR: Disable / Auto (use Havrla if >3% off) / Enable - Show internal resistance and SOC Havrla on the battery page SOC logic ported from Adam Chyský's field-tested version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The resistance estimation, SOC lookup tables, the BMWI3SOCHAVR setting and its web UI are compiled out under SMALL_FLASH_DEVICE (LilyGo T-CAN485). There the BMW i3 keeps using the BMS SOC as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Port of Adam Chyský's final version (internal 10.4.0.21), tested on 60/94/120Ah packs in full SOC Havrla mode: - Fix the sign of the current correction: OCV = V - I*R (charging current is positive), and fade it out over the last 0.5 % near 0/100 % - Keep the SOC filter state per battery instance instead of a function static, so a double i3 setup no longer shares one filter - Within +-5 % move at most 1 %/min and never against the current direction; outside that window use the faster EWMA - Fix the resistance estimate scaling (|dV|/|dI|, 1 Ohm = 100000 uV/dA) and seed its EWMA from the 80 mOhm default; retune step detection - Adjust the top of the 60Ah table and the IR offset (-10 mOhm) While SOC Havrla is set to Auto or Enable it also: - reports SOC in whole percent with 1 % hysteresis - adds cell voltage based charge/discharge current limits per pack size and a SOC based charge limit near full; they only lower the BMS limits and are released by at most 1-2 A/min With SOC Havrla disabled the BMW i3 behaves as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mbuhansen
force-pushed
the
feature/SOC-havrla-rebased
branch
from
October 9, 2026 18:17
1b8f63f to
f30bf55
Compare
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
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.
Test PR in the fork, only to let CI build all environments (including lilygo_330 / T-CAN485 with SMALL_FLASH_DEVICE) before opening the real PR upstream. Not for merging.
Not tested on hardware.
🤖 Generated with Claude Code