stellarlinkd polls the modem and the AD9361 every [telemetry] poll_interval_ms (200 ms,
5 Hz, by default). Each poll produces one sample. Samples feed the web console, the
/ws/metrics stream, the link service's telemetry topic, the Prometheus exporter, and the
report of any scenario running at the time.
The telemetry sample#
| Field | Unit | Meaning |
|---|---|---|
evm | % rms | Error vector magnitude of the received constellation, 100·√(error power ÷ signal power) over the same window as mer_db. Lower is better. BPSK and QPSK; absent on GMSK |
snr_db, mer_db | dB | From the QPSK demodulator's signal and error powers over windows of 1024 symbols: mer = 10·log10(S/E), snr = 10·log10((S−E)/E). Absent until a window completes, on BPSK/GMSK, or when the error power is zero |
ber | ratio | Post-FEC bit error rate, from the decoder's corrected and failed counts. Absent without coding |
ber_asm | ratio | Pre-FEC estimate from bit errors on the attached sync marker. Saturates near 3·10⁻², because a marker with too many wrong bits is lost, not counted |
cfo_hz | Hz | Carrier frequency offset tracked by the carrier loop, using the profile's symbol rate |
phase_err | raw | The carrier loop's phase detector output, signed and unitless: comparable with itself over time ("hunting or settled"), nothing more. Zero is a real value |
rssi_dbm | dBm (uncalibrated) | The modem's RSSI meter. Monotonic, but its absolute offset is not calibrated: use it for relative comparisons |
part_rssi_db | dB below full scale | The AD9361's own RSSI, referred to its input. Smaller is stronger. Absent when the transceiver cannot be read |
part_rx_gain_db | dB | The AD9361's RX gain, read back from the transceiver |
agc_gain | linear | The modem AGC's gain (0 to 16). Near 16 means the receiver is starved, not that there is no signal |
lock | bool | The timing loop's lock |
carrier_lock | bool | The carrier loop's lock, a different fact |
tx_frames | count | Frames the modem actually framed for transmission. The traffic proof |
tx_egress_samples | count | Samples that left the transmit chain. Frames climbing with this at zero means the transmit output is closed and data is discarded |
rx_frames, rx_frame_errors | count | Frames delimited by the receiver, and frames whose sync marker matched with one wrong bit |
rx_symbols | count | Symbols the demodulator decided. It moves even when no frame syncs, separating "no signal" from "signal that cannot be framed" |
chan_ctrl, chan_atten, chan_awgn_amp, chan_nco_freq, chan_burst_rate | raw | The channel emulator's active state, i.e. what the link was really running under |
watched | map | Additional modem status values configured in the daemon ([telemetry] watch_registers), by name, sampled on the same tick. Assertable as reg.<name> (see Assertions and Reports) |
source | — | pl when measured live by the modem, stub when the modem did not answer (every value read zero) |
Counters are raw and cumulative, cleared only by a reset or a restart. Compute rates by differencing two samples; a counter that did not move is then visible, which a pre-computed delta would hide.
How to read the lock flags#
Readings taken while nothing is transmitted describe the silence, not your link: agc_gain near
16 and lock: false with no traffic is correct behaviour.
Live streams#
| Stream | Content |
|---|---|
ws://<unit>:8080/ws/metrics | Every sample, as metrics_bulk messages |
tcp://<unit>:5557 (ZeroMQ SUB, topic telemetry) | Every sample, JSON, with seq and ts_ms (see ZeroMQ Link Service) |
ws://<unit>:8080/ws/events | Runtime events |
Prometheus#
The daemon exports Prometheus metrics on [observability] metrics_bind (port 9090), and the
same families as JSON at GET /api/v1/metrics. Families include:
| Family | Content |
|---|---|
stellarlink_evm, stellarlink_snr_db, stellarlink_cfo_hz, stellarlink_rssi_dbm, stellarlink_lock, stellarlink_carrier_phase_err | Link metrics |
stellarlink_pl_agc_gain, stellarlink_pl_framer_frames, stellarlink_pl_deframer_frames, stellarlink_pl_deframer_errors, stellarlink_pl_slicer_symbols, stellarlink_pl_egress_samples, stellarlink_pl_ingress_samples, stellarlink_pl_ingress_overflow, stellarlink_pl_ingress_saturate | Modem counters: AGC gain, frames transmitted and received, sync errors, symbols, samples in and out, input overflow and saturation |
stellarlink_datapath_tx_blocks_total, stellarlink_datapath_rx_blocks_total, stellarlink_datapath_rx_bytes_total | Datapath traffic |
stellarlink_scenario_runs_total, stellarlink_scenario_runs_completed_total | Scenario runs |
stellarlink_events_total | Runtime events |
stellarlink_system_* | CPU, load, memory, uptime, temperature, voltage |
Nothing scrapes the unit by default; point your own Prometheus server at it if you want a long-term record. The telemetry samples and scenario reports remain the primary record of a run.
Events and logs#
| Route | Content |
|---|---|
GET /api/v1/events, /events/latest | Recent runtime events (stellarlinkctl events --n 20); DELETE clears them |
GET /api/v1/logs | Structured log query |
GET /api/v1/system/status, /system/clocks, /system/capabilities | Services, clocks, capabilities |
RSSI, power and spectrum#
| Route | Content |
|---|---|
GET /api/v1/monitor/rssi | The modem's RSSI meter |
GET /api/v1/monitor/power | The transmit power meter, at the input and output of the digital up-conversion |
GET /api/v1/monitor/fft?channel=rx | One spectrum frame |
PUT /api/v1/monitor/fft/{channel} | Switch spectrum analysis on or off for rx or tx |
ws://<unit>:8080/ws/monitor/fft?channel=rx&interval_ms=200 | Spectrum frames, pushed |
The spectrum is computed from blocks of samples captured by the unit. Analysis is off by default per channel, because each frame costs a capture and a transform; switch it on before reading. When a response carries no bins, it says why (switched off, no capture path, source timed out).
IQ captures#
| Route | Purpose |
|---|---|
POST /api/v1/iq/captures | Start a capture: samples, optional sample_rate_hz, center_frequency_hz, tags, annotations, profile_ref |
GET /api/v1/iq/captures, /iq/captures/{id} | List and describe captures |
GET /api/v1/iq/captures/{id}/download | Raw IQ: little-endian int16 I and Q pairs |
DELETE /api/v1/iq/captures/{id} | Delete one |
Captures come from the same receive capture point as the spectrum. They are stored on the unit and do not survive a restart: download the ones you need.