Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - USB device information. e.g. SerialNumber: (3 Items)
   
USB device information. e.g. SerialNumber  
Hi:

When doing a 'usb -vv' I see extra device, instance or configuration information e.g.

Device Address             : 1
Upstream Host Controller   : 0
Upstream Device Address    : 0
Upstream Port              : 0
Upstream Port Speed        : Full
Vendor                     : 0x0403 (FTDI)
Product                    : 0x6001 (FT232R USB UART)
Device Release             : r6.00
USB Spec Release           : v2.00
Serial Number              : A8007UbG
Class                      : 0x00 (Independent per interface)
Max PacketSize0            : 8
Languages                  : 0x0409 (English)

A serial number could be very useful. 
Ive searched through the manuals and cant find any way to access this 'additional' information.  

Any suggestions on how to get this data ? 

Thanks,
Andy

Re: USB device information. e.g. SerialNumber  
Serial number of what? Of your USB device? Are you sure it even has a serial number? There is no way for the Operating 
System to force information out of a device that it doesn't give voluntarily.

If the serial number can be retrieved, and does not get retrieved with the usb command, probably some special command 
codes need to be sent to get this data. If there is documentation from the hardware vendor on how to do this, you could 
try code it yourself or ask your QNX rep for a quote on Custom Engineering.


- Malte
Re: USB device information. e.g. SerialNumber  
The phrasing of your question was a little unclear but I think I see what you are asking now; How does "usb -vvv" read 
the value that it displays as "Serial Number"?

The usbd_device_descriptor() call returns a structure of information about the device. The iSerialNumber (also 
iManufacturer and iProduct) is an index number for a string. If its value is 0x00, then there is no serial number. 
Otherwise, you can pass it to the usbd_string() function to retrieve its value from the device.

http://www.qnx.com/developers/docs/6.4.1/ddk_en/usb/usbd_device_descriptor.html
http://www.qnx.com/developers/docs/6.4.1/ddk_en/usb/usbd_string.html