mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
reticulum - Initial work add Reticulum to et-mode
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Author : Gaston Gonzalez
|
# Author : Gaston Gonzalez
|
||||||
# Date : 6 November 2024
|
# Date : 6 November 2024
|
||||||
# Updated : 16 March 2026
|
# Updated : 12 May 2026
|
||||||
# Purpose : Configures the system for a specific mode of operation
|
# Purpose : Configures the system for a specific mode of operation
|
||||||
|
|
||||||
# Use a simple text file to save the state of the last mode selected
|
# 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_BBS_SERVER="bbs-server"
|
||||||
MODE_ID_CHAT_CLIENT="chat-chattervox"
|
MODE_ID_CHAT_CLIENT="chat-chattervox"
|
||||||
MODE_ID_PACKET_DIGIPEATER="packet-digipeater"
|
MODE_ID_PACKET_DIGIPEATER="packet-digipeater"
|
||||||
|
MODE_ID_RETICULUM_PACKET="reticulum-packet"
|
||||||
MODE_ID_WINLINK_ARDOP="winlink-ardop"
|
MODE_ID_WINLINK_ARDOP="winlink-ardop"
|
||||||
MODE_ID_WINLINK_PACKET="winlink-packet"
|
MODE_ID_WINLINK_PACKET="winlink-packet"
|
||||||
MODE_ID_WINLINK_VARA_HF="winlink-vara-hf"
|
MODE_ID_WINLINK_VARA_HF="winlink-vara-hf"
|
||||||
@@ -129,6 +130,27 @@ select_term_mode () {
|
|||||||
fi
|
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 () {
|
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
|
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
|
tput sgr 0 && clear
|
||||||
@@ -157,6 +179,7 @@ if [ -e "${HOME}/.wine32/drive_c/VARA/VARA.exe" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
options+=("${MODE_ID_TIME_WWV}" "Sync clock to WWV")
|
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
|
# 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)
|
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
|
wwv_mode
|
||||||
sudo /opt/emcomm-tools/sbin/wrapper-et-wwv.sh
|
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"
|
et-log "Mode ${SELECTED_MODE} not yet supported"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user