Hello Xiaofan

On 15/10/2012 10:15, Xiaofan Chen wrote:
>
> Yes. The USB Composite Generic Parent driver will load usb mass storage
> driver for interface 0 and the winusb driver for the interfac 1.
> http://msdn.microsoft.com/en-us/library/windows/hardware/ff537109(v=vs.85).aspx
>

Fantastic! Thank you.

For anyone else trying to do this here is a listing of my device 
descriptor - ID expunged to protect the innocent.

2 things to bear in mind -

1. if you have used the VID/PID before you will either need to remove 
existing driver(s) or change the PID else Windows seems to load up the 
device in its previous configuration

2. Once the device loads you will need to use Zadig or something similar 
to install the WinUSB driver for Interface #2.

         ------------- Device Qualifier Descriptor -------------
bLength                  : 0x12 (18 bytes)
bDescriptorType          : 0x01 (Device Qualifier Descriptor)
bcdUSB                   : 0x200 (USB Version 2.00)
bDeviceClass             : 0x00 (defined by the interface descriptors)
bDeviceSubClass          : 0x00
bDeviceProtocol          : 0x00
bMaxPacketSize0          : 0x40 (64 bytes)
idVendor                 : 0xXXXX
idProduct                : 0xA00A               
bcdDevice                : 0x100
iManufacturer            : 0x01
  Language 0x0409         : "XXXXXX XXXXXXX, XXX."
iProduct                 : 0x02
  Language 0x0409         : "XXXXXXXX USB Device"
iSerialNumber            : 0x03
  Language 0x0409         : "123456789012"
bNumConfigurations       : 0x01

         -------------- Configuration Descriptor ---------------
bLength                  : 0x09 (9 bytes)
bDescriptorType          : 0x02 (Configuration Descriptor)
wTotalLength             : 0x0029 (41 bytes)
bNumInterfaces           : 0x02
bConfigurationValue      : 0x01
iConfiguration           : 0x00
bmAttributes             : 0x80 (Bus Powered)
MaxPower                 : 0x32 (100 mA)

         ---------------- Interface Descriptor -----------------
bLength                  : 0x09 (9 bytes)
bDescriptorType          : 0x04 (Interface Descriptor)
bInterfaceNumber         : 0x00
bAlternateSetting        : 0x00
bNumEndpoints            : 0x02
bInterfaceClass          : 0x08 (Mass Storage)
bInterfaceSubClass       : 0x06 (SCSI transparent command set)
bInterfaceProtocol       : 0x50 (Bulk­Only Transport)
iInterface               : 0x00

         ----------------- Endpoint Descriptor -----------------
bLength                  : 0x07 (7 bytes)
bDescriptorType          : 0x05 (Endpoint Descriptor)
bEndpointAddress         : 0x85 (Direction=IN  EndpointID=5)
bmAttributes             : 0x02 (TransferType=Bulk)
wMaxPacketSize           : 0x200 (max 512 bytes)
bInterval                : 0x00 (never NAKs)

         ----------------- Endpoint Descriptor -----------------
bLength                  : 0x07 (7 bytes)
bDescriptorType          : 0x05 (Endpoint Descriptor)
bEndpointAddress         : 0x06 (Direction=OUT  EndpointID=6)
bmAttributes             : 0x02 (TransferType=Bulk)
wMaxPacketSize           : 0x200 (max 512 bytes)
bInterval                : 0x00 (never NAKs)

         ---------------- Interface Descriptor -----------------
bLength                  : 0x09 (9 bytes)
bDescriptorType          : 0x04 (Interface Descriptor)
bInterfaceNumber         : 0x01
bAlternateSetting        : 0x00
bNumEndpoints            : 0x00
bInterfaceClass          : 0x00 (defined by the interface descriptors)
bInterfaceSubClass       : 0x00
bInterfaceProtocol       : 0x00
iInterface               : 0x00



------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to