Technical detail · Building Cellular IoT Devices
URCs and recovery races

Hands-on lab · 90 min
LTE-M Power Modes and Coverage
I have explained the LTE-M connection path; now let's test power-mode choices against a tracker journey.
15.5 URC State-Machine Review
Cellular modules report asynchronous events through URCs and can change state while the host waits. A robust host moves through power, SIM readiness, registration, packet context, transport, payload, sleep and recovery with bounded timeouts. It records command responses and the modem events around them.
The power state confirms a stable rail, reset sequence, boot banner and host interface. Identity confirms a ready SIM or eSIM, active profile and credentials mapped to the operator plan. Registration bounds network search with signal, reject and timeout evidence. Context activates the APN and packet data session before DNS, TLS or payload attempts. Recovery explicitly covers retries, modem reset, backoff, sleep return and diagnostic upload.
A registration wait must finish as registered or with a classified outcome such as barred, SIM fault, no service, weak signal or timeout. That evidence lets the next state choose a recovery action rather than block forever. A URC can report a network change while the host prepares a payload or waits for a socket response. Ignoring it can make lost registration, a rejected context or a power transition look like a TLS, MQTT or cloud fault.
Force SIM rejection, a wrong APN, weak-signal attach, server outage, DNS failure, modem reset and a denied sleep request. Success means reaching a known state, recording the fault, protecting the battery budget and recovering without a manual terminal. The firmware must own both normal transitions and these unhappy paths.