Performing Over-The-Air firmware update over a slow/unreliable internet connection may be challenging. I have had many cases, where the edge nodes to be updated are in a remote rural area with a 2G modem internet connection, and pushing a let’s say 1.1MB firmware file can be challenging. The OTA times out multiple times before succeeding, and in some cases, it simply does not complete.
To solve this, I decided to test OTA firmware updates using a compressed firmware image, pretty much the same approach
So it is a win-win process, the only draw-back is that there will be a need for extra memory to handle the firmware image decompression, a fixed size 32K buffer is needed for the purpose.
This works both over HTTP(s) and MQTT(s) (see my OTA over MQTT blog post), so can be quite useful.
Below is a short video demonstration of the process:
Page views: 2486