From 21c50230961fabcd3224a5a6be52881f37034070 Mon Sep 17 00:00:00 2001 From: thetechprepper Date: Tue, 12 May 2026 08:27:10 -0700 Subject: [PATCH] reticulum - Initial work add Reticulum to et-mode --- overlay/opt/emcomm-tools/bin/et-mode | 40 +++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/overlay/opt/emcomm-tools/bin/et-mode b/overlay/opt/emcomm-tools/bin/et-mode index 3700d3b..65b86c4 100755 --- a/overlay/opt/emcomm-tools/bin/et-mode +++ b/overlay/opt/emcomm-tools/bin/et-mode @@ -2,7 +2,7 @@ # # Author : Gaston Gonzalez # Date : 6 November 2024 -# Updated : 16 March 2026 +# Updated : 12 May 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 @@ -19,6 +19,7 @@ MODE_ID_BBS_CLIENT2="bbs-client2" MODE_ID_BBS_SERVER="bbs-server" MODE_ID_CHAT_CLIENT="chat-chattervox" MODE_ID_PACKET_DIGIPEATER="packet-digipeater" +MODE_ID_RETICULUM_PACKET="reticulum-packet" MODE_ID_WINLINK_ARDOP="winlink-ardop" MODE_ID_WINLINK_PACKET="winlink-packet" MODE_ID_WINLINK_VARA_HF="winlink-vara-hf" @@ -129,6 +130,27 @@ select_term_mode () { fi } +select_reticulum_mode () { + term_mode=() + term_mode+=("1200" "1200 baud (default for VHF/UHF)") + term_mode+=("300" "300 baud (HF)") + + TERM_MODE=$(dialog --clear --menu "Select a modem" 13 60 10 "${term_mode[@]}" 3>&1 1>&2 2>&3) + + dialog \ + --title "Note on Reticulum" \ + --yesno "Reticulum uses end-to-end encryption. Check your local laws and regulations and ensure that you can legally run this mode!" \ + 0 0 + exit_status=$? + + tput sgr 0 && clear + + if [ ${exit_status} -ne 0 ]; then + et-log "User canceled mode selection. Mode will not be started." + exit 1 + fi +} + wwv_mode () { dialog --title "Note on WWV" --msgbox "Manually set your radio to AM and tune it to one of the WWV frequencies appropriate for this operating time.\n\nTry: 2.5, 5, 10, 15 or 20 MHz." 0 0 tput sgr 0 && clear @@ -157,6 +179,7 @@ if [ -e "${HOME}/.wine32/drive_c/VARA/VARA.exe" ]; then fi options+=("${MODE_ID_TIME_WWV}" "Sync clock to WWV") +options+=("${MODE_ID_RETICULUM_PACKET}" "Reticulum over AX.25 Packet") # Prompt user for option and save exit status SELECTED_MODE=$(dialog --clear --menu "Select a mode:" 18 65 10 "${options[@]}" 3>&1 1>&2 2>&3) @@ -275,6 +298,21 @@ if [ $exit_status -eq 0 ]; then wwv_mode sudo /opt/emcomm-tools/sbin/wrapper-et-wwv.sh ;; + ${MODE_ID_RETICULUM_PACKET}) + select_reticulum_mode + et-log "Using ${TERM_MODE} as the modem." + + case "${TERM_MODE}" in + "1200") + start_and_wait_for_service et-service-reticulum-1200 + ;; + "300") + start_and_wait_for_service et-service-reticulum-300 + ;; + esac + + nomadnet + ;; *) et-log "Mode ${SELECTED_MODE} not yet supported" exit 1