All docsStellar LinkRF bench · by Stellar Systems v0.4.0

Signal Processing

Transmitter Chain

What the Stellar Link transmitter does to your data, stage by stage: framing, coding, scrambling, sync marker, preamble and fill, modulation and pulse shaping, frequency offset and output, with the profile fields and telemetry for each.

The transmitter takes the bytes you send (through the datapath, a scenario or the link service) and turns them into the radio signal emitted by the AD9361.

flowchart LR
    A[Your bytes] --> B[Framing]
    B --> C[FEC encoding]
    C --> D[Scrambling]
    D --> E[Sync marker]
    E --> F[Preamble and fill]
    F --> G[Modulation and<br/>pulse shaping]
    G --> H[Interpolation and<br/>frequency offset]
    H --> I[Output]
    I --> J[AD9361 TX]
    I -.->|internal loopback| K[Channel emulator<br/>to the receiver]

Every stage is configured by applying a profile (see RF Profiles). The order follows the CCSDS 131.0-B recommendation: coding first, then scrambling, then the sync marker, so that the receiver can find frames before it decodes them.

Framing#

The byte stream is cut into frames of a fixed length.

Profile fieldEffect
framing.mtu_bytesFrame length in bytes. With Reed-Solomon coding it must be 223

A short final frame is padded. The transmitter does not preserve the boundaries of the packets you send: what comes out of the receiver is your byte stream cut into frames of mtu_bytes. To keep one packet per frame, send fixed-size slots, as described in Datapath and Transmission.

Telemetry: tx_frames counts the frames the transmitter has actually built. It is the proof that traffic is flowing: if it does not move, nothing is being transmitted, whatever the sender believes.

Forward error correction#

The frame is optionally encoded to let the receiver correct errors.

framing.fec.typeCoding
noneNo coding
convConvolutional code, constraint length 7, rate 1/2 (doubles the number of bits)
rsReed-Solomon (255,223): 32 parity bytes per 223-byte frame
rs+convReed-Solomon outer code, convolutional inner code

framing.fec.rate must be present when a code is selected. Coding expands the frame, which lowers the useful data rate for a given symbol rate. See Modulation & Coding for frame lengths with each code.

Scrambling#

The coded stream is XORed with the CCSDS pseudo-random sequence (polynomial x^8+x^7+x^5+x^3+1), restarted at the beginning of every frame.

Profile fieldEffect
framing.scrambler.enabledTurns the scrambler on at both ends
framing.scrambler.seed8-bit starting value, default 0xFF

Scrambling makes the transmitted symbols look random whatever the data. Without it, repetitive or idle data maps to the same constellation point over and over, which appears on a spectrum analyser as a strong carrier line and gives the receiver's loops nothing to track.

Sync marker#

A 32-bit attached sync marker (ASM) is placed in front of every coded frame. It is never scrambled. The receiver searches for it to know where each frame starts.

Profile fieldEffect
framing.sync_word.value_hexThe marker; the CCSDS value is 1ACFFC1D

Preamble and fill#

Between bursts the receiver's gain control, timing loop and carrier loop have nothing to track. The transmitter therefore sends:

  • a preamble before a frame that follows a silence, so that the receiver can settle before the first marker arrives;
  • a bounded amount of fill between consecutive frames, so that the loops stay locked across short gaps.

Preamble and fill are inserted only between frames, never inside one, and use a pattern chosen to have no carrier line and to stay far from the sync marker.

Profile fieldEffect
framing.preamble.typefill (built-in pattern) or pattern (your own value_hex)
framing.preamble.value_hex64-bit pattern
framing.preamble.pre_symbolsPreamble length in symbols, default 512
framing.preamble.post_symbolsMaximum fill between frames, default 2048

Without framing.preamble, no preamble or fill is sent. The rules applied to a custom pattern are in Modulation & Coding.

Modulation and pulse shaping#

Bits are mapped to symbols, and each symbol is shaped at 4 samples per symbol.

phy.modulationMappingShaping
BPSK1 bit per symbol, two phasesRoot-raised-cosine, α = 0.35
QPSK2 bits per symbol, four phases, Gray-codedRoot-raised-cosine, α = 0.35
GMSK1 bit per symbol, continuous phaseSmooth phase transitions; phy.bt must be 0.5
Profile fieldEffect
phy.modulationSelects the modulation (and the matching demodulator on receive)
phy.symbol_rate_baudSymbol rate, from the available ladder
phy.samples_per_symbolMust be 4 or absent
phy.btGMSK only

With RRC shaping, the occupied bandwidth is about 1.35 × symbol rate: about 26 kHz at 19 531.25 baud and 53 kHz at 39 062.5 baud.

Interpolation and frequency offset#

The shaped signal is brought up to the converter's sample rate by an interpolation factor derived from the symbol rate, then shifted in frequency by a digital NCO. The NCO places the signal slightly above the AD9361's local oscillator, so that the oscillator's leakage falls just outside the occupied band.

SettingEffect
phy.symbol_rate_baudSelects the interpolation factor
radio.center_frequency_hzSets the local oscillator and the NCO offset together, so the signal lands on this centre
stellarlinkctl radio nco --tx-hzMoves the transmit NCO by hand
stellarlinkctl radio gain --domain digitalAdjusts the digital transmit gain

The tuning performed by a profile apply is reported in the apply result. See RF Fundamentals.

Output#

The final stage either passes the samples to the AD9361 or holds them back.

Profile fieldEffect
radio.tx_enabledtrue lets samples out; false discards everything the transmitter is given
radio.tx_power_dbmAD9361 transmit attenuation, 0 dB (full drive) down to −89.75 dB
radio.loopbacktrue sends the signal through the channel emulator into the receiver instead of the AD9361

Telemetry: tx_egress_samples counts the samples that left the transmitter. If tx_frames climbs while tx_egress_samples stays still, the output is closed and the data is being discarded.

For an on-air transmission, the AD9361 must also be set to transmit the modem's samples rather than an internal test signal, with its interface tuned at the operating rate. stellarlinkctl chain up brings all of this into place and stellarlinkctl chain status checks it; see Chain Conditioning.

↑↓ to moveEnter to open