hil: relax heartbeat threshold, count ok_polled as TX success

This commit is contained in:
Lars Nolden
2026-09-01 09:34:01 +02:00
parent 74cb28daf7
commit fdc31d8227
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -191,7 +191,7 @@ def main():
verified_repeats += 1 verified_repeats += 1
rep["verified"] = True rep["verified"] = True
tx_ok = [t for t in heltec_tx if t.get("result") == "ok"] tx_ok = [t for t in heltec_tx if str(t.get("result", "")).startswith("ok")]
delays = [r["dt"] * 1000 for r in repeats] delays = [r["dt"] * 1000 for r in repeats]
delays.sort() delays.sort()
+3 -1
View File
@@ -143,7 +143,9 @@ $PY hil/correlate.py --serial "$RUN_DIR/serial.log" --sdr "$RUN_DIR/rtlwmbus.log
# --- 15. lockup / reset detection ----------------------------------------- # --- 15. lockup / reset detection -----------------------------------------
HB=$(grep -c '"event":"heartbeat"' "$RUN_DIR/serial.log" || true) HB=$(grep -c '"event":"heartbeat"' "$RUN_DIR/serial.log" || true)
EXPECTED_HB=$((DURATION / 10 - 2)) # heartbeats are emitted at >= 10 s cadence (the radio task also does RX/TX
# work between them), so allow slack; this catches real stalls, not drift.
EXPECTED_HB=$((DURATION / 14))
if [ "$HB" -lt "$EXPECTED_HB" ]; then if [ "$HB" -lt "$EXPECTED_HB" ]; then
echo "WARNING: only $HB heartbeats (expected >= $EXPECTED_HB) - possible lockup" \ echo "WARNING: only $HB heartbeats (expected >= $EXPECTED_HB) - possible lockup" \
| tee "$RUN_DIR/lockup_warning.txt" | tee "$RUN_DIR/lockup_warning.txt"