Update HIL verification for hop-marked repeats
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user