From: Kid on
Hi

I meet some question that our WinCE product need to change modes of 2
different PC WDM drivers, one is WCEUSB device and the other is USB
Composite Device , they use the same usb cable to connect PC .

WCEUSB device driver is Windows built-in WCEUSB driver, USB
Composite Device driver is provided by chip vendor. How can I let two modes
co-exist in PC Device Manager, might I add additional driver to pass
through or it should change device Schematic ?

Thank you .
From: chris.aseltine on
On Apr 22, 4:59 pm, Kid <K...(a)discussions.microsoft.com> wrote:

> I meet some question that our WinCE product need to change modes of 2
> different PC WDM drivers, one is WCEUSB device and the other is USB
> Composite Device , they use the same usb cable to connect PC .
>
> WCEUSB device driver is Windows built-in WCEUSB driver, USB
> Composite Device driver is provided by chip vendor. How can I let two modes
> co-exist in PC Device Manager, might I add additional driver to pass
> through or it should change device Schematic ?

First, I'm not sure why your chip vendor is supplying a generic parent
driver as Windows also has this built-in.

Anyway, if your device has two modes, you'll need to come up with a
mechanism to tell the device which mode to enumerate in. For example,
a control request to endpoint zero with no payload, with the target
USB mode in wValue or wIndex, might suffice. Each mode will have a
different PID such that Windows identifies each one uniquely.