docs: SDR baseline, findings root causes; correlator dedup

This commit is contained in:
Lars Nolden
2026-08-31 22:45:11 +02:00
parent f7c8614a3b
commit 04c8130615
3 changed files with 81 additions and 10 deletions
+10
View File
@@ -122,6 +122,16 @@ def main():
sdr = parse_sdr(args.sdr)
sdr_c1 = [s for s in sdr if s["mode"] == "C1" and s["crc_ok"]]
# rtl_wmbus runs two demodulator algorithms concurrently; a single burst
# can be reported twice within ~1 ms. Collapse identical bytes < 5 ms apart.
deduped = []
for s in sorted(sdr_c1, key=lambda x: x["t"]):
if deduped and deduped[-1]["cooked"] == s["cooked"] \
and s["t"] - deduped[-1]["t"] < 0.005:
continue
deduped.append(s)
sdr_c1 = deduped
# --- classify SDR frames into originals vs repeats ---------------------
# A repeat is an SDR frame with identical cooked bytes to an earlier SDR
# frame within [min_delay, max_delay]. Everything else is an original.