hil: relax heartbeat threshold, count ok_polled as TX success
This commit is contained in:
+1
-1
@@ -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
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user