All docsStellar LinkRF bench · by Stellar Systems v0.4.0

Tools & Utilities

CLI Reference

Installing stellarlinkctl, its global options, and every operator command: profiles, scenarios, campaigns, chain conditioning, radio, transmission and loopback measurements.

stellarlinkctl is the Stellar Link command-line client. It drives stellarlinkd, the daemon on the unit, through its REST API. The one exception is compare, which runs entirely on your computer.

Installation#

Download stellarlinkctl for your platform from https://get.stellar-systems.eu, place it on your PATH, and check it runs:

Shell
stellarlinkctl --version
stellarlinkctl --help

Every command also accepts --help.

Global options#

OptionEnvironmentDefaultMeaning
--api <URL>STELLARLINK_APIhttp://localhost:8080The unit's API base URL, without a trailing slash
--token <TOKEN>STELLARLINK_TOKEN—Bearer token, when the unit requires authentication
--json—offMachine-readable JSON instead of a human summary
-V, --version——Print the CLI version
Shell
export STELLARLINK_API=http://<unit-address>:8080

Pass negative numbers in the attached form (--rx-hz=-2500), or they are read as flags.

Unit and daemon#

CommandPurpose
stellarlinkctl statusDaemon version, uptime and service health
stellarlinkctl events [--n N]The last N runtime events (default 20)
stellarlinkctl runs [--limit N]The last N scenario runs (default 20)
stellarlinkctl auth token --secret-file F [--role R] [--hours H]Create an API token signed with the secret in F (the unit's [api] auth_secret). Runs locally; see Using the API

profile#

CommandPurpose
profile listAvailable profiles
profile get <NAME>A profile, as JSON
profile apply <NAME>Apply it (validate, stage, commit, tune)
profile activeThe active profile

scenario#

CommandPurpose
scenario listLoaded scenarios
scenario get <NAME>One scenario
scenario run <NAME>Start a run; prints the run id

Condition the chain first (chain up) so the run starts without waiting for the AD9361 to be tuned.

campaign#

CommandPurpose
campaign listLoaded campaigns
campaign get <NAME>One campaign
campaign run <NAME> [--follow]Start one; --follow polls its saved state until it stops, including across a reboot of the unit
campaign activeWhat is running, and which provider would take a unit action
campaign runsEvery execution, newest first
campaign status <ID>Cursor, attempts and verdict
campaign pause <ID>Stop at the next step boundary
campaign resume <ID> [--follow]Continue from the cursor
campaign rerun <ID> <STEP>Run one step again, appending an attempt

campaign run release_healthcheck --follow runs the shipped health-check campaign. See Campaigns.

chain#

CommandPurpose
chain status [--target T]Every prerequisite of the chain, read back from the unit, and the first one missing. T is air, device-loopback or pl-loopback; default: what the unit is set up for
chain up [--target T] [--profile P] [--rate R]Run the missing conditioning steps in the correct order. Target default air; profile default: the applied one; rate (default 8 000 000) is used only when no profile sets it
chain recoverClear the receiver's AGC, timing and carrier recovery without a reboot

The three targets are the modem's internal loopback (pl-loopback), the AD9361's internal loopback (device-loopback, nothing is emitted) and transmission on air (air). See Chain Conditioning.

rf#

The AD9361 front end: sample rate, interface tuning and the signal path.

CommandPurpose
rf statusRate, device loopback, DAC source, tuning readiness
rf calibrateRe-run the transceiver's initialisation and calibrations. This resets the transceiver: run it first
rf tune [--rate R]Set the rate (default 8 000 000) and tune the transceiver's digital interface at that rate. Run it on an idle chain
rf rf [--force]Route through the AD9361's internal digital loopback. Nothing is emitted
rf air [--force]On air: the signal reaches the TX connector
rf plBack to the modem's internal loopback; the AD9361 is bypassed

rf rf and rf air refuse when the interface has not been tuned, or when the profile was applied before the last tuning; --force overrides.

radio#

CommandPurpose
radio statusFrequencies, gains, lock flags, NCO offsets, bandwidths, sample rate
radio freq <HZ> [--channel CH]Set the LO(s); CH is rx, tx or both (default). The RX and TX LOs are independent
radio nco [--rx-hz HZ] [--tx-hz HZ]Digital NCO offsets from the LO, within ±fs/2
radio gain [--rx-db DB] [--tx-db DB] [--domain D]Gains. With D = rf (default) these are the AD9361 gains, and TX is an attenuation (0 dB is full power, values are ≤ 0). With D = digital they are the modem's digital gains
radio loopback [--on]Switch the modem's internal loopback on (--on) or off (no flag)
radio arm-rx, radio disarm-rx [--chan N]Arm or disarm RX
radio start-tx, radio stop-tx [--chan N]Start or stop TX
radio reset <SCOPE>Reset rx, tx or all

datapath and tx#

CommandPurpose
datapath statusWho holds the modem, and whether the TX path is open
datapath enableClaim the modem for the daemon, then read back whether the claim took
datapath disableRelease it
tx send [options]Send one frame, then flush
tx flush [--blocks N]Flush what is buffered (default 2 blocks)

tx send needs the datapath claimed (datapath enable). Options:

OptionDefaultMeaning
--hex <HEX> / --file <FILE>—The payload (mutually exclusive)
--protocol <P>rawraw, csp or ccsds (the packet is built by the CLI)
--src <N>10CSP source address (ignored for raw)
--dst <N>1CSP destination, or CCSDS APID
--framing <F>streamstream (packet boundaries are not preserved) or slot (one packet per frame-sized slot)
--slot-len <N>256Slot length in bytes; must divide 4096
--flush-blocks <N>2Blocks the flush emits. Two, so the receive side returns a complete block

Loopback measurements#

CommandPurpose
capture -o <FILE> [options]Capture received blocks to a file
loopback -p <PAYLOAD> [options]Feed a payload while capturing, then compare
compare <CAPTURE> <REFERENCE> [options]Compare a capture with the payload that was sent, on your computer

capture and loopback options:

OptionDefaultMeaning
--blocks <N>4Blocks to collect in a row; a short capture fails instead of being truncated
--warmup <N>0Blocks to obtain and discard first, so the acquisition transient is left out of the measurement
--timeout-ms <MS>30000Give up after this long
--keepoffKeep the modem claimed afterwards
--reference <FILE>—capture only: compare straight away
-o, --out <FILE>—loopback only: also write the capture

compare options: --block-bytes (capture block size in bytes, default 16 384) and --dense (treat every byte of the files as payload).

Payload and capture files use the modem's capture encoding: one useful byte in the low byte of each 32-bit little-endian word. See Measurement Tools.

↑↓ to moveEnter to open