Industry Insights
OTA campaigns on a polled 470 MHz network: the calendar math
A 512 kB image is a minute of airtime. Fitting it into a 4 s service cycle without raising 400 false alarms is a scheduling problem, not a bandwidth one.
An over-the-air update is usually described as a bandwidth problem. On a 470 MHz narrowband network it is not: a 512 kB image is about a minute of channel time at 76.8 kbps, which is less than the time it takes to walk to the cabinet. What makes firmware campaigns hard is that the radio is already busy with something else — a service cycle that reports every four seconds, a duty-cycle budget, and a control room that treats silence as a fault.
This article is about the calendar, not the airtime. The transfer arithmetic is in OTA firmware at 76.8 kbps; here we take the session length as an input and ask how it fits into a polled schedule without turning the network blind.
The transfer is a minute. The schedule is the problem
Start from the numbers a TP2000-M4D01 actually publishes. Mode 2 runs 76.8 kbps in both directions; mode 1 runs 2.4 kbps uplink against 19.2 kbps downlink. Firmware travels downlink, so mode 1 still updates at 19.2 kbps — a point that surprises people who read the 2.4 kbps figure first.
With 800-byte payloads, a 512 kB image is 656 packets. At 76.8 kbps and the same 12-byte framing and 6 ms acknowledgement the earlier article used, that is 59.4 s of channel time. At the 19.2 kbps downlink it is 225.9 s, because 656 packets of 812 bytes at 2.4 kB/s plus acknowledgement is 344 ms each.
Add what a session needs around the transfer, and the fixed cost becomes visible:
Stage | What happens | mode 2 | mode 1 |
|---|---|---|---|
Session attach | gateway and terminal agree on job id, block size, carrier | 5.0 s | 5.0 s |
Image transfer | 656 packets, stop-and-wait | 59.4 s | 225.9 s |
Verify | CRC over the written region, read back from flash | 0.5 s | 0.5 s |
Slot swap | bootloader marks the new image bootable | 2.0 s | 2.0 s |
Boot and first report | new firmware runs its self-test | 4.0 s | 4.0 s |
Session | 70.9 s | 237.4 s |
That table is the whole argument. At 76.8 kbps, 11.5 s of the 71 s session — 16 % — has nothing to do with the radio. Quadruple the rate and you remove 166 s of airtime; you do not remove the 11.5 s, and you do not remove the 30 s of scheduler slack you should reserve for a retry. A slot of 101 s against a 59 s transfer is how a "one-minute update" becomes a twenty-minute maintenance window that people then schedule badly.
Two clocks: the 4 s service cycle and the maintenance carrier
The reporting side has its own clock. On the same module, DSME time-slotted mode carries 50 terminals at a 4 s service cycle. In the gateway capacity arithmetic, one exchange — poll, 24-byte report, acknowledgement, two turnarounds, one scheduling guard — costs 160 ms. Fifty terminals at 160 ms every 4 s is 8 s of demand against a 16 s pool on four carriers: a 50 % load factor.
Now put an update session on the same carrier. The session wants the channel continuously for 71 s, which is 17.7 times the 4 s cycle. While it runs, the other 49 terminals on that carrier cannot be served at all — 885 report exchanges do not happen. Two consequences follow, and they are different problems:
- The control room sees silence. At a 4 s cycle, 71 s is 17 consecutive missed reports. A three-miss alarm rule fires on 50 terminals at once.
- The scheduler has to give up a carrier. 71 s of exclusive use is not something you can slot in between two polls; the exchange is half-duplex and the terminal is receiving continuously.
The clean fix is placement, not protocol. Four carriers means you can dedicate one to maintenance and keep three for reporting: 50 terminals × 160 ms over 12 s is 66.7 % load, still inside the pool, and the maintenance carrier takes sessions without displacing anyone. You pay for the window in load factor instead of in alarms, and the cost is visible in advance rather than discovered at 02:20.

On a TP2208 the same policy exists with two carriers and at least 100 terminals, which is why it is usually the reporting radio rather than the update radio: with two carriers, dedicating one to maintenance pushes the reporting carrier to 100 % load and the maths stops being comfortable.
How many terminals fit in a window
The capacity formula is unglamorous: usable minutes divided by slot length, with a guard band at each end so that you are not starting a session at the moment the network changes its mind.
N = floor((W - 2g) / (t_session + t_slack))With g = 5 min and t_slack = 30 s, a 40-minute window yields 30 usable minutes:
Window | mode 2 slots | mode 1 slots | Nights for 400 terminals (mode 2 / mode 1) |
|---|---|---|---|
20 min | 5 | 2 | 80 / 200 |
40 min | 17 | 6 | 24 / 67 |
2 h | 65 | 24 | 7 / 17 |
6 h | 208 | 78 | 2 / 6 |
A 40-minute window is therefore not a limit imposed by the radio; it is a decision about blast radius. Seventeen terminals a night means a bad image costs seventeen radios, which is a defensible number for a first rollout and an indefensible one for a security patch that must reach the fleet this week. Six hours gets you 208 terminals — two nights for 400 — but it also means 208 terminals silently changing firmware while nobody is watching.

Two details decide whether those numbers survive contact with a real site.
The fixed cost dominates. Halving the image does not double the window. A delta patch at 8 % of the image is 41 kB, 4.8 s of transfer at 76.8 kbps — but the session is still 16.3 s and the slot still 46.3 s, so a 40-minute window goes from 17 terminals to 38, not to 200. If you want more terminals per night, attack the 41.5 s of attach, verify, swap, boot and slack, or run sessions on several carriers in parallel.
A sleeping terminal quantises the schedule. If a battery-powered terminal wakes every 15 minutes, you cannot confirm the new image before its next scheduled transfer unless the firmware supports a maintenance wake. Serialised, that is 15 minutes per terminal: a 6-hour night fits 23 terminals, against 208 for an always-listening one. Pipelining is the answer — start the next transfer while waiting for the previous terminal's confirmation — and it requires the gateway to track per-terminal state rather than a single global "update in progress" flag.
The half-written image
Every campaign eventually delivers an image that boots but is wrong: a mis-set register, a driver that hangs on one hardware revision, a radio calibration that drifts. The question the schedule has to answer in advance is how the terminal gets back.
There are three recovery paths, and they differ by three orders of magnitude in time.

Path | Time to old firmware | Airtime | What it requires |
|---|---|---|---|
Dual-bank revert in flash | 3 s | none | two image slots, a scratch sector, a bootloader that has not yet confirmed the new image |
Delta re-push | 16 s | 41 kB downlink | exact base version on the terminal, a per-version patch |
Full image re-push | 71 s | 512 kB downlink | a terminal still awake and a window still open |
Full image re-push, next window | 6 h | 512 kB | a job ledger that remembers the failure |
Truck roll | 8 h | none | a site visit, and a reason to explain the visit |
Dual-bank is the only path that does not depend on the radio still working, which is why it is worth paying flash for. But the flash bill is easy to underestimate. MCUboot's design puts a primary and a secondary slot in flash, swapping or overwriting between them, and the scratch area must hold at least the largest sector being swapped (MCUboot design). On a 1 MB part with a 48 kB bootloader and a 4 kB scratch sector, each slot gets 486 kB — so a 512 kB image is 26 kB too large for A/B, before any application data. Either the image shrinks, the part grows to 1.5–2 MB, or the terminal runs single-bank plus an external loader and accepts the 71 s re-push as its rollback.
The other half of rollback is a rule about when not to revert. An image that has been written correctly can still be wrong, and a terminal cannot tell you that in the 4 s after boot. The pattern that works is the one in the IETF firmware manifest work: a monotonically increasing sequence number that must not wrap, so a device refuses an older image even if an attacker can replay it (RFC 9124 §3.2). Applied to a campaign, the sequence number gives you three states worth coding for:
- staged — the image is written, CRC is good, nothing has run;
- pending — the new image booted and self-tested, but has not yet been confirmed;
- confirmed — the gateway has seen the new version string and N clean service cycles.
Only "confirmed" should stop the clock. Anything stuck in "pending" for longer than two expected sessions is a rollback, decided by the gateway, not by the terminal's optimism.
What the gateway does meanwhile
The gateway's job during a campaign is bookkeeping, and it is where most home-grown update tools fail. Five things have to be true at once:
- One job token per terminal. A resend of the same chunk must be idempotent; without a token, a lost acknowledgement re-queues the block and the terminal writes it twice.
- A block bitmap that survives the gateway's own restart. Resume granularity is a design choice — 4 kB blocks are 128 entries for a 512 kB image, which costs nothing to store per terminal.
- A state per terminal, not per network. The moment the gateway has one global "updating" flag, it either suppresses alarms for the whole fleet or for none.
- Alarm suppression keyed on state, with a cap. Suppress "no report" alarms only for terminals in staged/pending, and only for the expected session length plus one cycle. A terminal that goes quiet outside that envelope is a real fault and must still alarm.
- A backfill path. A terminal that buffered 18 reports during its session should upload them after the update, not interleave them with the transfer. Eighteen 32-byte records pack into a single 800-byte packet, about 100 ms; at mode 1's 60 missed reports it is three packets. Cheap, but only if the firmware reserves the space before it starts receiving.
The command surface can be small. The names below are illustrative — use whatever your firmware exposes, but insist on the four verbs, because each one corresponds to a decision the gateway must be able to make without a human:
AT+OTA=START,JOB=FW2027.03,CH=3,BLK=4096
AT+OTA? -> JOB=FW2027.03 STAGED=104/128 CRC=OK
AT+OTA=COMMIT -> confirm the pending image
AT+OTA=REVERT -> abandon staging, boot the previous slotOne night, 400 terminals
Put the pieces together on a 400-terminal DSME network, four carriers, one carrier reserved for maintenance, 512 kB images, mode 2. Everything below is arithmetic on the tables above; the assumptions are the 12-byte framing, 6 ms acknowledgement, 5 s attach, 30 s scheduler slack and 5-minute guard bands.
- Slot length: 101 s. Usable window in a 6-hour night: 350 min → 208 terminals.
- Two nights for the fleet, 8,320 terminal-minutes of scheduled silence in total, of which 208 × 71 s = 4.1 hours of actual radio time.
- Per terminal, 17.7 reports are missed; fleet-wide, 7,080 report exchanges disappear from the record. Buffered record volume: 576 bytes per terminal.
- If the campaign were run on a reporting carrier instead, every session would raise 50 three-miss alarms: 400 false alarms over the campaign, and an operations team that learns to ignore alarms.
- If confirmation is serialised behind a 15-minute wake cycle, the campaign stretches from 2 nights to 18.
The last line is the one worth taking to a design review. Nothing in the radio forces 18 nights; the schedule does, and the schedule is fixable without touching the PHY.
Verifying it on a real site, in ten minutes
Before the first production night, run one terminal through the whole path and measure four things:
- Session time. Start a 512 kB job on the maintenance carrier and time attach to first report. At 76.8 kbps expect 70–75 s; 20 % more means retries or a serial bottleneck somewhere in the terminal's host interface.
- Silence envelope. Count service cycles missed by the 49 neighbours on that carrier. If it is more than the session length divided by 4 s, the session is not actually confined to its carrier.
- Alarm behaviour. Force one terminal into staged state and confirm the control room stays quiet — then silence it without a job and confirm it alarms. Both directions matter; suppression that cannot be distinguished from a fault is worse than noise.
- Rollback. Abort a job at 60 % and power-cycle. The terminal must boot the old image and the job must resume at block ~77, not block 0. The resume arithmetic is in the 76.8 kbps article; the duty-cycle constraint on how fast you may retry is in the mode comparison.
If your licence or coexistence policy caps the transmitter at a percentage of an hour — ETSI EN 300 220-2 expresses duty cycle over a one-hour observation period — then check the session against that cap before you schedule it, because a 59 s burst is 1.6 % of an hour on its own. The cap is a separate constraint from the window; the window decides who is updated tonight, the cap decides whether the session may run at all.
FAQ
Can I update every terminal in one night?
Only by accepting that the whole fleet is silent at once, and that a bad image reaches all of it. At 76.8 kbps and one carrier per gateway, 400 terminals need 6.7 hours of sessions with no retries — so "one night" already means zero margin. The usual compromise is a canary of three terminals on mixed hardware revisions, then nightly batches sized so that a failed batch is recoverable before the next one starts.
Does a 32× faster mode give a 32× shorter campaign?
No. Transfer time scales with the rate, but the per-terminal fixed cost does not: 41.5 s of attach, verify, swap, boot and slack stays put. In a 40-minute window, mode 2 fits 17 terminals against 6 at mode 1 — a factor of 2.8, not 4. The ratio improves as sessions get longer, which is exactly why delta updates help less than people expect.
My terminals sleep for 15 minutes. Does that break the plan?
It quantises it. If the firmware can hold a maintenance wake, treat the terminal as always-listening for the duration of its slot. If it cannot, do not serialise confirmation behind the next wake — start the next transfer while waiting, and let the gateway track pending states. Serialised, the same 6-hour night drops from 208 terminals to 23.
Do I need two flash banks for a 512 kB image?
On a 1 MB microcontroller, yes — and you cannot have them: 486 kB per slot after the bootloader and scratch sector is 26 kB short. Either move to a 1.5–2 MB part, shrink the image below 486 kB, or accept single-bank updates with an external loader and a re-push as the rollback path. Deciding this after the hardware is frozen is how campaigns end up with a 6-hour recovery time.



