Re: Issues about USB composite device driver

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Dec 5, 9:30 am, "abei" <aboutwh...@xxxxxxx> wrote:

1. OS can't find the usbccgp.sys driver and install it automatically for our
device. I had searched the c: partition(my system disk) but can't find the
usbccgp.sys file. My Windows system is XP sp2. Why and where can I get the
usbccgp.sys file?

You need to get the USB\COMPOSITE compatible ID for your device and
then usbccgp.sys will be loaded automatically for your device. The
criteria for getting that compatible ID assigned to your PDO by usbhub
are here:

http://msdn2.microsoft.com/en-us/library/aa476434.aspx

2. I write a inf file and reference usbhub.sys to install driver for our
device. Yes! usbhub.sys can work!

usbhub.sys is not the generic parent in XP and later operating
systems, what you are doing is wrong (I am surprised by your report,
unless you switched to Win2k).

driver work well. But when I try to install driver for other interface, it
failed! The failed position is when I try to select configuration for USB
device with USBD_CreateConfigurationRequestEx and submit it to host driver.
Laterly, I found some useful information from DDK document. It said that
host driver can't support selecting configuration in composite USB device.
But the problem is that where can I get the interface information and pipe
information(ep address and pipe handle etc.) if I can't get those
information from selecting configuration?

The documentation says you can't select an *alternate* configuration
for your composite device. Meaning, the generic parent always selects
configuration zero on the device and you cannot change that.

Your client drivers obviously still need to send the SELECT_CONFIG URB
to get the pipe handles, etc., as you say, but usbccgp will feed those
to you directly. If the select config URB is failing, it's because
you're sending an invalid request to the generic parent driver.

So, I would check the values that you are passing down. Remember,
each child device will think it is talking to the "first" or "zero"
interface on your device, even though it is really second, third,
fourth, etc.

-Chris
.



Relevant Pages

  • broken upgrade of postfix_2.3.7-3 -> 2.3.8-2 (etch)
    ... Today's postfix update has broken my smtp configuration, ... enjoy any help troubleshooting - I have downgraded to 2.3.7-3 for the ... virtual unix - n n - - virtual ... maildrop unix - n n - - pipe ...
    (Debian-User)
  • Re: Issues about USB composite device driver
    ... The failed position is when I try to select configuration for USB ... host driver can't support selecting configuration in composite USB ... information(ep address and pipe handle etc.) if I can't get those ... interface on your device, even though it is really second, third, ...
    (microsoft.public.development.device.drivers)
  • Re: Ifconfig
    ... ascertain the configuration, with a couple of simple commands, pipe ...
    (uk.comp.sys.mac)
  • Re: Evolution Question
    ... > Yes, this I know, I meant for some one to pipe up and walk this ... > A) Is the person REALLY using Dovecot. ... > then to show him how to run it as an IMAP server. ... configuration is quite simple for most purposes. ...
    (Fedora)