From 0ca724c23c34b4f52eeb754c5e7e8560deaec03b Mon Sep 17 00:00:00 2001 From: thetechprepper Date: Fri, 19 Sep 2025 05:59:28 -0700 Subject: [PATCH] fx-4cr Initial integration PnP. The TX audio side is still in development, however, received audio and CAT control work. --- .../etc/udev/rules.d/89-et-bg2fx-fx4cr.rules | 23 ++++++++++++++++++ .../conf/radios.d/bg2fx-fx4cr.json | 24 +++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 overlay/etc/udev/rules.d/89-et-bg2fx-fx4cr.rules create mode 100644 overlay/opt/emcomm-tools/conf/radios.d/bg2fx-fx4cr.json diff --git a/overlay/etc/udev/rules.d/89-et-bg2fx-fx4cr.rules b/overlay/etc/udev/rules.d/89-et-bg2fx-fx4cr.rules new file mode 100644 index 0000000..c7d6817 --- /dev/null +++ b/overlay/etc/udev/rules.d/89-et-bg2fx-fx4cr.rules @@ -0,0 +1,23 @@ +# Author : Gaston Gonzalez +# Date : 18 September 2025 +# Purpose : udev rules for the FX-4CR by BG2FX +# +# Preconditions: +# 1. FX-4CR connected via USB cable +# +# Postconditions: +# 1. /dev/et-cat created +# 2. rigctld is started +# 3. /dev/et-audio created + +SUBSYSTEM=="tty", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="7523", ENV{ET_DEVICE}=="", \ + ACTION=="add", \ + ENV{ET_DEVICE}="FX-4CR", ENV{ET_SUBDEVICE}="CAT", GROUP="dialout", MODE="0660", SYMLINK+="et-cat", \ + RUN+="/usr/bin/systemctl start rigctld" + +# PROGRAM="/opt/emcomm-tools/sbin/udev-tester.sh digirig-mobile", \ +SUBSYSTEM=="sound", ATTRS{idVendor}=="4c4a", ATTRS{idProduct}=="4155", \ + ACTION=="add", \ + ENV{ET_DEVICE}="FX-4CR", \ + ATTR{id}="ET_AUDIO", \ + ENV{ET_SUBDEVICE}="AUDIO", GROUP="audio", MODE="0660", SYMLINK+="et-audio" diff --git a/overlay/opt/emcomm-tools/conf/radios.d/bg2fx-fx4cr.json b/overlay/opt/emcomm-tools/conf/radios.d/bg2fx-fx4cr.json new file mode 100644 index 0000000..15a587c --- /dev/null +++ b/overlay/opt/emcomm-tools/conf/radios.d/bg2fx-fx4cr.json @@ -0,0 +1,24 @@ +{ + "id": "bg2fx-fx4cr", + "vendor": "BG2FX", + "model": "FX-4CR", + "rigctrl": { + "id": "2031", + "baud": "115200", + "ptt": "RTS", + "pttOnly": "false" + }, + "notes": [ + "THESE NOTES ARE A WORK IN PROGRESS", + "Short press [PWR], then rotate AF knob until POW = 5.0", + "Toggle [SSB] button until both USB and DIG appear", + "Short press [M. V] until VFOA is displayed", + "Set radio volume to 50", + "Set mic gain to ?", + "Set alsamixer PCM to ?", + "Set alsamixer Mic to 50", + "Set alsamixer AFC to mm" + ], + "fieldNotes": [ + ] +}