From a4c07473a1bfbb3e5c0d76c50eb39c45882df45c Mon Sep 17 00:00:00 2001 From: thetechprepper Date: Sat, 31 May 2025 13:29:01 -0700 Subject: [PATCH] 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. --- overlay/opt/emcomm-tools/bin/et-js8call | 28 +------------------------ 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/overlay/opt/emcomm-tools/bin/et-js8call b/overlay/opt/emcomm-tools/bin/et-js8call index d0d002f..9f5783b 100755 --- a/overlay/opt/emcomm-tools/bin/et-js8call +++ b/overlay/opt/emcomm-tools/bin/et-js8call @@ -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) " 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