Docs · v0.5.3

Migrating from Trunk Recorder

If you already run Trunk Recorder, you can bring its config.json across in a few clicks. This page explains how to run the import, what it converts, what it leaves behind and why, and the ideas that work differently here.

Running the import

  1. Open the import, either way:
    • On first run, the setup guide's welcome screen has Import a Trunk Recorder config.
    • Any time later: Setup → Systems → Import….
  2. Choose config. In the desktop app you browse the recorder's computer: open the folder Trunk Recorder runs from, and when it holds a config.json, press Use it (or click any .json file). Or upload a file… picks one from the computer your browser is on instead. In the browser version, press Choose a file….
  3. Review. "Here's what comes over" lists the radios, systems, conventional channels, the recordings folder and any uploaders, with anything that needs attention marked:
    • When the desktop app reads config.json from disk, it also reads each system's talkgroupsFile and channelFile, beside the config (as Trunk Recorder, run from its folder, finds them) or by file name in that folder. Any file it couldn't find, every unitTagsFile, and all files when you uploaded the config instead, show as Not found with Choose file… next to them. Pick each one, or skip it and add it later in Setup.
    • A dongle that isn't plugged in or isn't free can be swapped for one that is.
    • Good to know lists what changed meaning on the way.
  4. When you already have systems set up, choose what the import does with them:
    • Add to it (the default) adds this config's radios, systems and conventional channels to yours. Use it when your Trunk Recorder setup is split over several configs (say one each for 700 MHz, 800 MHz and VHF): import them one after another. A radio already here (the same device, centre and rate) isn't added twice, and a system already here (the same short name and kind, and for a trunked system a control channel in common) is left as it is. Your Recording and log settings stay; where this config's differ, they become its systems' own.
    • Replace it replaces your radios, conventional channels and Recording and log settings with this config's, and your trunked systems too when it has any.
  5. Press Import. Anything left to finish (a site lock, a squelch to check, a missing file, a plugin to install, a control channel no radio reaches) is listed on the Setup page and highlighted where it needs doing.

Nothing is written to your Trunk Recorder folder; its files are only read.

What converts

The importer reads Trunk Recorder's keys and writes this app's. A key not listed here is not read.

Sources

Trunk Recorder Trunk Recorder Pro
driver: "osmosdr", device: "rtl=…" rtlsdr source. A serial becomes serial; a device index (rtl=0) becomes "", the first free dongle. buflen= → bufLen, buffers= → buffers (the defaults changed to 16 KiB × 128, so you rarely need them). A rate over 3.2 MSPS becomes 2.4 MSPS
device containing hydrasdr hydrasdr source, set as an Airspy's are below. A rate it can't do becomes 5 MSPS
device containing airspy airspy source. The serial from airspy=0x…; bias=1 → biasTee. lnaGain, mixGain, ifGain / vgaGain (or gainSettings LNA / MIX / IF) → manual mode steps; otherwise gain → the linearity step (0–21). A rate the Airspy can't do becomes 6 MSPS
device containing bladerf (bladerf=0, bladerf=<serial>, numchan=1,feature=default,bladerf=<serial>), or driver: "bladerf" bladerf source. A serial becomes serial; an index (bladerf=0) becomes "", the first board. rate, gain (or gainSettings full), agc, error / ppm, autoTune, biastee= and bandwidth= come across
device: "hackrf=…", airspyhf, lime / limesdr, sdrplay, plutosdr, redpitaya, xtrx, or soapy=… soapy source with matching args (driver=hackrf, plus serial=… when the device string had one; soapy= arguments kept as they are). Stage gains (lnaGain, vgaGain, ampGain, ifGain, bbGain, mixGain, tiaGain, pgaGain, vga1Gain, vga2Gain, gainSettings) → gains. AGC is on if agc was, or if no gain was given. A HackRF One can be changed to the native hackrf source by hand
driver: "usrp" usrp source; device → args, antenna → antenna
Any other driver Skipped, with a note
center centerHz
rate rateHz
gain gainDb
agc agc
ppm ppm (rounded to a whole number for an RTL-SDR)
error (Hz) Converted to ppm at the source's center frequency, sign reversed (error: 3000 at 770 MHz → ppm: -4)
autoTune autoTune

USRP, bladeRF and SoapySDR sources need their driver installed on this computer; the review says so. Airspy and HydraSDR sources need nothing: their driver is built in.

Trunked systems

Trunk Recorder Trunk Recorder Pro
type: "p25", "smartnet", "dmr" A trunked system of that type with one site, one per entry (but see multiSite below)
shortName shortName (made unique if two systems share one)
control_channels its site's controlChannelsHz
modulation: "qpsk" / "fsk4" its site's modulation the same; anything else, or no modulation, becomes "auto"
talkgroupsFile The system's talkgroup file, kept in the recorder's store (not a config key). Semicolon, tab or bar delimiters become commas, header names are tidied
unitTagsFile, unitTagsMode The system's unit names, kept in the recorder's store (not a config key), each named as from that file; unitNames.mode
bandplan its site's bandplan (default 800_standard), and the keys below
bandplanBase, bandplanSpacing, bandplanHigh (MHz) bandplanBaseHz, bandplanSpacingHz, bandplanHighHz (Hz)
bandplanOffset bandplanOffset
Top-level defaultMode: "analog" defaultMode: "analog" on every SmartNet system (it only affects SmartNet)
DMR lcnTable lcnTableHz
DMR channels dmrChannelsHz
multiSite: true with multiSiteSystemName Systems with the same name become one system, named so, with a site each, named as Trunk Recorder named it. The first one's talkgroup file, unit names and rules are the system's; the import notes a talkgroup file that wasn't used
multiSite without a multiSiteSystemName, or off A system of its own. If two of them announce the same system on the air, Setup offers Make them one system
siteId A to-do: set a Site lock for that site

Conventional systems

Trunk Recorder Trunk Recorder Pro
type: "conventional", "conventionalP25", "conventionalDMR" A conventional system each, with its own short name and folder. Channels get mode fm, p25 or dmr by type
channels (frequencies) channels, one row per frequency
channelFile Its rows, copied into channels. With no Mode column, each row takes its system's mode. The file isn't linked; you can link one later in Setup
enabled: false enabled: false
squelch Not converted. When the system has channels, a to-do asks you to check the squelch (see below)

Call rules

These are per system in Trunk Recorder. Each becomes the system's own rule here; a rule with the same value on every system becomes the global one on the Recording tab instead.

Trunk Recorder Trunk Recorder Pro
recordUnknown recordUnknown
compressWav archiveM4a
audioArchive archiveWav (and archiveM4a: false when audioArchive is false)
callLog callLog
filenameFormat (system's, or the top-level one for systems without their own) filenameFormat
minDuration minCallS
maxDuration maxCallS
minTransmissionDuration minTransmissionS
digitalLevels (default 1) digitalLevelDb: 20·log10(value), so 2 → +6 dB
analogLevels (default 8) analogLevelDb: 20·log10(value / 8), so 16 → +6 dB
captureDir (top level) recording.captureDir
callTimeout recording.callTimeoutS
recordUUVCalls recording.recordUnitToUnit
archiveFilesOnFailure recording.archiveFilesOnFailure

Log

Trunk Recorder Trunk Recorder Pro
logLevel log.level
consoleLog log.console
logFile log.file
logDir log.dir. A relative folder is now taken from the config file's folder, not from where the app was started
syslogFriendly log.syslogFriendly
logColor log.color
frequencyFormat log.frequencyFormat
statusAsString log.statusAsString
controlWarnRate log.controlWarnRatePerS
talkgroupDisplayFormat (a system's; the first one found) log.talkgroupDisplayFormat

Uploads and streaming

Trunk Recorder's built-in uploaders and its plugins become this app's plugins (see plugins). Their settings come across; a plugin that is already installed is turned on, and one that isn't is left as a to-do to install.

Trunk Recorder Plugin and its settings
A system's apiKey, openmhzSystemId; top-level uploadServer openmhz: per system apiKey, systemName; server
A system's broadcastifyApiKey, broadcastifySystemId; broadcastifyCallsServer, broadcastifySslVerifyDisable, broadcastifyOTA broadcastify: per system apiKey, systemId; server, skipCertificateCheck, talkerAliases
A system's broadcastifyAllow / broadcastifyDeny (or …Whitelist / …Blacklist, talkgroupWhitelist / talkgroupBlacklist) broadcastify: per system talkgroupAllow / talkgroupDeny, with talkgroupMode set to match (Choosing talkgroups)
A system's uploadScript upload-script: per system script
The rdio-scanner plugin (server, each system's apiKey, systemId, talkgroupAllow, talkgroupDeny) rdioscanner
The openmhz or broadcastify plugin entry openmhz / broadcastify, as above
The simplestream plugin's streams simplestream: streams, with address, port and useTCP turned into a url
A plugin entry with enabled: false Skipped
Any other plugin Listed under "Other plugins: no equivalent yet"

The browser version has no plugins, so there these settings aren't kept.

What doesn't convert, and why

  • Squelch. Trunk Recorder's is an absolute level; here it is dB above the measured noise floor, so the number doesn't carry over. Conventional systems start at the default, 8 dB.
  • siteId. Becomes a site lock to fill in, since a site lock here can check more than the site number (NAC, WACN, System ID, RFSS, site).
  • Recorder counts (digitalRecorders, analogRecorders and the like) and signalDetectorThreshold. There are no per-source recorders here; see below.
  • A conventional system's talkgroupsFile. Not imported. Load it into the conventional system in Setup (Talkgroup names appears once the system has a P25, DMR or NXDN channel), or name the channels in the channel rows.
  • conversationMode: false (a file per transmission). Each call is one file here; the import notes it.
  • Unsupported system types (anything but the six above) are skipped, with a note.
  • Anything else Trunk Recorder has that isn't in the tables above (ver, tempDir, instanceId, hideEncrypted, analog filter settings and so on) isn't read.

Defaults that differ

When a key is missing from the Trunk Recorder config, the import leaves this app's default, which is not always Trunk Recorder's:

Setting Trunk Recorder's default Here
compressWav on off (archiveM4a: false): turn on Keep .m4a if you want .m4a files kept
archiveFilesOnFailure off on
multiSite / duplicate calls off: every copy saved on (dropDuplicateCalls: true): a call heard on several sites is saved once. The import notes this; turn off One copy per multi-site call to keep every copy
modulation qpsk auto (both receivers)
captureDir the folder it was started from ~/TrunkRecorderPro; a full path only, so a relative one (./audio) isn't imported
frequencyFormat exp mhz

Concepts that work differently

Squelch is relative

Squelch here is dB above the measured noise floor, not an absolute level. The recorder measures the noise floor near each channel all the time, so the same setting works whatever the gain or antenna. Only conventional channels have one (squelchDb, default 8, per system or per channel). Trunked systems need none: calls start from the control channel's grants. See the conventional guide.

A system has sites

In Trunk Recorder each site is a system of its own, joined by multiSite. Here one system (one short name, folder and talkgroup file) lists its sites, each a control channel to follow. A call heard on several of them is saved once, keeping the best copy rather than the first (see Several systems and sites). The call JSON's short_name is the system, site the site its copy was kept from, and sites every site it was recorded on.

No recorder counts

Trunk Recorder gives each source a number of digital and analog recorders. Here every source's spectrum is split into channels as needed, and the only limit is recording.maxRecorders, the number of trunked calls recorded at once across all systems (default 32). There is nothing to balance between sources.

Conventional channels are found in the spectrum you already receive

A conventional channel doesn't take a recorder of its own. Each channel's frequency is watched in the spectrum the sources already cover, and a call opens when the signal rises above the squelch. So conventional channels can share a dongle with a trunked system. Several users of one frequency can be split by CTCSS/DCS tone, NAC, colour code or RAN (tones guide).

Plugins are separate programs

Trunk Recorder's plugins are shared libraries built against it. Here a plugin is a separate program the recorder starts and talks to, installed from the Plugins page (or trunk-pro plugin install) without building anything. OpenMHz, Broadcastify Calls, Rdio Scanner, simplestream, upload-script and MQTT plugins are published. A Trunk Recorder MQTT status plugin entry isn't imported (it's listed under Other plugins); install MQTT and fill in its settings in Setup. See plugins.

Files and settings live in the app's folder

The config is in the app's config folder (where), not the folder you run it from, and keys are camelCase with frequencies in Hz. Talkgroup files are copied into the recorder's store, and so are unit files, so editing the original CSV afterwards changes nothing: load it again in Setup, or edit one talkgroup or radio on its page. Each talkgroup and unit name remembers where it came from (the file it was imported from, until it's changed). A conventional system can stay linked to a channel CSV, though (channelFile), re-read at every Start.

What stays compatible

  • Talkgroup, unit tag and channel CSV files read as they are, including RadioReference's exports. See Talkgroups and units and conventional.md.
  • Call JSON uses Trunk Recorder's field names (talkgroup, start_time, freq, srcList, freqList and so on), so tools that read Trunk Recorder's JSON read these. See the recordings guide.
  • Folders and file names are Trunk Recorder's by default (<shortName>/<year>/<month>/<day>/<talkgroup>-<epoch>_<freq>.wav), and filenameFormat takes Trunk Recorder's tokens. See recording.md.
  • Unit tags support Trunk Recorder's regular-expression form and unitTagsMode values.
  • Log options keep Trunk Recorder's names, levels and file naming.

This page on GitHub · written for v0.5.3