While a device is still in development on our bench, we update it over a cable. Once delivered, it leaves the workshop for its users’ office or site: we then have to get its new software to it without bringing it back to us, and decide who receives it, when, and how we stop everything if it goes wrong. Should we write that service ourselves, or adopt someone else’s?
Major update of 21 November 2026.
hawkBit was uninstalled on 20 November. The connected Cube now updates over 4G, and the Trust-Buster Cube, which has no network access, by smartphone, with a first successful trial on the real Cube on 21 November (the account). The beginning of the article tells the story of March 2026 and stays as it was. The rest is in “November 2026: two Cubes, two paths”.
Update of 28 November 2026. Both paths are now in use every day. From 21 to 28 November, the test-bench Cube confirmed 33 updates to its Walter board and 6 to its eyes, over 4G or by phone. The published versions go up to 0.8.30 for the Walter board and 1.4.2 for the eyes. The phone was sometimes the only possible path: version 0.8.6, which teaches the Cube to receive messages over 4G that are too long for its modem, could not arrive over 4G.
Automatic rollback has been used in earnest. On 25 November, 0.8.18, delivered over 4G, ran out of memory at start-up: the Cube rolled back to 0.8.17 on its own and recorded it in its log, and 0.8.19 fixed the fault the same day. Over the week, the two Walter updates that failed both rolled back to the previous version on their own.
Since version 0.8.30 (28 November), the image itself has been encrypted for the one Cube that downloads it, over 4G as well as by phone, with post-quantum protection.
Since 22 November, every update offer signed by our authority has also carried a signature designed to withstand a future quantum computer (see the article on post-quantum cryptography).
The cable was needed once more, on 24 November: the key that signs the Walter board’s updates had been left on a computer that broke down, and we had to install a new key in the Cube, then unblock its reception over 4G. Finally, 4G remains slow: eyes version 1.3.0 took some forty minutes to arrive, probably because of the modem’s reception stalls described in the article on the Walter board. We now track the share of successful updates as a service indicator, explained in “Making a connected device last”. The “Where we stand” box at the end of the article has been corrected: the progress of an update has indeed been shown on the eyes since 21 November.
We did both, in that order, and on the same day. On 1 March 2026, a small server of our own making was distributing the firmware for the Walter board. Then, that same evening, the job passed to Eclipse hawkBit. This article explains why the first did not last, and what the second brings.
The problem: updating without travelling
Remote updating, often abbreviated to OTA for “over the air”, has become a basic expectation for a connected device. The IETF, the body that standardises Internet protocols, says so at the top of RFC 9019: having a reliable and secure update mechanism is a fundamental requirement for fixing vulnerabilities in devices. In Europe, the Cyber Resilience Act starts from the same observation, since it targets, among other things, the lack of timely security updates. What it requires of the manufacturer, and for how long, is summarised in the article on networks and services shutting down.
The work splits into two halves. The device has to be able to receive an image, write it alongside the old one and reboot into it; on our microcontrollers, Espressif’s development framework provides this mechanism. The server has to know which devices exist, what each has already received and what it should receive. That second half is our main concern here.
Our first attempt: a file and a switch
Our home-grown server was deliberately minimal. It published a manifest, a small file announcing the available version and where to download it from, and it had one global switch: updates on, or off. Each board read the manifest, compared the version with its own, and updated itself if the switch was on.
For a development board on our bench, that was enough, and we had something working within a day. The limits soon show, though. With a single switch for everyone, you can neither try a version on one device before the others nor serve different images to different hardware. Nor did the server know what the boards had done with the image: installed, refused, interrupted? Answering each of those questions would have taken code, and a home-grown update server quickly becomes a project in its own right.
What a campaign manager is
Eclipse hawkBit is open-source software from the Eclipse Foundation, which describes itself as a domain-independent solution for rolling out updates to constrained devices as well as to more powerful gateways. Its documentation makes a point that struck a chord with us, since we had just lived through it: seen from the server, updating a sensor or a car raises much the same problems, and solving them again in each project is duplicated effort.
The server keeps an inventory of the devices, which it calls targets, and of the software that can be assigned to them. It then organises campaigns: you choose a set of targets, split it into groups, and each group starts only if the previous one went well. Finally, if too many devices in a group fail, the campaign stops on its own. The device, for its part, talks to the server through an interface named DDI, based on HTTP: it polls regularly to ask whether there is anything for it, then reports back on what it did with it.
| Question | Home-grown server | Campaign manager |
|---|---|---|
| Who receives the update? | Everyone, or no one | The chosen targets, group by group |
| What happened on the device? | Unknown | A report from each device |
| How do you stop? | Turn the switch off | Cancellation, and automatic stop at an error threshold |
| Several device models? | One manifest, one image | Software sets assigned to the chosen targets |
What we did, and why hawkBit
On the evening of 1 March, we installed hawkBit on our server, behind the web front end, and rewrote the part of the firmware that looked for updates so that it spoke DDI instead of our manifest. Build and publishing scripts followed on the 4th, for several device models, and some tuning on the 6th. On 3 March, our first alert Cube received the code for an update without a USB cable, by a path other than hawkBit: an MQTT message tells it to go and fetch its firmware. The sight of a cube rebooting set off a quite disproportionate moment of joy. Finally, we added a dashboard on the 8th.
Why hawkBit? It ticked the boxes that mattered to us. It is open-source software, backed by the Eclipse Foundation, with open governance, and it originally came out of Bosch. It works on the server side, which was the half we were missing. And its interface with the device runs over HTTP, which a microcontroller can speak. The best-known open-source tools in the field, such as SWUpdate or RAUC, address the other half of the problem: they are installed on the device, and target embedded Linux, whereas our boards are microcontrollers.
What it brings, and what it costs
We gained features that we would not have written as well: the inventory, rollout by groups, cancellation, per-device reporting. We also gained a documented interface between the device and the server, which others had proven before us.
The price is the one that comes with any software of this size. It has to be hosted, kept up to date and protected, since whoever controls the update server controls the devices. And for a handful of demonstration boards, it is a tool sized for fleets we do not have.
Above all, a campaign manager says nothing about what matters most. It decides who receives what, but it is up to the device to check that the image really comes from us. In March 2026, our firmware did not: it installed whatever the server gave it, without checking a signature. The hawkBit documentation itself says so plainly: an update can repair almost anything, and it is also the greatest threat if someone hijacks it.
November 2026: two Cubes, two paths
Since March, the Cube has come in two profiles. The connected Cube, the Ops-Devices one, has a cellular modem and talks to our server all the time. The Trust-Buster Cube, by contrast, stays isolated: it has no connection to a wide area network (WAN) or to a wireless local area network (WLAN), and so neither Wi-Fi nor an IP address. Yet both must receive fixes. They receive them by two different paths, and run the same checks on arrival.
Why not the cable
The simplest thing would be to leave the Cube’s USB port accessible and plug a computer into it. We do not want that. An open programming port serves anyone who has the Cube in their hands, not only those entitled to use it: it gives access to the diagnostic console, lets the memory be read, and allows attempts to install something else. This is the door left open that we describe for industrial machines in “USB and serial links”. The cable has two other flaws that our paths do not share.
- It leaves no trace. Flashing over a cable records neither who did it, nor when, nor with which version. The server knows nothing about it.
- It cannot roll back. The tool writes the image straight into memory, with no trial period. If the new version does not work, the Cube stays out of action until someone comes back with the cable.
What we want instead
Even so, we want an authorised user to be able to go on updating their Cube, on site, safely, and with no tools or special skills. Hence the two paths that follow: 4G for the connected Cube, the enrolled phone for the isolated Cube. In both cases, the Cube installs only an image that is signed and intended for it. It boots the image on trial, and rolls back to the previous version on its own if it fails. It records each step in its signed log, and this log is sent up to the server: straight away over 4G, or by the phone the next time it has network coverage. The server then knows which Cube received which version, when, whether it held and, via the phone, which user brought it. It notifies the operator.
The USB port is still used on our test bench, for development. When the Cube is closed up, the USB console will be switched off in the firmware and the memory will be encrypted. Secure boot, already active on the test-bench Cube, refuses even now to boot an unsigned image, whether it arrives by cable or otherwise.
The connected Cube: updating over 4G
This is remote updating in the strict sense, abbreviated to FOTA, for “firmware over the air”: the image arrives over the mobile operator’s network, with nobody on site. The Walter board drives a Sequans GM02SP modem in LTE-M, the variant of 4G designed for connected devices. It stays connected to our MQTT broker, over TLS, with a certificate unique to each Cube.
- On the server, we assign a version to a Cube.
- At its next status message, a minute later at most, the Cube receives an offer signed by our authority: the target board (the Walter board itself or the board that drives the eyes), the version, the size and the manifest.
- The Cube requests the image chunk by chunk, in messages signed with its own identity. It re-requests a lost chunk, without starting all over again.
- It checks the manifest described in “Four questions before installing an update”, then the hash of the image received. For its own board, the ESP32-S3’s secure boot also checks a second signature, with a different key.
- The new version boots on trial. It has ten minutes to prove that it works, by getting a status message acknowledged by the server. Otherwise, the board rolls back to the previous version on its own, records the failure and does not request that version again.
The trial of 20 November 2026
This path was tried on the test-bench Cube on 20 November 2026. The eyes board went from version 1.1.4 to 1.1.5 (437 kB in four minutes). The Walter board went from 0.7.0 to 0.7.4 in three updates. In between, a faulty version, 0.7.2, was discarded without intervention: the board rolled back to the previous version on its own, and the server received the report.
The Trust-Buster Cube: the update carried by the phone
A Cube with no network cannot go and fetch its image: it has to be brought to it. So the job falls to the phone that already collects its log and brings it its rules (see “The Cube decides on its own”).
The vocabulary is worth getting right. This is not FOTA in the usual sense, since the Cube never contacts a server. The phone acts as a “store-and-forward” relay: it downloads the image when it has network coverage, keeps it, then hands it over when it comes near the Cube. The sensor network literature calls this courier a “data mule”. Only the last hop is made by radio, over Bluetooth Low Energy, which chip makers call a “BLE OTA” or “DFU over BLE” update. So we speak of an offline update, carried by smartphone.
A courier that does not have to be trusted
The phone is not trusted, and it does not have to be. RFC 9019 sets out the principle: the security of an update must not rest on the transport, but on the protection applied to the manifest and the image themselves. We draw three rules from it.
- The image is encrypted for a single Cube. The phone can neither read nor modify it, and another Cube cannot decrypt it.
- The offer is signed by the authority. It names the Cube, the version and the manifest. So the phone cannot present it to another Cube, or forge one.
- The checks are the same as over 4G. Manifest, hash, secure boot, trial and automatic rollback. The new version is confirmed at the next Bluetooth session.
Nothing without human action
Nothing gets through without human action. As the phone approaches the Cube, the app flags the update. The user accepts it, confirms it with Face ID, and the transfer takes place inside the encrypted Bluetooth session, which is reserved for phones enrolled and authorised on this Cube. The Cube records in its signed log which phone brought which version, then the result. When this log reaches the server, the server knows who updated what, and sends a notification. The chain can be checked from end to end, from the server to the Cube and back.
21 November 2026: first trial on the real Cube
That same day, we ran the trial for real: an iPhone, the Trust-Buster app, and the test-bench Cube. Here is what the Cube recorded in its log, Paris time.
| Time | What happened |
|---|---|
| 10:33 | The phone presents the signed offer for the eyes 1.1.6 and starts sending. |
| 10:38 | The Walter has checked the image and relayed it to the eyes board, which confirms: 1.1.5 → 1.1.6. |
| 10:46 | The Walter accepts its own image: 0.7.4 → 0.7.6, on trial. |
| 10:48 | The Walter reboots, the phone reopens a session, and version 0.7.6 is confirmed. |
The server received this log over 4G, and it knows who carried out the update: “confirmed by iPhone Trust-Buster (Bluetooth)”. That is the traceability the cable did not give.
What the trial taught us
Not everything was perfect, and so much the better, since that is what a trial is for. A first transfer was interrupted at 28%: the phone lost sight of the Cube. Nothing was installed, since the Cube only takes an image that is complete and verified. The second transfer, however, went through to the end. The trial also taught us what to tell the user during the transfer: stay close to the Cube, with the app open, then synchronise after the reboot. From now on the app will say so itself.
Version 0.7.6 brought more than a new number. It makes the modem check the name of the server, in addition to its authority: that was the point left open in our article on post-quantum cryptography. We deliberately sent it by phone rather than over 4G: a modem setting survives a firmware rollback, and we could not risk cutting the very link used to deliver it.
In the afternoon, we did it again with two new versions, also delivered by the phone: the eyes 1.1.7, confirmed at 14:17, and the Walter 0.7.8, confirmed at 14:33. The Walter 0.7.8 now sends the eyes the progress of an update. To see it, one more update was needed: we published a test Walter 0.7.9, delivered this time over 4G, without a phone. The Cube picked up the offer at 14:50 and confirmed the new version at 14:56.
Is the Trust-Buster Cube still “air-gapped”?
The NIST definition, taken from RFC 4949, sets two conditions: the two systems are not physically connected, and no logical connection is automated, data passing only manually, under human control. The Trust-Buster Cube meets the second: nothing gets in without a person on site, an enrolled phone and an explicit acceptance. The first is open to debate: there is no wire, but there is a short-range radio link. For anyone who also counts wireless links, this is not total isolation. So we write what can be verified: no WAN or WLAN access, and updates that pass only through a local link, under human control.
Why we removed hawkBit
Neither path goes through hawkBit. We uninstalled it on 20 November 2026, for four reasons.
- A second channel to defend. hawkBit is an HTTP interface that the device polls with its own token. Our connected Cube already has an authenticated channel, where every message is signed by its identity, encrypted and protected against replay. Sending updates through it avoids one more secret in the firmware.
- It added no protection. As we wrote above, trust rests on the signed manifests and on secure boot, both checked by the device. So the server merely distributes.
- It does not serve the isolated Cube. A Cube with no network polls no server.
- A cost with no use. A Java server and its dedicated database, for a single registered device, silent since 6 March.
What we lose
We lose the campaign interface: rollout by groups and stopping at an error threshold. It will have to be rebuilt when there is a fleet, which we discuss in the article on going from prototype to production. Assigning a version to a Cube is already possible, with a choice of path: 4G, the phone, or both.
Where we stand.
The update over 4G was tried on the test-bench Cube on 20 November 2026, for the Walter board as well as for the eyes board, rollback included. The update carried by smartphone was tried on a computer, with the real code of the app, the Cube’s firmware compiled for PC and the server’s encryption: twelve checks passed, including the expected refusals (an offer intended for another Cube, an unsigned offer, a tampered chunk, a version already installed), then between a real phone and the real Cube on 21 November 2026, for the eyes then for the Walter (see above). The progress of the update has been shown on the Cube’s eyes since the same day. Resuming an interrupted transfer from where it stopped is written, in the Cube and in the app, but not yet tested on the real Cube. Encrypting the Cube’s memory remains to be done. Corrected on 28 November 2026: this box used to count the progress on the eyes among the things still to do.
Sources
- Eclipse hawkBit: the project’s site and documentation, including campaign management.
- hawkBit repository: the project overview and the list of existing device-side software.
- hawkBit, Direct Device Integration API: the interface between the device and the server, over HTTP with regular polling.
- IETF, RFC 9019, A Firmware Update Architecture for Internet of Things: why and how to update a constrained device.
- Espressif, Over The Air Updates: the mechanism on the microcontroller side.
- European Commission, Cyber Resilience Act: an overview of the regulation.
- SWUpdate: update tool for embedded Linux.
- RAUC: update tool for embedded Linux.
- NIST, definition of “air gap”, taken from CNSSI 4009-2022 and from RFC 4949 (Internet Security Glossary).
- R. C. Shah, S. Roy, S. Jain, W. Brunette, Data MULEs: modeling a three-tier architecture for sparse sensor networks, IEEE SNPA, 2003: the origin of the term “data mule”.
- Espressif, App rollback: booting on trial and the automatic return to the previous version.
- Espressif, How to Implement Bluetooth LE OTA Upgrade: the name that manufacturers give to updating over Bluetooth.
A question, an objection? contact@ops-devices.eu, or on Bluesky.