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 field | Effect |
|---|---|
framing.mtu_bytes | Frame 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.type | Coding |
|---|---|
none | No coding |
conv | Convolutional code, constraint length 7, rate 1/2 (doubles the number of bits) |
rs | Reed-Solomon (255,223): 32 parity bytes per 223-byte frame |
rs+conv | Reed-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 field | Effect |
|---|---|
framing.scrambler.enabled | Turns the scrambler on at both ends |
framing.scrambler.seed | 8-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 field | Effect |
|---|---|
framing.sync_word.value_hex | The 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 field | Effect |
|---|---|
framing.preamble.type | fill (built-in pattern) or pattern (your own value_hex) |
framing.preamble.value_hex | 64-bit pattern |
framing.preamble.pre_symbols | Preamble length in symbols, default 512 |
framing.preamble.post_symbols | Maximum 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.modulation | Mapping | Shaping |
|---|---|---|
BPSK | 1 bit per symbol, two phases | Root-raised-cosine, α = 0.35 |
QPSK | 2 bits per symbol, four phases, Gray-coded | Root-raised-cosine, α = 0.35 |
GMSK | 1 bit per symbol, continuous phase | Smooth phase transitions; phy.bt must be 0.5 |
| Profile field | Effect |
|---|---|
phy.modulation | Selects the modulation (and the matching demodulator on receive) |
phy.symbol_rate_baud | Symbol rate, from the available ladder |
phy.samples_per_symbol | Must be 4 or absent |
phy.bt | GMSK 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.
| Setting | Effect |
|---|---|
phy.symbol_rate_baud | Selects the interpolation factor |
radio.center_frequency_hz | Sets the local oscillator and the NCO offset together, so the signal lands on this centre |
stellarlinkctl radio nco --tx-hz | Moves the transmit NCO by hand |
stellarlinkctl radio gain --domain digital | Adjusts 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 field | Effect |
|---|---|
radio.tx_enabled | true lets samples out; false discards everything the transmitter is given |
radio.tx_power_dbm | AD9361 transmit attenuation, 0 dB (full drive) down to −89.75 dB |
radio.loopback | true 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.