Get Descriptor Command is not trapped in the Lower USB Bus Filter driver

Discussion in 'Windows Vista Drivers' started by AKSHAHI, Jul 21, 2007.

  1. AKSHAHI

    AKSHAHI Guest

    Hi All ,

    I am creating a Lower filter for USB , So that i can switch the
    configuration during enumeration .

    I use the toaster applicaiton of the DDK & install my driver from
    registry (By modifying the USB class entry :Add an entry for lower
    Filter)

    When device is attached , the First Configuration request(for Device
    Descriptor & Configration Descriptr) is not passed through my Driver &
    After that Add Device function of my Driver is called , where there
    is again call for the Descriptor(for Device Descriptor & Configration
    Descriptr).

    My Lower Bus Filter is able to trap second & onward request but not
    the first request .

    What modificaiton I need to do to trap the first configuration
    request .

    Thanks
     
    AKSHAHI, Jul 21, 2007
    #1
    1. Advertisements

  2. It is a part of enumeration process, done by HC driver.

    Anatoly.
     
    Anatoly Greenblatt, Jul 23, 2007
    #2
    1. Advertisements

  3. AKSHAHI

    Tim Roberts Guest

    That doesn't mean anything. Exactly where have you inserted your filter?
    Between which two drivers? It's important. If your filter is associated
    with your device's VID/PID, then of course it won't get loaded until the
    initial configuration is done.
     
    Tim Roberts, Jul 24, 2007
    #3
  4. AKSHAHI

    AKSHAHI Guest

    Hi ,
    I am inserting the filter Driver below the USB class

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{36FC9E60-
    C465-11CF-8056-444553540000}

    I created a new entry & inserted the Filter Driver here

    I think my driver is below the Hub & not specific to my Device(Vid/
    PID) based.

    Thanks for reply
     
    AKSHAHI, Jul 24, 2007
    #4
  5. AKSHAHI

    Tim Roberts Guest

    The host controllers, the root hubs, the external hubs, the USB printing
    support, and many other devices install into that class. You probably have
    a dozen instances of your filter loaded.

    However, remember that the initial configuration request probably comes
    from the host controller, and thus never exists as a URB for you to trap.
     
    Tim Roberts, Jul 26, 2007
    #5
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.