dalathegreat / Battery-Emulator

This software enables EV battery packs to be used for stationary storage in combination with solar inverters.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OTA update fault handling needs improvement

Cabooman opened this issue · comments

PROBLEM

When an OTA update fails for some reason, onOTAEnd() doesn't seem to be called, resulting in that we stay in an "updating" state with no CAN. The communicated state to the inverter is also UPDATING, so it's happy even though we're not updating any values from the battery BMS.

STEPS TO REPRODUCE

Start an OTA update, disconnect from wifi on the sending computer

PROPOSAL FOR SOLUTION

Implement an OTA timeout independent of the onOTAxxx functions, that restores CAN or performs a reset