summaryrefslogtreecommitdiff
path: root/stacks/tncs/pktnc2-to-hybbx.sh
diff options
context:
space:
mode:
authorinfo@mode42.com <info@mode42.com>2026-08-07 18:25:13 +0000
committerinfo@mode42.com <info@mode42.com>2026-08-07 18:25:13 +0000
commit04d965d67a7264a1c7c211494aebda1953df7603 (patch)
tree0ebd700a6e219f84a26a656f4bee8778bc75da7b /stacks/tncs/pktnc2-to-hybbx.sh
Initial push
Diffstat (limited to 'stacks/tncs/pktnc2-to-hybbx.sh')
-rwxr-xr-xstacks/tncs/pktnc2-to-hybbx.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/stacks/tncs/pktnc2-to-hybbx.sh b/stacks/tncs/pktnc2-to-hybbx.sh
new file mode 100755
index 0000000..0444b5f
--- /dev/null
+++ b/stacks/tncs/pktnc2-to-hybbx.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+# AX.25 UI frame PK-TNC2 -> HyBBX/TNC2C over the air.
+# HyBBX must be running on Unit A (ttyS4). PK-TNC2: boot-wait first.
+#
+# Usage: ./pktnc2-to-hybbx.sh [message] [src] [dst]
+# Default: "CONNECT" CB-0-2 CB-0
+
+set -euo pipefail
+ROOT="$(cd "$(dirname "$0")" && pwd)"
+# shellcheck source=/dev/null
+source "$ROOT/pktnc2-serial.env"
+
+MSG="${1:-CONNECT}"
+SRC="${2:-CB-0-2}"
+DST="${3:-CB-0}"
+
+if pgrep -x hybbx >/dev/null && fuser -s "$TNC_DEV" 2>/dev/null; then
+ echo "WARN: HyBBX may hold ttyS5 - only ttyS4 should be active" >&2
+fi
+
+echo "ON-AIR TX: $SRC -> $DST: $MSG"
+echo "Radio: both on same MHz (e.g. 27.235 K24), SQ closed before TX"
+export TNC2C_DEV="$TNC_DEV" TNC2C_BAUD="$TNC_BAUD" TNC2C_LINE="$TNC_LINE"
+exec "$ROOT/tnc2c-send-test.sh" "$MSG" "$SRC" "$DST"
git clone -b <branch> https://cgit.mode42.com/<repo>.git
git clone -b <branch> git://cgit.mode42.com/<repo>.git

info@mode42.com