Monday, June 23, 2008

USB device identification using Linux/Fedora

USB device identification using Linux/Fedora.
A device has a Vendor ID (VID) & a Product ID (PID).

To check,

use the command "tail -f /var/log/messages"

This will show the last 10 lines of this file.

Now plug the USB device to any usb port.

Wait & see the changes on the conmmand screen.

Now press Ctrl+C

Then,use the command "lsusb" to get the BUS ID & Device ID (VID & PID)
.

My Pen Drive has the following info,
# lsusb
Bus 005 Device 008: ID 0457:0151 Silicon Integrated Systems Corp. Super Flash 1GB Flash Drive
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000

Which tells VID =0457 & PID = 0151
Visit http://www.linux-usb.org/usb.ids to get updated list of supported USB devices with IDs.

No comments: