This walk-through takes a freshly powered unit to a first verified scenario run. It assumes the unit is powered and reachable (see Setting Up the Unit).
1. Install the CLI#
Download stellarlinkctl for your platform from
https://get.stellar-systems.eu and put it on your PATH.
Every command that talks to the unit reads the daemon's address from --api or from the
STELLARLINK_API environment variable (default http://localhost:8080). Add --json to any
command for machine-readable output.
export STELLARLINK_API=http://192.168.2.1:80802. Check the unit#
stellarlinkctl status # daemon version, uptime and service healthEvery service should report healthy=true.
Check which release is running:
curl -s $STELLARLINK_API/api/v1/versionThe release field identifies the installed Stellar Link release. Quote it when you contact
support.
3. Prove the modem with an internal loopback#
Before taking measurements, prove that the modem transmits and receives its own loopback byte
for byte. The pl chain target is the unit's internal digital loopback: the transmitter feeds the
receiver directly, through the channel emulator, with no RF involved. The pl_loopback profile
is made for it.
stellarlinkctl chain up --target pl --profile pl_loopback
stellarlinkctl datapath disable # `loopback` claims the modem itself
head -c 65536 /dev/urandom > p.bin
stellarlinkctl loopback --payload p.bin --blocks 4 --warmup 1chain up brings every prerequisite into place in the right order and prints what it did.
loopback feeds the payload while capturing, then compares: expect a verdict of BytePerfect,
or better than 99 % with errors confined to the first 16 bytes of a block, which is a normal
block-boundary effect.
4. Run a scenario#
Scenarios are YAML timelines that the daemon executes and judges. hc_qpsk is the reference
health check: QPSK, uncoded, internal loopback, 22 seconds of generated traffic, five assertions on
measured telemetry.
stellarlinkctl scenario list
stellarlinkctl scenario run hc_qpsk # prints the run id
stellarlinkctl runs --limit 5 # verdicts of the latest runsA scenario run first conditions the chain for its target and refuses to start when that is not
possible. Conditioning can take tens of seconds when the AD9361 needs tuning, and the CLI's
request may time out before it finishes. Running stellarlinkctl chain up first, for the same
target and profile, makes the run start at once.
Read the full report, with every event, assertion and telemetry sample:
curl -s $STELLARLINK_API/api/v1/reports/<run-id> | jq '.assertions'or open it in the Web Console under Library → Reports. See Assertions and Reports for how to read it.
5. Push your own bytes#
With the chain up on the internal loopback, send a CSP packet and watch it come back on the ZeroMQ link service:
stellarlinkctl datapath enable
stellarlinkctl tx send --protocol csp --src 10 --dst 1 --hex 01020304tx send flushes the transmit buffer, so the packet is actually transmitted and comes back on the
receive side. To receive it programmatically, subscribe to tcp://<unit address>:5556 (see
ZeroMQ Link Service), or try the interactive chat example in
Example Clients.
6. Go on air#
On-air operation needs the AD9361 tuned, calibrated and routed, and a profile whose
radio.loopback is false:
stellarlinkctl chain status --target air # what is missing for an on-air emission
stellarlinkctl chain up --target air --profile rf_loopbackBefore doing this, read Chain Conditioning and the cabling rules in Setting Up the Unit.
Next steps#
- RF Profiles: write a profile for your radio.
- Scenarios: script traffic, impairments and measurements.
- CLI Reference: every
stellarlinkctlcommand.