Skip to content

USB serial

Luke Switzer edited this page Nov 25, 2026 · 2 revisions

The node's USB-C port is a serial console. It prints the node's log, and it takes the same commands the mesh does, plus a few that work only on USB. Use it on the bench, to set the clock, and to command other nodes when no radio is handy.

Connect

  1. Plug a USB-C data cable into the node's ESP32 port. Do not plug the radio's USB port in at the same time. See First setup.
  2. Open a serial monitor at 115200 baud. Any monitor works, such as the one in PlatformIO, screen, or the Arduino IDE.
  3. Wait for the boot lines to finish.

Opening the port can restart the node, so a monitor that connects shows the boot log from the start.

Commands

Type one command per line, up to 230 characters.

Type How to send it Example
Any mesh command Start the line with @ALL or @<node ID>. The node ignores a line without it @AH01 STATUS
USB-only commands Type them as they are, with no @ FLEET

The USB-only commands:

Command What it does Reply
SETTIME:<unix seconds> Sets the node's clock. The number must be after 2021 OK: RTC set
FLEET Prints the nodes and radios this node has heard, as one JSON line JSON
FLEET_CMDS Prints the fleet commands this node holds, and which nodes answered each JSON
FLEET_SEND:<node> <command> Sends one command over the mesh to another node. See Fleet management FLEET_SEND:200 Sent to AH02
MESHCORE_ON, MESHCORE_OFF Beta and C5. Switches the radio link to a MeshCore radio or back to Meshtastic. See MeshCore radio setup MESHCORE_ACK:ON

Replies and mesh traffic print on the same port. A line starting with [MESH TX] is a message the node sent over the radio. A line starting with [MESH RX] is one it received.

The mesh command reference lists every mesh command.

If something does not work

  • If the monitor shows nothing, check that the cable carries data and that no other program holds the port.
  • If a command gets no reply, check that it starts with @ and a node ID, or @ALL. The USB-only commands take no @.
  • If FLEET_SEND replies 409, turn the mesh on under System tab → Settings → Node & mesh. On a Headless node, set Mesh Enabled on the Web Flasher.

Clone this wiki locally