Problem with usb serial port ordering.

Ben Scott dragonhawk at gmail.com
Tue Feb 5 19:02:32 EST 2008


On Feb 5, 2008 6:39 PM, Bill McGonigle <bill at bfccomputing.com> wrote:
> I have to admit to not really understanding the output of `lsusb -v`
> but I didn't see how to tie a device to a part number, however....

  The output of "lsusb" -- and "lspci", too -- is based on the ID
numbers reported by the various devices.  Every device reports a
vendor ID, and a device ID (PCI) or product ID (USB).  The tools are
informed by a large database of known ID numbers.  Without that
database, you get only eight bytes of numeric ID.  (Incidentally, MS
Windows works the same way, except it builds that number-to-name
database by scanning those *.INF files.)

  Exactly what you can do when matching depends on the tool you're
using.  For example, on my Fedora 6 box at home, there is /etc/udev/
and a bunch of files under it.  The syntax looks pretty powerful in
general.  It can match by driver, kernel bus ID, sysfs attributes,
etc.  I haven't played with it much myself.  The udev(7) man page
documents some of it.  I say "some of it" because a lot of it appears
to be driven not by udev itself, but sysfs, and I haven't found TFM
for that yet.

-- Ben


More information about the gnhlug-discuss mailing list