I have a device, namely a Davis Vantage Pro2 Weather Station
Console,
attached to the second USB port on a laptop; the first port is used by a
mouse. Occasionally the port on which the console is visible changes
from /dev/ttyUSB0 to /dev/ttyUSB1. I haven't noticed any reason for
this, in particular no change in physical connections; it just happens
when it happens. This prevents some software which handles the console
from operating, since it's expecting to find the console
on /dev/ttyUSB0.
Has anyone else noticed anything similar? Any idea what's happening?
Thanks - jon
You can create rules in /etc/udev/rules.d eg "10-local.rules (see man udev)
and do something like:
BUS=="usb", SYSFS{serial}=="1234",KERNEL=="ttyUSB*",
SYMLINK+="wx"
this way whenever the USB device is plugged in a symlink will be created
from /dev/wx pointing to /dev/ttyUSBx The only problem is many of the
cheap usb to serial adapters all have a serial number of "0" and there is
nothing unique separating one device from the other.
Jeff