hil: single-stream decode+IQ capture, clock-aligned RF TX proof

This commit is contained in:
Lars Nolden
2026-09-01 09:22:20 +02:00
parent 3fea191008
commit 74cb28daf7
4 changed files with 221 additions and 114 deletions
+10 -6
View File
@@ -67,7 +67,7 @@ if proof is not None and proof.get("bursts_with_sdr_decode", 0) == 0:
# a repeat at the configured delay also satisfies "the observer
# independently saw the retransmission" (see docs/RF_FRONTEND_TESTS.md for
# why decoding our own TX is bench-limited).
if iqp is not None and iqp.get("repeat_pairs_at_delay", 0) > 0:
if iqp is not None and iqp.get("tx_events_with_rf", 0) > 0:
fail = [f for f in fail if not f.startswith("SDR-verified repeats")]
verdict = "PASS" if not fail else "FAIL"
@@ -100,14 +100,18 @@ TX DECODABILITY PROOF (synthetic C1, independent of meters):
both airings decoded: {proof.get('bursts_with_both_airings_decoded')}""")
if iqp is not None:
g = iqp.get("gap_ms") or {}
print(f"""
RF-LEVEL REPEAT PROOF (raw IQ, decode-independent):
RF-LEVEL TX PROOF (same stream's raw IQ, decode-independent):
IQ analysed: {iqp.get('iq_seconds')} s
bursts total/strong: {iqp.get('bursts_total')} / {iqp.get('bursts_strong_dut')}
clipped samples: {iqp.get('clipped_sample_pct')} %
bursts in window: {iqp.get('bursts_total')}
firmware TX ok: {iqp.get('firmware_tx_ok')}
repeat pairs at delay: {iqp.get('repeat_pairs_at_delay')}
gap min/med/max: {g.get('min')} / {g.get('median')} / {g.get('max')} ms""")
TX events with RF: {iqp.get('tx_events_with_rf')} ({iqp.get('tx_rf_confirmed_pct')} %)
alignment error: {iqp.get('align_error_ms')} ms
airtime error: {iqp.get('burst_duration_error_ms')} ms
our TX over floor: {iqp.get('our_tx_peak_db_over_floor')} dB
meter bursts over floor: {iqp.get('other_burst_peak_db_over_floor')} dB
firmware repeat delay: {iqp.get('firmware_repeat_delay_ms')} ms""")
print(f"""
SDR (independent observer):