Over-the-air firmware updates: fixing devices without a service visit
All firmware will need a fix once the device is installed. With remote updates, the fix arrives over the network. Without them, every new version becomes a service visit, and with devices spread out or in hard-to-reach places that is expensive.
How it works
The device receives the new version over the network (Wi-Fi, Ethernet or cellular), writes it to a separate memory area, checks that it arrived intact and only then restarts with it. If anything goes wrong, it returns to the previous version.
What stops a device from being bricked
A badly designed update can leave the device unusable, unable even to go back. The features that prevent it:
- Two firmware slots: the new version is written alongside the current one, never over it. The current one stays intact until the new one proves it works.
- Automatic rollback: if the new version does not start correctly, the device returns to the previous one by itself.
- Integrity check: the file is verified before use, discarding incomplete or corrupted downloads.
- Power loss: the process is designed to survive a shutdown at any point.
Security
An update channel is also a way in. That is why:
- Signed firmware: the device only accepts versions digitally signed by the manufacturer.
- Secure boot: the device itself checks the signature on every start-up.
- Encrypted channel: the download happens over a protected connection.
Rolling out versions carefully
- In stages: a few devices first, then the rest, watching for any change.
- Reported version: each device reports the version it is running, so the state of the fleet is known.
- History: a record of which version went to which device and when.
Remote updates have to be planned from the start of the project: adding them later means changing the memory, the hardware and the manufacturing process.
Want your devices to receive updates over the network? Talk to CONTE.