All docsStellar LinkRF bench · by Stellar Systems v0.4.0

Control & Automation

Telemetry and Metrics

The telemetry sample and what each field measures, how to read the lock flags, live streams, Prometheus metrics, events and logs, RSSI, power, spectrum and IQ captures.

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#

FieldUnitMeaning
evm% rmsError 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_dbdBFrom 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
berratioPost-FEC bit error rate, from the decoder's corrected and failed counts. Absent without coding
ber_asmratioPre-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_hzHzCarrier frequency offset tracked by the carrier loop, using the profile's symbol rate
phase_errrawThe 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_dbmdBm (uncalibrated)The modem's RSSI meter. Monotonic, but its absolute offset is not calibrated: use it for relative comparisons
part_rssi_dbdB below full scaleThe AD9361's own RSSI, referred to its input. Smaller is stronger. Absent when the transceiver cannot be read
part_rx_gain_dbdBThe AD9361's RX gain, read back from the transceiver
agc_gainlinearThe modem AGC's gain (0 to 16). Near 16 means the receiver is starved, not that there is no signal
lockboolThe timing loop's lock
carrier_lockboolThe carrier loop's lock, a different fact
tx_framescountFrames the modem actually framed for transmission. The traffic proof
tx_egress_samplescountSamples 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_errorscountFrames delimited by the receiver, and frames whose sync marker matched with one wrong bit
rx_symbolscountSymbols 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_raterawThe channel emulator's active state, i.e. what the link was really running under
watchedmapAdditional 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#

StreamContent
ws://<unit>:8080/ws/metricsEvery 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/eventsRuntime 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:

FamilyContent
stellarlink_evm, stellarlink_snr_db, stellarlink_cfo_hz, stellarlink_rssi_dbm, stellarlink_lock, stellarlink_carrier_phase_errLink 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_saturateModem 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_totalDatapath traffic
stellarlink_scenario_runs_total, stellarlink_scenario_runs_completed_totalScenario runs
stellarlink_events_totalRuntime 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#

RouteContent
GET /api/v1/events, /events/latestRecent runtime events (stellarlinkctl events --n 20); DELETE clears them
GET /api/v1/logsStructured log query
GET /api/v1/system/status, /system/clocks, /system/capabilitiesServices, clocks, capabilities

RSSI, power and spectrum#

RouteContent
GET /api/v1/monitor/rssiThe modem's RSSI meter
GET /api/v1/monitor/powerThe transmit power meter, at the input and output of the digital up-conversion
GET /api/v1/monitor/fft?channel=rxOne 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=200Spectrum 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#

RoutePurpose
POST /api/v1/iq/capturesStart 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}/downloadRaw 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.

↑↓ to moveEnter to open