Update HIL verification for hop-marked repeats
This commit is contained in:
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Compress one embedded HTTP asset without runtime work or timestamp churn."""
|
||||
import gzip
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
source, destination = map(Path, sys.argv[1:])
|
||||
destination.parent.mkdir(parents=True, exist_ok=True)
|
||||
destination.write_bytes(gzip.compress(source.read_bytes(), compresslevel=9, mtime=0))
|
||||
@@ -1,6 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
# Deterministic discovery of DUT (Heltec V4.3) and SDR (Nooelec NESDR SMArt v5).
|
||||
# Prints selected devices; exits nonzero on ambiguity or absence.
|
||||
# ./tools/discover_devices.sh [--dut-only|-v]
|
||||
# --dut-only prints only DUT_PORT and does not inspect or require an SDR.
|
||||
#
|
||||
# Output (eval-able):
|
||||
# DUT_PORT=/dev/serial/by-id/...
|
||||
@@ -22,6 +24,11 @@ fi
|
||||
DUT_PORT="${dut_candidates[0]}"
|
||||
[ -e "$DUT_PORT" ] || fail "DUT path vanished: $DUT_PORT"
|
||||
|
||||
if [ "${1:-}" = "--dut-only" ]; then
|
||||
printf 'DUT_PORT=%q\n' "$DUT_PORT"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# --- SDR: Nooelec NESDR SMArt v5 (RTL2832U, USB 0bda:2838) ---
|
||||
# Identity is established by USB VID:PID, because this dongle sometimes
|
||||
# enumerates with empty descriptor strings after a fault (rtl_test then
|
||||
|
||||
+5
-3
@@ -1,12 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
# Build + flash a firmware profile to the discovered DUT.
|
||||
# Build + flash a firmware profile to the discovered DUT; no SDR required.
|
||||
# ./tools/flash.sh [test|debug]
|
||||
# Refuses ambiguous serial devices (see tools/discover_devices.sh).
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
PROFILE=${1:-test}
|
||||
|
||||
eval "$(./tools/discover_devices.sh)"
|
||||
devices=$(./tools/discover_devices.sh --dut-only)
|
||||
eval "$devices"
|
||||
echo "Flashing profile '$PROFILE' to: $DUT_PORT" >&2
|
||||
|
||||
./tools/build.sh "$PROFILE"
|
||||
@@ -16,7 +17,8 @@ if ! idf.py -B "build-$PROFILE" -p "$DUT_PORT" flash; then
|
||||
# entering download mode re-enumerates the USB device; rediscover once
|
||||
sleep 2
|
||||
cd ..
|
||||
eval "$(./tools/discover_devices.sh)"
|
||||
devices=$(./tools/discover_devices.sh --dut-only)
|
||||
eval "$devices"
|
||||
cd firmware
|
||||
idf.py -B "build-$PROFILE" -p "$DUT_PORT" flash
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user