UV Pro - Re-implemented BTECH UV Pro command to support three modes following a connection: axcall, QtTermTCP and Winlink

This commit is contained in:
Gaston Gonzalez
2025-03-15 07:43:27 -07:00
parent fae9030a20
commit 04d11e1306
7 changed files with 330 additions and 104 deletions
+2 -14
View File
@@ -2,7 +2,7 @@
#
# Author : Gaston Gonzalez
# Date : 6 November 2024
# Updated : 17 February 2025
# Updated : 15 March 2025
# Purpose : Configures the system for a specific mode of operation
# Use a simple text file to save the state of the last mode selected
@@ -127,18 +127,6 @@ select_term_mode () {
fi
}
select_winlink_mode () {
winlink_mode=()
BLUETOOTH_TNC_CHECK=$(ps -ef | grep "[r]fcomm connect")
if [[ $? -eq 0 ]]; then
et-log "AX.25 over Bluetooth connected. Configuring Winlink for native AX.25"
start_and_wait_for_service et-service-winlink-native-packet
min http://localhost:8080
exit 0
fi
}
# Build list of options
options=()
options+=("${MODE_ID_NONE}" "No mode selected")
@@ -248,7 +236,7 @@ if [ $exit_status -eq 0 ]; then
min http://localhost:8080
;;
${MODE_ID_WINLINK_PACKET})
select_winlink_mode
winlink_mode
start_and_wait_for_service et-service-direwolf-simple
start_and_wait_for_service et-service-winlink-packet
min http://localhost:8080