From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Dugas Date: Sat, 30 Jan 2010 18:50:04 +0000 Subject: Re: Multi-serial USB Device Message-Id: <7a09e2151001301050s2d70c32bjfc2663d9bad9a33b@mail.gmail.com> List-Id: References: <7a09e2151001301005m29daf8c8ndad88969d63918a4@mail.gmail.com> In-Reply-To: <7a09e2151001301005m29daf8c8ndad88969d63918a4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On Sat, Jan 30, 2010 at 1:25 PM, Paul Bender wrote: > I suspect that the device presents itself as 3 USB serial interfaces on o= ne > USB device. If so, then you should be able to use bInterfaceNumber to set > the USB serial device number. For example, > > KERNEL=3D"ttyUSB*", SYSFS{serial}=3D"111", \ > =A0SYMLINK+=3D"ttyLogger1USB$attr{bInterfaceNumber}" > KERNEL=3D"ttyUSB*", SYSFS{serial}=3D"222", \ > =A0SYMLINK+=3D"ttyLogger2USB$attr{bInterfaceNumber}" > KERNEL=3D"ttyUSB*", SYSFS{serial}=3D"333", \ > =A0SYMLINK+=3D"ttyLogger3USB$attr{bInterfaceNumber}" Yeah, started down that road at the start but no joy. # udevinfo -a -p /sys/class/tty/ttyUSB0 >/tmp/udevinfo.usb0 # udevinfo -a -p /sys/class/tty/ttyUSB1 >/tmp/udevinfo.usb1 # diff diff /tmp/udevinfo.usb0 /tmp/udevinfo.usb1 8,9c8,9 < looking at device '/class/tty/ttyUSB0': < KERNEL=3D"ttyUSB0" --- > looking at device '/class/tty/ttyUSB1': > KERNEL=3D"ttyUSB1" 11c11 < SYSFS{dev}=3D"188:0" --- > SYSFS{dev}=3D"188:1" 13,14c13,14 < looking at parent device '/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1.1/1-1.1:1.0/ttyUSB0': < ID=3D"ttyUSB0" --- > looking at parent device '/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1= .1/1-1.1:1.0/ttyUSB1': > ID=3D"ttyUSB1" # There is a bInterfaceNumber in /devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1.1/1-1.1:1.0 under which I find ttyUSB0/, ttyUSB1/ and ttyUSB2/. I think the USB implementation on this logger just didn't take what I'm trying to do into consideration. Thanks, Paul