mirror of
https://github.com/la5nta/pat
synced 2026-08-07 22:32:06 -04:00
Linux ax25 scripts: Add method for custom TNC initialization
Also included an example for Kenwood TNCs. Closes #53
This commit is contained in:
parent
2b19a7f2b9
commit
acbc7a4321
2 changed files with 19 additions and 3 deletions
|
|
@ -1,10 +1,22 @@
|
|||
# Configuration for AX.25 systemd unit file from Pat.
|
||||
|
||||
# The axport from /etc/ax25/axports to bring up
|
||||
# The axport from /etc/ax25/axports to bring up.
|
||||
AXPORT=wl2k
|
||||
|
||||
# The AX.25 baudrate the TNC is configured for. (Make sure this matches the HBAUD setting of your TNC).
|
||||
# The AX.25 baudrate the TNC is configured for.
|
||||
# Make sure this matches the HBAUD setting of your TNC.
|
||||
HBAUD=1200
|
||||
|
||||
# The TNC serial path
|
||||
# The TNC serial path.
|
||||
DEV=/dev/ttyUSB0
|
||||
|
||||
# Script for initializing the TNC.
|
||||
#
|
||||
# This optional parameter is convenient when dealing with TNCs that require
|
||||
# additional initialization, e.g. entering KISS mode. Modify to fit your own needs.
|
||||
#
|
||||
#TNC_INIT_CMD="/usr/local/bin/my_tnc_init_script --serial-tty $DEV --hbaud $HBAUD"
|
||||
#
|
||||
# Example (for Kenwood TH-D7x and TM-D7x0):
|
||||
# Download, modify, compile and install http://www.trinityos.com/HAM/CentosDigitalModes/usr/src/misc/D710/tmd710_tncsetup.c
|
||||
#TNC_INIT_CMD="/usr/local/bin/tmd710_tncsetup -B 1 -S $DEV -b $HBAUD"
|
||||
|
|
|
|||
|
|
@ -7,6 +7,10 @@ if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ]
|
|||
then echo "Usage: $0 [tty] [axport] [1200/9600]"
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
# Init TNC (optional)
|
||||
[ -z "$TNC_INIT_CMD" ] || eval "$TNC_INIT_CMD";
|
||||
|
||||
if [ "$3" -eq "9600" ]; then
|
||||
/usr/sbin/kissattach $1 $2 -m 256
|
||||
/usr/sbin/kissparms -p $2 -t 100 -l 10 -s 12 -r 80 -f n
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue