/api/config you can call. The config-over-radio channel fills that gap for one narrow job: reading a drone’s config and changing its radio and video settings from the ground station.
It is off by default, on both ends, and it carries config requests only. It is never a general command proxy and never a flight-command path.
How it works
One binary,ados-tunnel-config, runs on both ends and picks its role from the profile:
Every request carries a relay ticket minted from the per-pair secret the drone received at pairing, naming that drone and bound to the request’s operation, key and value. The radio key is shared by the whole fleet, so this ticket is what proves the request came from the drone’s own ground station. Each ticket is honoured once, and a drone with no secret refuses everything.
A write may touch only keys under
radio. and video.. The trust-root keys, MAVLink routing and the channel’s own gates are never writable this way.
Enable it
Set these underradio.tunnel in /etc/ados/config.yaml on both the drone and the ground station:
The
ados-tunnel-config unit starts only when the /etc/ados/tunnel-enabled marker exists; the agent keeps it in step with radio.tunnel.enabled. The unit runs on the drone and ground_station profiles.
Use it from the ground station
Both routes live on the ground station and answer404 E_PROFILE_MISMATCH on any other profile.
Channel state
/run/ados/tunnel-config.json, written about once a second): state (disabled, injector, terminator or bind_failed), enabled, command_enabled, carries: "config", bearer: "aux", the ports, and the counters rx_frames, tx_frames, requests, responses, rejected and timeouts. An absent, stale or malformed sidecar is 404, never an old reading. A rx_frames count that never moves means nothing arrives over the radio.
Send a request
Add
device_id to name the drone. With exactly one drone registered on the ground station it can be left out; with more than one it is required.
A relayed reply is 200 with {"is_error", "response"}; is_error is true when the drone returned an error envelope.
Related
WFB-ng
The radio link this channel rides on.
Configuration
Every config key, and how to change it over the network.