FTX-1 - Removed earlier logic for selectively changing the PTT settings. The FTX-1 uses Hamlib just like every device, so no need for this initial prototype logic. Note: CAT control is not support. No manual from Yaesu yet.

This commit is contained in:
thetechprepper
2025-05-31 13:29:01 -07:00
parent 7fa45bf0e3
commit a4c07473a1
+1 -27
View File
@@ -2,7 +2,7 @@
#
# Author : Gaston Gonzalez
# Date : 24 October 2024
# Updated : 26 May 2025
# Updated : 20 November 2024
# Purpose : Wrapper script for starting JS8Call with PnP support
#
# Preconditions
@@ -13,10 +13,6 @@
# 2. JS8Call audio settings updated
# 3. JS8Call started
ET_HOME=/opt/emcomm-tools
ACTIVE_RADIO="${ET_HOME}/conf/radios.d/active-radio.json"
CAT_DEVICE=/dev/et-cat
usage() {
echo "usage: $(basename $0) <command>"
echo " start - Update config and start JS8Call"
@@ -67,28 +63,6 @@ update-config () {
ET_RELEASE=$(et-system-info release)
sed -i "s|^MyInfo.*|MyInfo=${ET_RELEASE}|" ${JS8CALL_CONF_FILE}
# Set PTT to use Hamlib for both CAT control and PTT (default)
sed -i "s|^PTTport.*|PTTport=localhost:4532|" ${JS8CALL_CONF_FILE}
sed -i "s|PTT_method_[A-Z][A-Z][A-Z]|PTT_method_CAT|" ${JS8CALL_CONF_FILE}
# Special case for select radios that only need to key the PTT, but do not
# have CAT control support or VOX support. This edge case was added for
# radios like the Yaesu FTX-1 Field before Yaesu published their CAT commands.
if [ -L "${ET_HOME}/conf/radios.d/active-radio.json" ]; then
RIG_ID=$(cat "${ET_HOME}/conf/radios.d/active-radio.json" | jq -r .rigctrl.id)
if [ "${RIG_ID}" = "1" ]; then
PTT_ONLY=$(cat ${ET_HOME}/conf/radios.d/active-radio.json | jq -r .rigctrl.pttOnly)
if [ "${PTT_ONLY}" = "true" ]; then
et-log "Configued JS8Call for PTT-only mode"
sed -i "s|PTT_method_[A-Z][A-Z][A-Z]|PTT_method_RTS|" ${JS8CALL_CONF_FILE}
sed -i "s|^PTTport.*|PTTport=/dev/et-cat|" ${JS8CALL_CONF_FILE}
fi
fi
fi
et-log "Updated JS8Call configuration with user callsign '${CALLSIGN}' and grid: '${GRID}'"
# 1. Check if the symlink was created by the udev rules