Merging misc/radio-support

This commit is contained in:
Gaston Gonzalez
2024-11-10 10:46:30 -07:00
4 changed files with 30 additions and 7 deletions
@@ -1,5 +1,6 @@
# Author : Gaston Gonzalez
# Date : 12 October 2024
# Updated : 10 November 2024
# Purpose : udev rules for the QRP Labs QMX
#
# Preconditions:
@@ -7,7 +8,8 @@
#
# Postconditions:
# 1. /dev/et-cat created
# 2. rigctld started
# 2. /dev/et-audio created
# 3. rigctld started
# Detect ET_DEVICE early and use for rules that follow
KERNEL=="ttyACM[0-9]*", SUBSYSTEM=="tty", ATTRS{product}=="QMX*", \
@@ -19,4 +21,7 @@ ENV{ET_DEVICE}=="QMX", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="a34c", \
ENV{ET_SUBDEVICE}="CAT", GROUP="dialout", MODE="0660", SYMLINK+="et-cat", \
RUN+="/usr/bin/systemctl start rigctld"
# TODO: Add sound card support
SUBSYSTEM=="sound", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="a34c", ATTRS{manufacturer}=="QRP Labs", ENV{ET_DEVICE}=="", \
ACTION=="add", \
ATTR{id}="ET_AUDIO", \
ENV{ET_DEVICE}="QMX", ENV{ET_SUBDEVICE}="AUDIO", GROUP="audio", MODE="0660", SYMLINK+="et-audio"
+15 -4
View File
@@ -2,7 +2,7 @@
#
# Author : Gaston Gonzalez
# Date : 11 October 2024
# Updated : 3 November 2024
# Updated : 10 November 2024
# Purpose : A script for managaing plug-and-play radios
set -e
@@ -10,6 +10,11 @@ ACTIVE_RADIO="${ET_HOME}/conf/radios.d/active-radio.json"
NO_RADIO_ID="no-radio"
YELLOW="\033[1;33m"
GREEN="\033[0;32m"
RED="\033[0;31m"
NC="\033[0m"
options=()
options+=("${NO_RADIO_ID}" "No radio")
while IFS= read -r radio; do
@@ -44,13 +49,19 @@ if [ $exit_status -eq 0 ]; then
MODEL=$(cat ${ACTIVE_RADIO} | jq -r .model)
printf "%-20s %-10s %-10s\n" "Radio ID" "Vendor" "Model"
printf "%-20s %-10s %-10s\n" $ID "$VENDOR" "$MODEL"
printf "%-20s %-10s %-10s\n\n" $ID "$VENDOR" "$MODEL"
printf "\nConfiguration Notes\n"
printf "${YELLOW}RADIO CONFIGURATION NOTES\n"
cat ${ACTIVE_RADIO} | jq -r '.notes[] | "* \(.)"'
echo -e "${NC}"
printf "\n** Plug in radio. If already connected, reconnect it.\n"
printf "${GREEN}REQUIRED ACTIONS\n"
printf "1. Apply the settings above to your radio.\n"
printf "2. Plug in the USB cable for your radio. If it is already connected, reconnect it.\n"
printf "3. Run 'et-mode' and select the desired mode of operation.\n\n"
printf " Note: JS8Call does not require a mode to be selected.\n"
echo -e "${NC}"
else
echo "No radio selected."
fi
@@ -8,6 +8,6 @@
"ptt": "RIG"
},
"notes": [
"The QMX uses the Kenwood TS-440 CAT control driver"
"This is device is purely plug-and-play and requires no changes."
]
}
@@ -8,6 +8,13 @@
"ptt": "RTS"
},
"notes": [
"AGC = OFF (AGC--)",
"MODE = U-D",
"RF-GAIN = 50%",
"AUX IN = 10",
"AUX OUT = 13"
],
"fieldNotes": [
"Set AGC: Short press [AGC]",
"Set Mode: Press Mode arrow keys on top of head unit ",
"Set RF Gain: Long press [AGC]. Use VFO knob to change",