hil: SDR health gate, TX decodability proof phase, richer report
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user