I like my Ubuntu USB serial ports to stick to the same link for JMRI

There is nothing in the

/etc/udev/rules.d

folder containing anything related to ttyUSBx, so I created

49-udev.rules

containing simply:

SUBSYSTEMS=="usb-serial", KERNELS=="ttyUSB?", DRIVERS=="pl2303", SYMLINK+="ttyUSBDCC"
SUBSYSTEMS=="usb-serial", KERNELS=="ttyUSB?", DRIVERS=="ftdi_sio", SYMLINK+="ttyUSBCAN"

and now in JMRI I only need to use

/dev/ttyUSBCAN

and

/dev/ttyUSBDCC

instead of the /dev/ttyUSB0 and /dev/ttyUSB1 changing around on every prime reboot.

I used:

sudo udevadm info -a -p $(sudo udevadm info -q path -n /dev/ttyUSB0)   # and USB1

to get some information for the rules to use.

Advertisements

~ by nambabwe on 2015/01/01.

 
%d bloggers like this: