tlf-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hamlib keying?


From: Christoph Berg
Subject: Re: Hamlib keying?
Date: Wed, 16 Oct 2024 22:56:01 +0200

Re: K1VP
> I have used this technique with great success, but I have also used UDEV
> rules with great success as well.  I usually have two USB to serial
> converters active at all times so keeping them straight is essential.
> Using the assigned names was a best an exercise in frustration until I
> wrote UDEV rules or used the id method.

For an example how that looks like:

/etc/udev/rules.d/shack.rules:

# 10c4:ea60 Silicon Labs CP210x UART Bridge (IC-7610)
SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", 
ATTRS{serial}=="IC-7610 * A", SYMLINK+="ic7610", 
ENV{SYSTEMD_USER_WANTS}+="ic7610.service"
SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", 
ATTRS{serial}=="IC-7610 * B", SYMLINK+="ic7610b", 
ENV{SYSTEMD_USER_WANTS}+="ic7610.service"

(More in https://github.com/df7cb/df7cb-shack/blob/master/udev/shack.rules)

That creates symlinks when the TRX is connected:

lrwxrwxrwx 1 root root 7 16. Okt 20:49 /dev/ic7610 -> ttyUSB0
lrwxrwxrwx 1 root root 7 16. Okt 20:49 /dev/ic7610b -> ttyUSB1

It also automatically starts a rigctld if you have the matching

~/.config/systemd/user/ic7610.service file:

[Unit]
Description=TCP radio control daemon (IC-7610)
StopWhenUnneeded=true

[Service]
ExecStart=/usr/bin/rigctld -m 3078 -r /dev/ic7610

[Install]
WantedBy=default.target

Christoph



reply via email to

[Prev in Thread] Current Thread [Next in Thread]