As soon as a fleet of connected devices grows beyond three boxes, a list is no longer enough: you want to know where they are, which can see one another and which have gone quiet. You still need boxes to show, though, which is why we wrote the map, and something to bring it to life without hardware, on the same day.
Update of 28 November 2026.
A real Cube is publishing continuously again, but the map does not show it. Since 20 November 2026 the connected Cube has been sending a status message every minute, and its log, over 4G to the same Mosquitto broker; since 28 November it has sent its energy readings too. It identifies itself with a certificate of its own (see “One identity per Cube”). Its messages are signed by the Cube and encrypted end to end for the one service that receives and verifies them. The map, which subscribes to other topics and could not open these messages anyway, therefore does not see them. The Cube’s status, its log and its battery curve can be read in our administration console. What these messages let us measure, link availability for example, is explained in “Making a connected device last”. The map remains populated with simulated Cubes, and the box at the end of the article still describes its state.
A fleet does not fit in a table
A Cube is a stand-alone box, and a stand-alone box has the annoying habit of being somewhere other than on the desk of the person developing it. A row in a database says that it exists, but not where it is, what it senses around it, or whether it has shown any sign of life since this morning. For a fleet, these three questions arise together, and a picture, a map of the fleet, answers them best.
There is nothing original about this need, and there is more than enough out there to meet it. Digital twin platforms, such as Eclipse Ditto, give each device a software double that you query instead of the hardware. We were looking for something far more modest, since the project was only at the demonstrator stage: a map, a graph, and a way to check that the chain holds together end to end.
What we put together
The chain has four links. Each Cube periodically publishes a report over MQTT, a messaging protocol standardised by OASIS in which devices publish to topics and a central server, the broker, forwards the messages to its subscribers. Our broker is Eclipse Mosquitto, in place since January (we describe its installation in the article on hosting, and, in another article, the move to version 5 of the protocol that we are considering).
We encode the report with Protocol Buffers, a compact binary format described by a schema, which matters for a device where every byte transmitted costs energy. A server written with Fastify listens for these reports, stores them in a PostgreSQL database and pushes them straight to any open browsers over a WebSocket connection, so that the map moves without a reload.
On screen, two views complement each other. The first is a Leaflet map laid over OpenStreetMap data, which shows the position of each Cube and its track. The second is a graph drawn by Sigma.js on top of Graphology, where a line joins two Cubes that can detect each other. The map answers “where?” and the graph “who sees whom?”, which is not the same question. Two boxes that are neighbours on the map may be quite unable to hear each other over the radio.
Why these building blocks
We have to be honest about why we picked these building blocks: we did not write down the reason for each choice at the time, and it was above all a starting point. What we did write down, in the dependency review drawn up on the same date, is a preference for community map data under an open licence over a proprietary base map, and a reservation about Protocol Buffers, a format that originated at Google. The schema is ours and the library is replaceable, so we judged the dependency acceptable, and noted Cap’n Proto and FlatBuffers as possible replacements, with no urgency.
Why simulate before deploying
The simulator was born alongside the map. It creates a few fictitious Cubes, five by default, places them in French cities, moves them around at random and publishes their reports to the broker, exactly as a real one would. Two simulated Cubes that come close enough end up seeing each other, and the line appears in the graph.
The reason itself was written down two months later, in the release notes of 1 May. It fits in one sentence: “the console and the map do not know they are talking to a demo cube”. In other words, the simulator is not a special mode of the interface: it is one more publisher on the broker. The code that receives, stores and displays is the same for a simulated Cube and for a real one, and that is the whole point. What we show in a demonstration is therefore what will run with real hardware.
What simulating first gave us
Looking back, simulating first gave us three things.
- Developing without waiting for hardware. You develop a fleet interface against twenty devices, not the single board lying around on the desk.
- Showing without carrying. A demonstration no longer depends on a charged battery or on network coverage in the room.
- Generating volume. Since 1 May, the simulator has replayed a scripted day every day: a starting state, recurring messages, then about thirty one-off events scheduled at fixed times. That comes to about 4,200 messages a day for a single demonstration Cube. This steady traffic also lets us exercise the server’s protection and monitoring, covered in another article.
One feature of MQTT makes this replay convenient. A message can be published as “retained”, meaning that the broker keeps the latest copy and delivers it to any new subscriber. A console opened at three in the afternoon therefore receives the current state immediately, without waiting for the next cycle. If the simulator starts late, it sends the day’s events it would otherwise have missed in a single burst.
What it costs, and what a simulation does not tell you
A simulated Cube is a model pupil. It never loses the network, its battery runs down only if the scenario says so, and it is punctual to a degree we have never observed in a real one. A day replayed identically therefore checks the plumbing, from the broker to the screen. But it checks none of the surprises that make up the daily life of a real device: a temperamental radio, a truncated message, a drifting clock. Nor have we measured how the chain behaves beyond this volume, which remains small.
The other cost is more insidious: watch a live map for long enough and you end up forgetting that it is populated by extras. In July we tried displaying the simulator’s example Cubes in grey, and the experiment did not last the day. Grey now marks a Cube that has been silent for more than ten minutes, and only the OPS-SIM prefix distinguishes demonstration from measurement.
Finally, for now we have set aside anything resembling a true digital twin, with desired state, reported state and commands. Not that the approach is a bad one: it is meant for a fleet in operation, whereas we had a map to validate. What moving up to a fleet requires is the subject of the article on moving from prototype to production. Added on 28 November 2026: the real Cube is now here, and this choice has changed. We tie our representations and our rules to a specific Cube, in both directions; the reasoning is in Digital twins: most are only shadows.
Where we stand.
The map is deployed, but it has been dormant since 20 July 2026. The project has since turned to a Cube that decides on its own and no longer publishes continuously, as described in the article on working without a network, and the map lost its main source at a stroke. What it displays today is therefore mostly simulated. The simulator, however, stays switched on: it is part of the infrastructure and keeps publishing its scripted day, every day. No real fleet has yet been monitored with this tool.
Sources
- OASIS, MQTT Version 3.1.1: the protocol standard, including the retained message mechanism.
- Eclipse Mosquitto, the MQTT broker we use.
- Protocol Buffers, documentation of the serialisation format used for the reports.
- Fastify, the framework behind the server that receives and redistributes.
- Leaflet, the map library, and OpenStreetMap, whose page sets out the open licence of the data.
- Sigma.js and Graphology, for drawing and manipulating the graph.
- Eclipse Ditto, an open-source digital twin framework, for anyone who wants to go further than our map.
A question, an objection? contact@ops-devices.eu, or on Bluesky.