Dire Wolf - Added supported for RF-only digipeater

This commit is contained in:
Gaston Gonzalez
2024-11-01 15:47:40 -07:00
parent 5210ebca8a
commit a895534394
2 changed files with 53 additions and 6 deletions
+25 -5
View File
@@ -14,16 +14,36 @@
DIREWOLF_CONF_FILE=${ET_HOME}/conf/template.d/packet/direwolf.conf DIREWOLF_CONF_FILE=${ET_HOME}/conf/template.d/packet/direwolf.conf
usage() { usage() {
echo "usage: $(basename $0) <command>" echo "usage: $(basename $0) <command> <type>"
echo " start - Update config and start Dire Wolf" echo " <command>"
echo " update-config - Update config" echo " start - Start Dire Wolf in selected mode"
echo " update-config - Update configuration for selected mode"
echo ""
echo " <type>"
echo " digipeater-only - Run in RF-only digipeater mode"
echo " simple-packet - Run in simple packet mode"
} }
if [ $# -ne 1 ]; then if [ $# -ne 2 ]; then
usage usage
exit 1 exit 1
fi fi
MODE=$2
case "${MODE}" in
digipeater-only)
DIREWOLF_TEMPLATE_CONF_FILE="${ET_HOME}/conf/template.d/packet/direwolf.${MODE}.conf"
;;
simple-packet)
DIREWOLF_TEMPLATE_CONF_FILE="${ET_HOME}/conf/template.d/packet/direwolf.${MODE}.conf"
;;
*)
et-log "Can't started Dire Wolf. Mode '${MODE}' not supported"
usage
exit 1
;;
esac
notify_user() { notify_user() {
notify-send \ notify-send \
-t 5000 \ -t 5000 \
@@ -47,7 +67,7 @@ start() {
update-config () { update-config () {
DIREWOLF_TEMPLATE_CONF_FILE=${ET_HOME}/conf/template.d/packet/direwolf.simple-packet.conf et-log "Attempting to start Dire Wolf in mode: '${MODE}'"
[ -z "$ET_USER_CONFIG" ] && ET_USER_CONFIG="${HOME}/.config/emcomm-tools/user.json" [ -z "$ET_USER_CONFIG" ] && ET_USER_CONFIG="${HOME}/.config/emcomm-tools/user.json"
@@ -0,0 +1,27 @@
# Author : Gaston Gonzalez
# Date : 1 November 2024
# Purpose : Dire Wolf template for basic RF-only digipeater operation
# Audio settings
ADEVICE {{ET_AUDIO_DEVICE}}
CHANNEL 0
# User settings
MYCALL {{ET_CALLSIGN}}-4
# Modem settings
MODEM 1200
# Rig control settings. Do not change this.
# EmComm Tools uses Hamlib's rig control daemon for all radio interfaces.
PTT RIG 2 localhost:4532
# Enable ports to allow other applications use Dire Wolf as the packet engine
AGWPORT 8000
KISSPORT 8001
# TODO: Replace lat with {{ET_LAT_DECIMAL}}
# TODO: Replace lon with {{ET_LON_DECIMAL}}
PBEACON delay=1 every=30 overlay=S symbol="digi" lat=33.5828 long=-112.1499 power=5 height=16 gain=9 comment="EmComm Tools Digi" via=WIDE1-1
DIGIPEAT 0 0 ^WIDE[3-7]-[1-7]$|^TEST$ ^WIDE[12]-[12]$ TRACE
IGTXLIMIT 6 10