On Tue, 2008-09-23 at 19:24 +0000, Roger C. Pao wrote:
> 'lsusb -v' will show a unique serial number (iSerial) for each device.
> I have three SIIG USB Serial adapters.
>
*snip*
> iSerial 3 OCBAKZ7N
> iSerial 3 OCBQH84W
> iSerial 3 OCBPJ9HM
*snip*
> I can live with either a method to fix ttyUSB# to either the iSerial
> (preferred) and/or the Bus+Device number.
>
Both are entirely possible, you simply need to add your own udev rules.
I suggest a name like /etc/udev/rules.d/50-serial-devices.rules
The iSerial rule would look like:
SUBSYSTEM=="tty", ATTRS{iSerial}=="OCBAKZ7N", SYMLINK+="mytty0"
SUBSYSTEM=="tty", ATTRS{iSerial}=="OCBQH84W", SYMLINK+="mytty1"
SUBSYSTEM=="tty", ATTRS{iSerial}=="OCBPJ9HM", SYMLINK+="mytty2"
I suggest using a symlink to a personally unique name, rather than
renaming the tty devices, as this avoids any race condition with two
swapping devices.
You'll then end up with /dev/mytty0..2 which point as whatever ttyUSB
number each has been assigned.
> Currently, after a reboot, only one will be assigned ttyUSB0, the other
> two will not be assigned anything.
>
That the others will not be assigned anything surprises me, is this with
no attempt at renaming via rules? Could you run "udevinfo -a -p" on
each of the sysfs paths you looked at?
> I have to manually unplug all three,
> then plug them using the order I want from 0 to 2.
>
The fact this works is contradictory to your statement that only one
device is ever assigned a name.
Scott
--
Scott James Remnant
[EMAIL PROTECTED]
--
Two USB serial adapters get different /dev/ttyUSBn names after reboot
https://bugs.launchpad.net/bugs/107208
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs