01 July 2010

How To Find USB Device Vendor and Product ID Codes

Creating an interface for the Missile Launcher USB device (manufactured by Dream Cheeky, available at ThinkGeek.com $25 USD) is a great way to entice programming students to develop their UI skills.  (I will post links to the .NET 4.0 device command API, when I get it working.)  Because similar devices have been made by several manufacturers, since about 2004 to present, most of the USB human interface device (HID) interface code available on the Web was targeted at older models from other vendors.

When interfacing with a USB HID, you must first locate the device -- the HID could be plugged into any USB port, or could have been moved to another port during use.  We locate the correct HID by iterating through attached USB devices, until we find one that matches the Vendor ID (VID) and Product ID (PID) in which we are interested.

How do I find the USB HID Vendor ID and Product ID?
  1. Open the Windows Device Manager
  2. Expand the Human Interface Devices node
  3. Double-click the device of interest -- the USB Human Interface Device Properties window appears
  4. Click the Details tab
  5. In the Property drop-down box, select Hardware Ids
The USB HID VID and PID are displayed.  My Cheeky USB Missile Launcher displays:

The hexadecimal Vendor ID is highlighted in red, Product ID in green, and product revision number in blue.  Other details obtained through a USB monitoring application:

  • USB Version 1.10
  • Device class; 0x0 (defined at interface level)
  • Device subclass: 0x0 (Unknown)
  • Device protocol: 0x0 (Unknown)
  • Control pipe max size: 8 bytes
  • Vendor ID: 0xA81 (Chesen Electronics Corp.)
  • Product ID: 0x701 (USB Missile Launcher)
  • Product version: 0.1
  • Manufacturer: Dream Link
  • Product: USB Missile Launcher v1.0
  • Serial number: not specified
  • Configurations: 1
  • Number of interfaces: 1
  • Configuration value: 0x1
  • Attributes: Remote wakeup, Bus powered
  • Max power: 100 mA
  • Number of endpoints: 1
  • Interface class: 0x3 (Human Interface Device)
  • Interface subclass: 0x0 (None)
  • Interface protocol: 0x0 (None)
  • Endpont address 0x1, Input, Interrupt, max packet size: 1 bytes, update interval: 16 1-millisecond frames


  1. what if my device / vendor information is USB\VID_1A40&PID_0201\5&221832C9&0&2
    So how can i find proper driver?

    1. Performing a quick Internet search reveals this is a "Generic USB Hub". Generic USB hubs and other devices don't require specialized drivers. The general drivers included with the operating system will work just fine. Almost every device that requires custom drivers for optimal performance (video adapters with 3D GPUs, for example) provide basic functions, using generic drivers.

      If you DO NOT have an external USB hub attached to your computer (it may be built in to your monitor, keyboard, printer, or even extra USB ports on the front panel of the machine), I suggest updating the mainboard/motherboard drivers. In this case, you are likely seeing an integrated USB device that powers the many USB ports on your computer.

      I located the following driver, that matches your device. I do not recommend installing it, unless you know you need it, installing mainboard drivers does not help, and you are certain that you really REALLY need a non-generic driver.

  2. I know this article is over three years old, but I wanted to thank you for posting it. I found it helpful today!

    1. The Internet is timeless! The thing I really find annoying is when someone poses the question you have, something mysterious happens, and then they reply with, "Thanks, that works perfectly!" WHAT HAPPENED?!

      The other intolerable thing is when a post is made about a technology without indicating its version, or other time-sensitive issue, and there is no post date displayed.

  3. Thanks! Helped me to locate the actual vendor in this list: http://www.pcidatabase.com/vendors.php?sort=id

  4. When i connect my usb interfaced with pic18f2550 i could not find the device in device manager.. can anyone say me the solution? Should i write driver for the device to be detected


Please provide details, when posting technical comments. If you find an error in sample code or have found bad information/misinformation in a post, please e-mail me details, so I can make corrections as quickly as possible.