Identity, many robots and offline¶
How the server tells your robots apart, how to set up a batch of robots from one disk image, what freezing a key does, how to remove or replace a robot, and what happens while a robot is offline. Read this before you build more than one robot.
How a robot is identified¶
Three things identify a robot:
What |
Where it comes from |
|---|---|
Device ID |
Worked out from the network card’s MAC address, or the serial you set
with |
Secret key |
A project key you pass at launch ( |
Credential |
The robot’s own key, given by the server on its first connection and
saved in |
After the first connection the secret key is only a fallback: the robot uses its credential, and the server accepts the secret key for an existing robot only while that robot has never signed in with a credential.
Many robots from one disk image¶
To build a batch (a “golden image” copied to every unit):
Build one unit and test it as in Install and run. It connects, so it now has a credential.
Remove what belongs to that one unit before you take the image. Stop the node, then delete its credential and its local data:
cd ~/xparo_ws/install/xparo/lib/python3.*/site-packages rm -f config/credential.json rm -rf xparo/<project-id>
xparo/<project-id>/holds that unit’s logs and unsent messages. An image that containscredential.jsonmakes every copy sign in as the same robot.Give each unit its own device ID. Real robots have different MAC addresses, so the default works. If the units are virtual machines or share a cloned network card, or you want the chassis serial in the dashboard, set
XPARO_DEVICE_IDon each unit, in the environment that starts the node (a systemd unit’sEnvironment=line, for example), before its first start. Every unit needs a different value.Use one secret key for the batch. Generate it on the Dashboard page (name it after the batch, such as
batch-2026-11) and put it in the launch command in the image.Start each unit once. It joins, appears in Robots Fleet under its device ID and saves its own credential.
Freeze the batch key when every unit has joined. The joined robots keep working; a copy of the image that leaks can no longer add robots. Unfreeze it when you build the next units.
If two units have the same device ID, the second one is refused while the
first is online or has its own credential (robot_serial_in_use, see
When a robot is refused), and the reason is shown in the first robot’s
Errors on Robots Fleet. Give the second unit its own XPARO_DEVICE_ID.
If you already copied an image with a credential in it, all those units are
one robot in the dashboard. Delete config/credential.json on each copy,
press Reset robot sign-in on that robot (Robots Fleet → the robot →
Power), and restart the units: each joins on its own.
What the key switches do¶
On the Dashboard page’s Secret Key Manager (Owners only, see Dashboard (project overview)):
Action |
Effect |
|---|---|
Freeze |
New robots can’t join with the key, and it can’t be switched or deleted until it is unfrozen. Robots that already joined keep working. |
Off |
New robots can’t join with the key. Robots that already joined keep working. |
Delete |
The key is gone for good. Robots that already joined keep working. |
None of these disconnects a robot. To cut off one robot, use Retire or Reset robot sign-in on Robots Fleet.
Removing, reinstalling and replacing robots¶
You want to |
Do this |
|---|---|
Stop a robot for good, or for a while |
Retire it on Robots Fleet. Its connection is closed and it is
refused ( |
Delete a robot from the project |
Its credential is deleted with it. If the machine is still started with a working secret key, it joins again as a new robot on its next connection. Retire it instead, or freeze the key it was started with. |
Reinstall or reflash a robot (it lost |
It is refused ( |
Replace a unit with new hardware under the same serial |
The new unit is refused ( |
While a robot is offline¶
It keeps working from its own copy of the project (trees, tasks, code nodes; see Synced files and folders). Tasks can still be started on the robot (Run a task from the robot).
Task results and task history are kept in memory and sent when it reconnects. If the node is restarted (or the robot reboots) before that, they are lost. A run that was going when the robot dropped off shows in Task history as interrupted until the robot sends its real result.
Dashboard commands (Run now, Terminal, Teleop, Files…) are not queued: they only work while the robot is online.
Edits made on the robot’s disk¶
When a robot connects, the project’s copy wins for every file that exists in both places: edits made to an existing tree, environment or code node on the robot’s disk are replaced without a warning. New files made on the robot are offered on the Behaviour page to import. Make changes to existing files on the dashboard. Details: Synced files and folders.