SPEEDBIRD

SBP station queries and remote admin#

Two services ride on the SBP mesh as routed messages, store-and-forward hop by hop like any mesh message. The on-air format is in the SBP Mesh specification §5. Bulletins, the third mesh service, are described in SBP files, slow send and bulletins.

Station queries#

Ask another SPEEDBIRD station a question and get a plain-text answer. Use the Station queries card on the Mesh page, or POST /api/sbpmesh/query {dst, type, args?}. Answers appear in GET /api/sbpmesh/queries and arrive as sbpmesh.query events. On HF an answer can take minutes.

Type What you get Arguments
help the query types the station answers
info callsign, name, grid, radios, services, status, software
heard MHEARD: stations it hears directly, band, SNR, age h hours (3), l limit (30)
seen when it last heard one or two given stations, and how c=W1ABC,K4XYZ
sig how it hears you, how you hear it, and the SNR of each hop your query took
time its UTC clock. The UI shows the offset from yours, ± half the round trip
pos grid and area (lat/lon only if that station allows it)
prop its propagation report
nodes neighbours and routes (NET/ROM style)
routes its full routing table l
mesh every mesh node it knows l
contacts stations it exchanged SBP traffic with h (168), l
radios its radios: call, band, frequency, model, SBP speed
rms Winlink gateways that answered its survey h (168)
aprs APRS digipeaters and igates it hears h (6)
freq the frequencies its radios are on
status the operator's station status (net control, power source, ops, traffic)
sys uptime, CPU load, memory, disk

Answering (mesh config):

Station status. Set it on the Mesh page or with PUT /api/sbpmesh/station-status {text, power, ops, traffic, until}.

Contacts. Every SBP exchange (received from, delivered to, connected) is logged per station in <state>/sbp/mesh.json, newest first. See GET /api/sbpmesh/contacts.

Remote admin#

Lets an operator control this station over the mesh. The available commands:

Enable it (off by default) in Settings → System → SBP remote admin:

  1. Set a password (8+ characters). Only a PBKDF2 key derived from it is stored, in <state>/sbp/mesh.json (mode 0600). The password itself is not kept.
  2. Choose what to accept: * plaintext password or HMAC (default) * HMAC signature only: refuses commands that carry the password in the clear
  3. Optionally list the allowed callsigns, choose read-only, and set how long a command stays valid (1800 s).
  4. Tick Enable remote admin. Enabling without a password is refused.

The API is PUT /api/sbpmesh/admin {password?, enabled?, auth?: plain|hmac, allow?, readonly?, window_s?, clear_password?}, and GET /api/sbpmesh/admin returns the settings (never the key) and the log of commands received.

Administer another station with the Remote admin card on the Mesh page, the Admin mode of a Console pane (Console → Normal | Admin toggle in each radio's header: station, password, one-click read commands, radio/station templates, SBQ queries and the answers for that station; the password is kept in the page's memory only, never saved), or POST /api/sbpmesh/admin/send {dst, command, password, auth?: plain|hmac}. You need the remote station's password. Pick plaintext (the default) or HMAC. Use HMAC when the remote station requires it, or to keep the password off the air. Send help for the list. Examples:

radios
freq ic7300 7.101          (MHz; or 7101000 in Hz)
mode ic7300 DATA-USB
tune ic7300 14.105 USB
power ic7300 10            power ic7300 auto
radio ic7300 off           radio ic7300 on
relay mode allowlist       relay deny add N0BAD*
link W1ABC down
bb post p=o c=wx s=Roads -- Route 9 closed at the river
bb edit N0CALL:812 -- Route 9 open again
bb del N0CALL:812
status power=battery ops=2 -- net control until 2200Z

Part 97. Commands and results are plain, readable text; nothing is encrypted. Every command carries a timestamp and a one-time nonce, plus one of:

The station rejects a command when:

With HMAC, a command can't be altered or replayed, and the password never goes on the air. Every command received is answered (ok, error or denied), shown in the Settings log, and written to the application log.

Not yet verified on the air. The protocol is tested in the mesh simulator (tests/test_sbp_queries_admin.py). The radio commands call the same functions as the Radios page.

From speedbird.io (Portal → Operations)#

Nodes enrolled in the speedbird.io Portal (running speedbird-agent) can be driven from Operations → SBP console. Tick one or more nodes as targets, then type:

Console command What it does Node level needed
query <CALL> <type> [k=v …] sends an SBQ query from the node, e.g. query W1ABC heard h=6 tx
queries lists the answers the node has received view
contacts [n] the node's SBP contacts view
admin <CALL> <command…> sends an SBX command with the remote station's password in plain text tx
adminh <CALL> <command…> the same, HMAC-signed, so the password stays off the air tx
adminlog the node's remote-admin settings and the commands it received and sent view
bulletin [p=<precedence>] <text> originates a QST bulletin (precedence flash, immediate, priority or routine) tx

The Portal asks for the remote station's admin password once per callsign and keeps it in the page's memory only. It is relayed to your node over HTTPS for that one call and is not written to the Portal's audit log, which records only the method and path. Transmitting calls also ask for your speedbird.io password again. The Portal cannot change a node's own remote-admin settings (PUT /api/sbpmesh/admin is not relayed); set those on the station. A node's agent must have the current permission rules (re-run the Portal's node install command) before it accepts the query and admin calls.