Posted: 11/25/2012 1:24:31 PM EDT
|
With my current base setup I have 2 usb to serial converters, 1 for the rig control/tnc and 1 for the PTT on my Donner interface.
I currently have to assign permissions to them every time I power the rig on or restart the computer. The other problem is sometimes the get switched ie /dev/ttyUSB0 becomes 1 which throws off all my software configurations. I thought it would be done by mounting them in /etc/fstab by their vendor/product id but my Google fu isn't finding anything. |
|
The answer is to put rules in udev.
Look under /etc/udev/rules.d I have a file for my radios called "97-serial.rules" with this in it: BUS=="usb", ATTRS{serial}=="IC-7200 0202504", GROUP="users", MODE="0660", SYMLINK+="icom0" SUBSYSTEMS=="usb-serial", DRIVERS=="pl2303", GROUP="users", MODE="0660", SYMLINK+="yaesu0" The stuff in front matches keys in the udev subsystem (google it, it's hugely complex but basically each device provides a bunch of keys that you can home in on) and the key at the end is the SYMLINKs, so no matter wath gets created, be it ttyUSB0 or ttyUSB49, it has a symlink in /dev that gets named icom0 that points back to the right serial port. |