Review audit · firmware & RF
17 September 2026
DM-1701 · HR-C6000 · AT1846S · STM32F405 · P25

GPT-6 Astra’s P25 review, graded

GPT-6 Astra got the same brief as every P25 audit on bench: find why this firmware struggles to decode P25 Phase 1 and Phase 2 voice on the radio’s HR-C6000, and what to do about it. It worked in a clean room, with a fresh copy of the repository, no earlier reviews and no network. I checked its claims against the code, the manual and the repository’s notes, rebuilt what it built, and reran the probe harness it left behind in a clean copy of the baseline.

Overall grade
B
89 / 100 weighted

Reproduced, not asserted.

Thirteen audits described defects. This one compiled them. It extracted the real monitor, squelch and parser function bodies, built them against hardware stubs, and shipped a script that reproduces five failures on demand — the capture export that differs from the decoder’s input in 158 of 160 samples, the starvation counter stuck at zero, the stock squelch re-selecting FM after the monitor mutes, a late-entry call emitting audio with no identity, and the trunk sink accepting it. I reran that script in a fresh copy of the repository. All five still reproduce.

It also built both ARM targets with the toolchain in the repository, generated its own link map, and did the arithmetic: 511 samples of input ring, 21.29 ms of slack, 4.18 million filter multiply-accumulates a second. Three of the four decode-critical issues, five of six instrument defects, and one finding no audit or document had reached. What it does not do is cost the vocoder, which is why this is a B and not an A: with 27 of 29 claims holding and none wrong, the one thing left standing is the 11–16× the CPU cannot give.

Claims that check out
27 / 29
2 miscited or incomplete · 0 wrong
Decode-critical issues found
3 of 4
the most of the fourteen
Defects reproduced on the host
5
its harness reruns and still passes
New verified defect
Talkgroup 0
audio released for an unidentified call

The run, not graded: 14 min · 29 agent steps · 42 tool calls · 21K output tokens (4K reasoning) · 3.1M tokens re-read · OpenAI subscription, one-shot

Headline findings

Six things to know about this review

Validated

It compiled the defects it reports

reproduce.py pulls the real function bodies out of the monitor, the squelch path and the parser, builds them against stubs, and asserts what they do. Rerun in a clean scratch copy of the repository, all five reproductions still pass: the capture stride, the dead starvation counter, the trunk sink accepting an unknown talkgroup, a late-entry call emitting 320 samples with no identity, and the stock squelch re-selecting FM after the monitor has muted. It also built both ARM targets with the toolchain bundled in the repository — 810,252 bytes, matching the baseline image — and read its own link map rather than quoting the documentation.

review-artifacts/reproduce.py · FW/review-build/MDUV380_FW.map

New

Audio released for a call that has no identity

Only the header branch sets the talkgroup. A late entry that starts at an LDU2 sets the call clear from the algorithm ID alone, so the talkgroup stays zero — and both filters are written (talkgroup && talkgroup != group), in the audio sink and in the trunk tick. A zero talkgroup passes both. So audio is released for a call whose identity was never established, while the follower is tracking a different group. Its probe emits 320 samples with talkgroup=0 while following 0x4567. I confirmed it at the source and reran the probe. Nobody — no audit, no document — had raised it.

p25rx.c:185–195 · p25mon.c:475 · p25_trunk.c:49

Holds up

The source question, stated exactly as the evidence allows

On the question that has split every audit: the driver identifies 0xE0 = 0xC9 as the microphone/line input, the monitor leaves 0x34 = 0x3C — de-emphasis and a 3 kHz filter — in place, and the AT1846S table adds its own voice filtering. Its conclusion is neither of the two overclaims: These facts do not prove that every I2S sample is microphone audio. They do prove that the comments describing a raw RF discriminator stream are not enough. It then adds the line the rest of the board needed: resampling cannot restore bandwidth an analog filter has already removed.

HR-C6000.c:2846–2855, 2962–2965 · AT1846S.c:191–205 · p25mon.c:6–13

Holds up

It does the arithmetic, and it checks

The input ring holds 511 samples, 21.29 ms at 24 kHz; each tick drains at most 128, so the service interval must stay under 5.33 ms; each 512-sample hop is 13.33 ms; the matched filter alone runs 4.18 million tap multiply-accumulates a second. Every figure recomputes exactly. Its memory section is measured from a map it generated, and it adds the two caveats no audit before it did: the RTOS heap is already inside .bss, and zero link margin does not prove the running heap is exhausted.

p25mon.c:93–100 · p25_4fsk.c:113–122 · FW/review-build/MDUV380_FW.map

The gap

The vocoder is still only “unproven”

It gets closer than any audit: it counts the filter, counts the ring, notes that synthesis of muted frames and bounded-distance FEC searches are optimisation candidates, and refuses to claim the deadlines are met. But it also refuses to claim they are missed — not proof that deadlines are already missed. Emulated on the 72 MHz core, mbelib’s IMBE synthesis needs 11–16× the entire budget. That is not a measurement waiting to be taken; it is the one software blocker on this board, and no ranked audit has found it.

mbelib.c:306 · STAGE4-TX-FEASIBILITY.md:36 · Core/Src/main.c:269–274

Miscited

Two manual references point at the wrong pages

Its 8 kHz statement is correct and its divisor arithmetic is exact — 12.288 MHz gives a 1.536 MHz bit clock and a 24 kHz frame clock — but the manual says the frame clock must be 8KHz at line 1218, not in the 1233–1239 range it cites. More consequential: it points at a layer-1 architecture at lines 1370–1389, which is the interrupt section. The real documentation is §5.4.6, where one-layer mode demodulates 4FSK into 36-byte frames — 4,800 symbols per second, P25’s own rate. It was the first audit not to deny that mode, and it still never reaches it.

manual 1218, 1127 · manual 2553–2635

Scorecard

How the 89 breaks down

Same rubric, weights and scale as every P25 audit on bench, so scores compare directly. GPT-6 Astra leads every dimension except clarity, and is the highest grade awarded to a ranked audit on this task.

Dimension scores

Hover or focus a bar for the reasoning. Weighted total 89, grade B.

0255075100Score out of 100Accuracy & evidenceweight 30%92Coverage of decode problemsweight 25%84Root cause & prioritisationweight 15%88Fix plan & acceptance gatesweight 15%92Originality & attributionweight 10%90Clarity & calibrationweight 5%86
Rubric table
DimensionWeightScorePointsWhy
Accuracy & evidence30%9227.627 of 29 claims hold, none is wrong, and eight I could only confirm by rerunning what it ran. Its memory figures, ring timings and filter arithmetic are exact. Two manual citations point at the wrong pages, including the one that matters most.
Coverage of decode problems25%8421.0Three of four decode-critical issues, five of six instrument defects, the ownership problem, the identity gating, the band ceiling and the clock question — plus a defect nobody had found. The vocoder’s cost, the MFID muting and the demodulator’s loops are what it leaves.
Root cause & prioritisation15%8813.2It orders the work the way the evidence demands: fix ownership and capture correctness first, because every later measurement runs through them, then qualify the RF source, then touch the DSP. It stops short of naming the vocoder as a blocker.
Fix plan & acceptance gates15%9213.8Five stages, each with a gate written as a pass condition, and it proposes turning its own defect probes into the regression tests that enforce them. The best plan of the fourteen, and the only one whose first step ships as code.
Originality & attribution10%909.0A new verified defect, a runnable defect harness, an independently generated link map, and the observation that explains why the test suite never caught any of it. It also rediscovers the squelch conflict and the 24 kHz bandwidth question on its own.
Clarity & calibration5%864.3Plain text, no tables or diagrams, and long — but every finding carries evidence, impact and resolution, the verified results come first, and its limits are stated three times and hold up against the session record.
Weighted total100%89Grade scale: A ≥ 90 · B 80–89 · C+ 75–79 · C 70–74 · C− 65–69 · D 50–64 · F < 50
Receive chain

Where its findings sit

Astra covers the chain end to end: the filters, the source, the capture, the clock, the identity gating and the instruments. The red tags are the vocoder it would not cost and the two items it left.

RADIO · ANALOG FRONT ENDSTM32F405 · 72 MHz · -OsMicrophoneLineIn1 · enabled by E0 bit 6P25 C4FM carrier12.5 kHz channel±1.8 kHz peak deviationAT1846S receiveranalog FM register setHPF + LPF on · LF audio off · 25 kHzHR-C6000 codec ADCE0 = 0xC9 · 0x34 de-emphasis onno documented RF input to I2SI2S to the MCULRCK 24 kHz (manual: 8 kHz)left slot, 16-bitRFaudio?ADCDMA half-buffer ISRp25monI2sHalfBuffer160 frames per callbackSample ring512 samples ≈ 21 ms≤128 drained per tickResampler ×1.624 → 38.4 kHz, nominalhealth gate ±10 %RRC FIR + timing81 taps · 768/512 windowperiod clamp ±1 %p25rx framingsync · NID · LDU · FECfail-closed mutembelib IMBE≈16 M instructions/framecosf slow pathPCM ring → I2S TXradioSetAudioPath() per frame→ speaker amplifierCapture export ‘c’ISR stages [j][0..79]framed hex over USBUSB CDC consoleshared with 1 Hz reportp25_capture.pyparser on the hostdiagnostic tapF1F2F3F4F5F6F7F8N1N2
F1 raised by GPT-6 AstraN1 missed or left unprovenDashed edge: no documented connection
F1AT1846S voice-path filtering in analog mode
F2HR-C6000 de-emphasis and 3 kHz filter at 0x34
F3The I2S source is unproven; the comments are not enough
F4The capture exports the wrong halfwords (reproduced)
F5Unknown talkgroup opens audio (reproduced, new)
F6pcm_starve never counts (reproduced)
F7Squelch re-arms and rewrites the codec (reproduced)
F8The test oracle shares the receiver’s RRC filter
N1mbelib needs 11–16× the 72 MHz CPU
N2The one-layer mode at P25’s own symbol rate
What it shipped

A harness, not a description

The review’s fourth verified result is a script. It is the difference between an audit that says the capture is wrong and one that prints the two sample sequences side by side.

The five reproductions, rerun here

Its review-artifacts/reproduce.py extracts the firmware’s own monitor, squelch and parser function bodies, compiles them against hardware stubs, and asserts the broken behaviour. I copied the script into a clean scratch copy of the baseline and ran it.

ProbeWhere it pointsResultWhat the probe shows
Capture exportp25mon.c:432–467158 of 160 samples differDecoder 1000, 1001, 1002… against export 1000, −1000, 1001, −1001…
Starvation counterp25mon.c:382–430, 513–517pcm_starve stays 0An empty playback half-buffer returns silence and reports no starvation.
Trunk audio gatingp25mon.c:475 · p25_trunk.c:49unknown talkgroup acceptedThe sink takes 160 samples while the received group is unknown.
Late entryp25rx.c:185–195320 samples, talkgroup 0A clear LDU2 sets the call clear without ever carrying an identity.
Stock squelchtrx.c:515–586 · applicationMain.c:964–969FM re-selected after muteThe amplifier is re-enabled even with the signal already marked open.
All five reproduce, and the script exits with “PASS all review reproduction assertions (these confirm defects, not fixes)”. Three of them — the capture stride, the starvation counter and the squelch re-arm — had been found by earlier audits as readings of the code. This is the first time any audit has made them run.
The front end

Both halves, and the line that follows from them

It names the C6000 filter and the AT1846S voice settings together, then draws the consequence no audit before it stated: a resampler cannot put back bandwidth that an analog filter has removed.

Register state for a P25 session

What trxSetModeAndBandwidth(RADIO_MODE_ANALOG, true) leaves in place, next to OpenGD77’s own settings for 4800-baud 4FSK.

RegisterMonitor today (analog FM)OpenGD77 DMR modeEffect on C4FM
AT1846S 0x400x0030, low-frequency bit cleared: “so it should be cleared to receive FM”0x0031, “allows low freq audio”Removes the near-DC content that runs of equal symbols depend on
AT1846S 0x580xBC85, “enable some filters for FM e.g. high and low pass filters”0x9CDD, “disable all filters in DMR mode”High- and low-pass shaping of the symbol stream
AT1846S 0x440x06CC, AF gain 80%0x07FF, 100%; the DM-1701 “needs higher AF gain” to decode 4FSKLower discriminator level into the next stage
AT1846S bandwidth25 kHz12.5 kHz, forced for digitalWider noise bandwidth and deviation scaling set for ±5 kHz FM
HR-C6000 0x340x3C, “compressor off, de-emph on, 3 kHz audio filter”not written; the FM value persists−6 dB/octave from 300 Hz and a 3 kHz low-pass on the FM receive path (manual §6.2)
Sources: AT1846S.c:191–217, HR-C6000.c:2846–2854 and 2858–2875, trx.c:228–279, p25mon.c:724. Register comments are OpenGD77’s; the manual translation documents 0x34.

What the inherited 0x34=0x3C does to C4FM

Standard C4FM through each HR-C6000 receive stage alone, then the firmware’s live demodulator and framer. 20 LDUs: 180 IMBE frames possible.

04590135180IMBE frames decoded, noise-free (of 180)no audio filtering180 / 1803 kHz low-pass only180 / 180de-emphasis only0 / 180de-emphasis + 3 kHz low-pass (0x34=0x3C)0 / 180
De-emphasis alone, −6 dB per octave from 300 Hz, leaves no frames decodable — which is why “establish a documented signal-source configuration rather than guessing undocumented register values” is the right order of work.
Data table
Audio stageNoise-free frames · NIDsSymbol errors20 dB frames · NIDs
no audio filtering180/180 · 20/200.0%180/180 · 20/20
3 kHz low-pass only180/180 · 20/200.0%180/180 · 20/20
de-emphasis only0/180 · 0/2051.3%0/180 · 0/20
de-emphasis + 3 kHz low-pass (0x34=0x3C)0/180 · 0/2049.8%0/180 · 0/20
The one it left open

Counted the filter, not the vocoder

Its real-time section is the most quantified of the fourteen and still stops at “unproven”. The filter it counted is 4.18M MACs a second; the synthesis it did not is an order of magnitude past the whole budget.

Where one second of decoding goes

The firmware’s streaming loop, compiled with its own GCC flags and newlib and run in an emulated Cortex-M4F over 2.2 s of input (12 LDUs, 108 IMBE frames, all decoded). Instruction counts become time by assuming one clock cycle per instruction, the optimistic end.

0%200%400%600%800%1000%1200%Share of one CPU second at 72 MHz (-Os, 1.0 cycles per instruction)Resampler ×1.61.4 M instructions/s1.9%RRC FIR, timing and level fit28.0 M instructions/s39%Framing, NID and FEC0.7 M instructions/s1.0%mbelib IMBE decode and synthesis781.9 M instructions/s1,086%whole CPU
The demodulator fits: about 40% of the core, 60% at 1.5 cycles per instruction. The vocoder needs roughly 11 times the whole CPU, 16 times at 1.5. Building with -O2 changes these by under 1%, because the time is spent inside newlib’s prebuilt libm.
Per-stage table
Stage-Os, M instr/sShare at 1.0 · 1.5 c/i-O2, M instr/s
Resampler ×1.61.401.9% · 2.9%1.32
RRC FIR, timing and level fit28.0038.9% · 58.3%27.70
Framing, NID and FEC0.741.0% · 1.5%0.73
mbelib IMBE decode and synthesis781.901,086.0% · 1,629.0%781.60
Total812.11,128% · 1,692%811.4

CPU time for each 20 ms of speech

One call to mbelib’s IMBE decoder per frame, uvquality 1, FEC-valid codewords with chosen pitch and voicing, mean over 100 consecutive frames.

0 ms100 ms200 ms300 ms400 ms500 msCPU time per decoded 20 ms frame at 72 MHz (mean, 1.0 cycles per instruction)L=20, all bands unvoiced3.0 M instructions42 msL=20, typical (15 of 20 voiced)9.7 M instructions134 msL=30, typical (21 of 30 voiced)14.0 M instructions194 msRandom pitch and voicing15.9 M instructions220 msL=56, all bands voiced31.2 M instructions434 ms20 ms deadline
Every frame type misses its 20 ms deadline, from about 2× for the simplest frames to more than 20× for loud voiced ones. The cause is mbelib’s per-harmonic phase, which accumulates without wrapping (mbelib.c:306). Once a call has run for about half a second, nearly every voiced-band cosf argument exceeds about 201 radians, and newlib’s cosf takes its __kernel_rem_pio2f path at roughly 1,700 instructions per call instead of 40 to 100. The real firmware links that same path.
Per-frame table
Frame typeMean, M instrWorst, M instrMean ms at 1.0 · 1.5 c/i
L=20, all bands unvoiced3.005.0242 · 62
L=20, typical (15 of 20 voiced)9.6810.23134 · 202
L=30, typical (21 of 30 voiced)13.9714.76194 · 291
Random pitch and voicing15.8626.17220 · 330
L=56, all bands voiced31.2532.97434 · 651
Claim check

29 claims, checked one by one

Twenty-seven of twenty-nine hold, eight of them validated by rerunning what it ran. Two manual line ranges are miscited. None is wrong.

ItemWhat GPT-6 Astra claimsWhereResultNotes
MethodPath abbreviations are declared up front: FW, P25 and HW expand to the firmware, p25 source and hardware driver directoriesreview §ScopeHoldsThe intake flags 41 citations as wrong paths; every one is this documented shorthand, and each resolves to the file it names.
Verified 1The native suite passes: both parser copies, independent BCH/framing, signalling FEC, CRCs, trunk logic, capture ordering, and 90 voice codewords with 0 of 6,480 raw dibit errors at ±1000 ppmtests/p25/run.pyValidatedReran here; the log matches, including selftest=PASS tests=111111.
Verified 2Both ARM targets build with the bundled xPack GCC 13.2.1, producing an 810,252-byte imagetools/xpack-arm-none-eabi-gcc-13.2.1-1.1; FW/review-buildValidatedByte-identical in size to the baseline build. It built into its own BUILD_DIR rather than over the tree, and did not flash anything.
Verified 4Five defects reproduced by extracting the real function bodies and compiling them against hardware stubsreview-artifacts/reproduce.pyValidatedRerun in a clean scratch copy of the baseline: all five reproduce — capture stride 158 of 160, pcm_starve stuck at zero, trunk sink accepting unknown talkgroup, late-entry LDU2 emitting 320 samples with talkgroup 0, and the squelch re-selecting FM after monitor mute. No audit before it had shipped a harness that reproduces five defects on demand.
F1The application keeps running trxCheckAnalogSquelch while the monitor holds the radio, and that function re-arms whenever the RF amplifier is disabled — which the monitor does at startup and on call changes — so the next check selects FM and writes 0x36=0x02 and 0x10=0x80applicationMain.c:964–969; trx.c:515–539, 572–586; p25mon.c:266–277, 712–716, 810–811; HR-C6000.c:2967–2977HoldsM12, independently found and — uniquely — reproduced by replaying the unmodified squelch function on the host.
F2HRC6000SetFMRx sets 0x34=0x3C (de-emphasis plus a 3 kHz audio filter) and the monitor never replaces it; the AT1846S analog configuration also enables voice-path filteringHR-C6000.c:2846–2855; AT1846S.c:191–205, 245–254HoldsBoth halves of the analog chain, at the right lines: AT1846S.c:196 is the FM filter table with 0x58=0xBC85.
F20xE0=0xC9 is identified by the driver as enabling the microphone/line input, but these facts prove the “raw discriminator stream” comments are insufficient rather than proving every sample is microphone audioHR-C6000.c:2962–2965; p25mon.c:6–13HoldsThe most carefully calibrated statement of the source question among the ranked audits: it neither overclaims the microphone reading nor lets the comments stand.
F2A valid DMA sample count proves words are arriving, not what signal they contain; enabling the IF ADC does not establish a bypass into the vocoder PCM portmanual 1125–1154, 1198–1239, 2840–2844Holds
F2The manual mentions a layer-1 architecture at lines 1370–1389, and this tree implements no such interfacemanual 1370–1389MiscitedThose lines are §5.1, the interrupt description, which mentions the three-layer function in passing. The substantive documentation is §5.4.6 at 2553–2635: one-layer mode demodulates 4FSK into 36-byte frames, 4,800 symbols per second. The instinct is right and it was the first audit not to deny the mode outright, but it points at the wrong pages and never reaches the symbol rate.
F3Phase 2 downlink is H-DQPSK at 6000 symbols/s and needs its own synchronisation, ISCH/DUID decoding, WACN/System-ID/NAC-derived scrambling, FACCH/SACCH/MAC handling, ESS, voice FEC and AMBE+2 synthesisref-sources/dsd-fme/src/p25p2_frame.cHoldsThe most complete Phase 2 statement of the fourteen, and it matches the reference implementation it cites.
F3Two time slots do not make Phase 2 compatible with the C6000 DMR slot engine, and the proprietary DMR codec interface is not a proven Phase 2 drop-indmr_codec/codec_interface.c:35–64Holds
F4The decoder takes i2s_Rx_Buffer[buf][j][i*2] while the export passes a pointer to the start of the same interleaved array and asks for 80 contiguous samples, so the capture exports alternating words and the count still reads 160p25mon.c:432–467; p25mon_capture.c:455–487ValidatedT1, with the ramp output printed: decoder 1000,1001,1002… against export 1000,−1000,1001,−1001… Reproduced here.
F4Capture is not terminated or segmented on retune, clock change, DMA restart or source change, so one nominal-rate header can describe samples spanning different rates and unmarked interruptionsp25mon.c:565–616; p25mon_capture.cHoldsThe epoch defect (T5), reached from the capture lifecycle rather than from the header fields.
F5Monitor acquisition saves beep options, eco level and squelch but imposes no transmit inhibit, so the PTT → TX screen → trxSetTX path stays reachable, and voice prompts or menu paths can reconfigure sound or terminate I2Sp25mon.c:660–675; uiTxScreen.c:149–152; voicePrompts.c:159–173; i2s.c:55–98HoldsCorrect at every line, and the broadest ownership analysis of the fourteen — it names VOX and programmatic transmit as well as PTT.
F6A clear LDU2 establishes P25_CALL_CLEAR without carrying a talkgroup, and both the audio sink and the trunk tick only reject a mismatched group when the received group is nonzero, so audio is released for an unidentified callp25rx.c:185–195; p25mon.c:475; p25_trunk.c:49ValidatedNew, and confirmed at source: only the HDU branch sets rx->talkgroup, and both filters read `(talkgroup && talkgroup != group)`. Its probe emits 320 samples with talkgroup 0 while the follower tracks group 0x4567, and it reproduces here. This is the fail-open mirror of the known fail-closed muting defects, and no audit or document had raised it.
F7The monitor accepts a measured rate within ±10% of a configuration guess but resamples using the guess, while the timing loop is clamped to 7.92–8.08 samples/symbol, about ±1%p25mon.c:565–577; p25_4fsk.c:228–241HoldsM7, with the resampling consequence.
F7The manual specifies 8 kHz for the vocoder frame-sync interface; at the stated 12.288 MHz codec clock the configuration-2 divisors give a 1.536 MHz bit clock and 24 kHz frame clock, but changing interface clocks does not prove the internal ADC and filter produce fresh 24 kHz basebandmanual 1233–1239; p25mon.c:74–86MiscitedThe arithmetic is exact and the conclusion is the sharpest form of the open question — whether 24 kHz LRCK buys real bandwidth. The manual statement is real but sits at 1218 and 1127, not the 1233–1239 range given.
F8Measured from a fresh link map: main SRAM 131,072 bytes with .data 17,000, .bss 112,532 and a 1,540-byte heap/stack reservation, leaving zero unreserved; CCM 64,376 of 65,536, leaving 1,160FW/review-build/MDUV380_FW.mapValidatedEvery figure matches the map. It is one of two audits to generate the map itself and the first to add the two correct caveats: the RTOS heap is already inside .bss, and zero link margin does not prove the running heap is exhausted.
F9The input ring holds 511 usable samples (~21.29 ms), each tick drains at most 128 samples so the service interval must stay under ~5.33 ms, each 512-sample hop is 13.33 ms, and the FIR alone runs about 4.18 million tap MACs per secondp25mon.c:93–100, 382–430; p25_4fsk.c:113–122ValidatedAll four figures recompute exactly: 511/24000, 128/24000, 512/38400, and 75 windows/s × 688 outputs × 81 taps = 4.18M.
F9p25monAudioUnderruns is declared and printed but never incremented, and the extracted playback function returns silence for an empty half-buffer while still reporting zero starvationp25mon.c:513–517, 382–430ValidatedT3, reproduced by its own probe and rerun here.
F9The periodic codec refresh can retry a single register for 200 ticks, and the process-cycle metric excludes parts of the tick that can starve the input ringp25mon.c:624–639, 1056–1059HoldsCorrect. It does not multiply that by the ten registers the refresh writes, which is where the two-second worst case comes from.
F9Deadlines are not proven missed: bounded-distance Golay/Hamming searches and synthesis of muted frames are optimisation candidates, not evidencep25_fec.c:36–43, 62–73IncompleteProperly cautious, and it is the one gap in an otherwise complete sweep: emulated, mbelib’s IMBE synthesis needs 11–16× the 72 MHz budget, so the deadline is not merely unproven, it is already missed by an order of magnitude.
F10The channel generator and the receiver share the same RRC model, so the synthetic tests can conceal a mismatch with real C4FM shaping or the radio’s filter cascadep25_4fsk.c:16–55, 295–343; p25_4fsk.h:8–12HoldsM1 in its sharp form, and it draws the inference that matters: the host capture tests feed the capture module directly, which is why F1 and F4 escaped them.
LimitsThe follower recognises a restricted set of standard FDMA identifier updates and group grants, rejects proprietary formats and TDMA, and has no control-channel roamingp25_trunk.c:19–59Holds
LimitsFrequency admission uses the hardware band table, which even expanded ends at 564 MHz and excludes 700/800 MHzp25mon.c:299–313; trx.c:44–83HoldsConfirmed: maxFreq 56,400,000 on the extended range.
LimitsNo captured-speech fixture exists in the reviewed directories, and the generated probe capture is a synthetic ramp rather than a radio recordingreview-artifacts/probe-capture.txtHolds
AssessmentThe parser has positive evidence for corrected NID/BCH and status placement, LDU payload transport and signalling FEC, and those components should not be replaced because live reception failsp25rx.c; tests/p25/signalling.pyHoldsThe right call, and the opposite of the failure mode where an audit rewrites working code to explain a hardware problem.
PlanStage A gate: PTT, VOX and stock squelch cannot touch owned hardware, captures equal decoder input exactly, unknown or wrong calls emit no audio, and losses are observable—HoldsFive stages, each with an explicit gate, and it proposes converting its own defect probes into tests whose assertions require the corrected behaviour.
ScopeHardware comments in source were treated as claims, not as measurements reproduced by this review, and no bench actions were performed—HoldsIts self-limits are stated three times and hold up against the session record.
Provenance

What was already known, and what it added

Every clean-room audit could see only the repository: its notes, code comments and the HR-C6000 manual, summarised in the first column. GPT-6 Astra raises more of these rows than any audit before it, reproduces four of them on the host, and adds the last row itself.

IssueProject docs
in the repository
Grok 4.6
Sep 17
DeepSeek V4.1 Flash
Sep 17
Muse Spark 1.3 Contributor
Sep 17
GLM 5.3 Flash
Sep 17
UNIONALPHA
Sep 17
Qwen3.8 Flash
Sep 17
Qwen3.8 Max
Sep 17
GLM 5.3
Sep 17
DeepSeek V4 Pro
Sep 17
Gemini 3.8 Flash
Sep 17
HY4 Preview
Sep 17
GPT-5.6 Sol
Sep 17
GPT-5.6 Luna
Sep 17
GPT-6 Astra
Sep 17
Capture export stages the wrong I2S halfwordsabsentraised
§1, first code change
absent
its first experiment uses that capture
absent
trusts the capture
absent
relies on the capture
raised
F3, fixed and verified
raised
P1-2, tests miss the adapter
absent
calls the capture validated
raised
§2, proven with a reproducer
absent
calls the capture module sound
absent
certifies the capture path
absent
its plan depends on it
raised
derived from the stride
absent
its first step relies on it
raised
F4, reproduced on the host
Capture parser certifies an incomplete streamabsentabsentabsentabsent
trusts the parser
absent
relies on the parser
absentabsentabsent
relies on the parser
absentabsentabsentabsentpartly
module tests miss the stride
absentpartly
asks for tests at the callback
pcm_starve never incrementsabsent
documented as working
absentabsentabsent
relies on it
absentraised
F7
raised
P1-7
absentraised
§2
absentabsent
named only as a predicted symptom
absentabsentraised
F7, first to find it
raised
F9, reproduced
No static RAM marginpartly
margins still to measure
absentraised
M6, 0 bytes free
partly
“nearly full”, from the docs
raised
F5, byte-exact map audit
raised
F6, byte-exact
partly
calls the reservation headroom
absentpartly
“~zero headroom”
partly
from the docs, not the map
raised
§3.5, exact map symbols
absentraised
exact map figures
absent
could not read the map
raised
F8, from its own link map
The I2S stream is most likely microphone audiopartly
open, leaning sceptical
raised
§1, 0x89 versus 0xC9
raised
B1, four-value test
raised
P1-1
partly
open, leans towards RF
partly
blocking, but never says microphone
raised
P1-4, 0xE0 mic bit
raised
A, the clearest case yet
raised
§1, three sources
raised
§1–§2, with the tap as the fix
raised
§1 and §3.1
partly
listed unverified, tested first
raised
Blocker 1, source unproven
raised
F1, as the safe default
raised
F2, as far as the evidence goes
HR-C6000 de-emphasis on the capture pathabsentraised
§2, bit 5 of 0x34
absent
calls it benign
raised
P1-2, 0x34=0x3C
raised
F2, closes the eye
partly
cited, called unmeasured
raised
P1-3, 0x34=0x1C
raised
C, with the 0x34 bit 5 fix
raised
§1, tilts the eye
absentraised
§3.3, 0x34=0x3C
raised
P1-1, and the boot table too
raised
0x34=0x3C, never replaced
raised
F2, without the fix
raised
F2, 0x34=0x3C
AT1846S FM filters, low-frequency bit, 25 kHzpartly
“require characterization”
raised
§2, register level
raised
B2, filter register
raised
P1-2, 0x58 filters
partly
“voice filtering”; wrong bandwidth premise
partly
cited, called unmeasured
raised
P1-3, DMR 0x58 probe
absentabsentabsentraised
§3.3, with the DMR fix
absentraised
25 kHz for a 12.5 kHz channel
absentraised
F2, the FM settings table
0x10=0x6E hybrid state; 0x36 dual rolepartly
bring-up clock rules
partly
misses 0x6E and the 0x36 clock gate
partly
“undocumented hybrid state”
partly
quiet-chip registers
raised
F4, 0x10=0x80 kills the clock
partly
F1, 0x6E against 0x80
partly
“hybrid I2S state”
partly
slot engine and eco only
partly
§4.3, 0x10=0x80 hazard
partly
“inconsistent hybrid state”
partly
0x36 and 0xE0, not 0x10
partly
0x36, 0xE0, 0x26; not 0x10
partly
FM mode writes, not 0x10
partly
0x36, 0xE0, 0x26 listed
partly
0x36 and 0x10 via the squelch path
Manual: I2S frame clock “must be 8KHz”absentraised
§3
absent
quotes the paragraph, not the rule
absentabsentraised
F4
absent
quotes the formulas, not the rule
absent
cites the section, not the rule
absentabsentabsentraised
P1-2, with a test for it
absentabsentraised
F7, with the divisor arithmetic
One-layer 4FSK test mode as a P25 tap missed or left unprovenpartly
stock BER-test block only
raised
Gate D
raised
B5, exact recipe
absent
dismissed
absentpartly
worth a bounded test
absent
ruled out at “9600 Bd”
raised
step 2, a symbol source
absent
“not a P25 symbol source”
absent
“no raw modem mode”
absent
“zero internal silicon capability”
partly
cited, then dismissed
absentabsentpartly
points at the layer architecture
±10% health gate versus ±1% timing clampabsentabsentraised
B3, impact overstated
raised
P1-3
raised
F3
absentabsentabsentabsentabsentabsentabsentraised
with the resampler consequence
raised
F4, with the resampling consequence
raised
F7
Fail-closed muting at LDU cadenceabsentabsent
late-entry mute only
absentabsent
calls it an asset
absentabsentpartly
“keep it”
absentabsent
calls it tested
absentabsent
certifies it as correct
absentabsent
certifies it as correct
raised
F8, weighed as a trade
raised
F6, the late-entry half
Non-standard MFID mutes clear callsabsentabsentabsentabsentabsentabsentabsentabsentabsentabsentabsent
certifies it as correct
absentabsent
certifies it as correct
absentabsent
Test waveform shares the receiver’s RRC filterpartly
“synthetic RRC/AWGN” caveat
absentpartly
tested it, says not to fix
partly
synthetic only, wants recordings
absent
would extend that model
raised
F5, unquantified
absent
would extend that model
partly
synthetic only, not the circularity
partly
synthetic only
partly
“ideal RRC-shaped signal”
absentpartly
P1-5, circularity without the filter
raised
names the shared table
partly
synthetic, not circular
raised
F10, with why the tests missed F1/F4
MCU runs at 72 MHzraisedraised
in passing
absentraised
P1-5
absentraised
F7
absentabsentraised
§5
raised
§7, with the OpenRTX precedent
raised
§3.5, with the PLL settings
raised
P1-4, with the PLL lines
partly
named as the target, never costed
raised
F5, as the real-time risk
raised
F9, the target for measurement
Vocoder needs 11–16× the 72 MHz CPU missed or left unprovenpartly
decode timing unmeasured
absent
“fine on a 1 ms tick”
absent
“vocoder question settled”
partly
unmeasured; fix order backwards
absent
“in good shape”
partly
deadlines “unproven”
absent
“not the problem”
absent
“not the problem”
partly
inline, unmeasured
partly
cites 4.36M, calls it 60%
absent
puts it at 15–18 ms per frame
partly
87% measured, budget unresolved
absent
left as a later measurement
partly
named, never sized
partly
counted the filter, not the vocoder
Direct discriminator tap (M17 mod)raisedraised
uncredited
raised
pins, timer ADC, 48 kS/s
raised
fallback, pin 9
raised
fallback
raised
fallback
raised
fallback
raised
step 5, the likely answer
raised
§1 pivot
raised
its central recommendation
raised
§5.1, with the ADC and DMA design
raised
the fallback if Gate 0 fails
raised
ADC with bias and anti-alias
raised
F1, the fallback route
raised
F2, ADC or another interface
Phase 2 architecture and scopepartly
not implemented
partly
misplaces the AMBE+2 decoder
partly
voice via mbelib AMBE+2
raised
with RF band limits
partly
says mbelib has no AMBE+2
raised
most accurate section
partly
DMR and X2-TDMA parts
raised
AMBE+2 present but uncalled
raised
with a reference map
partly
no symbol rate or sync
raised
accurate on rate and slots
partly
right conclusion, H-CPM mislabelled
raised
plus the linked-symbol check
raised
careful about the vocoder
raised
the most complete of the fourteen
Two unverified SPI writes per decoded 20 ms frameabsentabsentabsentabsentabsent
treats them as protection
absentabsentabsentabsentabsentpartly
the SPI0inUse mechanism
partly
silent SPI0 failures
raised
radioSetAudioPath per frame
absentpartly
the sink is cited, not the writes
Capture sessions lack epochsabsentabsentpartly
measured=0 only
absentabsentraised
F9, 8 kHz under a 24 kHz header
absentabsentabsentabsentabsentabsentpartly
asks for source metadata
absentraised
F4, segment on retune and clock change
Ring and tick real-time budgetpartly
deadlines unproven
partly
calls it fine
absentpartly
overruns look like weak RF
absentraised
F7, 1 ms is a minimum
partly
register stalls against the ring
absentpartly
1 ms tick as a constraint
absentabsentabsentraised
the 2 s refresh stall
partly
buffer inventory only
raised
F9, all four figures exact
Clock config 3 assumes 12,288 Hz; the codec formula gives 12,000absentabsentraised
B3, clock model
absentpartly
“guessed semantics”
absentraised
P1-6, for a different reason
absentpartly
“unvalidated on hardware”
absentabsentabsentabsentabsentpartly
computes config 2 instead
Clock-config writes bypass the verified SPI writerpartly
SPI retry note
absentraised
M1
absentabsentraised
F9
absentabsentraised
§4.2
absentabsentabsentraised
traced through four files
raised
F6, both call sites
partly
asks that writes be verified
Stock squelch re-arms FM audio (0x10=0x80) during monitoringabsent
assumes it can’t re-arm
absentabsentabsentpartly
names squelch logic as a risk
raised
F1, new
absent
“fixed” by forcing squelch open
partly
names the squelch path as a writer
partly
hazard flagged, “unlikely”
absentabsentabsentraised
same call chain, independently
absent
ownership named in general
raised
F1, reproduced on the host
Stale clear-call state releases a new call’s first framesabsentabsentabsentabsentabsentraised
F8, probe
absentabsentabsentabsentabsentabsentabsentabsentpartly
via identity, not the 1,120 samples
No frequency tracking; ad-hoc timing loop gainspartly
a code comment calls the DC estimate biased
absentabsentabsentabsentabsentabsentabsentabsentraised
§4, new
absent
reads the loop as sound
absentpartly
the ±1% clamp only
partly
asks for a timing/AFC loop
absent
Unknown talkgroup opens audio (fail-open gating)absentabsentabsentabsentabsentabsentabsentabsentabsentabsentabsentabsentabsentabsentraised
F6, new and reproduced

Project docs: README.md, CAPABILITY-REPORT.md, STAGE3-BRINGUP.md, STAGE4-TX-FEASIBILITY.md, analysis/stock-p25/REPORT.md, analysis/capture-milestone-REPORT.md, dm1701-p25-demo/README.md and source comments. The last row is new in this audit.

Its plan

What to keep, change and add

Five stages, A to E, each ending in a gate written as a condition you can fail. Its first stage is the one every other plan skipped: make the instruments trustworthy before measuring anything with them.

Keep

Worth doing as written

  • Stage A, offline: fix ownership and the transmit veto, fix the capture unpacking and lifecycle, fix identity gating and the starvation counters — with the gate that captures must equal decoder input exactly and unknown calls must emit no audio.
  • Turn the defect probes into tests whose assertions require the corrected behaviour. The probes already exist.
  • Stage C: prove the RF source before more DSP work, with documented source, rate, usable bandwidth and repeatability.
  • Separate clock-alive detection from DSP-qualified-rate detection, and stop feeding DMA-batch jitter into an instantaneous correction.
Change

Would cause new problems

  • “Deadlines are not proven missed”: the vocoder is already 11–16× over budget, which belongs in the feasibility gate, not Stage B.
  • The layer-mode reference: §5.4.6, not §5.1 — one-layer mode runs at 4,800 symbols per second, which is the untried route.
Add

Missing from its plan

  • The MFID rule, the fail-closed half of the identity problem it found the fail-open half of.
  • The demodulator’s control loops: no frequency tracking, ad-hoc timing gains, no lock test.

The one-layer path, and what it would take

Manual Table 5.6 (verified line by line), with the questions that decide whether it can carry P25.

RegisterValueManual description
0x01xxxx 0000IF receive mode
0x07 0x08 0x090x0B 0xD9 0x5424-bit IF word, 455 kHz by default (OpenGD77 boots at 450 kHz)
0x100x02One-layer mode, continuous receive; bit 5 for slot receive
0x400x40Receive enable, test mode
0x410x41Receive test enable
  • Output: 36 demodulated bytes per frame in RX RAM from 0x30, frame type in 0x51, system interrupt bit 0 when ready.
  • Rate fits exactly: 36 bytes every 30 ms is 9,600 bit/s, which is 4,800 symbols per second. Contiguous frames would lose nothing.
  • Open: Figure 5.15 is DMR burst geometry, so the mode may only emit frames after DMR sync. That’s the first thing to test.
  • Also needed: the AT1846S DMR register set, since the demodulator is fed by the AT1846S. And the vocoder still has to run in real time.
Phase 2

The complete version

This is the Phase 2 section the earlier thirteen were circling. It names the downlink as H-DQPSK at 6,000 symbols per second, and then everything that sits under it: burst and slot synchronisation, ISCH and DUID decoding, the scrambling sequence derived from WACN, System ID and NAC, FACCH, SACCH and MAC handling, ESS, voice extraction and FEC, and AMBE+2 synthesis. It checks the firmware source roots and finds the bundled Phase 2 reference files outside them, and it notes that the proprietary DMR codec interface is not a proven drop-in.

Its judgement is the same as everyone’s — not a setting, a separate receiver — but it is the first that says why the C6000’s two slots are irrelevant: Phase 2 slot structure is not DMR slot structure, and a slot engine that matches in count does not match in framing. Its advice is to build the pipeline on the host against the bundled reference first, and to make the memory decision before the port, not after.

Against the other clean-room audits

The highest ranked grade on this task

Thirteen models reviewed this repository before this one, under the same rules. GPT-6 Astra is the first to ship code that reproduces what it claims, the first to find the fail-open identity gating, and the first to reach five of the six instrument defects. Its sibling GPT-5.6 Sol found the capture export by reading; this one prints the two sample sequences. The vocoder’s CPU cost remains unfound by all fourteen.

GPT-5.6 Sol clean-room review, graded B (84) →

Scores by dimension

Same rubric and weights. Hover or focus a bar for the score.

  • GPT-5.6 Sol
  • HY4 Preview
  • GPT-5.6 Luna
  • GPT-6 Astra
0255075100Score out of 100Accuracy & evidence91858292Coverage of decode problems70565884Root cause & prioritisation84808088Fix plan & acceptance gates90848092Originality & attribution84827290Clarity & calibration86888486Weighted total84777589
Method and limits

How this was checked

I read GPT6ASTRA_REVIEW.md in full and checked each claim against the firmware sources, the OpenGD77 drivers, the translated HR-C6000 manual and the repository’s notes. Where it reported a result I repeated it: the test suite, the ARM builds, the link map, the ring and filter arithmetic, and its reproduce.py harness, which I copied into a clean scratch copy of the baseline and ran there. Its new finding I confirmed at the source before accepting the probe.

Before grading I audited the run: one model for all 29 calls, no network, no skills or memory, and nothing read outside its copy of the repository — the audit’s path hits are the repository’s own README text and the harness’s output-truncation notices. It ran one-shot through the Hermes bench profile on an OpenAI Codex subscription, with the same prompt, tools, reasoning setting and sandbox as every other run. The de-emphasis and CPU results come from the model and emulator used for the Grok 4.6 audit.

  • Filter responses are modelled, not measured.
  • CPU figures come from instruction counts in an emulator, not timing on the radio.
  • Its probes reproduce the firmware’s logic against stubs; they are not hardware measurements, as it says itself.
  • No firmware was flashed, and no radio was touched.
python3 review-artifacts/reproduce.py      # in a clean scratch copy of the baseline
# REPRODUCED capture stride mismatch: 158 of 160 samples differ
# REPRODUCED empty playback DMA half: pcm_starve remains 0
# REPRODUCED trunk sink accepts 160 samples while received talkgroup is unknown
# REPRODUCED late-entry clear LDU2: call_state=clear, talkgroup=0, audio_samples=320
# REPRODUCED stock squelch re-selects FM and enables amplifier after monitor mute

Scripts: deemph_check.py, c4fm_sim.py and metrics.json. They need numpy and gcc.