All docsStellar LinkRF bench · by Stellar Systems v0.4.0

Control & Automation

RF Profiles

The stellarlink.profile/v1 format field by field, what applying a profile configures, validation rules, managing and pushing profiles, and the shipped profiles.

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.

YAML
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: 16

Field reference#

Top level#

FieldRequiredContent
versionyesMust start with stellarlink.profile/ (stellarlink.profile/v1)
metadatayesName and description (below)
radioyesRF front end
phyyesModulation and symbol rate
framingyesFrames, sync marker, scrambler, coding, preamble, transfer frames
packetnoPacket protocol and size, for reference
tx, rxnoWhat the transmitter or the receiver does differently from the shared sections: an asymmetric link (below)
bus, timing, constraints, observabilitynoAdditional mission information, stored and displayed with the profile

metadata#

FieldRequiredContent
nameyesThe identifier used by apply, scenarios (profile_ref) and campaigns. Profiles are keyed by this name, not by file name
display_name, description, author, tagsnoShown in listings and the web console
vendor, family, revisionnoFree-form identification

radio#

FieldTypeEffect
center_frequency_hzinteger, > 0Tunes the transmit and receive LOs and NCOs so the signal is centred on this frequency (see RF Fundamentals)
tx_enabledbool, default falseEnables (true) or disables the modem's transmit output. With it disabled, the modem discards any data it is given
rx_enabledbool, default trueEnables the receive path
loopbackbool, default falsetrue 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_dbnumberSets the AD9361 receive gain in dB and switches its gain control to manual
tx_power_dbmnumberApplied 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_portstringRF port label. The AD9361 channel is chosen with tx.channel / rx.channel (below)
duplexhalf / fullhalf 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#

FieldTypeEffect
modulationBPSK, QPSK, GMSKSelects the modulator and the matching demodulator
symbol_rate_baudnumber, one of the available ratesSets the modem's sample-rate conversion, the radio's analog filter bandwidth, the LO offset and the carrier recovery range
samples_per_symbolintegerMust be 4 or absent
btnumberGMSK only; required for GMSK and must be 0.5
encodingstringLine encoding label (nrz)

framing#

FieldTypeEffect
mtu_bytesinteger, default 256Frame length; the receiver's frame length is derived from it and the coding (see Modulation & Coding)
sync_word.value_hex32-bit hexThe 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.enabledboolEnables the CCSDS randomiser at both ends
scrambler.seedinteger8-bit seed, default 0xFF
fec.typenone, conv, rs, rs+convForward error correction at both ends
fec.ratestringRequired when type is not none
preambleobjectPreamble and inter-frame fill: type (fill or pattern), value_hex, pre_symbols, post_symbols. Absent disables the fill (see Modulation & Coding)
transfer_frameobjectCCSDS transfer frames composed by the link service: type (tm, aos, uslp), scid, vcid, fecf (see Modulation & Coding)

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:

YAML
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
FieldOverridesNotes
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_hzradio.center_frequency_hzEach side gets its own LO and NCO offset
symbol_rate_baudphy.symbol_rate_baudBoth 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, btphy.modulation, phy.btSame rules as in phy
fecframing.fec
scramblerframing.scrambler
sync_wordframing.sync_wordA marker can be changed per direction, not removed
mtu_bytesframing.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>):

  1. Validates the profile (rules below). A refusal names the field and the reason.
  2. 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.
  3. 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 tuning sentence.
  4. Records a profile revision.

An illustrative result:

JSON
{
  "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_enabled is 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/active returns {"name": "...", "dirty": true, "dirty_reason": "..."}.
  • A scenario applies its own profile at the start of every run (see Scenarios).

Validation rules#

RuleMessage names
version starts with stellarlink.profile/version
center_frequency_hz > 0radio.center_frequency_hz
tx / rx: known keys only, channel 1 or 2, each override obeys the rule of the field it overridestx.<field>, rx.<field>
Transmit and receive rates use the same radio sample rateboth rates and both sample rates
duplex: half with two different frequencies is refusedradio.duplex
symbol_rate_baud is an available ratethe nearest available rate
samples_per_symbol is 4 or absentphy.samples_per_symbol
GMSK has bt = 0.5phy.bt
Modulation is BPSK, QPSK or GMSKphy.modulation
sync_word.value_hex parses as 32-bit hexframing.sync_word.value_hex
fec.rate present when fec.type is not noneframing.fec.rate
rs or rs+conv requires mtu_bytes = 223mtu_bytes
Preamble pattern differs by ≥ 8 bits from the sync word in every phase rotation, mean ≤ ¼ full scale, post_symbols ≠ 0, lengths ≤ 65535framing.preamble
Transfer frame: mtu_bytes set and divides 4096, SCID/VCID fit the frame type, no RSframing.transfer_frame, framing.mtu_bytes

Managing profiles#

Shell
stellarlinkctl profile list
stellarlinkctl profile get rf_loopback       # the profile as JSON
stellarlinkctl profile apply rf_loopback
stellarlinkctl profile active

At 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:

Shell
curl -X PUT --data-binary @my_profile.yaml \
     -H 'content-type: text/plain' \
     http://<unit>:8080/api/v1/profiles/my_profile
JSON
{"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#

ProfilePathModulationRate (baud)CodingPurpose
pl_loopbackinternal loopbackQPSK19 531.25noneReference baseline; 16-byte frames, fill enabled
rf_loopbackairQPSK39 062.5noneSame as pl_loopback over an external cable loopback
raw_txairBPSK19 531.25noneNo marker, no scrambler: pushed bytes are what goes out. Transmit-only, for spectrum work
ccsds_tm_loopbackinternal loopbackQPSK19 531.25none1024-byte frames with CCSDS TM transfer frames and FECF
hc_qpsk and hc_*internal loopbackQPSK/BPSK/GMSKvariousnone/conv/rs/rs+convHealth-check variants, each differing from hc_qpsk in one setting
hc_air_qpsk, hc_air_bpsk, hc_air_gmskairQPSK/BPSK/GMSK19 531.25noneOn-air health checks
hc_dev_qpskdevice loopbackQPSK19 531.25noneHealth check through the AD9361's digital loopback
spaceinventor_uhf_cspairGMSK19 531.25noneA mission-style profile (CSP over UHF)
spaceinventor_uhf_csp_loopbackinternal loopbackQPSK19 531.25noneIts internal-loopback counterpart
endurosat_uhfairGMSK19 531.25rsA mission-style profile with Reed-Solomon coding
split_link_fddairQPSKTX 19 531.25 / RX 39 062.5noneAsymmetric 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#

  1. Start from pl_loopback (internal loopback) or rf_loopback (air). Retrieve either with stellarlinkctl profile get.
  2. Change one thing at a time and prove it in internal loopback before going on air.
  3. For air profiles: enable the scrambler, set radio.loopback: false, set rx_gain_db for your cabling (see RF Fundamentals) and tx_power_dbm as a negative attenuation.
  4. Keep mtu_bytes a divisor of 4096 unless you use Reed-Solomon (which requires 223).
  5. Push it with PUT /api/v1/profiles/{name}, apply it, and read the tuning sentence and stellarlinkctl chain status.

↑↓ to moveEnter to open