Skip to content

How to run several nodes

Luke Switzer edited this page Nov 20, 2026 · 8 revisions

Exercise: multi-node perimeter. One node sees a corner. Several nodes on one encrypted channel cover the whole site, each run the scans you plan for them, and show up together on one map.

Players Operator: commands the fleet from one node or the Command Center. Red cell: walks the perimeter carrying a Bluetooth tag they own.
Kit Two or more flashed nodes with the LoRa region set (Meshtastic radio setup). Three or more with GPS to locate a device. For the map, the Command Center with a Meshtastic radio on its USB port
Time 90 minutes

Objectives

  1. Every node answers on a private channel under its own ID.
  2. Each node runs its own planned scan.
  3. The red cell's tag is located from the nodes' combined readings.

Steps 1 to 8 set this up. The injects and debrief follow.

1. Put every node on one encrypted channel

Meshtastic starts on a public channel with a well-known key. Anyone in range running stock firmware can read your commands, detections, and coordinates on it.

  1. In the Meshtastic app, create a new channel with a generated key and a name of your own.
  2. Make it the primary channel.
  3. Turn off the public default channel.
  4. Share the channel to every node's radio and to your phone by QR code or channel URL. Every node must carry the same channel.

Nodes between you and a distant node relay your messages, 3 hops by default. Run one firmware version across the mesh, because message formats can differ between versions.

2. Give each node a unique ID

A node picks a random ID from AH10 to AH99 the first time it starts, so two nodes can share one. Set each ID yourself. An ID is 2 to 5 letters or digits.

  • Web UI: System tab → Settings → Node & mesh → Node ID → Update.
  • Over mesh: @AH41 CONFIG_NODEID:AH02. The node replies CONFIG_ACK:NODE_ID:OK.

Address the command to one node by its current ID. @ALL CONFIG_NODEID:AH02 would give every node the same ID. Do not give a Meshtastic radio a short name that matches a node ID, because the node ignores a message whose sender name equals its own ID.

3. Check that every node answers

Send @ALL STATUS. Each node replies with its own ID, as in AH01: STATUS: Mode:WiFi+BLE Scan:IDLE Hits:0 ....

On a Full node, System tab → Fleet lists the nodes heard on the channel. Ping Nodes sends @ALL STATUS for you.

On a Full or Headless node, type FLEET in a USB serial monitor. The node prints one JSON line listing itself, then each node it has heard on the channel and each other radio heard in the last 15 minutes, up to 48. Nodes stay listed after they go quiet and after a reboot. An entry heard in the last 2 minutes shows "alive":true.

4. Command the other nodes from one node

A laptop plugged into one node, Full or Headless, can start, stop, and check scans on the other nodes. The node puts your command on the mesh, and the radios carry it to the node you name, or to every node with ALL.

  1. Open a USB serial monitor on the node at 115200.
  2. Type FLEET_SEND:<node> <command>, with a space between the node and the command:
FLEET_SEND:AH02 STATUS
FLEET_SEND:ALL DEVICE_SCAN_START:2:300
FLEET_SEND:ALL STOP
  1. The node replies FLEET_SEND:200 Sent to AH02. The other nodes' answers then appear on the same serial monitor, as in [MESH RX] AH02: STATUS: ....
Part What it is
<node> A node ID of 2 to 5 letters or digits, or ALL. It cannot be this node's own ID
<command> One of STATUS, STOP, DEVICE_SCAN_START:, SCAN_START:, SCHED_ADD:, SCHED_LIST, SCHED_DEL:, CAMPAIGN_START:, CAMPAIGN_STOP, CAMPAIGN_STATUS, BLE_CLASSIFY:, CALIBRATE:, or CALIBRATE_RESET

The node refuses every other command, including erase and settings commands, with FLEET_SEND:400 Command not allowed. It replies 409 when mesh is off, 413 when the line is too long for one mesh message, and 503 when the mesh is busy.

On a Full node, the web UI sends through the same path: Fleet plan, the scheduler's node picker, the Status, Stop and Schedules buttons on each node in Fleet, campaigns on several nodes, and remote calibration. Scripts can call it at /api/fleet/send. See the API reference.

Nodes out of range. Every node keeps the commands it hears for other nodes. If the node a command is for doesn't answer within 8 to 16 seconds, a node that heard the command sends it on, up to 3 hops. The answer comes back the same way. A node runs each command once, however many copies reach it. This works the same with Meshtastic and MeshCore radios.

Nodes that missed a command. A node that is on but hears two others answer a command it never got asks one of them for it, and runs it. A scan comes with the time it has left. A node that was off does not get commands it missed while off.

5. See every node in the Command Center

  1. Plug a Meshtastic radio into the Command Center computer. Close every other program that holds the port.
  2. Config → Serial Connection → Device Path → Select detected port. Leave the baud at 115200 and Send Mode at protobuf.
  3. Open Console and send @ALL STATUS. Each node replies.
  4. Open Map for the live nodes, and Nodes for each node's status, site, last seen, location, and temperature.

One Command Center install has one local radio. Its radio must be on the same channel as the nodes.

6. Plan what each node scans

On a Full node: Scan tab → Schedule → Fleet plan. Each row puts one scan on one node's schedule.

  1. Click Ping Nodes on the System tab → Fleet first. The node list holds every node heard so far, with the ones heard recently first.
  2. Set each row:
Field What it sets
Node The node that runs the scan. This node is first. Type a node ID adds a Node ID box for a node not heard yet (2 to 5 letters or digits)
Scan Device discovery, Target scan, or Drone RID
Radio Wi-Fi, Bluetooth, or both. Not shown for Drone RID
Wi-Fi channels Device discovery only. For example 1,6,11, for this scan only. Blank uses the node's own setting
Start (node time) First start, in that node's local time
Duration (min) 1 to 1440
Repeat Once, hourly, every 6 or 12 hours, daily, or weekly
  1. Click Add row for the next node or scan, then Send plan.
  2. Each row shows On AH02's schedule when the node answers, or why it refused.

To see or delete another node's schedule, pick it under Schedules on another node and click Show. A node out of range gets its row through the nodes in between.

Over the mesh, send each node its own SCHED_ADD. This runs a daily 10-minute Wi-Fi device scan on AH02 and Drone RID on AH03:

@AH02 SCHED_ADD:2026-10-07T21:00|86400|/sniffer|detection=device-scan&deviceScanMode=0&secs=600
@AH03 SCHED_ADD:2026-10-07T21:00|86400|/drone|secs=600

See Scheduled scans for every field. The same SCHED_ADD sent twice adds one entry.

7. Locate a device with triangulation

Triangulation needs three or more nodes with a GPS fix. With fewer than three GPS nodes the coordinating node sends no final fix. Use the same antenna and mount height on every node. Send the hunt to one node, which runs it with every other node:

@AH01 TRIANGULATE_START:AA:BB:CC:DD:EE:FF:60
@AH01 TRIANGULATE_RESULTS

In the Command Center, open Targets, find the target, and click Triangulate. Set Duration (seconds) (20 to 300), RF Environment, and the WiFi Power Multiplier and BLE Power Multiplier, then click Start Triangulation. Track runs a coordinated tracking session of 10 to 600 seconds. See Locate a device and Triangulation.

8. Run more than one Command Center

Each Command Center install needs its own SITE_ID. The Command Center uses it to tell which site an event came from. The default is default.

  1. Set SITE_ID (and optionally SITE_NAME) before the first start, for example SITE_ID=alpha on one install and SITE_ID=bravo on the other. For Docker, use the .env in the repository root. For a native install, use apps/backend/.env.
  2. Restart the backend after you change it.
  3. To share data between the sites, open Config → MQTT Federation on each one. Give each its own Client ID and the same Broker URL. The default Client ID is command-center-<siteId>.

The Command Center README covers the broker settings under "MQTT Configuration Cheat Sheet".

Injects

Time Inject What the nodes send Operator decision
T+0 The operator sends @ALL STATUS. One STATUS reply per node, each under its own ID Is any node missing or sharing an ID?
T+5 min The operator sends a Fleet plan: a device scan on each node at its corner. Each node answers SCHED_ACK:OK, then scans at the planned time. Device discovery ends with SCAN_DONE: W=<n> B=<n> U=<n> ... Did every row show On ...'s schedule?
T+10 min The operator plans a scan on the node farthest away, out of the operator's radio range. A nearer node passes the row on as FLEET_CMD. The far node answers SCHED_ACK:OK, and the nearer node passes the answer back Did the far node's row show On ...'s schedule? Which node passed it on?
T+20 min The red cell stops near one edge of the site with a Bluetooth tag they own. The tag appears in that node's Bluetooth results Which node heard it first, and how strongly?
T+25 min The operator hunts the tag: @AH01 TRIANGULATE_START:AA:BB:CC:DD:EE:FF:60 T_D readings from each node, then T_C with a map link Does the map put the tag where the red cell stands?
Tabletop One node goes silent mid-exercise. No reply to @ALL STATUS from that node Lost power, lost radio, or taken? Who goes to check?

Debrief

  • Could anyone outside your channel read the exercise traffic? If the nodes were on the public default channel, yes.
  • Did a busy node refuse a command with BUSY? Send @ALL STOP before a new scan.
  • Where were the blind spots between nodes?

If a node is missing:

  • If it does not answer @ALL STATUS, check that its radio has a LoRa region and carries the same channel and key as the others.
  • If two nodes both answer @AH01, they share an ID. Change one over USB serial or from its web UI.
  • If Fleet plan lists no other node, click Ping Nodes, or pick Type a node ID.
  • If a row says No answer from AH02 yet, no answer came within 3 minutes. Check its schedule later with Show.

Clone this wiki locally