Docs · v0.5.3

Several systems and sites

This page explains how Trunk Recorder Pro records several trunked systems at once, or several sites of one system: how they share your radios, how a site lock keeps each one on the right control channel, and how a call heard on more than one site is saved once. Every key is listed in the trunked systems reference.

Several systems

One recorder can follow any number of trunked systems, in any mix of P25, SmartNet, EDACS, DMR and NXDN, along with conventional channels. Each gets its own card under Setup → Systems, with its own:

  • Short name: its recordings folder, and how plugins know it. Two systems can't share one ("Two systems are named "…" — each needs its own short name").
  • talkgroup file and unit names;
  • Sites: each a control channel to follow, with its modulation and site lock;
  • Plugins: its own plugin settings (those its plugins let a system set) and plugin delays;
  • Recording: its own call rules and what it keeps, where they differ from the Recording tab's.

Record on the card switches a system off without removing it.

The systems share your sources and the pool of recorders. Each control channel runs on whichever source covers it, and each call on whichever source covers its voice channel, so one wideband radio can serve several systems, or several radios one system. A source set to Auto centres itself over a site that the sources before it don't cover. On each site's card, chips say which source carries its control channel and how many of its voice channels are covered. See Radios.

Several sites of one system

A large P25, SmartNet or EDACS system has several sites, each with its own control channel and voice channels, covering a different area. To record more than one, add each as a site of the same system: on its card, under Sites, Add site, then give the new site its control channels and lock it to its site. The system's talkgroup file, unit names and call rules apply to every site. So do a plugin's settings, except those the plugin lets a site set again (an uploader's account for that site): each site has a row on the system's plugin settings, and Sites on a plugin's card in Setup → Plugins turns the plugin off for one. A call's JSON sites lists every site it was recorded on, the saved copy's first. See Plugins.

Each site is a folded card with its name, a Record switch, its control channels and the chips saying whether a source covers them. Open it for its modulation, its protocol's channel fields and its Site lock. A site's Site name is how the talkgroup file's Preferred Site names it, and what calls and the log say for site; left empty, it's the system's short name.

The quickest way: set up one site with Find my system, then add its neighbours. A P25 control channel announces its neighbouring sites, and the recorder offers them in two places:

  • in Find my system, under Neighbouring sites in its checklist, each with an Add button;
  • while recording, in the Neighbouring sites panel in a system's detail on the Decode page (Not recorded), each with an Add button. The new site records from the next Start, if a source covers it.

A site added this way becomes a site of its system (a new system, if it isn't set up), with its control channel, a site lock (WACN, System ID, RFSS and site) and the modulation of a site you already have. Find my system can also add a control channel it found as a site of a system, or put it in place of one of a system's sites.

Make them one system. When two systems set up apart announce the same system on the air (P25: the same WACN and System ID; SmartNet: System ID; NXDN Type-C: system code), each card says so, with Make them one system. The other system's sites move to this one, which keeps its own talkgroup file and settings; the other's recordings stay on disk. Plugin settings a site can have of its own (an uploader's system ID, say) go with the sites that move, and a plugin that was off for the other system stays off for them. Before it goes ahead it names whatever else of the other's is dropped.

Site lock

A site lock tells a site to follow only a control channel that announces a particular identity. Without one, a site follows whatever it decodes on the frequencies you gave it, which goes wrong when a neighbouring site, or another system, is on or near one of them.

It's under Site lock at the bottom of each site's card. Fill in only what you need; an empty field matches anything. Which fields there are depends on what the protocol announces (P25 has all five: NAC, WACN, System ID, RFSS and Site; SmartNet, NXDN Type-C and EDACS fewer; DMR and NXDN Type-D none in Setup, where colour code and RAN keep their sites apart). Each protocol's fields are listed in Site lock.

What happens:

  • A control channel that announces something different isn't followed. Its grants are ignored, the recorder moves on to the next control channel in the system's list, and the log says why ("Control channel 857.98750 MHz is not this system: NAC 2A3 (expected 293)"). The Decode page marks the site red with the same reason ("Another system's control channel: NAC 2A3 (expected 293)").
  • Grants wait until every locked field has been heard. The site number comes in a broadcast every few seconds, so the first grants after starting may be held. A call still going is granted again.
  • Clear the lock removes it.

Hex in Setup, decimal in the config file

Setup shows and takes NAC, WACN and System ID in hex, the way RadioReference and the dashboard show them. In the config file, expect holds plain JSON numbers, which are decimal:

"expect": { "nac": 1091, "wacn": 781824, "sysId": 1093, "rfss": 1, "site": 3 }

is NAC 443, WACN BEE00, System ID 445, site 1-3. If you edit the file by hand, convert first; a hex value typed as decimal is a different number, and the system will refuse its own control channel. (trunk-pro replay --system takes them in hex.)

Calls heard on several sites

On a system with several sites, a call is usually granted on every site that has radios on its talkgroup. Recording each site, you'd get the same call several times. By default it's saved once.

How it works. Calls on two sites of the same system are copies of each other when they're on the same talkgroup and began within 3 seconds of each other, one from each site. Every copy is recorded. When the last one ends, the best copy is saved. Another copy is dropped only when the saved one holds all of it: the same time (give or take 3 seconds), the same talkers, and decoded at least as well (90% will do for the talkgroup's preferred site). Anything else is saved too: better a duplicate than a transmission lost. The log says which was dropped: "TG 101 FD Disp was heard on east and west: saved east's copy". Every copy saved carries the same transmission_id in its call JSON.

Conversations or transmissions. A call is usually the talkgroup's conversation: its transmissions, one talker after another, until it has been quiet for the call timeout. Sites don't always agree on that: one may keep a voice channel through a whole conversation while another grants each transmission a channel of its own, so their copies don't line up and one site's long call holds several of the other's. Turn Conversations off in the system's own Recording rules (conversationMode) and each transmission is a call of its own on every site: the best copy of each transmission is kept, whichever site heard it best. Setup suggests it for a system with several sites. Each call is then one talker, so there are more, shorter calls.

Recording every copy, rather than only the first (which is what Trunk Recorder does), means a site that fades mid-call, or whose voice channel no source covers, doesn't cost you the call.

The best copy is the one with the most cleanly decoded audio: voice frames that weren't lost, repeated or muted. A tie goes to the one with fewer corrected bit errors, then to the one that started first. If the best copy isn't kept (shorter than its site's Shortest call, s, say), the next best is tried.

Preferring a site. To prefer a site for every talkgroup whose row names none, or that has no row (say one site's antenna is better), choose it in Preferred site on the system's card (preferredSite, by the site's name). Its copy is kept as long as it has at least 90% of the best copy's clean audio, as below. A talkgroup's own Preferred Site or Preferred NAC comes first. To keep a talkgroup's calls from a particular site when it's heard well there, add a Preferred Site column to the talkgroup file with that site's name. Trunk Recorder's Preferred NAC column also works: the site's NAC, or its RFSS and site as RRRRssss (RFSS 1 site 23 is 10023), in decimal. The preferred site's copy is kept as long as it has at least 90% of the best copy's clean audio; below that, the best copy wins anyway.

On the dashboard. An active call heard on other sites shows also on … under its talkgroup on a system's page under Radio system (hover: "The same call on other sites of its system; the best copy is saved"). Live listening plays one site at a time for each talkgroup and stays with it until it goes quiet, however the sites divide the talkgroup into calls.

Turning it off. One copy per multi-site call on the Recording tab (recording.dropDuplicateCalls, on by default). Off, every site's copy is saved in the system's folder, each with its site in its call JSON.

Which sites count as one system

The sites listed under one system, and only those. Nothing is joined while recording from what the control channels announce, so list together:

  • DMR sites and NXDN Type-D sites, which announce no system identity;
  • two P25 systems linked by ISSI, which carry each other's talkgroups under different System IDs;
  • and keep a site out of a system by making it a system of its own.
{ "shortName": "capmax", "type": "dmr",
  "sites": [{ "name": "north", "controlChannelsHz": [452175000] },
            { "name": "south", "controlChannelsHz": [452525000] }] }

Importing a Trunk Recorder config makes the systems with multiSite on and one multiSiteSystemName one system, with a site each.

Common problems

A site keeps saying its control channel is another system's. The site lock doesn't match. Check which field the message names; if you edited the config by hand, check decimal versus hex.

The same call is saved twice. The two sites aren't sites of one system (set up apart: Make them one system, or move one under Sites), or One copy per multi-site call is off. Or the grants came more than 3 seconds apart.

Calls from one site never get kept. Its copies decode less cleanly than another site's. Add a Preferred Site for the talkgroups you want from it, or improve its reception.

A neighbouring site was added but records nothing. No source covers its control channel. Its site card shows CC → none.

This page on GitHub · written for v0.5.3