Rebuilt From the Air, Part 14: The Audit Checklist — and the Errata for This Blog

Part 14 — the last — of Rebuilt From the Air, a 14-part postmortem series on the GopherTrunk decoders that passed every test and never matched a real radio — each diagnosed from a reference implementation or a reporter’s capture, rebuilt against independent decoders, and pinned to real air where a capture exists. Part 13 was about reading a capture before theorising about it. This closing part turns the series into three things you can use: a checklist for telling a real decoder from a fabricated one, a ledger of what is verified and what still waits for a recording, and the errata for the earlier posts on this blog that described the formats these decoders used to implement.

TL;DR: A fabricated decoder passes every test it has, because its test encoder shares its invented layout. Eight questions find one: is there an encoder you did not write; do two references agree, and where don’t they; are there literal vectors in the test file; does the fixture transmitter behave like a radio; is a real-air slice in CI; is the PDU shape the live FEC chain hands out pinned; do the fake servers enforce strictness; has anything judged the output. The ledger: MDC1200, FleetSync, CTCSS/DCS, AM and NXDN trunked voice are on-air verified, and P25 Phase 2 voice at the frame level; FLEX 1600 bps and NXDN voice, control channel and scrambler are capture-verified; LoRa, System Fusion, D-STAR and SmartNet are reference-pinned and wait for a recording. The errata corrects seven earlier posts and updates two finales’ open lists.

Key takeaways

  • Independence is the only test of a format. Every rebuild in this series was settled by something the project did not write — a reference encoder, a second decoder, a recording.
  • Verified is four different words. Synthetic-verified, reference-pinned, capture-verified and on-air verified are not interchangeable, and the ledger never rounds one up.
  • The open gates are recordings, not work. LoRa, System Fusion, D-STAR, multi-rate FLEX and SmartNet each wait on one capture.
  • A blog that documents a decoder inherits its bugs. Seven earlier posts described formats that never matched the air; this part is the index of the corrections.

Cheat sheet

   
Issue the series’ roll: #1143, #1184, #1220, #586, #1261, #1273, #1364, #1374
Symptom suites green for months; the first real radio or capture decodes nothing
Wrong theories weak signal, gain, ppm, encryption — and “the tests pass”
Real cause the decoder and its test encoder were written from one layout, and the layout was invented or misread
Fix rebuild against decoders proven on air; pin with literal vectors and an independent encoder; commit a real-air slice where one exists
Diagnostic the eight questions below
Status five rows on-air verified and a sixth at the frame level, four capture-verified, six still waiting on a recording — the ledger below

In this post

  • The four words — the ledger’s vocabulary.
  • The audit checklist — eight questions, each with the decoder that failed it.
  • The status ledger — sixteen rows, no rounding up.
  • The errata — seven posts corrected, and the open items that moved.
  • What we keep — the operating principle.

The four words

Part 1 defined four terms, and everything below uses them. None implies the next:

  • Synthetic-verified — it decodes what the project’s own encoder produced. That is consistency, which is all the self-consistent trap needs.
  • Reference-pinned — it matches literal output of an independent implementation proven on air.
  • Capture-verified — a recording of a real transmitter decodes offline, and a slice of it is committed.
  • On-air verified — an operator ran the live daemon against their own radios, it decoded, and they said so.

The audit checklist

SmartNet was the first decoder rebuilt from proven references. After this series the pattern is specific enough to audit for. Ask these of any decoder — especially one that “works”.

  1. Is there an encoder you did not write? MDC1200 is pinned on the reference encoder’s own 48 kHz audio, and GopherTrunk’s synthesiser was read by the reference decoder — both directions (Part 2). D-STAR’s header is pinned by the MMDVM firmware’s own txHeader output. The cost of having none is in the ledger: multi-rate FLEX has no independent encoder, so it stays synthetic-verified.
  2. Do two references agree — and do you know where they don’t? P25 Phase 2 was rebuilt against OP25 and SDRTrunk, which agree on every constant. LoRa was transcribed separately from gr-lora_sdr and LoRaPHY: identical on 2916 random cases, different only in padding-codeword content. When references do disagree, a capture referees: one reference’s literal per-frame order ranked the known NXDN scrambler key about 500th of 32768; the reseed schedule the captures settled ranked it first.
  3. Are there literal vectors in the test file? A golden vector typed from a reference fails when your constant drifts; one taken from your own encoder never does. PN44 is 4320 bits of hex. DCS code 023 is 0x763813, from published parity equations. SmartNet’s sync bits, interleave permutation and XOR masks are literals (Literal Vectors, Not Round-Trips).
  4. Does the fixture transmitter behave like a radio? Every synthetic DMR fixture laid bursts back to back like a repeater; a simplex handheld is off for 32.5 ms of every 60 ms frame, and direct mode never decoded. Real transmitters have noise before the key-up, repeat their headers — one radio sends its Voice LC Header ten times over 0.6 s — and carry random payload. They also use the right pulse: System Fusion fixtures built with the P25 modulator gave about 45 % dibit agreement and looked like a receiver bug.
  5. Is a real-air slice in CI? MDC1200, FleetSync, CTCSS, AM, NXDN voice and control channel, a P25 Phase 2 carrier and a Phase 2 call, and five FLEX frames each have one committed. So does the FM test tone that was filed as System Fusion — it pins a gate shut.
  6. Is the PDU shape the live FEC chain hands out pinned? The talker-alias fixtures came from another decoder’s 15-byte dumps. A live MAC PDU is 144 bits — a 16-byte vendor payload — and the fragment parsers sliced to the payload’s end, so each fragment carried one trailing byte that shifted the cipher region: RID parsed, name garbage, alias dropped. TestDispatcherPublishesRealMotorolaAliasAsReliable now carries the real PDUs through the air framer on 144-bit sub-frames.
  7. Do the fake servers enforce strictness? Not a decoder, the same trap. The SoapyRemote driver sent opcode 600 for “set antenna”; the upstream value is 501, and the fake server switched on the same wrong constant. The fake now fails any request whose body is not fully consumed, and TestOpenSetAntennaUsesUpstreamOpcode pins the numbers against upstream literals (Wire Protocols Without Schemas).
  8. Has anything judged the output? P25 Phase 2 had two references, literal vectors and a real-air slice, and the first live call still played as noise: 175 of 175 MAC PDUs, ten corrected bits over 115 voice bursts — and frames sent to the AMBE 3600x2400 vocoder when Phase 2 is AMBE+2 3600x2450. Every Phase 2 test used synthetic frames and none judged the audio. With clean FEC counters and noise for audio, read the pitch field b0 from the .raw before any DSP theory (Part 12).

The status ledger

One row per decoder, in the words above. “P” numbers are parts of this series; FleetSync’s story is Beyond Voice 4, AM’s is Squelch 7 and SmartNet’s is From Spec to Shipping 8. Every cell comes from the project’s engineering notes; a dash means they record nothing.

Decoder Rebuilt against Capture-verified? On-air verified? Open gate
MDC1200 · P2 the reference modem’s burst layouts, tone strings and encoder audio yes — a committed 0.7 s slice; the reporter’s clipped scanner recording replays yes, 28 Sep — eleven PTT ID bursts, unit 0x1777, 447.100 MHz none; #1220 closed on the reporter’s confirmation
FleetSync not a rebuild — the framer was right, the WAV reader was not yes — 5 of 6 (FS-I) and 8 of 8 (FS-II) bursts CRC-valid; two committed slices yes, 16 Sep — FS-I and FS-II decode live why two dongles stalled at the same instant in that run is not root-caused
CTCSS / DCS · P3 the EIA tone table; DCS against published parity equations and SDRangel’s alias tables CTCSS yes — real-air slices replayed at 2.4 MS/s yes, 24 Sep — Kenwood NX-300 / NX-5000 and a service monitor; DCS polarity pinned none recorded; 150.0 / 151.4 Hz and 023 / 047I open together by design
AM a new chain, nothing to rebuild yes — two slices of a 126.400 MHz capture pin squelch and carrier tracking yes, 29 Sep none recorded
FLEX 1600 bps · P4 multimon-ng’s framing, read for facts yes — five real-air frames decode to the pages that suite expects no live confirmation recorded a live paging run
FLEX 3200 / 6400 · P4 the same reference no — reference-derived and synthetic-verified only no a capture of a 929–932 MHz multi-rate channel
LoRa · P5 gr-lora_sdr and LoRaPHY, identical on 2916 random cases no no any real LoRa IQ capture
System Fusion · P6 MMDVMHost: five FICH vectors from its encoder; YSF2DMR’s silence pair no — the only capture so far was an FM test tone no a real DN-mode capture; only V/D mode 2 is decoded
NXDN voice · P7 MMDVMHost and DSD-FME constants yes — two slices: NXDN96 36 voice frames, NXDN48 56 the 21 Oct field run reports NXDN48/96 conventional holding through drift none recorded
NXDN control channel · P8 the same references yes — 214 of 214 CAC frames pass the CRC locked live in the 21 Oct trunked run VCALL_ASSGN is reference-pinned only: the capture is idle
NXDN trunked voice · P8 — — yes, 21 Oct — lock, grant follow, upload with TG / RID on a 10-channel system one call ended at the carrier tracker’s ±3 kHz bound; cause shown synthetically, unconfirmed on air
NXDN scrambler · P9 DSD-FME’s LFSR and the references’ CRC-6; the schedule settled by the captures yes — two known-key captures; the programmed key ranks first on both no the reporter’s live run with the key on a scan-list channel
D-STAR · P10 the MMDVM firmware’s air format: its txHeader output and null AMBE frame no no a real D-STAR capture
dPMR · P10 voice Golay corrected to mbelib’s code, pinned by MMDVMHost’s silence vectors no no a dPMR voice capture; the on-air interleave is still a placeholder
P25 Phase 2 · P11–12 OP25 and SDRTrunk, which agree on every constant; mbelib’s 3600x2450 decode for the vocoder yes — the SACCH MAC path on an idle carrier; the vocoder fix on 118 frames of a recorded live call at the frame level, 18 Nov — a live call framed and FEC-decoded cleanly, 175 of 175 MAC PDUs; its audio was noise until the vocoder fix the reporter’s run on the fixed build; a second call’s unexplained Golay corrections; a tap that framed nothing; ESS-B and two unnamed MAC opcodes; a talker alias from a live call; the #1273 reporter’s site
SmartNet OP25 and trunk-recorder no no the #1143 reporter’s 854.5625 MHz capture

The scrambler row needs one sentence: GopherTrunk decrypts only with keys the operator already holds, for systems they are authorised to monitor — there, a key the reporter programmed into their own radios.

the highest rung each decoder has reached reference-pinned capture-verified on-air verified LoRaSystem Fusion (YSF)D-STAR dPMR voice GolaySmartNetFLEX 3200 / 6400 * FLEX 1600 bpsNXDN conventional voiceNXDN control channel NXDN scrambler MDC1200 — 28 SepFleetSync — 16 SepCTCSS / DCS — 24 Sep AM — 29 SepNXDN trunked voice — 21 Oct P25 Phase 2 voice — frame level, 18 Nov * reference-derived, synthetic-verified only needs a recording to get here needs a live run — Phase 2 audio awaits one nothing moves a column to the right without evidence from outside the repository
Sixteen ledger rows by the highest rung reached: five on air and a sixth at the frame level, four on a capture, six still on references alone.

The errata

This series is also a correction. These posts described the formats the decoders implemented at the time; each now carries a dated update, and this is the index.

Earlier post What it described Corrected in
Beyond Voice 3 an MDC1200 receiver that fed the sliced tones to the sync hunt as data Part 2
Beyond Voice 6, FLEX half a mode code hunted after the sync marker, and one mode only Part 4
Beyond Voice 11, bit layer invented whitening, CRC, header, Hamming layout, interleaver and chip mapping Part 5
Beyond Voice 13 the YSF FICH codec; D-STAR’s sync words, header FEC and voice tables; dPMR’s voice Golay Part 6, Part 10
Protocol Decoders 6, NXDN half a 16-bit frame sync, a 32-dibit SACCH, no scrambler Part 7, 8, 9; dPMR in 10
Protocol Decoders 4, P25 End to End 7 a Golay-protected ISCH, alternating slots, a trellis → RS(24,16,9) MAC chain Part 11, Part 12

Two earlier finales listed open items that have since moved. From Beyond Voice, Part 14:

  • “FleetSync on a live Kenwood fleet” — on-air verified on 16 Sep: FS-I and FS-II both decode live in the reporter’s Kenwood lab. The list was out of date the day it ran.
  • “YSF’s FICH caller” — the functions it names no longer exist. The FICH model was fabricated; fich.go and fich_trellis.go are deleted, and the control channel grants from on-air FICH through an AirFramer, pinned failing-first by TestControlChannelGrantsFromOnAirFrames. Still unverified on air.
  • “D-STAR and dPMR voice tables” — D-STAR was rebuilt end to end to the MMDVM firmware’s air format, its header pinned by dstar_header_mmdvm.txt; a real capture is still the gate. dPMR’s voice Golay was corrected; its on-air interleave is still a placeholder.
  • The rest of that list — M17’s panel, dPMR’s CSBK coding, the untested checklist rows — is outside this series, and no change is claimed.

From DMR End to End, Part 14, one item moved and one did not. “Enhanced Privacy through the daemon” — the daemon’s decrypt path can now be checked offline with the release binary, from a discriminator recording and an operator-held key:

gophertrunk replay -in ep-call.wav -format disc -protocol dmr-tier2 -freq 1 \
                  -record-voice -out-dir rec -key rc4:11:4E77AD0B51

TestReplayDecryptsRealAirEnhancedPrivacyFromDiscAudio pins it on committed real-air ciphertext: 54 of 54 frames clear with the key, 54 of 54 ciphertext without. The reporter’s own run, or a live call, is still open on #1187 (Cookbook Volume 2, Part 8 is the recipe). “Direct mode on a live build” is unchanged: capture-verified on the reporter’s 15 Sep captures, with the live run on a fixed build still the gate on #836.

Three corrections fall outside the rebuilds. Voice Coding 7 and 9 give P25 Phase 2 the 3600x2400 ambe2 decoder; Phase 2 is AMBE+2 3600x2450 and decodes through ambe2-dmr — the mapping the first live call exposed. Protocol Decoders 10 and 11 describe the Motorola talker-alias cipher as unsolved and gated. It is solved and enabled — motorola.CipherVerified = true — verified on 1242 of 1242 held-out characters and on a real capture that decodes to “CRIO 0062”; on-air confirmation on the reporter’s rig is still open (operator guide). And the PN44 glossary entry’s figure still draws the mirrored taps Part 12 corrected.

What we keep

The series ends where From Spec to Shipping did, because it is the project’s operating principle: green synthetic is not on-air correct.

  • A decoder is a claim about someone else’s transmitter. Only something from outside the repository can test it — a reference’s literal output, an encoder you did not write, a recording. Everything else is the self-consistent test trap.
  • Say which of the four words you have earned. “Works” is not one. Six ledger rows say no twice, and that is their accurate state.
  • A wrong layer hides beside a correct one. LoRa’s chirp was right over six invented layers; the rebuilt Phase 2 frame sat over a mirrored scrambler and under the wrong vocoder tables. Audit each layer on its own evidence.
  • Correct the prose when you correct the code. A post that explains an invented format teaches it.
  • Every open gate is a named recording or a named live run. None is blocked on effort.

Where to go from here

The series index lists all fourteen parts. Two series ran beside this one. Squelch is the design half of stories told here as investigations — how a scan list decides a call exists, from the tone gates to the System Fusion, NXDN and D-STAR call gates. The Operator’s Cookbook, Volume 2 is the bench half: NXDN, fleet signalling, paging, your own keys. And From Spec to Shipping is the method this series kept applying after the fact.

FAQ

How can I tell whether a decoder has ever decoded a real signal? Look at where its fixtures come from. If every test vector comes from the project’s own encoder, nothing in the suite can disagree with the decoder. Look for a committed real-air slice, or a literal vector attributed to an independent decoder.

Which GopherTrunk decoders in this series are verified on air? MDC1200 (28 Sep), FleetSync (16 Sep), the CTCSS and DCS tone gates (24 Sep), AM (29 Sep) and NXDN trunked voice (21 Oct). P25 Phase 2 voice is on-air verified at the frame level (18 Nov); its audio fix is pinned on the recorded call and waits on the reporter’s run. FLEX 1600 bps and the NXDN control channel and scrambler are capture-verified; LoRa, System Fusion, D-STAR and SmartNet have not yet met a recording.

What capture would help most right now? Any open row: a LoRa IQ capture, a System Fusion DN-mode transmission at a gain that does not clip, a D-STAR or dPMR voice transmission, a 929–932 MHz multi-rate FLEX channel, a P25 Phase 2 call with voice_iq_debug on, or a SmartNet control channel. Record IQ, not audio, and say what the radio was doing.

Were the earlier posts wrong when they were published? They described the code accurately; the code was wrong about the air. Each now carries an update naming the part that corrects it. The exception is one finale’s open list, which had FleetSync waiting on a live test two weeks after it passed.

Series navigation

Part 14 of 14 · ← Part 13: Read the Capture First — The ‘YSF’ File That Was an FM Test Tone · Back to the series index