mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
Winlink - In preparation to support VARA FM and HF, I started to refactor the Winlink modes. Added support for Winlink configuration templates. Added supported for native AX.25 packet for devices that use /dev/rfcomm0 and a Bluetooth TNC
This commit is contained in:
@@ -2,14 +2,14 @@
|
||||
#
|
||||
# Author : Gaston Gonzalez
|
||||
# Date : 1 January 2025
|
||||
# Updated : 3 January 2025
|
||||
# Updated : 3 February 2025
|
||||
# Purpose : Utility for accessing the Bluetooth TNC on the BTECH
|
||||
# UV PRO.
|
||||
|
||||
ACTIVE_RADIO="${ET_HOME}/conf/radios.d/btech-uvpro.bt.json"
|
||||
DEVICE_NAME="UV-PRO"
|
||||
BT_DEVICE="/dev/rfcomm0"
|
||||
AX25_PORT="pkt1200"
|
||||
AX25_PORT="wl2k"
|
||||
AX25_CONF_FILE="/etc/ax25/axports"
|
||||
|
||||
ESC="\x1B"
|
||||
@@ -78,15 +78,15 @@ update_ax25_conf() {
|
||||
|
||||
GREP_OUT=$(grep ${AX25_PORT} ${AX25_CONF_FILE})
|
||||
if [ $? -eq 0 ]; then
|
||||
# Delete all existing pkt1200 entries. Note: we can't use sed here
|
||||
# Delete all existing AX.25 port entries. Note: we can't use sed here
|
||||
# since we do not have permission to create a temporary file with
|
||||
# inline replacement. ed modifies the file directly.
|
||||
printf "g/^pkt1200/d\nw\nq\n" | ed ${AX25_CONF_FILE} > /dev/null 2>&1
|
||||
printf "g/^${AX25_PORT}/d\nw\nq\n" | ed ${AX25_CONF_FILE} > /dev/null 2>&1
|
||||
|
||||
fi
|
||||
|
||||
info_message "Adding AX25 port for ${CALLSIGN}"
|
||||
echo "pkt1200 ${CALLSIGN} 1200 255 2 1200 Packet" >> ${AX25_CONF_FILE}
|
||||
echo "${AX25_PORT} ${CALLSIGN} 1200 255 2 1200 Packet" >> ${AX25_CONF_FILE}
|
||||
}
|
||||
|
||||
stop_all_services() {
|
||||
@@ -235,8 +235,8 @@ EOF
|
||||
echo -e "${YELLOW}"
|
||||
echo -e "SAMPLE COMMANDS DESCRIPTION "
|
||||
echo -e "------------------------------- --------------------------------"
|
||||
echo -e "axcall pkt1200 <STATION> Connect directly to a node "
|
||||
echo -e "axcall pkt1200 <STATION> <DIGI> Connect to node via a digipeater"
|
||||
echo -e "axcall ${AX25_PORT} <STATION> Connect directly to a node "
|
||||
echo -e "axcall ${AX25_PORT} <DIGI> Connect to node via a digipeater"
|
||||
echo -e "sudo axlisten -a -tttt -c Monitor inbound and outbound traffic"
|
||||
echo -e "${NC}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user