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:
stellarlinkctl --version
stellarlinkctl --helpEvery command also accepts --help.
Global options#
| Option | Environment | Default | Meaning |
|---|---|---|---|
--api <URL> | STELLARLINK_API | http://localhost:8080 | The unit's API base URL, without a trailing slash |
--token <TOKEN> | STELLARLINK_TOKEN | — | Bearer token, when the unit requires authentication |
--json | — | off | Machine-readable JSON instead of a human summary |
-V, --version | — | — | Print the CLI version |
export STELLARLINK_API=http://<unit-address>:8080Pass negative numbers in the attached form (--rx-hz=-2500), or they are read as flags.
Unit and daemon#
| Command | Purpose |
|---|---|
stellarlinkctl status | Daemon 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#
| Command | Purpose |
|---|---|
profile list | Available profiles |
profile get <NAME> | A profile, as JSON |
profile apply <NAME> | Apply it (validate, stage, commit, tune) |
profile active | The active profile |
scenario#
| Command | Purpose |
|---|---|
scenario list | Loaded 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#
| Command | Purpose |
|---|---|
campaign list | Loaded 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 active | What is running, and which provider would take a unit action |
campaign runs | Every 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#
| Command | Purpose |
|---|---|
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 recover | Clear 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.
| Command | Purpose |
|---|---|
rf status | Rate, device loopback, DAC source, tuning readiness |
rf calibrate | Re-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 pl | Back 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#
| Command | Purpose |
|---|---|
radio status | Frequencies, 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#
| Command | Purpose |
|---|---|
datapath status | Who holds the modem, and whether the TX path is open |
datapath enable | Claim the modem for the daemon, then read back whether the claim took |
datapath disable | Release 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:
| Option | Default | Meaning |
|---|---|---|
--hex <HEX> / --file <FILE> | — | The payload (mutually exclusive) |
--protocol <P> | raw | raw, csp or ccsds (the packet is built by the CLI) |
--src <N> | 10 | CSP source address (ignored for raw) |
--dst <N> | 1 | CSP destination, or CCSDS APID |
--framing <F> | stream | stream (packet boundaries are not preserved) or slot (one packet per frame-sized slot) |
--slot-len <N> | 256 | Slot length in bytes; must divide 4096 |
--flush-blocks <N> | 2 | Blocks the flush emits. Two, so the receive side returns a complete block |
Loopback measurements#
| Command | Purpose |
|---|---|
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:
| Option | Default | Meaning |
|---|---|---|
--blocks <N> | 4 | Blocks to collect in a row; a short capture fails instead of being truncated |
--warmup <N> | 0 | Blocks to obtain and discard first, so the acquisition transient is left out of the measurement |
--timeout-ms <MS> | 30000 | Give up after this long |
--keep | off | Keep 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.