2024-09-28 15:24:06 -07:00
|
|
|
# Author : Gaston Gonzalez
|
|
|
|
|
# Date : 28 September 2024
|
2024-11-04 11:44:37 -07:00
|
|
|
# Updated : 4 November 2024
|
2024-09-28 15:24:06 -07:00
|
|
|
# Purpose : udev rules for the Icom IC-705
|
|
|
|
|
#
|
|
|
|
|
# Preconditions:
|
|
|
|
|
# 1. IC-705 connected via USB cable
|
|
|
|
|
#
|
|
|
|
|
# Postconditions:
|
|
|
|
|
# 1. /dev/et-cat created
|
|
|
|
|
# 2. /dev/et-gps created
|
2024-10-23 16:30:30 -07:00
|
|
|
# 3. /dev/et-audio created
|
2024-10-10 04:37:22 -07:00
|
|
|
# 3. rigctld is started
|
2024-10-10 07:10:46 -07:00
|
|
|
# 4. gpsd is started
|
2024-09-29 10:22:50 -07:00
|
|
|
#
|
2024-09-28 15:24:06 -07:00
|
|
|
# Resources
|
|
|
|
|
# - https://www.florian-wolters.de/posts/ic705-serial-device-symlinks/
|
|
|
|
|
|
2024-09-29 10:22:50 -07:00
|
|
|
# Set "IC-705" as an environment variable. This workaround is needed for the IC-705.
|
|
|
|
|
# Refer to the document under the Resources above for the background details.
|
|
|
|
|
KERNEL=="ttyACM[0-9]*", SUBSYSTEM=="tty", ATTRS{product}=="IC-705", \
|
|
|
|
|
ENV{ET_DEVICE}="IC-705"
|
2024-09-28 15:24:06 -07:00
|
|
|
|
|
|
|
|
# Create consistent device name/path for the CAT serial device
|
2024-09-30 16:36:31 -07:00
|
|
|
ENV{ET_DEVICE}=="IC-705", SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="00", \
|
2024-09-29 10:22:50 -07:00
|
|
|
ACTION=="add", \
|
2024-10-10 04:37:22 -07:00
|
|
|
ENV{ET_SUBDEVICE}="CAT", GROUP="dialout", MODE="0660", SYMLINK+="et-cat", \
|
2024-10-10 07:10:46 -07:00
|
|
|
RUN+="/usr/bin/systemctl start rigctld"
|
2024-09-28 15:24:06 -07:00
|
|
|
|
|
|
|
|
# Create consistent device name/path for the GPS serial device
|
2024-09-29 10:22:50 -07:00
|
|
|
ENV{ET_DEVICE}=="IC-705", SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="02", \
|
|
|
|
|
ACTION=="add", \
|
2024-10-06 06:52:57 -07:00
|
|
|
ENV{ET_SUBDEVICE}="GPS", GROUP="dialout", MODE="0660", SYMLINK+="et-gps", \
|
2024-10-10 07:10:46 -07:00
|
|
|
RUN+="/opt/emcomm-tools/sbin/wrapper-gpsd.sh start"
|
2024-09-28 15:24:06 -07:00
|
|
|
|
2024-10-23 18:52:01 -07:00
|
|
|
# This rule generically matches the following Icom radios:
|
|
|
|
|
# 1. IC-705
|
2024-11-04 11:44:37 -07:00
|
|
|
# 2. IC-7100
|
|
|
|
|
# 3. IC-7200
|
2024-10-23 16:30:30 -07:00
|
|
|
SUBSYSTEM=="sound", ATTRS{idVendor}=="08bb", ATTRS{idProduct}=="2901", ENV{ET_DEVICE}=="", \
|
|
|
|
|
ACTION=="add", \
|
|
|
|
|
ATTR{id}="ET_AUDIO", \
|
2024-10-23 18:52:01 -07:00
|
|
|
ENV{ET_DEVICE}="Icom generic", ENV{ET_SUBDEVICE}="AUDIO", GROUP="audio", MODE="0660", SYMLINK+="et-audio"
|