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/ota improvement #175

Merged
merged 3 commits into from
Feb 16, 2024
Merged

Bugfix/ota improvement #175

merged 3 commits into from
Feb 16, 2024

Conversation

Cabooman
Copy link
Collaborator

@Cabooman Cabooman commented Feb 12, 2024

WHAT

Minor improvement to OTA update handling

WHY

If an OTA update is interrupted in certain ways, the onEnd callback will not be called as it should (there are reports of it in the source repo). The emulator gets stuck in update mode, and since updates are announced to the inverter it might sit there happily while not updating the SOC since we disable CAN to make the OTA update more robust.
See also
ayushsharma82/ElegantOTA#161

HOW

A timeout was added, or more like a watchdog. If the progress callback doesn't kick the watchdog, the OTA update event is cleared and the emulator attempts to restore CAN communication. Depending on the situation, the emulator will either reset or continue without any faults.

TESTING

Tested on the dining room table, will run live before merge if approved

@Cabooman Cabooman linked an issue Feb 12, 2024 that may be closed by this pull request
@dalathegreat dalathegreat merged commit e6ad60d into main Feb 16, 2024
36 checks passed
@dalathegreat dalathegreat deleted the bugfix/ota-improvement branch February 16, 2024 18:45
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.

OTA update fault handling needs improvement
2 participants