mercury - Added initial support for Winlink over Mercury HF modem

This commit is contained in:
thetechprepper
2026-08-12 18:30:46 -07:00
parent 24d13e406b
commit 8454ddbda3
6 changed files with 74 additions and 4 deletions
+18 -1
View File
@@ -2,7 +2,7 @@
#
# Author : Gaston Gonzalez
# Date : 4 November 2024
# Updated : 4 February 2025
# Updated : 12 August 2026
# Purpose : Wrapper script for starting YAAC with PnP support
#
# Preconditions:
@@ -26,6 +26,7 @@ usage() {
echo " start-native-packet - Start Pat Winlink in native AX.25 packet mode"
echo " start-vara-fm - Start Pat Winlink in VARA FM mode"
echo " start-vara-hf - Start Pat Winlink in VARA HF mode"
echo " start-mercury-hf - Start Pat Winlink in Mercury HF mode"
}
if [ $# -ne 1 ]; then
@@ -112,6 +113,16 @@ start_vara_hf() {
${CMD}
}
start_mercury_hf() {
update_config mercury-hf
CMD="pat http"
et-log "Starting Pat with: ${CMD}"
${CMD}
}
update_config () {
[ -z "$ET_USER_CONFIG" ] && ET_USER_CONFIG="${HOME}/.config/emcomm-tools/user.json"
@@ -141,6 +152,9 @@ update_config () {
vara-hf)
PAT_CONF_FILE_TEMPLATE=/opt/emcomm-tools/conf/template.d/winlink/config.vara-hf.json
;;
mercury-hf)
PAT_CONF_FILE_TEMPLATE=/opt/emcomm-tools/conf/template.d/winlink/config.vara-hf.json
;;
esac
et-log "Updating Pat configuration file: ${PAT_CONF_FILE}..."
@@ -167,6 +181,9 @@ case $1 in
start-vara-hf)
start_vara_hf
;;
start-mercury-hf)
start_mercury_hf
;;
*)
echo "Invalid command."
usage