Docs · v0.5.3

Find my system

Find my system scans the air for trunked control channels, listens to the best one, and sets the system up from what it hears. This page explains how the scan works, what it reports, the buttons in the interface, and the trunk-pro survey command.

You don't need to know any frequencies to use it. It finds P25, SmartNet, EDACS, trunked DMR and NXDN control channels. For P25 and SmartNet it goes further: it listens to the control channel and learns the system's identity, band plan, alternate control channels, neighbouring sites and voice channels, and measures your radio's frequency error (and on an RTL-SDR, the best gain).

Where to find it

  • On Setup, Systems tab: the Find my system panel, below the list of systems. It is open when no systems are set up yet; otherwise press Show (and Hide to put it away).
  • In the setup guide's Find a system step, which runs the same scan with fewer choices. See Getting started.

A scan needs its radio to itself, to retune it. With a source, recording has to be stopped (Recording: stop it, or plug in a spare radio). A spare radio (one plugged in that no source uses) scans while the others keep recording: it's listed under Radio as (spare), and if it has a Bias-T, a Bias-T switch there powers an LNA for the scan.

It can also look for a system you know of, to tell which of its sites can be heard where you are. See Which sites can be heard here.

Running a scan

The panel's options:

  • Radio: which source scans, when you have more than one, or a spare radio.
  • Find the best gain (RTL-SDR only; adds about 15 seconds): try a range of gains once the control channel is found. See Gain.
  • Bands to scan: tick the bands to sweep. See Bands.

Press Scan. While it sweeps, the panel shows the band and where it is (Scanning 800 MHz · 852.008 MHz) and the step (Step 3/44). Once it has found a control channel and is listening to it, the panel shows a waterfall of what the radio hears, a checklist of what it has learned, and the signals it found. Stop ends it; Scan again starts over; Close puts the panel away when it's done.

In the browser only an RTL-SDR (and a capture file) can scan; every other kind of radio needs the desktop app. A capture file source can't be retuned, so it is looked at once, at its center frequency (Scans at its center: 858.3000 MHz); set the capture's center first.

Bands

Band Range, MHz Scanned by default
800 MHz 851–869 yes
700 MHz 769–775 yes
900 MHz 935–941 yes
UHF 450–470 yes
VHF 136–174 yes
UHF federal 380–420 no
UHF 420–450 420–450 no
Business UHF 451–470 no
Business VHF 150.8–174 no
T-band 470–512 no

These are the base stations' transmit frequencies, where control channels are. Bands are scanned in that order, so the most common P25 bands come first. Business UHF and VHF lie inside UHF and VHF; they're listed separately so you can scan just them (where DMR and NXDN systems mostly are). Where ticked bands overlap, the overlap is scanned once. Bands outside the radio's tuning range are skipped; if none is left, the scan stops with None of the chosen bands is in this radio's tuning range.

Ranges of your own

For anything the bands don't cover, type ranges under Other ranges, MHz, separated by commas: 420-450, 433.05-434.79. Each end is read as any frequency field reads one: under 10 000 it is MHz, otherwise Hz (851000000-852000000 is 851–852 MHz). They are scanned after the bands ticked, in the order given, less any part a band ticked already covers, and each signal found in one lists the range (433.05–434.79 MHz) as its band. Something that isn't a range is named under the field, and the scan waits until it is fixed. The browser remembers the bands and ranges a scan last started with, on Setup and in the setup guide alike. On the command line: --ranges 420-450,433.05-434.79.

How it finds control channels

A control channel never stops transmitting. Voice channels key up and down; a control channel is a carrier that is always there. The scan uses that.

The radio steps across each band. Each step uses 85 % of the radio's bandwidth (the edges roll off), and steps overlap by 25 kHz, so an RTL-SDR at 2.4 MSPS moves about 2 MHz at a time. At each step:

  1. Settle: the first samples after retuning are thrown away (30 ms on an RTL-SDR, 50 ms on a HackRF, 150 ms on a USRP or bladeRF, 200 ms on an Airspy, HydraSDR or SoapySDR device).
  2. Look for 0.35 seconds. For each ~1 kHz slice of the spectrum it takes a low percentile of the power over that time, so only carriers that stayed on the whole time stand out. A peak at least 4 dB over the local noise floor and 3.5 to 30 kHz wide is a candidate, up to 16 per step.
  3. Decode each candidate for 0.9 seconds with every receiver at once: P25 (C4FM and CQPSK), SmartNet, DMR, and NXDN at both 4800 and 9600 baud. A step with no candidates skips this.

So a step takes up to about 1.3 seconds, and the default bands take about a minute with an RTL-SDR at 2.4 MSPS.

What each candidate is called, from what decoded:

Shown as Means
Control channel P25 control channel: at least 2 control messages (TSBKs) passed their CRC
SmartNet control channel at least 3 good SmartNet control words (OSWs)
DMR control / rest channel DMR bursts whose control blocks say which kind of trunking it is
NXDN control channel an NXDN Type-C control channel: at least 2 good control messages (CAC)
EDACS control channel at least 3 good EDACS control messages; it gets no Listen or Add
P25 (voice / data) P25 frames, but no control messages: a voice channel or conventional P25
DMR (conventional / data) DMR bursts with no trunking control blocks
NXDN (conventional / voice) NXDN frames but no control channel
Other a continuous signal none of the receivers decoded

When the sweep is done, it picks the P25 or SmartNet control channel with the best signal (signal to noise, plus a bonus for the share of messages that decoded) and listens to it. It tunes the radio a little to one side of it (a fifth of the sample rate, at most 500 kHz) to keep it off the radio's center spike.

Trunked DMR and NXDN sites are found and can be added, but aren't listened to further: no identity beyond what the scan saw, no frequency correction, no gain search.

If there's no P25 or SmartNet control channel, the scan ends with one of:

  • Found 1 trunked DMR control / rest channel(s) — add one below. No P25 or SmartNet control channel.
  • P25, DMR or NXDN signals were found, but no control channel. Scan again, or add more bands.
  • No P25 or SmartNet control channel found. Check the antenna and gain, and add more bands.

What it reports

While listening, the checklist fills in:

  • Control channel: decoding 98 % of 412 messages, the modulation (C4FM, CQPSK, or 2FSK for SmartNet) and the signal to noise ratio.
  • System: for P25, the WACN, System ID and NAC, and the RFSS and site number. For SmartNet, the System ID.
  • Band plan: for P25, how many channel tables (IDEN messages) it has heard; the control channel broadcasts these, and they turn channel numbers into frequencies. For SmartNet, see SmartNet band plans.
  • Frequency correction: how far off the carrier was heard (Low by 1650 Hz), the Correction in ppm (-1.92 ppm) and, on an RTL-SDR, the Dongle figure, the whole number it takes. See Frequency correction.
  • Gain: trying settings..., then the gain it chose (28.0 dB (best of 7)), or no clear best; unchanged.
  • Alternate control channels the site announces.
  • Neighbouring sites it announces (P25), each with its site number and control channel, and an Add button.
  • Voice channels in use: every voice frequency it has seen a call granted on, noting when Phase 2 TDMA channels are among them. This list grows as people talk, so listening longer catches more.

Under Signals found is the list from the sweep: frequency (corrected by the measured ppm once known; hover for the uncorrected one), signal strength, what it is, its identity (NAC / System ID / site, DMR colour code, NXDN RAN), and the share of messages decoded. Show N other signals adds the ones nothing decoded.

Frequency correction

The control channel announces its own frequency, and base stations are locked to GPS or a rubidium clock, far better than any SDR's crystal. So the difference between where your radio hears the control channel and where it says it is, is your radio's error. The scan measures the carrier's offset (the figure counts from a second of it), re-centring its receiver on the carrier (up to three times) once it has averaged at least 1.5 seconds and finds it more than 250 Hz off, and reports the total correction to set: what the radio already had plus what it measured.

For SmartNet the "announced" frequency comes from the band plan it learned. On a VHF/UHF (OBT) plan, the control channel is assumed to sit on the 6.25 kHz channel raster, so the measurement is only right if your radio is less than about 3 kHz off to begin with.

Gain

On an RTL-SDR with Find the best gain on, once the control channel has decoded at least 20 messages and the scan has listened for 4 seconds, it steps through 19.7, 28.0, 33.8, 38.6, 42.1, 44.5 and 49.6 dB. At each gain it waits 0.3 seconds, then measures for 1.5 seconds: the signal to noise ratio, the share of control messages that decoded, and how many samples hit full scale.

It keeps the lowest gain within 1 dB of the best signal to noise ratio that decodes about as well as the best one, counting a gain that clips as 10 dB worse. Less gain leaves more headroom for strong signals nearby, so it doesn't pick more than it needs. If nothing stands out, it leaves the gain alone.

Without it, the scan uses the source's gain as set on the Radios tab.

SmartNet band plans

A P25 control channel broadcasts its band plan. A SmartNet control channel doesn't: it names channels only by number, and on VHF and UHF systems (OBT, "off band trunking") nothing on the air says which frequency a number is. Trunk Recorder Pro works it out by watching.

While the control channel grants channel number n, one carrier in the spectrum is up that is down when n is idle. For each channel number granted, the scan compares the spectrum while it is granted with the spectrum while it isn't; the slice that rises at least 6 dB is where that channel is. A few such channels, plus the number the control channel broadcasts for itself (at the frequency it's heard), fix a straight line from channel number to frequency. The spacing is snapped to a standard channel step.

If the line matches one of the standard plans (800 MHz standard, rebanded or splinter, or 900 MHz), it uses that. Otherwise it's an OBT plan, in Trunk Recorder's 400_custom terms: a base frequency, a spacing and the channel number the base belongs to (Motorola numbers OBT outbound channels from 380), plus the highest channel. The checklist shows it as learning — 2 of 5 granted channels located (this is channel 412), then for example 400_custom: channel 380 = 489.0875 MHz, 25 kHz steps.

Once the plan is known, the alternate control channels and every voice channel granted get a frequency, including ones outside the radio's view. It needs normal traffic: on WMATA, a UHF OBT system, it takes a minute or so. A quiet system takes longer.

See SmartNet for what the band plan settings mean.

Adding the system

When the control channel has announced its own frequency, a Ready to record banner says what it will set. Until everything is measured it also says Still measuring...; you can add the system then, but waiting until the checklist is done gets you the band plan, correction and gain.

The drop-down next to the button chooses as a new system, as a site of a system already set up, or replacing one of its sites. It picks the site that already has one of these control channels, if any, else a site of the system the control channel announces. The button reads Add this system, Add this site or Update it.

It sets:

  • the type (P25, or SmartNet with the learned band plan);
  • the control channels: the one it announced for itself first, then the alternates;
  • a site lock with the identity it announced (NAC, WACN, System ID, RFSS, site), so a control channel that turns out to be another system's isn't followed. See P25 and Multi-site;
  • the voice channels it saw (used to place radios; shown on the system card as Voice 14/16).

A new system gets a short name made from its identity. A site added to a system uses that system's talkgroup list.

And on the radio that scanned:

  • Correction, ppm (rounded to a whole number on an RTL-SDR);
  • on an RTL-SDR, the gain it found, with AGC off;
  • the center frequency (see below).

Center frequency choice

The scan picks a center that keeps the control channel in range and covers as many of the voice channels it saw as one radio can (then as many of the other control channels), off the radio's center spike and inside its guard band. The banner's Center figure says where, and Voice covered says how many of the voice channels seen are inside it (16/16). When one radio can't cover the system it adds System spans (4.2 MHz); then a second radio would catch the rest (see Radios). With no calls seen yet, it says No calls yet: centered on the control channel.

It won't move the radio if that would leave another system with no source covering its control channel. Then the message says source 1 unchanged (in use) — needs a source at 852.3000 MHz, and you add a radio there yourself.

Listen and Add

In the Signals found list:

  • Listen (P25 and SmartNet control channels) switches to listening to that one instead of the one the scan picked.
  • Add on a P25 control channel adds it as a system straight away, with the other control channels the scan found for the same site (same NAC, System ID, RFSS and site) and a site lock. Frequencies are rounded to the 6.25 kHz channel raster. It doesn't set the radio.
  • Add on a DMR control / rest channel adds a trunked DMR system with its colour code. For Capacity Plus, add the site's other repeaters under Site frequencies; for the others, the voice channels under Watched frequencies or Voice channels. See DMR.
  • Add on an NXDN control channel adds an NXDN Type-C system with its RAN; add its channel table or voice frequencies next. On an NXDN conventional signal it adds a conventional channel. See NXDN.
  • A signal already in a system shows in and that system's name instead.

Add on a neighbouring site adds it as a system of its own, locked to that site. It needs a source that covers its control channel.

You can still edit everything by hand afterwards on the Systems and Radios tabs.

Identify surveyed sites

Who holds the FCC license on a frequency names the system on it. Looking it up is optional, and nothing is sent until you ask. FCC licenses are tied to where the transmitters are, so it needs your location:

  • Use my location asks the browser. If you've already allowed this page, it fills in at once. Browsers share a location only with pages on HTTPS or localhost, so for an interface opened over the network by its address, find it instead.
  • Or find a place: a city ("Arlington, VA"), a ZIP code, or a latitude and longitude.
  • Or move the map so its circle is roughly where you are. The circle is 10 km across: only your general area is needed. The map comes from trunkrecorder.pro, the systems directory's.
  • Search radius sets how far: 10 to 150 km (50 by default). Wide-area systems can have towers 50 km or more away.

The frequencies and the location go to trunkrecorder.pro, which answers from the FCC's license database (Universal Licensing System) and keeps nothing. If you'd rather not share a location, leave it out: no lookup is made, and everything works exactly the same. This browser remembers the location and distance for next time.

There are three places to ask:

  • The setup guide: when choosing bands, turn on Look up FCC license holders and give the location. When the scan finds a system, the guide shows who it is Licensed to.
  • The survey (Systems tab): Identify surveyed sites, under the signals found. The Licensed to column then shows each signal's nearest licensee, its call sign, radio service and how far away and in which direction, plus up to four more. lapsed means no active license is nearby on that frequency, so these are expired or cancelled ones.
  • A system already set up (trunked or conventional): Identify on its card looks up its control, voice and repeater frequencies (a conventional system's channels), and shows the nearest licensee on each; Keep puts them in its FCC licenses. Call signs heard on the air with no licensee yet can be named without a location: only the call signs are sent.

What a lookup finds goes in the system's FCC licenses, by frequency: a frequency with nothing yet, or another lookup's, gets it; one with the same call sign heard on the air gets its licensee's name. Yours, and call signs heard on the air, are never replaced. A system added from the survey gets the licensees of its control and voice channels, and the control channel's as its name if it has none. Edit them in its FCC licenses; they are optional, and plugins are told them.

Which sites can be heard here

A system with many sites (a statewide P25 system, a DMR Connect Plus network, a RadioReference sites list with eighty rows) usually has only a few within reach. Find my system can check them on the air: it listens to each site's control channels and says which it heard. The check scans only those frequencies, not the bands.

Starting a check

  • A system you have: Check sites on its card in Setup → Systems. When the check is done, Turn off the N sites not heard (with the count) switches those sites off. They're not removed, so you can turn them back on in the site's settings. Turn on the N sites heard does the opposite, for sites that are off. Sites count as heard when they are Heard or Unconfirmed, and as not heard when they are Not heard or Another site; Not checked is neither.
  • A system from the directory: Check which I can hear in its import dialog. When the check is done, Import the sites heard… opens the import again with only those sites ticked.
  • A RadioReference sites export (trs_sites_NNNN.csv, from a system's page): Setup → Systems → Import… takes the file. RadioReference doesn't say what kind of system it is, so choose under Kind of system. Near ticks only the sites within some miles of a city or ZIP code (found with the directory's place search). Then Check which I can hear, or Add it.
  • A licensed system no one has shared: its import starts the check on its licensed frequencies. See Adding a system from the directory.

While recording, a check starts on a spare radio if there is one. Otherwise it waits in the panel for you to stop recording, or to plug one in.

How it checks

Each site is checked on its control channels. A site without one (DMR Capacity Plus, an EDACS site known by its channel list) is checked on its channels. The frequencies are grouped into as few tunings of the radio as cover them all, each one off the radio's DC spike. An RTL-SDR covers about 2 MHz at a time, so it may need several. A bladeRF or USRP at a high sample rate may cover them all at once.

At each tuning, every frequency gets a probe, whether or not a carrier stands out there. Only the receivers for the system's kind run, which costs about a third of the CPU of running all of them. On a wide radio the probes are shared out over half the computer's cores, so a check beside the recording leaves the rest for the recorder. A carrier meter also records how much of the time each frequency's carrier was up.

Listen to each frequency for sets how long each tuning is listened to. The default is 5 seconds, which is enough for a control channel to say who it is. DMR defaults to 1 minute, because a site without a control channel may only key up for a call. Listen longer to be surer; the choices run from 2 seconds to 10 minutes.

What it says about each site

Here Means
Heard Its control channel decodes as the system's kind: P25, SmartNet, EDACS or NXDN control, or DMR on any of its frequencies. Where the site's lock gives them, the identity it announces matches: P25's NAC, RFSS and site; EDACS's site; NXDN's system and site; DMR's colour code.
Another site A control channel decodes on its frequency, but announces another site.
Unconfirmed Something is there that doesn't confirm the site: a carrier that didn't decode, a decode only on a frequency other sites list too, or a different kind of DMR trunking than the rest of the system's sites (a neighbour on the frequency).
Not heard Nothing on its frequencies.
Not checked Not listened to yet, or outside what the radio tunes.

The sites are judged together. A frequency several sites list confirms none of them unless the air says which site it is. A DMR system's kind of trunking is the one most of its sites decode as. Rows are edged green, yellow or red by how well the site decoded. Green is a clean decode on a signal at least 12 dB over the noise. Yellow is a decode with errors, a weak signal, or not as a control channel. Red is mostly failures.

When the check is done, Find my system goes on as after a scan: it listens to the best control channel it found among the frequencies checked, so the radio's frequency error, the band plan and the rest are measured too.

From the command line

trunk-pro survey runs the same scan with an RTL-SDR, or looks at a capture file, and prints what it finds as JSON lines. It doesn't change your config.

trunk-pro survey --serial 200 --bands 800,700 --seconds 30
trunk-pro survey --serial 91 --bands t-band --seconds 120
trunk-pro survey capture.cu8 --center 858300000 --rate 2400000

Every option (the bands, gain, a radio other than an RTL-SDR, --freqs to check particular frequencies, --identify) is in Command line: survey.

Progress goes to stderr (survey: scanning, survey: monitoring, source errors). Stdout gets one {"found": {...}} line per signal as it's found, with its freqHz, correctedHz, band ({"id", "loHz", "hiHz"}: the band or range it was found in, id null for a range of your own), snrDb, widthHz, kind (control, smartnet, edacs, dmrControl, nxdnControl, p25, dmr, nxdn, other), modulation, identity and decode counts. With --freqs, each frequency's line has targetHz (the frequency asked for) and up (the share of the time its carrier was up). The last line holds the system:

{"monitor": {...}, "suggest": {...}, "message": "", "wallS": 94.2}

monitor has everything the checklist shows. suggest is what Add this system would set: type, controlChannels, bandplan (SmartNet), ppm and ppmApply, gainDb, centerHz, voiceChannels, voiceCovered / voiceTotal, spanHz, and nac, sysId, wacn, rfss, site.

When it finds nothing

  • Check the antenna and the radio. The scan only sees what the radio hears. An antenna made for one band can be deaf on another; indoors, move it near a window or higher. Make sure no other program has the radio.
  • Check the gain. The scan sweeps with the source's gain as set on the Radios tab. Far too little and weak control channels never stand out; far too much and strong signals swamp the rest. Try the default, then a few dB either way.
  • Add more bands. Federal systems are often in UHF federal, trunked DMR outside the US often in UHF 420–450, some city systems in T-band, many DMR and NXDN systems in the business bands. None of those are scanned by default; anything no band covers, scan as a range of your own.
  • Scan again. A busy step, or a fade, can hide a control channel for a moment.
  • Look it up. Find the control channel on RadioReference and enter it by hand: Add a system on the Systems tab, or I know the control channel in the setup guide. See Getting started.
  • Found it but can't add it. The banner only appears once the control channel has announced its own frequency (and, for SmartNet, the band plan has been worked out from a few calls). Give it longer, or pick a stronger control channel with Listen.
  • Not every system can be found. A control channel that decodes too poorly to pass a few CRCs in 0.9 seconds shows as P25 (voice / data) or Other. Improve reception, or enter it by hand.

Messages you may see with a capture file: Set the capture's center frequency first., The capture ended before the scan finished., and ... MHz is outside the capture. A source whose sample rate is under 240 kHz can't scan (The source's sample rate is too low to scan.).

This page on GitHub · written for v0.5.3