|
From: Xiaofan C. <xia...@gm...> - 2009-07-25 01:44:33
|
On Sat, Jul 25, 2009 at 1:41 AM, Michael Plante<mic...@gm...> wrote:
> Rick,
>
> What meaning does the "00000001" have? My guess is it's a string stored on
> the device. I'm glancing at the registry on a Windows box, under:
It is the device instance ID. It will depend on whether the device
has a serial number or not. Sometimes it will be just the serial
number. Sometimes it is more complicated.
> "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\Vid_0403&Pid_6010\FTS3
> IQH4\Device Parameters"
>
> (e.g.)
>
> I find: "SymbolicName" =
> "\??\USB#Vid_0403&Pid_6010#FTS3IQH4#{a5dcbf10-6530-11d2-901f-00c04fb951ed}"
>
> On my FTDI chips, that's an 8-digit alphanumeric serial number, which can be
> read by libusb (usb_get_string_simple() in 0.1...not sure what the
> equivalent is in 1.0). On my digital camera, it appears to be much longer
> and of a totally different structure, but I haven't tried using libusb on
> it. Can you try reading back some strings from the device and see if one of
> them is what you want?
>
{a5dcbf10-6530-11d2-901f-00c04fb951ed} is the GUID for USB Device.
/* A5DCBF10-6530-11D2-901F-00C04FB951ED */
DEFINE_GUID(GUID_DEVINTERFACE_USB_DEVICE, 0xA5DCBF10L, 0x6530, 0x11D2,
0x90, 0x1F, 0x00, \
0xC0, 0x4F, 0xB9, 0x51, 0xED);
The above symbolic name can be longer depending
on other factors.
The whole thing is Windows specific.
Maybe the OP can detail what he really wants. There can be similar
things for libusb 1.0.
--
Xiaofan http://mcuee.blogspot.com
|