hil: SDR health gate, TX decodability proof phase, richer report

This commit is contained in:
Lars Nolden
2026-09-01 08:27:50 +02:00
parent 0df784525a
commit a422305059
5 changed files with 338 additions and 69 deletions
+12
View File
@@ -20,6 +20,18 @@ ERR="${OUT%.log}.err"
STATS="${OUT%.log}.stats"
: > "$ERR"
# Verify the observer is actually receiving before trusting any capture.
health_ok=0
for i in 1 2 3; do
if ./result-py/bin/python3 hil/sdr_health.py >> "$ERR" 2>&1; then
health_ok=1; break
fi
echo "--- SDR unhealthy; usbreset (try $i)" >> "$ERR"
usbreset 0bda:2838 >> "$ERR" 2>&1 || true
sleep $((i * 5))
done
echo "sdr_health_ok=$health_ok" > "${OUT%.log}.health"
deadline=$(( $(date +%s) + DUR ))
attempt=0
streamed=0