Docs · v0.5.3
Sources
Each entry in sources is one radio, one capture file to replay, or one internet audio stream. This page lists every source
type's keys. For choosing a sample rate, setting gain and ppm, profiling the guard band and running
several radios, see the radios guide.
"sources": [
{ "type": "rtlsdr", "serial": "00000101", "centerHz": 0, "rateHz": 2400000, "gainDb": 25.4, "ppm": 1 },
{ "type": "airspy", "centerHz": 770500000, "rateHz": 6000000, "gainMode": "linearity", "gainStep": 14 }
]A source receives a block of spectrum rateHz wide, centered on centerHz. Every source has a
type, one of "rtlsdr", "usrp", "airspy", "hydrasdr", "bladerf", "hackrf", "spyserver", "soapy", "file" or "stream" (any case). Any other
type, or none, makes the file unreadable.
The fixed choices below (gainMode, format) are read in any case, and an empty string is the default.
Anything else is refused when the file is read.
Keys every source shares
These work the same way on every type; each type's table below repeats them with that type's default.
Name
name is optional. It is shown beside the source's number ("Source 2 (Whip)") wherever a source is
named: Setup, the RF page, the survey, to-dos and the log. That way you can tell radios apart by what
they are for (an antenna, a band) as well as by their position in the list. It only names the source: it
changes nothing about how the source records, and changing it while recording takes effect at once, with
no restart. A system kept on particular sources (receiveOn) names the radio by its label
("RTL-SDR SN 200", shown beside the title on the RF page), so renaming a source never moves anything
off it.
Center frequency and Auto
centerHz is the frequency in the middle of the block of spectrum the source receives, in Hz.
0 means Auto: when recording starts, each Auto source in turn is centered over what the
sources before it don't reach yet. What a system needs comes first: one of a P25 or SmartNet site's
control channels; every control and watched frequency of a DMR, NXDN or EDACS site; every channel of a
conventional system. Then the most of the remaining listed channels, packed so what's left needs as
few more radios as possible. With everything reached, a spare source goes beside the others. The
center is kept off every channel (the DC spike at the center of an SDR's band). If a source can't be
placed, recording won't start until you set its center by hand.
Setup shows where an Auto source will be placed under Center frequency, MHz.
Suggested settings
Setup's Radios tab suggests a better center and sample rate for each source when there is one, for centers typed in as well as Auto ones. It tries the sources on Auto, and each source at each rate it runs at (an Airspy's or bladeRF's as the radio said when it was opened), and compares the results in this order:
- every system's needs reached;
- more of the channels reached: the ones the config lists, and the frequencies each system was heard granting in the last week, by their calls (also those no source covered);
- fewer radios needed;
- a lower total sample rate, which means less CPU and USB traffic;
- the fewest changes.
The suggestions never put an RTL-SDR past 2.4 MSPS, where many machines drop samples (a rate you set by hand stays).
Only a strict improvement is suggested. A capture file's center and rate are the recording's, so they're never suggested. Each source's card says what to set, and Use takes it. A source is set back to Auto when Auto would place it there; otherwise the center is written in. The banner above the sources says what the suggestions do together, and Apply all takes them all. A source the others then make unnecessary says it can be removed.
While recording, the RF page says when Setup has suggestions. When a channel a system needs is out of reach, Start's message names the settings that would reach it.
Guard band and usable bandwidth
An SDR's anti-alias filter rolls off near the edges of its band, so signals there come in weak.
guardHz is how much is left unused at each edge, in Hz (default 75 000). A channel is used only if
it is within
rateHz / 2 − guardHzof the center, but never less than a quarter of the rate. At 2.4 MSPS with the default guard band,
that is 1.125 MHz either side of the center. Profile roll-off… next to Guard band in Setup
(and trunk-pro rolloff, see command-line.md) measures where your radio's
noise floor sags and suggests a value.
If you're coming from Trunk Recorder: it left 32–64 kHz depending on the rate; the default here is a little wider.
Frequency correction (ppm) and AutoTune
ppm corrects the radio's frequency error, in parts per million. A frequency f is tuned as
f / (1 + ppm × 10⁻⁶). An RTL-SDR takes whole ppm: a fraction is rounded when the dongle is opened
(Setup offers only whole numbers). On the other types a fraction is used as it is.
The error is measured all the time, on P25 and SmartNet control channels and on digital calls (P25,
NXDN) a second or longer, and Setup shows it under the ppm field with a button to set the correction.
With autoTune on, the measured error (the median of the last 20 measurements) is applied by itself:
new voice channels open at the corrected frequency, and a P25 control channel more than 150 Hz off is
reopened at it (at most every 200 s). Each source's error is kept in the store for the next run, which
starts from it until it measures its own.
While recording, the dashboard's gain alert (on the RF page) has a Tune gain button that tries
gains on the air and keeps the best. The trial gains aren't saved to the config. See the
radios guide and trunk-pro tune.
"type": "rtlsdr"
An RTL-SDR dongle, driven directly over USB (no driver library needed), or on another machine through its rtl_tcp
server (below).
| Key | Required | Default | Type | Description |
|---|---|---|---|---|
type |
✓ | string | "rtlsdr" |
|
serial |
"" |
string | The dongle's serial number. "" = the first free dongle |
|
address |
string | Its rtl_tcp server, host or host:port, when it's on another machine. Left out: on USB |
||
centerHz |
✓ | number | Center frequency, Hz. 0 = Auto |
|
rateHz |
✓ | number | Sample rate. 2 400 000 is typical; the interface offers 2 048 000, 2 560 000, 3 200 000, 1 920 000 and 1 024 000 too | |
gainDb |
25.4 |
number | Tuner gain, dB. Ignored with agc. Most dongles go 0–49.6 |
|
agc |
false |
bool | Use the tuner's AGC instead of gainDb |
|
biasTee |
false |
bool | Power an LNA through the antenna port (an RTL-SDR Blog V3 or V4). The desktop app's; the browser version leaves it as it is | |
ppm |
0 |
number | Frequency correction, ppm. An RTL-SDR rounds it to a whole number | |
autoTune |
false |
bool | Apply the measured frequency error by itself | |
guardHz |
75000 |
number | Left unused at each edge of the band, Hz | |
bufLen |
0 |
integer | Bytes per USB transfer (Trunk Recorder's buflen), a multiple of 512, at most 16 MiB. 0 = 16 384. USB transfer size in Setup |
|
buffers |
0 |
integer | USB transfers kept in flight (Trunk Recorder's buffers), at most 256. 0 = enough for about 2 MiB: 128 at the default size, 32 at 65 536 |
rateHz is one of an RTL2832U's two ranges, 225 001–300 000 or 900 001–3 200 000, and gainDb 0–50: anything else won't start.
The defaults (128 transfers of 16 KiB) suit any number of dongles on one bus, so bufLen and
buffers rarely need setting. A retune or gain change halts the dongle's output for a moment and
changes only the tuner; the samples the chip dropped meanwhile (it counts them itself) are reported
as dropped. A USB stall is cleared in place, without reopening the dongle.
The native driver handles R820T and R828D tuners (the RTL-SDR Blog V3, V4 and V4L, and most
current dongles) and the older Elonics E4000. The E4000 runs at zero IF, so a small DC spike sits at the
center frequency (keep a control channel off it); a manual gain is the nearest of its steps
from -1 to 42 dB, and manual gain is better than AGC, which sits low. It can't tune about
1090–1230 MHz. For a dongle with an FC0012, FC0013 or FC2580 tuner, use a soapy source with
"args": "driver=rtlsdr"; see other radios.
Two dongles with the same serial, or with none, can't be told apart: Setup greys them out and says the rtl_eeprom -s to run to give each its own.
"type": "usrp"
An Ettus USRP, through UHD. UHD must be installed separately; the app loads it when needed.
| Key | Required | Default | Type | Description |
|---|---|---|---|---|
type |
✓ | string | "usrp" |
|
args |
"" |
string | UHD device arguments: "" = the first found, serial=…, type=b200, addr=192.168.10.2. num_recv_frames=1024 is added unless you set it (UHD's default buffer overflows at high rates; 1024 holds about 260 ms at 8 MSPS) |
|
centerHz |
✓ | number | Center frequency, Hz. 0 = Auto |
|
rateHz |
✓ | number | Any rate the device's clock supports, e.g. 8 000 000 | |
gainDb |
40 |
number | Gain, dB. B200/B210: 0–76 | |
agc |
false |
bool | The device's AGC instead of gainDb (B200, B210 and E3xx only) |
|
antenna |
"" |
string | e.g. RX2, TX/RX. "" = the device's default |
|
ppm |
0 |
number | Frequency correction, ppm | |
autoTune |
false |
bool | Apply the measured frequency error by itself | |
wireFormat |
"" |
string | Samples on the USB cable: "" = chosen for you, "sc16", "sc12" (B200 / B210 / B200mini / B205mini only) or "sc8". UHD refuses anything else |
|
guardHz |
75000 |
number | Left unused at each edge of the band, Hz |
On a B200 / B210 / B200mini on a USB 2.0 link above 8 MSPS, the automatic choice is sc12, which needs a quarter less of the
bus than sc16. The recorder reads the link speed, logs it, and warns when sc16 is in use at a high rate on USB 2.0. If UHD
would run a B2xx's master clock at the sample rate itself (no decimation, which puts sidebands 270–310 kHz either side of strong
carriers), the recorder doubles it, unless args sets master_clock_rate. The B206mini needs UHD 4.9 or newer (Debian trixie's
package is 4.8) and uses the b205mini FPGA image.
"type": "hackrf"
A HackRF One, driven directly over USB: nothing to install, and it works in Docker. It needs firmware 2021.03 or newer; an older
one is refused when opened, with a message to update it (hackrf_spiflash).
| Key | Required | Default | Type | Description |
|---|---|---|---|---|
type |
✓ | string | "hackrf" |
|
serial |
"" |
string | The board's serial. "" = the first found |
|
centerHz |
✓ | number | Center frequency, Hz. 0 = Auto |
|
rateHz |
✓ | number | Sample rate, 1 000 000 to 20 000 000 | |
lnaDb |
16 |
integer | IF (LNA) gain, 0–40 dB in 8 dB steps | |
vgaDb |
20 |
integer | Baseband (VGA) gain, 0–62 dB in 2 dB steps | |
amp |
false |
bool | The +14 dB RF amplifier. It overloads near strong signals | |
biasTee |
false |
bool | Power an LNA through the antenna port | |
ppm |
0 |
number | Frequency correction, ppm | |
autoTune |
false |
bool | Apply the measured frequency error by itself | |
guardHz |
75000 |
number | Left unused at each edge of the band, Hz |
A soapy source with driver=hackrf still works, for a rad1o or a HackRF behind SoapyRemote. On Windows the built-in HackRF driver isn't available yet: use a soapy source with driver=hackrf there.
An RTL-SDR on the network (rtl_tcp)
An rtlsdr source with an address is a dongle on another machine, through its rtl_tcp server. Nothing to install here, and it
works in Docker (not in the browser version, which can't open a TCP connection). Start the server where the dongle is
(rtl_tcp -a 0.0.0.0, or with -p for another port); it serves one client at a time, so two sources can't share one address.
{ "type": "rtlsdr", "address": "pi.local", "centerHz": 0, "rateHz": 2400000, "gainDb": 30, "biasTee": false, "ppm": 0 }The port is 1234 unless the address gives one: pi.local is pi.local:1234, and a server started with -p 4321 is
pi.local:4321. An IPv6 address is written in brackets: [fe80::1] or [fe80::1]:4321. Its keys are a dongle's, but for serial,
bufLen and buffers, which are USB's. A gain is set to the nearest step of the tuner the server names (an R820T / R828D has 29,
0–49.6; an E4000 has 14), from the same tables as on USB; for any other tuner it is sent as given.
rtl_tcp answers nothing, so what a source reports as its gain is the step it set (the log says when that isn't the gainDb asked). Whatever a previous client left set on the
server (direct sampling, the digital AGC, the bias-T) is set again when a source connects. A lost connection is retried every few
seconds, as an unplugged dongle is. The samples are 8-bit, as a dongle's own: 4.8 MB/s (38 Mbit/s) at 2.4 MSPS. A link too slow for
that makes the server drop samples at its end; wire it where you can.
An rsp_tcp server (an SDRplay) speaks the same protocol, in its 8-bit mode (not -b 16).
"type": "spyserver"
A receiver on another machine, through Airspy's spyserver: an Airspy R2, Mini or HF+, or an RTL-SDR behind it. Nothing to
install here, and it works in Docker. The source reads the server's I/Q stream at one of its decimation stages, so the samples are the
receiver's own; its FFT stream isn't used.
| Key | Required | Default | Type | Description |
|---|---|---|---|---|
type |
✓ | string | "spyserver" |
|
address |
✓ | string | The server, host or host:port (port 5555 if left off) |
|
centerHz |
✓ | number | Center frequency, Hz. 0 = Auto |
|
rateHz |
✓ | number | Sample rate: one the server offers, its top rate halved some number of times, each to the nearest whole Hz (an Airspy R2's server usually starts at 2.5, then 1.25 …). Another is refused, with the ones offered. The recorder asks the server when the address is saved, and Setup lists the rates it says, starting at the highest | |
iqFormat |
"cu8" |
string | How the I/Q travels, as a capture file's samples are: "cu8", "cs16" or "cf32" (2, 4 or 8 bytes a sample). The server may insist on one of its own |
|
gain |
14 |
integer | The server's own gain step (an index into its gain table, not dB: an Airspy R2 has 0–21, an HF+ 0–8, an RTL-SDR 0–28), held to what the server has | |
digitalGainDb |
automatic | integer | What the server multiplies the stream by before quantising it for the link, 0–60 dB; it is divided out again here, so levels don't change. Left out: 3 dB for each decimation stage, and for an R2 a dB more for each gain step below its top | |
autoTune |
false |
bool | Not used | |
guardHz |
75000 |
number | Left unused at each edge of the band, Hz |
A server lets any number of clients listen but only the first to connect can move the receiver. A source that connects second
keeps to a window inside what the first has tuned (it is refused with the window's limits when centerHz is outside it), and its gain
is the first client's. ppm is not used: the receiver's own crystal is the server's.
"type": "airspy"
An Airspy R2 or Mini, by the driver built in: nothing to install (Other radios).
| Key | Required | Default | Type | Description |
|---|---|---|---|---|
type |
✓ | string | "airspy" |
|
serial |
"" |
string | Serial number in hex. "" = the first found |
|
centerHz |
✓ | number | Center frequency, Hz. 0 = Auto |
|
rateHz |
✓ | number | R2: 10 000 000 or 2 500 000. Mini: 6 000 000 or 3 000 000 (10 000 000 with newer firmware). Setup offers what the radio reports | |
gainMode |
"linearity" |
string | "linearity" (best near transmitters), "sensitivity" (best for weak signals) or "manual" (each stage set separately). Any other value is refused |
|
gainStep |
14 |
integer | Linearity or sensitivity step, 0–21 | |
lnaStep |
10 |
integer | Manual mode: LNA step, 0–14 | |
mixerStep |
10 |
integer | Manual mode: mixer step, 0–15 | |
vgaStep |
10 |
integer | Manual mode: VGA (IF) step, 0–15 | |
agc |
false |
bool | Manual mode: the Airspy's AGC sets the LNA and mixer (the VGA step still applies) | |
biasTee |
false |
bool | Power an LNA through the antenna cable | |
packing |
true |
bool | Send 12-bit samples packed over USB: a quarter less of the bus (an Airspy at 10 MSPS nearly fills a USB 2.0 bus by itself). Turn off only for firmware too old to pack | |
ppm |
0 |
number | Frequency correction, ppm | |
autoTune |
false |
bool | Apply the measured frequency error by itself | |
guardHz |
75000 |
number | Left unused at each edge of the band, Hz |
The Airspy gains are the driver's steps, not dB.
"type": "hydrasdr"
A HydraSDR RFOne, driven directly over USB by the driver built in (nothing to install). Its tuner and gain stages are an Airspy R2's, so its gain is set the same way.
| Key | Required | Default | Type | Description |
|---|---|---|---|---|
type |
✓ | string | "hydrasdr" |
|
serial |
"" |
string | Serial number in hex. "" = the first found |
|
centerHz |
✓ | number | Center frequency, Hz. 0 = Auto |
|
rateHz |
✓ | number | 10 000 000, 5 000 000 or 2 500 000 | |
gainMode |
"linearity" |
string | "linearity", "sensitivity" or "manual", as an Airspy's |
|
gainStep |
14 |
integer | Linearity or sensitivity step, 0–21 | |
lnaStep |
10 |
integer | Manual mode: LNA step, 0–14 | |
mixerStep |
10 |
integer | Manual mode: mixer step, 0–15 | |
vgaStep |
10 |
integer | Manual mode: VGA (IF) step, 0–15 | |
agc |
false |
bool | Manual mode: the RFOne's AGC sets the LNA and mixer (the VGA step still applies) | |
rfPort |
0 |
integer | The input: 0 ANT, 1 CABLE1, 2 CABLE2 |
|
biasTee |
false |
bool | Power an LNA through the ANT port (4.5 V, up to 300 mA). Only on ANT: with another rfPort the source won't start |
|
packing |
true |
bool | Send 12-bit samples packed over USB | |
ppm |
0 |
number | Frequency correction, ppm | |
autoTune |
false |
bool | Apply the measured frequency error by itself | |
guardHz |
75000 |
number | Left unused at each edge of the band, Hz |
"type": "bladerf"
A bladeRF 2.0 micro (xA4 / xA9) or original bladeRF (x40 / x115), through libbladeRF 2.x.
libbladeRF and the board's FPGA image must be installed separately (Debian / Ubuntu:
libbladerf2 bladerf-fpga-hostedxa4).
| Key | Required | Default | Type | Description |
|---|---|---|---|---|
type |
✓ | string | "bladerf" |
|
serial |
"" |
string | The board's serial (32 hex digits). "" = the first found. Set it whenever another program has a bladeRF open |
|
centerHz |
✓ | number | Center frequency, Hz. 0 = Auto |
|
rateHz |
✓ | number | Any rate from 520 834 to 61 440 000. Over ~40 MSPS needs USB 3 and a fast CPU | |
bandwidthHz |
0 |
number | The analog low-pass filter, Hz. 0 = the sample rate |
|
gainDb |
30 |
number | Overall RX gain, dB (bladeRF 2.0: about −15 to 60). Ignored with agc |
|
agc |
false |
bool | The board's AGC instead of gainDb |
|
biasTee |
false |
bool | Power an LNA through the antenna cable (bladeRF 2.0 only) | |
ppm |
0 |
number | Frequency correction, ppm | |
autoTune |
false |
bool | Apply the measured frequency error by itself | |
guardHz |
75000 |
number | Left unused at each edge of the band, Hz |
Samples that USB drops are counted from the board's sample timestamps.
"type": "soapy"
Any SDR with a SoapySDR module: SDRplay, LimeSDR, PlutoSDR and others. SoapySDR and the device's module must be installed separately.
| Key | Required | Default | Type | Description |
|---|---|---|---|---|
type |
✓ | string | "soapy" |
|
args |
"" |
string | Device arguments: "" = the first found, e.g. driver=hackrf, driver=sdrplay,serial=…, driver=rtlsdr |
|
centerHz |
✓ | number | Center frequency, Hz. 0 = Auto |
|
rateHz |
✓ | number | A rate the device supports | |
agc |
true |
bool | The device's AGC. Turn it off to use gainDb and gains |
|
gainDb |
null |
number or null | Overall gain, dB. null leaves it as the device has it |
|
gains |
{} |
object | Gain stages by name, dB, applied after gainDb: e.g. HackRF { "LNA": 32, "VGA": 20, "AMP": 0 }, SDRplay { "IFGR": 40, "RFGR": 2 } |
|
antenna |
"" |
string | "" = the device's default |
|
settings |
"" |
string | Device settings as key=value,key=value, e.g. biastee=true (see SoapySDRUtil --probe) |
|
ppm |
0 |
number | Frequency correction, ppm | |
autoTune |
false |
bool | Apply the measured frequency error by itself | |
guardHz |
75000 |
number | Left unused at each edge of the band, Hz |
"type": "file"
A capture on this computer, replayed as if it were a radio: for testing, or for recording a system from an IQ file someone sent you.
| Key | Required | Default | Type | Description |
|---|---|---|---|---|
type |
✓ | string | "file" |
|
path |
✓ | string | The capture file. Recording won't start while it's empty | |
centerHz |
✓ | number | The frequency it was recorded at, Hz | |
rateHz |
✓ | number | Its sample rate | |
realtime |
✓ | bool | true: play it at the speed it was recorded. false: as fast as the computer can |
|
format |
from the name | string | "cu8" (rtl_sdr, unsigned 8-bit), "cs16" (signed 16-bit) or "cf32" (32-bit float: GNU Radio, UHD). Left out: .cs16 and .sc16 files are cs16; .cf32, .fc32, .cfile and .complex are cf32; anything else is cu8. Any other format is refused |
|
autoTune |
false |
bool | Apply the measured frequency error by itself | |
guardHz |
75000 |
number | Left unused at each edge of the band, Hz |
A file source has no gain or ppm. In the browser version, the file is chosen with
Choose file… and must be rtl_sdr output; it is forgotten when the page reloads.
trunk-pro replay plays a capture without changing the config; see
command-line.md.
"type": "stream"
An internet audio stream: the address of an MP3 or WAV feed (a scanner feed, Broadcastify's and the like), someone else's receiver with its audio demodulated already. It needs nothing installed (the audio is decoded by the recorder itself) and the desktop app.
"sources": [ { "type": "stream", "url": "https://feeds.example.com/12345" } ]| Key | Required | Default | Type | Description |
|---|---|---|---|---|
type |
✓ | string | "stream" |
|
url |
✓ | string | Its address, http:// or https://. A login may go in it (https://user:password@host/feed): it is sent as the server asks, and never shown — its label (stream host/path) leaves out the login and anything after a ? |
|
name |
"" |
string | A name for it, as any source's |
A stream has no band, gain, ppm or AutoTune, and no centre or rate to set (its audio is 8 kHz, the rate every
channel's audio is). What it records are the conventional rows with no frequency:
each takes its left channel, its right, or both mixed. Setup's Add a stream (in a conventional system's
channel table) adds the stream and a row for it at once.
A stream is a source like a radio: it connects when recording starts, connects again 2 s after it drops (or when nothing has come for 10 s), and its errors show on the RF page and in the log. Its clock is its audio, as a radio's is its samples: the time it was away goes by as silence, so a call in progress then ends. The RF page shows its quiet floor (its audio's level between calls) where a radio shows its noise floor.
Respect a feed's terms: many don't allow recording or sharing what they carry.