User Tools

Site Tools


persistent_sound_interface

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
persistent_sound_interface [2023/07/05 17:08] – Add Transceiver Section mi7emgpersistent_sound_interface [2023/07/05 17:47] (current) – Added transceiver static device name text mi7emg
Line 87: Line 87:
  
 ===== Transceiver Device Names ===== ===== Transceiver Device Names =====
 +
 +If your radio can be controlled and provide audio through a USB <-> USB connection, you may find that turning the radio off and on results in the Linux device names changing from ''ttyUSB0 & ttyUSB1'' to ''ttyUSB1 & ttyUSB2'', which means either restarting the PC, or changing the software to use the new device names.
 +
 +First, check for the Vendor and Product id's by running ''lsusb'' In the screenshot below, the Icom IC-7100 shows as "Silicon Labs CP210x UART Bridge" for two different devices.  They both show the same Vendor (10c4) and Product (ea60) id's, so that can't be used to separate them.
 +
 +{{:udev-persistent-devices:lsusb-check-ids.png?direct|}}
 +
 +
 +Next, check the device serial numbers, changing ttyUSB1 and ttyUSB2 in the example below to match your current device names.
 +{{:udev-persistent-devices:udev-check-serial.png?direct|}}
 +
 +In the example, both the USB devices that are provided by the radio have different Serial Numbers, making it easy to separate them and assign individual, static names.
 +
 +Edit /etc/udev/rules.d/99-static-radio-name.rules and add rules to create symlinks for the devices:
 +<code>KERNEL=="ttyUSB*", ATTRS{serial}=="IC-7100 03008872 A", SYMLINK+="icom7100-a" 
 +KERNEL=="ttyUSB*", ATTRS{serial}=="IC-7100 03008872 B", SYMLINK+="icom7100-b"</code>
 +
 +You can then use ''/dev/icom7100-a'' instead of /dev/ttyUSB0 when configuring programs.
 +
persistent_sound_interface.1688576907.txt.gz · Last modified: 2023/07/05 17:08 by mi7emg