How a config fits together

config.yaml describes two things: the radios you have (SDRs) and what to listen to with them. Every section you add is one of those two, and nothing is decoded until a “what to listen to” section uses a radio. This page shows how the two connect, so you can tell where a setting belongs.

Prefer not to edit YAML? The Config Builder in the web console writes this file for you, section by section. This page is for reading or hand-editing the file, and for understanding what the builder produced.

YAML in two rules

  1. A top-level section starts at the left margin. sdr:, trunking:, scanner:, recordings:, aprs: and so on all start in column 1. A section indented under another one is read as part of that one.
  2. Each top-level name appears once. To add something to sdr:, put it inside the existing sdr: block. A second sdr: (or scanner:) further down the file is a YAML error.

A key GopherTrunk does not recognise (a typo, or a key placed under the wrong section) is not an error, it is ignored. The start-up log then has a config line N: warning naming the line, the key and the section it landed in. When a setting “does nothing”, look for that line first.

Part 1: the radios (sdr:)

Every SDR is declared once, under sdr:, and has a serial: the name the rest of the file uses to point at it.

Where it lives What it is Where the serial comes from
sdr.devices a USB SDR (RTL-SDR, Airspy, HackRF, …) gophertrunk sdr list prints it
sdr.iio a Pluto / PlutoSky over the network you choose it, e.g. "plutosky"
sdr.soapy_remote, sdr.rtl_tcp a remote SDR server you choose it

Settings that apply to all SDRs (sample_rate, watchdog_interval_ms, …) sit directly under sdr:.

The sdr.devices list is an allowlist for USB SDRs. If it lists any serial, a USB SDR plugged in but not listed is left alone, and a listed serial that is not plugged in logs configured SDR not present on the bus. Network boards (iio, soapy_remote, rtl_tcp) open from their own section and do not need an sdr.devices entry.

Roles

An SDR’s role: says what kind of job it takes:

  • control: sits on a trunked system’s control channel.
  • voice: is tuned to calls as they are granted, and runs the scan list.
  • auto: GopherTrunk picks control or voice.
  • wideband: one SDR covering several channels at once (advanced; see multi-dongle setup).

You never set dedicated yourself: an SDR named by a single-channel decoder (Part 2) becomes dedicated to it automatically.

Part 2: what to listen to

Each of these sections uses an SDR. If none of them uses yours, the SDR is opened and then sits idle.

Section What it does Which SDR it uses
trunking.systems follows a trunked system (P25, DMR, TETRA, …) the control SDR for the control channel, voice SDRs for the calls
scanner.conventional a scan list: individual channels (analog FM / AM, P25, DMR, …) scanned like a hardware scanner a voice SDR (the last one, unless a channel names one with device:)
aprs, pocsag, flex, ais, adsb, mdc1200, fleetsync, … a single-channel decoder: one frequency, decoded all the time the SDR its serial: names, which it takes for itself

Two consequences that catch people out:

  • A single-channel decoder needs an SDR of its own. aprs: with serial: "plutosky" takes the PlutoSky for APRS. It is then no longer available to the scan list or to trunking. To hear APRS and scan other channels, you need two SDRs. (Or listen to 144.800 MHz as a plain scan-list channel, which records the bursts as audio but does not decode the packets.)
  • The message decoders store what they decode in the database, so they also need a storage: section with a path:. Without one, the decoder runs but its web panel stays empty.

Three complete examples

Each of these is a whole config.yaml. Replace the address and frequencies with your own.

1. A PlutoSky running a scan list

sdr:
  sample_rate: 2_400_000
  iio:
    - addr: "192.168.1.179"       # the board's address
      serial: "plutosky"          # a name you choose
      role: voice                 # the scan list runs on a voice SDR
      gain: "400"                 # 40 dB; "auto" uses the board's AGC

scanner:
  conventional:
    - label: "PMR446 ch1"
      frequency_hz: 446_006_250
      mode: nfm
    - label: "APRS"
      frequency_hz: 144_800_000
      mode: nfm

recordings:
  dir: "./recordings"             # the scan list needs somewhere to record

storage:
  path: "./data/calls.db"

At start-up the log shows conv: scanning serial=plutosky channels=2, and once every channel has been visited, conv: first scan pass … with the channels’ levels against squelch_dbfs.

2. A PlutoSky decoding APRS packets

sdr:
  sample_rate: 2_400_000
  iio:
    - addr: "192.168.1.179"
      serial: "plutosky"
      gain: "400"

aprs:
  channels:
    - serial: "plutosky"          # the SDR this decoder takes
      frequency_hz: 144_800_000   # EU; 144.390 MHz in North America

storage:
  path: "./data/calls.db"         # decoded packets are stored here

The log shows daemon: SDR reserved for its single-channel decoder (role: dedicated) serial=plutosky, and decoded packets appear on the APRS page of the web console.

3. One RTL-SDR following a trunked system

Use the Config Builder’s Trunking section, or the import from RadioReference (Import), to fill in a system; the result looks like:

sdr:
  devices:
    - serial: "00000001"          # from `gophertrunk sdr list`
      role: auto
      gain: "400"

trunking:
  systems:
    - name: "County P25"
      protocol: p25
      control_channels: [851_012_500, 851_262_500]

recordings:
  dir: "./recordings"

One SDR follows the control channel and records one call at a time between control-channel visits; add a second (role: voice) to record while staying on the control channel. See Get started.

Checking it at start-up

Read the first lines the daemon logs:

  • device opened … serial=…: the SDR was found and opened.
  • configured SDR not present on the bus … serial=…: an sdr.devices entry is not plugged in.
  • sdr: "…" is open but nothing in this config will decode with it: the SDR opened, but no section in Part 2 uses it. The line says which sections would.
  • daemon: nothing is configured to decode: no section uses any SDR. The web console runs, but nothing will be heard.
  • aprs: SDR not found, skipping receiver … open_sdrs=[…] (or pocsag:, ais:, …): the decoder’s serial: names an SDR that is not open. The line lists the ones that are.
  • config line N: …: a key in the wrong place (see the YAML rules above).

The daemon also prints these warnings again as a list once it is up.