Docs · v0.5.3
Trunked systems
Each entry in systems is one trunked system: its talkgroups, radios and rules, and its sites,
each a control channel to follow. This page lists the keys for P25, SmartNet, DMR, NXDN, EDACS and LTR systems
and their sites, unit names and the site lock. For how to set each kind
up, see the guides: P25, SmartNet,
DMR, NXDN, multi-site and
talkgroups and units.
"systems": [
{ "shortName": "dcfd", "type": "p25",
"sites": [{ "controlChannelsHz": [857987500, 858987500], "expect": { "nac": 1091 } }] },
{ "shortName": "wmata", "type": "smartnet",
"sites": [{ "controlChannelsHz": [489087500], "bandplan": "400_custom", "bandplanBaseHz": 489012500,
"bandplanSpacingHz": 12500, "bandplanOffset": 380, "bandplanHighHz": 490000000 }] }
]A trunked system shares a handful of voice frequencies among many talkgroups. A control channel
continuously announces which talkgroup is being given (granted) which frequency, and the recorder
follows those grants. A system is recorded only when it is enabled and has an enabled site
with at least one control channel. A system with several sites, each with its own control channel,
is still one entry: one short name, one folder, one talkgroup file. (Trunk Recorder makes each site
a system of its own.)
Keys for every trunked system
| Key | Required | Default | Type | Description |
|---|---|---|---|---|
shortName |
"sys1" |
string | The system's identity: its recordings folder, the short_name in call JSON, and how plugins know it. Every system, trunked or conventional, enabled or not, needs its own. Keep it to letters, digits, - and _ |
|
name |
"" |
string | What people call it ("County Public Safety"), for display | |
id |
given | integer | The system's number: given when the config is read, the same through renames, never another system's (trunked and conventional are numbered together). What the store keeps its calls by, and what systemsOff and plugins know it by. Leave it to the recorder |
|
fcc |
{} |
object | Optional: who is licensed on each of its frequencies. See FCC licenses | |
share |
false |
bool | Share it with the community directory while it records. See Sharing with the directory | |
directory |
none | object | Set by its first share (or an import from the directory): the directory's record of it, { id }. Shares land on that record. What changes as it's shared (the record's version, when it was last shared) is kept in the store, so sharing doesn't change the config again |
|
type |
"p25" |
string | "p25", "smartnet", "dmr", "nxdn", "edacs" or "ltr" (any case). Anything else is refused when the config is read |
|
enabled |
true |
bool | false keeps it in the config without recording it |
|
sites |
[] |
array | Where it is recorded from: one entry per site. See Keys for each site | |
preferredSite |
"" |
string | Multi-site: a site's name (a site with none: the system's shortName), the one to keep calls from for the talkgroups whose row names no Preferred Site or Preferred NAC. See Multi-site |
|
unitNames |
empty | object | Which names the system's radios go by. See Unit names | |
receiveOn |
[] |
array | The sources its control channels and voice channels may be received on, by label ("RTL-SDR SN 200", as the dashboard names a source: the radio, wherever it is in sources). Empty: any source that reaches a channel. A label that isn't one of the sources' leaves it out of a run (the rest records; the log and the dashboard say why, naming the sources there are). A source's label edited in Setup (its serial, address or args) is followed here. See How channels are shared out |
|
keys |
"" |
string | P25: the encryption keys it decrypts with, a key source's name (desktop app only; not in the interface). See Encryption keys | |
recording |
{} |
object | This system's own call rules; a rule left out follows the global recording. See recording.md |
|
plugins |
{} |
object | This system's plugin settings, by plugin id. See plugins.md | |
pluginDelays |
[] |
array | How long plugins wait for this system's calls (all of them, some talkgroups', some plugins'). See plugins.md | |
signals |
[] |
array | The tone signals it sends (pages, alert tones, digit strings, Morse IDs), by id. See Signals |
Signals
Each entry is a tone signal the system sends: a page (two tones), an alert tone, a warble, a DTMF string,
a Morse ID. Its id is unique within the system; elsewhere it's written with the system first
(CLMRN:CSP_FIRE). A call that carries one lists it in its JSON's signals, and the moment it's heard
it's logged, shown in the dashboard's event feed, and named to plugins (topic tone_pattern). Signals
are edited in Setup, in the system's Signals, or added from the Tones card at the bottom of the
system's page on the Radio system tab (Add on a pattern heard); ▶ plays one in the browser.
Conventional systems have them too. Start refuses a signal it can't use (no id, an id used twice, a
pattern it doesn't know, a page without its two tones). See Signals.
| Key | Default | Type | Description |
|---|---|---|---|
id |
string | Its id: letters, digits, _ and - (CSP_FIRE) |
|
name |
"" |
string | What people call it ("Station 4 page"); empty: its id |
pattern |
string | As the call JSON's tone_patterns: two_tone, long, hi_low, pulsed, digits, morse, sequence or beep |
|
tonesHz |
[] |
array | Its tones, Hz, in order (two-tone: A then B) |
digits |
"" |
string | Digit strings: the digits. Morse: the text (WRV713, either case) |
knox |
false |
bool | Digit strings: sent as KNOX tones (DTMF otherwise) |
lengthsS |
[] |
array | Each tone's length, seconds: what ▶ plays (not matched on) |
extraTolerancePct |
0 |
number | How much further than usual a heard tone may be from tonesHz, % of the tone. Usually it's within 1.5 % when found in the audio (P25 Phase 1, analog), and within 15.7 Hz + 0.5 % when a P25 Phase 2 tone frame names it (they name tones on a 31.25 Hz grid); this adds to both |
talkgroups |
[] |
array | Talkgroups it's sent on: numbers, ranges (1000-1099) and patterns (507*). Empty: any |
"signals": [
{ "id": "NORWALK_EMS", "name": "Norwalk EMS page", "pattern": "two_tone", "tonesHz": [788.5, 879.0], "lengthsS": [1, 3], "talkgroups": ["20341"] },
{ "id": "SIREN_SIGNAL_1", "name": "Daily siren test", "pattern": "digits", "digits": "091363", "talkgroups": ["3"] }
]A pattern is told once nothing can add to it: a second after its last tone (a page about a second after its B tone ends; a DTMF string or Morse ID a second after its last digit or letter). A call heard on several sites of one system is told once, from the copy whose audio is played.
FCC licenses
fcc (a system's, or a conventional system's) says who is licensed on each of
its frequencies, keyed by frequency in Hz (on the 6.25 kHz channel raster, as a string). A system
can hold several licenses, and a conventional system can mix licensees, so each frequency has its
own. It's optional and for reference; plugins are told it.
"fcc": {
"857987500": { "callSign": "WPXT459", "name": "DISTRICT OF COLUMBIA", "from": "lookup" },
"859087500": { "callSign": "KNJA391", "from": "air" }
}| Key | Required | Default | Type | Description |
|---|---|---|---|---|
callSign |
✓ | string | The license's call sign | |
name |
"" |
string | Who holds it, as the FCC has it | |
from |
"user" |
string | "user" (typed in; never replaced), "air" (heard: a Motorola base station ID) or "lookup" (Identify) |
The recorder fills it as it hears Motorola P25 base station IDs: a control channel's, for each channel it names, and a voice channel's for itself. A call sign heard replaces a lookup's (keeping its name when it's the same call sign), never yours. Identify on the system's card looks up licensees near you, and names call signs heard on the air (sending only the call signs). See P25.
The call sign that names the system (plugins' fcc_call_sign) is its control channel's, else the
one on the most of its frequencies.
Sharing with the directory
With share on (Share with the directory in the system's Basics), the
recorder shares the system with the community directory at
trunkrecorder.pro/directory while it records. Only P25, SmartNet,
DMR and NXDN systems can be shared for now, and only once the system has an FCC call sign in its
fcc map: one heard on the air (Motorola P25), found by Identify, or typed.
Switching Share on without one opens Identify: Share turns on only if a call sign is kept. A share set in
the file waits for one.
What it sends is what the radio heard of the system:
- each site that's decoded: its identity, control channels, modulation, band plan, and the neighbours it announces;
- the voice channels granted there, with how many grants, and of those how many no source here covered (out of band);
- the talkgroups granted: their numbers, how many grants, at which sites, whether encrypted;
- call signs heard on the air (the
fccentriesfromthe air).
It doesn't send talkgroup names, descriptions, tags or groups, anything typed or looked up, radio IDs,
aliases, audio, keys, or a location. Each share carries an anonymous ID for the install (kept in the data
folder as directory-recorder-id; the browser build keeps its own).
It first shares after the system has been decoded for 5 minutes, then again when it hears a talkgroup or
voice channel it hadn't (at most once an hour), and otherwise once a day. A failed share is tried again
later, waiting longer each time (up to 6 hours). Setup shows when it last shared, or why it couldn't, with
a link to the system's page in the directory. The directory's answer is kept as directory and each site's
directoryId, so later shares, and other recorders hearing other sites, build the same record.
Keys for each site
| Key | Required | Default | Type | Description |
|---|---|---|---|---|
name |
the system's shortName |
string | The site's name, unique in its system: what the talkgroup file's Preferred Site names, the site in call JSON and the log. Leave it out for a system of one site |
|
enabled |
true |
bool | false keeps the site without recording from it (Record on its card) |
|
id |
given | integer | The site's number: given when the config is read, the same through renames, never another site's (any system's). Plugins know the site by it. Leave it to the recorder | |
directoryId |
"" |
string | Set by sharing: the directory's ID for the site | |
controlChannelsHz |
[] |
array of numbers | P25 and SmartNet: the control channel and its alternates, Hz. The recorder hunts through them, moving on when one goes quiet for 5 s. DMR and NXDN: every frequency listed is watched at once (NXDN Type-D: the repeaters) | |
expect |
{} |
object | Site lock: only follow a control channel with this identity. See Site lock | |
voiceChannelsHz |
[] |
array of numbers | Voice channels: what Find my system heard, or ones you list (Setup's Voice channels). Used only to place Auto sources so they cover them too (with a DMR or NXDN site's lcnTableHz); nothing listens to one until a grant names it |
The protocol keys below are a site's too, except defaultMode (SmartNet) and nxdnType (NXDN),
which are the system's.
P25 and SmartNet
| Key | Required | Default | Type | Description |
|---|---|---|---|---|
modulation |
"auto" |
string | "auto": detect it — both receivers run until one clearly decodes better (a few seconds), then only that one, on each channel; detected again when the control channel moves or after 10 s without a frame. "qpsk": CQPSK / LSM simulcast only. "fsk4": C4FM only (any case; anything else is refused when the config is read). The log says what was detected; set the one your system uses if you know it |
P25 Phase 2 voice needs no setting: a Phase 2 grant is followed as Phase 2.
SmartNet
| Key | Required | Default | Type | Description |
|---|---|---|---|---|
bandplan |
"" (= 800_standard) |
string | "800_standard", "800_reband", "800_splinter", "900" or "400_custom" (VHF, UHF and OBT systems). Trunk Recorder's spellings 800_domestic, 800_rebanded, 800_domestic_splinter and obt work too, as does any name starting 400 |
|
bandplanBaseHz |
with 400_custom |
number | Frequency of channel number bandplanOffset, Hz |
|
bandplanSpacingHz |
with 400_custom |
number | Channel spacing, Hz | |
bandplanOffset |
0 |
integer | The first channel number | |
bandplanHighHz |
with 400_custom |
number | Top of the band, Hz. Must be above bandplanBaseHz |
|
defaultMode |
"digital" |
string | "analog": a talkgroup never seen granted before is recorded as analog FM. "digital" (or ""): as P25 digital. Any other value is refused |
Find my system fills in the four 400_custom numbers for SmartNet OBT systems.
DMR
| Key | Required | Default | Type | Description |
|---|---|---|---|---|
dmrChannelsHz |
[] |
array of numbers | Voice frequencies to watch besides the control channels, Hz (Trunk Recorder's channels; for Capacity Plus, every repeater of the site). Each must be inside a source |
|
lcnTableHz |
{} |
object | Logical channel number → frequency, Hz: { "101": 452275000 } (Trunk Recorder's lcnTable). Wins over channels learned from the air; channels left out are learned |
|
colorCode |
null |
integer or null | Only this colour code, 0–15. null: the control channel's |
Use colorCode to tell DMR sites apart, and list the sites of one system under it. A Tier III or
Capacity Max site also states a network and site (its System Identity Code's), which expect can
lock: { "network": 12, "site": 4 }. A Hytera XPT site's repeaters may each have their own
colour code: leave colorCode empty and every listed frequency is taken as the site's.
NXDN
| Key | Required | Default | Type | Description |
|---|---|---|---|---|
nxdnType |
"typeC" |
string | "typeC": a control channel assigns calls to channels (Kenwood NEXEDGE, Icom IDAS Type-C). "typeD": IDAS distributed trunking with no control channel; list every repeater in controlChannelsHz |
|
nxdnRate |
"nxdn48" |
string | The control channel's rate (Type-D: the repeaters'): "nxdn48" ("48", "4800"; 4800 bps, 6.25 kHz) or "nxdn96" ("96", "9600"; 9600 bps, 12.5 kHz). Voice channels go at the rate each grant names |
|
nxdnChannelsHz |
[] |
array of numbers | Voice frequencies to watch besides the control channels, Hz. A grant to a channel number not in lcnTableHz is learned when its call comes up on one of them. Each must be inside a source |
|
lcnTableHz |
{} |
object | Channel number → frequency, Hz: { "12": 451118750 } (RadioReference lists them as LCNs for many systems). Wins over channels learned from the air. Not needed when the site uses Direct Frequency Assignment. Type-D: repeater number → frequency |
|
ran |
null |
integer or null | Only this RAN, 0–63. null: the control channel's |
An NXDN Type-C grant names a channel number. Its frequency comes from lcnTableHz; from the grant
itself when the site uses Direct Frequency Assignment; or is learned when the granted group's call
comes up on a frequency in nxdnChannelsHz. Until then the grant is logged as "frequency not known
yet", and the dashboard lists the channel numbers still unknown. Learned tables are kept per site
in the store.
EDACS
EDACS Standard and Networked sites (GE / Ericsson / Harris), with analog FM and ProVoice voice. Extended Addressing (EA) sites aren't decoded yet.
| Key | Required | Default | Type | Description |
|---|---|---|---|---|
lcnTableHz |
✓ | {} |
object | The site's channel list: LCN (1–25) → frequency, Hz, { "1": 856187500, "3": 857712500 }. RadioReference lists each site's channels with their LCNs |
esk |
false |
boolean | The system scrambles its control channel with ESK 0xA0 (some Harris systems): its messages don't decode without it |
The control channel grants each call a channel number (LCN) and says whether its voice is analog
or ProVoice; lcnTableHz turns the number into a frequency. Every frequency of the site (its
controlChannelsHz and lcnTableHz) is watched at once, so the control channel is found wherever
the site has moved it, and the list is checked against the air: when a call is assigned an LCN,
the carrier that keys just then is that channel. Once three calls agree, the LCN is that frequency,
whatever the list says, and the log says so ("LCN 4 is 860.1125 MHz on the air, not 857.0375 MHz
as the channel list has it"); what was learned is kept in the store
for the next start. Only listed frequencies are watched: a call on an LCN whose frequency is in
neither list is logged once and not recorded, so add the frequency to lcnTableHz. A grant to the frequency the control channel is on is never
followed, whichever LCN it names. A site ID that disagrees with the list's numbers corrects them only
once three in a row agree. The site lock (expect) compares the site number the control channel
announces (site).
On an analog call, the 9600 baud signalling burst at the start of each transmission (on the voice channel) is left out of the audio.
Groups are AFS numbers, written in decimal in the talkgroup file (RadioReference's DEC column:
AFS 03-091 is 457); radios are logical IDs (LIDs). A talkgroup marked DE (digital, encrypted) is
skipped as encrypted. ProVoice is decoded with the same vocoder as P25 Phase 1 (IMBE); the call JSON
says "audio_type": "digital", analog calls "analog".
LTR
LTR Standard, LTR-Net and Passport sites (E.F. Johnson's Logic Trunked Radio), with analog FM voice. Which of the three a site is comes from its words; there's nothing to set.
| Key | Required | Default | Type | Description |
|---|---|---|---|---|
controlChannelsHz |
✓ | array of numbers | Every repeater of the site, Hz. An LTR site has no control channel: each repeater is watched | |
lcnTableHz |
{} |
object | Each repeater's logical channel number → frequency, Hz, { "1": 851012500, "2": 851512500 } (RadioReference lists them in LCN order). LCNs 1–20 (Passport's up to 2047). A repeater left out is learned from the air. Its frequencies are watched too |
Each repeater sends 300 baud status words under its voice, and alone in a short idle burst every few seconds. A word names the call's talkgroup and the LCN it's on, which needn't be the repeater it's heard on: a home repeater tells its idle radios where their group went. A call is recorded on the LCN its words name, as analog FM; the data under the voice is kept out of the audio by its high-pass, as a CTCSS tone is.
An LCN not in lcnTableHz is learned: a repeater's idle words name its own LCN, and its calls'
words mostly do. Until a call's LCN is known it's logged ("Talkgroup 1-05-123 is on LCN 5, whose
frequency isn't known yet"), and the dashboard lists the LCNs still unknown. What was learned is
kept in the store for the next start.
Talkgroups are numbered as scanners write them. An LTR talkgroup A-HH-GGG (area, home repeater,
group, as RadioReference lists it) is AHHGGG in the talkgroup file: 1-05-123 is 105123, 0-02-033
is 2033. A Passport talkgroup is its number. LTR-Net's unique radio IDs are logged as
registrations, and Passport's radio IDs name the talker. LTR-Net and Passport announce a site
number. The dashboard's Decode page shows each repeater, the LCN it is and its call.
The decoder follows the layouts RadioReference and sdrtrunk document. It hasn't heard a real LTR system yet (#267): a capture of one is very welcome.
Site lock (expect)
Only follow a control channel that announces this identity. Each site has its own. What happens when one doesn't match, and why the file's numbers are decimal while Setup shows hex, are in Site lock.
| Key | Required | Default | Type | Description |
|---|---|---|---|---|
nac |
(any) | integer | P25 NAC | |
wacn |
(any) | integer | P25 WACN | |
sysId |
(any) | integer | P25 or SmartNet System ID; NXDN Type-C system code | |
rfss |
(any) | integer | P25 RFSS | |
site |
(any) | integer | P25 site; SmartNet site (when the system sends it); NXDN Type-C site code; DMR Tier III site; EDACS site; LTR-Net or Passport site | |
colorCode |
(any) | integer | DMR colour code | |
network |
(any) | integer | DMR Tier III network (its System Identity Code's) | |
ran |
(any) | integer | NXDN RAN |
Values are plain decimal numbers in the file: NAC 0x443 is "nac": 1091.
Only the fields a protocol announces are compared:
- P25:
nac,wacn,sysId,rfssandsite. - SmartNet:
sysIdandsite. Locksiteonly if the system sends it (OBT systems do), otherwise grants wait for it forever. - NXDN Type-C:
sysIdandsite, from the site's SITE_INFO, andran. NXDN Type-D:ran. - EDACS:
site. - LTR:
site(LTR-Net and Passport only; LTR Standard names none, so Setup offers no lock). - DMR:
colorCode; Tier III and Capacity Max alsonetworkandsite. Setup's Site lock has no DMR fields: the site's owncolorCode(or NXDN'sran) keeps sites apart.
Multi-site
All the sites listed under one system are copies of each other, and only those. A call heard on
several of them is saved once (recording.dropDuplicateCalls), keeping the best copy, or the
talkgroup file's Preferred Site / Preferred NAC, or else the system's preferredSite. How
copies are matched and which is kept are in
Calls heard on several sites.
Encryption keys (keys)
Experimental. If you are authorized to monitor an encrypted P25 system and hold its keys, the recorder can decrypt its voice, P25 Phase 1 and Phase 2. DMR and NXDN calls stay encrypted.
The keys live in a file of their own, never in the config, which the interface reads and edits. The
config's top-level keys names each such file once, as a key source, and each system that
decrypts names its source in its own keys (systems on one county's radios share one):
{
"keys": { "county": { "file": "county.json" } },
"systems": [{ "shortName": "fire", "keys": "county", ... }, { "shortName": "pd", "keys": "county", ... }]
}| Key source key | Description |
|---|---|
file |
A keys file (below) or a KFDtool key container, absolute or relative to the config file's folder. Which it is, is read from the file |
passwordFile |
A container's password, in a file of its own. See Keys in a KFDtool container |
A config from before key sources, whose systems named their keys file in keys, is read as one source
per file, named after it.
A keys file:
{ "keys": [
{ "algId": "0xAA", "keyId": "0x1B50", "key": "1234567890" },
{ "algId": "0x84", "keyId": "0x0002", "key": "<64 hex digits>" },
{ "algId": "0x84", "key": "<64 hex digits>", "talkgroups": [1201, 1202] }
]}| Key | Description |
|---|---|
algId |
The algorithm: 0xAA ADP, 0x81 DES-OFB, 0x83 3DES, 0x89 AES-128, 0x84 AES-256. Hex in a string, or a number |
keyId |
The key ID the radios send. Hex in a string, or a number |
key |
The key in hex, exactly as long as the algorithm needs: ADP 10 digits, DES 16, AES-128 32, 3DES 48, AES-256 64. Spaces are allowed. A shorter key is an error, never padded |
talkgroups |
Optional. Use this key on these talkgroups whatever key ID the air names (or only under its keyId, if it gives one). Tried before the keys matched by key ID |
- The file is read when recording starts. After editing it, stop and start recording. A file that can't be read, or a key that is wrong, stops the start with a message saying which key and what to fix. The key itself is never shown, logged or sent to plugins.
- Make the file readable only by you (
chmod 600 keys.json). The log warns when other users can read it. - A system with keys records its encrypted P25 calls, even with
recordEncryptedoff, because the key ID only arrives with the voice. A call whose key isn't in the file is then left out, as an encrypted call always is. One that was decrypted is saved with"decrypted": 1in its JSON and can be played in Listen. - A call joined late, or one whose encryption sync was lost to a fade, is decrypted from the next sync on, and the voice just before that sync too: at most the frames lost with the sync are missing.
- The talkgroup page on the Radio dashboard lists the ciphers heard (algorithm and key ID), which tells you which keys a talkgroup needs.
Keys in a KFDtool container
A key source's file can be a KFDtool key container (.ekc), the file KFDtool exports, instead of a
JSON file. It is encrypted with its own password, which goes in a separate file named by passwordFile:
"keys": { "county": { "file": "county.ekc", "passwordFile": "/run/secrets/county-password" } }- The password file holds the password on its first line. On Unix it must not be readable by
others (
chmod 600), except under/run/secrets, where the container runtime sets the modes; otherwise the start is refused. Kept apart from the container (a Docker or systemd secret), it means the keys are never in the clear on disk. - Every voice key in the container is used by key ID on any talkgroup. Key-encryption keys, and algorithms that can't be decrypted (DES-XL), are listed in the log and left out; the rest still load. A container with the wrong password, or a damaged one, stops the start.
passwordFilewith a JSON keys file is an error.
Unlocking a container in the interface
A container with no passwordFile doesn't stop recording from starting: its systems run without
keys, and Setup → Recording → Key containers asks for its password. Unlock decrypts it in
memory, and its systems decrypt from then on, calls in progress too (from their next encryption
sync). Lock forgets the keys and they stop at once. The password is never saved or logged.
- The keys last until Lock or until the app stops. After a restart, a crash or an update, the
container is locked again until someone types the password, and its encrypted calls are left
out as any encrypted call is. Use
passwordFilefor a recorder that must decrypt unattended. - Anyone who can open the interface with control access can unlock and lock it (with
signing in on, only a
controluser). The interface is plain HTTP, so a password typed on another computer crosses the network unencrypted; by default the interface is only reachable from the recorder's own computer (server.bind).
Talkgroup file
A system's talkgroups are a Trunk Recorder talkgroup file, kept in the store, not in the config. Setup loads it (a CSV or a RadioReference paste) and Download exports it. A conventional system has its own, which names the talkgroups its P25, DMR and NXDN channels hear. The format and its columns are in Talkgroups and units. Changes apply at once, even while recording.
Unit names
unitNames says how a system's own names for its radios combine with talker aliases heard over
the air. Each trunked and conventional system has its own. The names themselves (Trunk Recorder's
unit tags file) aren't in the config: like talkgroups, they're kept in the recorder's store, loaded
in Setup or named one at a time on a radio's page
(Unit names).
"unitNames": { "mode": "user" }| Key | Required | Default | Type | Description |
|---|---|---|---|---|
mode |
"user" |
string | "user": your names first, then talker aliases heard. "ota": aliases heard first. "user_only": only your names. "none": no names. Any other value is refused |
Talker aliases heard over the air are kept in the store.