All docsStellar LinkRF bench · by Stellar Systems v0.4.0

Radio Concepts

Channel Models

The built-in channel emulator: where it applies, its five operations (frequency offset, path loss, noise, burst errors, link state), how to drive it from scenarios, and how to model a LEO pass.

Stellar Link emulates a satellite channel between its own transmitter and its own receiver. The emulator is driven from scenarios through the channel.* fields, and its state is reported in every telemetry sample, so a report can prove that an impairment actually reached the link.

Where the channel applies#

The channel emulator sits on the internal loopback path (chain target pl), where the modem feeds its own receiver:

text
Internal loopback: transmitter -> channel emulator -> receiver          (no RF emitted)
RF paths:          transmitter -> RF front end -> ... -> RF front end -> receiver
                   (the channel emulator is not in the path)

A scenario whose profile has radio.loopback: false runs on an RF path, and its channel settings have no effect on the signal. Check the profile's radio.loopback before reading a channel measurement. See Chain Conditioning for the chain targets.

The five operations#

The signal goes through five operations, in this order:

text
frequency shift -> attenuation -> additive noise -> burst errors -> link mute

The mute comes last: taking the link down removes the signal and the added noise, so the receiver sees true silence.

DSL fieldEffectTelemetry field
channel.doppler_hz + channel.freq_offset_hzA frequency shift of the whole signal (the two values are summed)chan_nco_freq
channel.path_loss_dbA linear attenuation, in relative dBchan_atten
channel.snr_dbAdditive white Gaussian noise, at an amplitude set by the valuechan_awgn_amp
channel.burst_error_rateShort bursts of corrupted samples, at the given rate (0 to 1)chan_burst_rate
channel.link_state = "down"No output at all; "up" restores the linkchan_ctrl

Assertions can target these telemetry fields as chan.<name> (see Assertions and Reports).

The dB are relative#

Likewise, snr_db sets a noise amplitude relative to the full-scale signal, not a ratio to the signal actually present. The noise is added after the attenuation, so increasing path_loss_db does not lower the noise: the two do not compose the way a link budget would. Use them separately, and read the resulting quality from the receiver (rx.snr_db, rx.mer_db, rx.evm) rather than from the value requested.

Driving the channel from a scenario#

YAML
channel:
  initial:
    link_state: "up"
    snr_db: 30
    freq_offset_hz: 0
    path_loss_db: 0
    burst_error_rate: 0.0

timeline:
  - id: "path_loss_ramp"
    from: "4s"
    to: "14s"
    ramp:
      channel.path_loss_db: { from: 0, to: 20 }

  - id: "link_down"
    at: "30s"
    set:
      channel.link_state: "down"

  - id: "link_up"
    at: "34s"
    set:
      channel.link_state: "up"
  • channel.initial is applied after the scenario's profile, at the start of the run. Applying a profile on its own returns the channel to pass-through (no shift, no loss, no noise, link up).
  • set applies a value at one instant; ramp and curve sweep a value across their window, one point every 500 ms (at most 120 points). Spans run concurrently with the rest of the timeline.
  • Each change is recorded in the run's event log. A channel_set event means the change took effect. Under a very dense traffic feed a change can occasionally fail to take effect; the run then records a channel_staged event instead, and a windowed assertion on chan.* or on the receiver will show it.

See Scenarios for the full timeline syntax. The shipped channel_operations_sweep_v1 scenario exercises all five operations with windowed assertions.

Frequency offset and the carrier loop#

A coherent receiver has to pull its carrier loop onto the incoming frequency, and its tolerance to an offset is finite. On the internal loopback path, a channel frequency offset of a few hundred hertz can be enough to stop the link. Before writing a nominal scenario that depends on a given offset, measure the receiver's tolerance with a dedicated sweep.

Modelling a LEO pass#

A low-Earth-orbit pass is defined by its geometry: orbit altitude, maximum elevation, the elevation mask below which the link is down (AOS and LOS), and the carrier frequency. From these follow the two quantities the channel emulator reproduces:

  • Path loss variation. Express it relative to closest approach (0 dB there), rising towards the horizon; about 11 dB across a 500 km pass.
  • Doppler. Positive at AOS (the satellite approaches), crossing zero at closest approach and negative at LOS. The curve is an S-shape: nearly flat for most of the pass, doing most of its work in the minute around closest approach — the part a carrier loop finds hardest.

At UHF the raw Doppler reaches about ±10 kHz, half a symbol rate at 19 531 baud. A ground station normally tracks it, so the receiver only sees the residual between retunes (a few hundred hertz) plus a constant error from the station's reference. Model that residual with channel.doppler_hz, and the reference error with channel.freq_offset_hz.

Use curve steps with a handful of points to follow both shapes. The shipped leo_doppler_pass_v1 scenario is a complete pass built this way, with a continuous CSP downlink and telecommands during the pass.

Model-only metrics#

Assertions can name rf.ber, rf.frame_error_rate, rf.snr_db and rf.doppler_hz. These are computed from the values the scenario requested, never measured, and are always reported as not verified. Assert on rx.* and chan.* instead (see Assertions and Reports).

↑↓ to moveEnter to open