Migrate an Ethernet Appliance to a Microcontroller
Assess and qualify a hardware platform port while preserving local behavior, bounded offline records, and truthful deployment status.
Problem statement
For this exercise, assume a non-actuating smart appliance currently runs its local application on an embedded computer with Ethernet.
Move that application to a resource-constrained microcontroller while preserving one journey: a sensor observation becomes local status and, after authenticated delivery, one durable observation in an existing backend. The old application can use general-purpose operating-system services.
The replacement has an available Ethernet interface, but its runtime, peripheral drivers, network stack, TLS and entropy support must be qualified within the stated budgets. An unsupported required capability is a reason to reject the proposed port, not a reason to assume the MCU can perform it.
The appliance produces one observation per second. Give every observation a stable identity that survives reboot, make it durable before promising local retention, and retain every generated observation through a one-hour network outage.
Reclaim a record only after the existing backend acknowledges durable acceptance; a lost acknowledgement must not create a second logical observation. Beyond that guaranteed outage window, use an explicit backpressure or gap policy.
Owners read the backend's latest accepted observation with its identity, time or clock uncertainty, confirmed installed hardware and reported active firmware; historical data, a desired update and a successful download must not be presented as evidence of current execution.
Physical replacement is a service operation. On installed MCU hardware, compatible signed firmware updates must survive power interruption and report the confirmed active build. Restoring the old physical platform may require a technician; there is no automatic remote hardware rollback promise.
Existing enrollment, backend ingest, deduplication and owner-read services remain provided boundaries. Protect their authentication contract, count transport and cryptographic resources locally, and qualify the old and new behavior before expanding a serviceable rollout cohort.
Actuation, safety certification, cloud-analytics relocation, radio migration, new cloud product features and detailed driver implementation are outside scope.
What to build
- Demonstrate that the selected MCU platform can produce the required sensor observations and responsive local status within the supplied resource and timing limits, or identify why the port is infeasible.
- Retain generated observations durably across the guaranteed outage and deliver each as one logical backend observation despite reboot, lost acknowledgement and retry.
- Let owners distinguish the latest accepted observation, its age or clock uncertainty, installed hardware and confirmed active firmware from desired or unconfirmed update state.
- Qualify behavior and resource peaks, recover interrupted firmware updates on installed hardware, and stop further physical replacement when a rollout cohort violates the agreed limits.
At scale
- For this exercise, each MCU has 256 KiB RAM and 2 MiB flash: two 640 KiB firmware banks including image metadata, 128 KiB for boot/identity/configuration and 640 KiB for the observation journal. A complete durable record uses at most 96 bytes and journal metadata/reserve uses at most 64 KiB. Erase units are 4 KiB, rated for 100,000 cycles; demonstrate five-year endurance with no more than 2× journal write amplification and account separately for any hot metadata region.
- For this exercise, 1,000 appliances each generate one observation per second. The provided backend supports 20,000 records per second globally and sustainable durable acceptance of 10 records per second per healthy admitted device. Healthy usable uplink is at least 64 kbit per second per device; replay uses at most 512 network bytes per record, with control traffic inside the remaining budget.
- For this exercise, healthy local status reads complete within 100 milliseconds, and qualified worst-case CPU busy time stays at or below 70 percent in every one-second window, including overlap with transport, cryptography and permitted update work. Demonstrate these bounds rather than relying on average utilization.
- For this exercise, retain all observations through a one-hour network outage and drain that backlog within ten minutes when a healthy admitted device sustainably receives durable acknowledgement for 10 records per second. Reboot and firmware-update power interruption must not silently erase promised records, reuse a committed record identity or misreport the running build.