mercury - Updated all systemd service to user only three Mercury modes: ARQ, broadcast and custom

This commit is contained in:
thetechprepper
2026-08-26 10:37:28 -07:00
parent 54c50a250a
commit 5cf4885a94
7 changed files with 30 additions and 61 deletions
+4 -5
View File
@@ -2,7 +2,7 @@
#
# Author : Gaston Gonzalez
# Date : 12 November 2024
# Updated : 23 August 2026
# Updated : 26 August 2026
# Purpose : Stops all EmComm Tools soundcard-based services (i.e. modems)
# and radio applications to ensure a clean start for the next mode.
@@ -40,10 +40,9 @@ stop_all_services() {
pkill -9 modem73
# Stop the Mercury HF modem
systemctl --user stop et-service-mercury-balanced
systemctl --user stop et-service-mercury-reliability
systemctl --user stop et-service-mercury-fast
systemctl --user stop et-service-mercury-winlink
systemctl --user stop et-service-mercury-arq
systemctl --user stop et-service-mercury-broadcast
systemctl --user stop et-service-mercury-custom
pkill mercury
# Stop VARA with a sledge hammer
+2 -2
View File
@@ -2,7 +2,7 @@
#
# Author : Gaston Gonzalez
# Date : 6 November 2024
# Updated : 23 August 2026
# Updated : 26 August 2026
# Purpose : Configures the system for a specific mode of operation
# Use a simple text file to save the state of the last mode selected
@@ -256,7 +256,7 @@ if [ $exit_status -eq 0 ]; then
;;
${MODE_ID_WINLINK_MERCURY})
et-log "Using Mercury as the modem."
start_and_wait_for_service et-service-mercury-winlink
start_and_wait_for_service et-service-mercury-arq
start_and_wait_for_service et-service-winlink-mercury
min http://localhost:8080
;;
+5 -18
View File
@@ -2,7 +2,7 @@
#
# Author : Gaston Gonzalez
# Date : 12 May 2026
# Updated : 21 July 2026
# Updated : 26 August 2026
# Purpose : Wrapper script for starting Reticulum with PnP support
#
# Preconditions:
@@ -111,12 +111,7 @@ if [[ $? -eq 0 ]]; then
HAS_MERCURY_CONFIG=`grep "Mercury HF" ~/.reticulum/config`
if [[ $? -eq 0 ]]; then
modem_options+=("mercury-reliability" "Max reliability (Slower Speed) [DATAC1]")
# The modes below, DATAC17 and QAM16C2, are documented on the RETICULUM.md
# documenation on the mercury GitHub project, but are not yet supported in
# version 1.9.9. Disabling these options from the UI for now.
#modem_options+=("mercury-balanced" "Balanced (Reliability and Speed) [DATAC17]")
#modem_options+=("mercury-fast" "Fast (Low Reliability) [QAM16C2]")
modem_options+=("mercury-broadcast" "Mercury Broadcast Mode")
fi
if [[ ${#modem_options[@]} -gt 0 ]]; then
@@ -178,17 +173,9 @@ if [[ $? -eq 0 ]]; then
et-log "Starting modem73 in fastest mode"
start_and_wait_for_service et-service-modem73-fastest
;;
mercury-reliability)
et-log "Starting mercury in reliability mode"
start_and_wait_for_service et-service-mercury-reliability
;;
mercury-balanced)
et-log "Starting mercury in balanced mode"
start_and_wait_for_service et-service-mercury-balanced
;;
mercury-fast)
et-log "Starting mercury in fast mode"
start_and_wait_for_service et-service-mercury-fast
mercury-broadcast)
et-log "Starting mercury in broadcast mode"
start_and_wait_for_service et-service-mercury-broadcast
;;
esac
fi