public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] udev and multiple usb-serial devices
@ 2006-08-17 12:58 Graham Murray
  2006-08-17 13:25 ` Neil Bothwick
  0 siblings, 1 reply; 2+ messages in thread
From: Graham Murray @ 2006-08-17 12:58 UTC (permalink / raw
  To: gentoo-user

Is there any logic to the order in which usb-serial devices are
enumerated when a system starts?

When using multiple usb-serial devices, the program(s) have to know to
which port each particular external device is connected. When
initially connecting, the first to be plugged in will be /dev/ttyUSB0
and so on. Having connected them all, looking at the output of
udevinfo, I can see the bus address to which each port is connected
and can create udev rules to create aliases to 'fixed' names which the
programs can reference. However when the system was restarted, the
mappings were wrong and the bus addresses for some of the ports were
swapped. I expected the /dev/ttyUSBx names to change, that is why I
tried mapping to the bus ID (eg 1-4.1:1.0).

Is there any way to write udev rules which will map the usb-serial
device connected to a particular socket on either the PC or a hub to a
known name? So that if the usb connector is removed and replaced (in
the same socket) or the system is rebooted that programs will be able
to open the correct device connected to each usb serial adaptor?
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-08-17 13:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-17 12:58 [gentoo-user] udev and multiple usb-serial devices Graham Murray
2006-08-17 13:25 ` Neil Bothwick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox