A profile is a YAML file describing a complete radio configuration: frequency, gains, modulation, symbol rate, framing and coding. Applying it reconfigures the modem and tunes the radio in one operation.
A complete example#
This example follows the shipped rf_loopback profile: QPSK, uncoded, over the RF ports with
an external cable loopback.
version: "stellarlink.profile/v1"
metadata:
name: "rf_loopback"
display_name: "RF loopback (external cable)"
description: "QPSK uncoded over the RF path — TX1 -> attenuator -> RX1"
vendor: "Stellar Systems"
family: "loopback"
revision: "1.0"
tags: ["loopback", "rf", "test"]
radio:
rf_port: "RF1"
duplex: "full"
center_frequency_hz: 437325000
tx_enabled: true
rx_enabled: true
loopback: false
tx_power_dbm: -20
rx_gain_db: 20
phy:
modulation: "QPSK"
symbol_rate_baud: 39062.5
samples_per_symbol: 4
encoding: "nrz"
framing:
preamble:
type: "fill"
pre_symbols: 512
post_symbols: 2048
sync_word:
value_hex: "1ACFFC1D"
mtu_bytes: 16
scrambler:
enabled: false
fec:
type: "none"
packet:
protocol: "raw"
mtu_bytes: 16Field reference#
Top level#
| Field | Required | Content |
|---|---|---|
version | yes | Must start with stellarlink.profile/ (stellarlink.profile/v1) |
metadata | yes | Name and description (below) |
radio | yes | RF front end |
phy | yes | Modulation and symbol rate |
framing | yes | Frames, sync marker, scrambler, coding, preamble, transfer frames |
packet | no | Packet protocol and size, for reference |
tx, rx | no | What the transmitter or the receiver does differently from the shared sections: an asymmetric link (below) |
bus, timing, constraints, observability | no | Additional mission information, stored and displayed with the profile |
metadata#
| Field | Required | Content |
|---|---|---|
name | yes | The identifier used by apply, scenarios (profile_ref) and campaigns. Profiles are keyed by this name, not by file name |
display_name, description, author, tags | no | Shown in listings and the web console |
vendor, family, revision | no | Free-form identification |
radio#
| Field | Type | Effect |
|---|---|---|
center_frequency_hz | integer, > 0 | Tunes the transmit and receive LOs and NCOs so the signal is centred on this frequency (see RF Fundamentals) |
tx_enabled | bool, default false | Enables (true) or disables the modem's transmit output. With it disabled, the modem discards any data it is given |
rx_enabled | bool, default true | Enables the receive path |
loopback | bool, default false | true routes the transmitter through the channel emulator into the receiver, inside the unit; the RF ports are not used. Set on every apply |
rx_gain_db | number | Sets the AD9361 receive gain in dB and switches its gain control to manual |
tx_power_dbm | number | Applied as the AD9361 transmit attenuation when ≤ 0 (0 = full drive, down to −89.75). A positive value is not applied, and the apply result says so |
rf_port | string | RF port label. The AD9361 channel is chosen with tx.channel / rx.channel (below) |
duplex | half / full | half declares a link that shares one frequency: a profile giving the transmitter and the receiver different frequencies is refused. full allows them to differ. The transceiver itself always runs full duplex |
phy#
| Field | Type | Effect |
|---|---|---|
modulation | BPSK, QPSK, GMSK | Selects the modulator and the matching demodulator |
symbol_rate_baud | number, one of the available rates | Sets the modem's sample-rate conversion, the radio's analog filter bandwidth, the LO offset and the carrier recovery range |
samples_per_symbol | integer | Must be 4 or absent |
bt | number | GMSK only; required for GMSK and must be 0.5 |
encoding | string | Line encoding label (nrz) |
framing#
| Field | Type | Effect |
|---|---|---|
mtu_bytes | integer, default 256 | Frame length; the receiver's frame length is derived from it and the coding (see Modulation & Coding) |
sync_word.value_hex | 32-bit hex | The attached sync marker (ASM), inserted by the transmitter and searched for by the receiver. Absent means no marker is inserted and the receiver cannot find frames |
scrambler.enabled | bool | Enables the CCSDS randomiser at both ends |
scrambler.seed | integer | 8-bit seed, default 0xFF |
fec.type | none, conv, rs, rs+conv | Forward error correction at both ends |
fec.rate | string | Required when type is not none |
preamble | object | Preamble and inter-frame fill: type (fill or pattern), value_hex, pre_symbols, post_symbols. Absent disables the fill (see Modulation & Coding) |
transfer_frame | object | CCSDS transfer frames composed by the link service: type (tm, aos, uslp), scid, vcid, fecf (see Modulation & Coding) |
tx and rx: an asymmetric link#
By default the transmitter and the receiver share every setting, which is what a loopback needs. A real link is usually asymmetric: your transmitter must match the far end's receiver, and your receiver the far end's transmitter. Each of these optional sections overrides the shared value for one direction only:
radio:
center_frequency_hz: 437200000 # the transmitter's (and the receiver's, unless overridden)
duplex: "full"
phy:
modulation: "QPSK"
symbol_rate_baud: 19531.25
rx:
center_frequency_hz: 435000000
symbol_rate_baud: 39062.5
channel: 2| Field | Overrides | Notes |
|---|---|---|
channel | — | AD9361 channel, 1 (default) or 2: TX1/TX2, RX1/RX2. Applied with the profile, without re-initialising the transceiver. The channel not chosen transmits nothing but the transceiver's LO leakage |
center_frequency_hz | radio.center_frequency_hz | Each side gets its own LO and NCO offset |
symbol_rate_baud | phy.symbol_rate_baud | Both rates must run the radio at the same sample rate; every rate from 625 to 19.531 ksym/s uses 2.5 MSa/s, so any two of those combine. Otherwise the profile is refused |
modulation, bt | phy.modulation, phy.bt | Same rules as in phy |
fec | framing.fec | |
scrambler | framing.scrambler | |
sync_word | framing.sync_word | A marker can be changed per direction, not removed |
mtu_bytes | framing.mtu_bytes |
Unlike the rest of the profile, an unknown key in tx: or rx: is refused, so a misspelt
override cannot silently leave both sides symmetric. The preamble, the fill and the transmit
power belong to the transmitter only and stay in their shared sections; the burst detector and
the receive gain belong to the receiver only.
GET /api/v1/profiles reports each profile's resolved tx and rx (channel, modulation, symbol
rate, frequency) next to the shared values. split_link_fdd is a shipped example.
Applying a profile#
POST /api/v1/profiles/{name}/apply (stellarlinkctl profile apply <name>):
- Validates the profile (rules below). A refusal names the field and the reason.
- Configures the modem: signal path (internal loopback or RF), channel emulator reset to pass-through, receive chain (gain control, matched filter, timing and carrier recovery, demodulator, frame synchronisation, decoding), transmit chain (framing, scrambler, coding, sync marker, fill, modulator) and the transmit output.
- Tunes the radio: analog filter bandwidths, LOs and NCO offsets, receive gain and transmit
attenuation. A tuning problem does not fail the apply (the modem is configured); it is
reported in the result's
tuningsentence. - Records a profile revision.
An illustrative result:
{
"profile_name": "rf_loopback",
"cfg_epoch": 12,
"tuning": "RX gain 20 dB (AGC → manual), TX attenuation -20 dB; analog BW 200 kHz; LOs tuned to 437292041 Hz with a +32959 Hz NCO offset — centre 437325000 Hz (+0 Hz from the profile's 437325000), leakage 32959 Hz off the band"
}Worth knowing:
- An apply resets the channel emulator to pass-through and re-enables the transmit output
when
tx_enabledis true, including after the RF kill switch. - An apply waits for the datapath to be idle. Issued while traffic flows, it can time out. Apply before you measure, never after; if applies keep timing out, restart the unit.
- A later manual change (frequency, gain) marks the profile dirty:
GET /api/v1/profiles/activereturns{"name": "...", "dirty": true, "dirty_reason": "..."}. - A scenario applies its own profile at the start of every run (see Scenarios).
Validation rules#
| Rule | Message names |
|---|---|
version starts with stellarlink.profile/ | version |
center_frequency_hz > 0 | radio.center_frequency_hz |
tx / rx: known keys only, channel 1 or 2, each override obeys the rule of the field it overrides | tx.<field>, rx.<field> |
| Transmit and receive rates use the same radio sample rate | both rates and both sample rates |
duplex: half with two different frequencies is refused | radio.duplex |
symbol_rate_baud is an available rate | the nearest available rate |
samples_per_symbol is 4 or absent | phy.samples_per_symbol |
GMSK has bt = 0.5 | phy.bt |
| Modulation is BPSK, QPSK or GMSK | phy.modulation |
sync_word.value_hex parses as 32-bit hex | framing.sync_word.value_hex |
fec.rate present when fec.type is not none | framing.fec.rate |
rs or rs+conv requires mtu_bytes = 223 | mtu_bytes |
Preamble pattern differs by ≥ 8 bits from the sync word in every phase rotation, mean ≤ ¼ full scale, post_symbols ≠ 0, lengths ≤ 65535 | framing.preamble |
Transfer frame: mtu_bytes set and divides 4096, SCID/VCID fit the frame type, no RS | framing.transfer_frame, framing.mtu_bytes |
Managing profiles#
stellarlinkctl profile list
stellarlinkctl profile get rf_loopback # the profile as JSON
stellarlinkctl profile apply rf_loopback
stellarlinkctl profile activeAt startup the daemon loads every *.yaml directly inside the directory set by
[daemon] profiles_dir (see Daemon Configuration);
files in subdirectories are not loaded, and a file that fails to parse is skipped with a warning
in the log.
Pushing a profile#
PUT /api/v1/profiles/{name} registers a profile sent as YAML (or JSON) in the request body:
curl -X PUT --data-binary @my_profile.yaml \
-H 'content-type: text/plain' \
http://<unit>:8080/api/v1/profiles/my_profile{"name": "my_profile", "replaced": false, "persisted": true,
"note": "stored in /mnt/data/stellarlinkd/profiles/my_profile.yaml — it survives restarts and software updates"}A pushed profile is kept on the SD card's data partition and survives restarts and software
updates. On a card without a data partition it is held in memory only: the reply then says
"persisted": false and why, and the profile must be pushed again after a restart.
GET /api/v1/profiles/{name}/revisions lists when a profile was applied, newest first.
Shipped profiles#
| Profile | Path | Modulation | Rate (baud) | Coding | Purpose |
|---|---|---|---|---|---|
pl_loopback | internal loopback | QPSK | 19 531.25 | none | Reference baseline; 16-byte frames, fill enabled |
rf_loopback | air | QPSK | 39 062.5 | none | Same as pl_loopback over an external cable loopback |
raw_tx | air | BPSK | 19 531.25 | none | No marker, no scrambler: pushed bytes are what goes out. Transmit-only, for spectrum work |
ccsds_tm_loopback | internal loopback | QPSK | 19 531.25 | none | 1024-byte frames with CCSDS TM transfer frames and FECF |
hc_qpsk and hc_* | internal loopback | QPSK/BPSK/GMSK | various | none/conv/rs/rs+conv | Health-check variants, each differing from hc_qpsk in one setting |
hc_air_qpsk, hc_air_bpsk, hc_air_gmsk | air | QPSK/BPSK/GMSK | 19 531.25 | none | On-air health checks |
hc_dev_qpsk | device loopback | QPSK | 19 531.25 | none | Health check through the AD9361's digital loopback |
spaceinventor_uhf_csp | air | GMSK | 19 531.25 | none | A mission-style profile (CSP over UHF) |
spaceinventor_uhf_csp_loopback | internal loopback | QPSK | 19 531.25 | none | Its internal-loopback counterpart |
endurosat_uhf | air | GMSK | 19 531.25 | rs | A mission-style profile with Reed-Solomon coding |
split_link_fdd | air | QPSK | TX 19 531.25 / RX 39 062.5 | none | Asymmetric link: TX 437.2 MHz, RX 435.0 MHz. Receives nothing on a cable loopback, by design; it checks that each side is programmed for itself |
Writing your own profile#
- Start from
pl_loopback(internal loopback) orrf_loopback(air). Retrieve either withstellarlinkctl profile get. - Change one thing at a time and prove it in internal loopback before going on air.
- For air profiles: enable the scrambler, set
radio.loopback: false, setrx_gain_dbfor your cabling (see RF Fundamentals) andtx_power_dbmas a negative attenuation. - Keep
mtu_bytesa divisor of 4096 unless you use Reed-Solomon (which requires 223). - Push it with
PUT /api/v1/profiles/{name}, apply it, and read thetuningsentence andstellarlinkctl chain status.