docs: SDR baseline, findings root causes; correlator dedup
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user