Free tech learning for everyone, from basics to pro

IoT ArchitectureIoT SecurityIntermediate

IoT device management and over-the-air (OTA) updates at scale

In short: Device management keeps an IoT fleet healthy from first boot to retirement. It covers provisioning identities, onboarding, monitoring, over-the-air (OTA) updates and decommissioning. Safe OTA updates are signed, tested on a pilot group, rolled out in stages and can roll back automatically.

Managing a fleet

One device can be configured by hand. A fleet of thousands needs automation. Device management is the set of tools and processes that track every device, keep its software current and remove it safely at the end. Without it, fleets drift: firmware versions multiply, lost devices keep valid credentials and nobody knows what is actually deployed.

Device lifecycleProvisionidentity, keysOnboardregister, configureMonitorhealth, logsUpdateOTA firmwareDecommissionrevoke, wipe
Figure 1. Device management covers every stage of a device's life, from first identity to secure retirement.

Lifecycle stages

StageWhat happensKey control
ProvisionUnique identity and keys created, often in the factoryKeys generated in a secure element, never shared
OnboardDevice registers with the platform and receives configurationOnly devices with a valid identity are accepted
MonitorHealth, connectivity, battery and firmware version reportedAlerts for offline, tampered or out-of-date devices
UpdateNew firmware or configuration sent over the airSigned images, staged rollout, rollback
DecommissionDevice removed from serviceRevoke credentials, wipe data, update inventory

Open standards help here. LwM2M (Lightweight Machine to Machine, from OMA SpecWorks) defines a common way to manage constrained devices over CoAP, including firmware updates.

Over-the-air updates done safely

Safe OTA updateBuildsigned imagePilotsmall groupStagedrollout5%, 25%, 100%Verifydevice checksRollbackif it fails
Figure 2. A safe over-the-air update is signed, tested on a small group, rolled out in stages and able to roll back.

A bad update can "brick" thousands of devices at once, so OTA must be designed defensively:

  • Sign every image. The device verifies the signature with a public key held in protected storage before installing. Encryption of the image adds confidentiality, but signing is what stops tampering.
  • A/B partitions. The device keeps the old firmware in one slot, writes the new firmware to the other, and boots the new one only after it passes checks. If it fails to start or report in, it falls back.
  • Anti-rollback. A version counter stops attackers reinstalling an older, vulnerable image.
  • Staged rollout. Update a pilot group first, then increasing percentages, pausing automatically if failure rates rise.
  • Resumable downloads. Constrained links drop; downloads should continue where they left off.
  • Respect constraints. Schedule updates when battery and connectivity allow, and avoid updating safety-critical devices mid-operation.

The open Uptane framework, designed for vehicles, and the IETF SUIT (Software Updates for Internet of Things) work both describe secure update designs worth studying.

Decommissioning

Retired devices are easy to forget. A sensor thrown in a skip may still hold Wi-Fi passwords and a valid cloud certificate. Revoke the certificate in the registry, factory reset or physically destroy storage, and update your asset inventory. For resold or returned equipment, verify the wipe.

Tip: track "percentage of fleet on current firmware" as a key metric. It shows at a glance whether your update process actually works.

Practice

Why do OTA systems use A/B partitions?
So the device can keep a known-good firmware image and automatically fall back to it if the new one fails to boot or check in.
What does anti-rollback protection prevent?
An attacker installing an older, signed but vulnerable firmware version to reintroduce a fixed flaw.
List two steps when decommissioning an IoT device.
Revoke its credentials in the platform registry and wipe or destroy its stored data and keys; also update the inventory.

Key takeaways

  • Device management covers provision, onboard, monitor, update and decommission.
  • Give each device a unique identity created and stored securely.
  • Sign OTA images, use A/B partitions and anti-rollback counters.
  • Roll out updates in stages and stop automatically on failures.
  • Revoke credentials and wipe data when devices are retired.
Tracks your learning on this device only. See your progress on the learning paths.

About the author

Mohamed Fayas

Founder of FM TecHub. CCNA certified, with a BTEC HND in Network Engineering, and BEng (Hons) in Computer Networking and Cloud Security. He writes practical, plain-English guides on networking, security and cloud.

More about the author

Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.

Stay up to date by email

New notes, tools and security news from FM TecHub, explained simply. Free.

We only use your email to send these updates. See our privacy policy.