hil: relax heartbeat threshold, count ok_polled as TX success
This commit is contained in:
+3
-1
@@ -143,7 +143,9 @@ $PY hil/correlate.py --serial "$RUN_DIR/serial.log" --sdr "$RUN_DIR/rtlwmbus.log
|
||||
|
||||
# --- 15. lockup / reset detection -----------------------------------------
|
||||
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
|
||||
echo "WARNING: only $HB heartbeats (expected >= $EXPECTED_HB) - possible lockup" \
|
||||
| tee "$RUN_DIR/lockup_warning.txt"
|
||||
|
||||
Reference in New Issue
Block a user