gysmo38 / mitsubishi2MQTT

Mitsubishi to MQTT with ESP8266 module
GNU Lesser General Public License v2.1
371 stars 133 forks source link

ESP32 OTA update in-place not working #193

Closed Sprinterfreak closed 1 year ago

Sprinterfreak commented 1 year ago

If the ESP32 is connected to an HVAC, trying to OTA update a new firmware.bin via WebUI fails somwhere around or after upload stage.

The ESP32 becomes unresponsive and starts to blink its LED periodically as if it is in a boot loop forever. The rhythm looks pretty close to the unit poll interval. Probably the HVAC connected to Serial0 interrupts the update routine badly.

Luckily after a powercycel everything is back to normal on the previous version.

A non-connected ESP32 updates fine via WebUI.

What did I expect? In-place update possible while ESP is connected to the HVAC

Sprinterfreak commented 1 year ago

Seems that enabled debug mode (Setup/Others/Debug: ON) prevents the update to finish. Turn off debug mode solved this issue so far.

giuseppeg88 commented 1 year ago

I'm having the same problem but mine is staying unresponsive. Is there a way to make the ESP work again without physically unplugging it from the air conditioner? Thanks

Sprinterfreak commented 1 year ago

In case of trying to upgrade, they did not came back online for me. If they just go crazy on their own, they tend to come back on their own but sometimes after hours of blocking the HVAC system. Mine are now running quiet well now. If they disappear, just for minutes but I think this is just luck.

But still this is not ideal as crashes happen multiple times a day. They seem to recover on their own so far.