Re: USB Composite driver and multiple interfaces



No you are not trying to load a composite client driver, that is how **you**
decided to implement a solution to what you are really trying to do.

What you are implementing simply is wrong. Can't help you with settings,
because it is so wrong that no settings will ever make it work. You can
quit wasting my time giving me links to pages that have nothing to do with
your requirements, they all deal with your ridiculous solution. If the page
says **USB Function**, then it is not going to help you implement a solution
for this requirement. Again, read the page on my blog that explains this.

I believe the CompositeFN.dll is the equivalent of usbccgp.sys in
Windows CE. CE 6.0 MSDN documenation just explains how to do it, but
does not substantiate it with proper example settings.

What you **believe** is wrong. You will never get it to work.

What you are really trying to do is support a composite device plugged into
your USB Host port.

If you want to try a different path to support your real requirements then
what you need are multiple USB Host Class drivers, one for each of the
interfaces that the connected USB device exposes. What interfaces does the
USB device expose?

--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com
My BLOG http://geekswithblogs.net/bruceeitman

EuroTech Inc.
www.EuroTech.com

"RR" <ravikreddy@xxxxxxxxx> wrote in message
news:f77e16b7-dd42-4aab-9b46-5ff3915ec233@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Well, what I am trying to do is load composite client driver for my
device. My device has 2 interfaces and I need to load 2 client drivers
for that device (on top of the composite driver). On Windows desktop
systems, usgccgp.sys automatically detects this device and asks for
the drivers for the two intefaces (MI_00 and MI_02), separately. I
believe the CompositeFN.dll is the equivalent of usbccgp.sys in
Windows CE. CE 6.0 MSDN documenation just explains how to do it, but
does not substantiate it with proper example settings.

For usb composite driver architecture, please see:
http://msdn.microsoft.com/en-us/library/aa912451.aspx

And, as per this thread,
http://groups.google.com/group/microsoft.public.windowsce.platbuilder/browse_thread/thread/b4ec037ecb37087b/751ce72ef26aeff8#751ce72ef26aeff8
he was successful in loading driver for one of the interface, but he
ran into problems loading the second. So, I believe my settings are
right according to the MSN, but the way the registry settings are done
is confusing.

In fact, it makes no sense to use or need a composite driver on the Host
side.

BTW, this device is connected to the CE host hub. So, the driver is
needed on the host side. The connection is:
USB Host -> Root Hub ->Device with multiple interfaces (composite
driver) - 2 client drivers.

Thanks,
RR

On Jun 5, 1:17 pm, "Bruce Eitman [eMVP]"
<bruce.eitman.nos...@xxxxxxxxxxxxxxxxxxx> wrote:
You should re-read that MSDN page in the context of the link that I
provided
and your hardware. Then tell us what you think that you are doing in the
context of the link that I provided.

I know that what you are currently trying to do the impossible. I don't
know what you are really trying to accomplish.

Here is what you are currently doing:

USB Function Client driver <-- this does not belong here it only works on
the other end of the cable
USB Hub Driver
USB Bus Driver
USB Host driver ------------------ USB Host Controller - cable - something
plugged in

In fact, it makes no sense to use or need a composite driver on the Host
side.

--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com
My BLOGhttp://geekswithblogs.net/bruceeitman

EuroTech Inc.www.EuroTech.com



.



Relevant Pages

  • ieee1394 and fbdev oops in 2.6.3rc2
    ... Found UniNorth PCI host bridge at 0xf0000000. ... Firmware bus number: 0->0 ... PMU driver 2 initialized for Core99, ... ohci_hcd 0001:02:08.0: new USB bus registered, ...
    (Linux-Kernel)
  • Re: USB host controller and client driver
    ... Realy appreciate your reply on Host controller and Function controller ... Well I am absolutelly clear now with host controller driver ... "The USB function controller drvers come into picture only if your ...
    (microsoft.public.windowsce.platbuilder)
  • Re: USB data Transfer question
    ... are you sure your USB Host driver is ok? ... the pBuffer!=0 if there is data sending from client. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: USB data Transfer question
    ... are you sure your USB Host driver is ok? ... the pBuffer!=0 if there is data sending from client. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: What do i need to activate my USB host
    ... > There are bluetooth driver in my dev. ... But since no usb host ... You should determine what kind of host controller your PXA250 platform ...
    (microsoft.public.windowsce.platbuilder)