diff --git a/overlay/etc/udev/rules.d/88-et-qrplabs-qmx.rules b/overlay/etc/udev/rules.d/88-et-qrplabs-qmx.rules new file mode 100644 index 0000000..32faa20 --- /dev/null +++ b/overlay/etc/udev/rules.d/88-et-qrplabs-qmx.rules @@ -0,0 +1,22 @@ +# Author : Gaston Gonzalez +# Date : 12 October 2024 +# Purpose : udev rules for the QRP Labs QMX +# +# Preconditions: +# 1. QMX connected via USB cable +# +# Postconditions: +# 1. /dev/et-cat created +# 2. rigctld started + +# Detect ET_DEVICE early and use for rules that follow +KERNEL=="ttyACM[0-9]*", SUBSYSTEM=="tty", ATTRS{product}=="QMX*", \ + ENV{ET_DEVICE}="QMX" + +# Create consistent device name/path for the CAT serial device +ENV{ET_DEVICE}=="QMX", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="a34c", \ + ACTION=="add", \ + ENV{ET_SUBDEVICE}="CAT", GROUP="dialout", MODE="0660", SYMLINK+="et-cat", \ + RUN+="/usr/bin/systemctl start rigctld" + +# TODO: Add sound card support diff --git a/overlay/opt/emcomm-tools/bin/et-radio b/overlay/opt/emcomm-tools/bin/et-radio index 502a958..e2e5693 100755 --- a/overlay/opt/emcomm-tools/bin/et-radio +++ b/overlay/opt/emcomm-tools/bin/et-radio @@ -29,7 +29,7 @@ case $1 in VENDOR=$(cat $radio | jq -r .vendor) MODEL=$(cat $radio | jq -r .model) - printf "%-20s %-10s %-10s\n" $ID $VENDOR $MODEL + printf "%-20s %-10s %-10s\n" $ID "$VENDOR" "$MODEL" done ;; @@ -62,7 +62,7 @@ case $1 in 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" $ID "$VENDOR" "$MODEL" printf "\nConfiguration Notes\n" cat ${ACTIVE_RADIO} | jq -r '.notes[] | "* \(.)"' diff --git a/overlay/opt/emcomm-tools/conf/radios.d/qrplabs-qmx.json b/overlay/opt/emcomm-tools/conf/radios.d/qrplabs-qmx.json new file mode 100644 index 0000000..4242886 --- /dev/null +++ b/overlay/opt/emcomm-tools/conf/radios.d/qrplabs-qmx.json @@ -0,0 +1,13 @@ +{ + "id": "qrplabs-qmx", + "vendor": "QRP Labs", + "model": "QMX", + "rigctrl": { + "id": "2002", + "baud": "38400", + "ptt": "RIG" + }, + "notes": [ + "The QMX uses the Kenwood TS-440 CAT control driver" + ] +}