Malte Mundt(deleted)
|
Re: USB device information. e.g. SerialNumber
|
Malte Mundt(deleted)
06/28/2009 4:51 AM
post32649
|
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
|
|
|
James MacMillan(deleted)
|
Re: USB device information. e.g. SerialNumber
|
James MacMillan(deleted)
07/30/2009 9:29 AM
post34903
|
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
|
|
|