How to get the Pipe information in USB driver stack?

Hi, everyone,

I am trying to write a osrusbfx2 device filter driver which can intercept some basic informations in the interaction between driver and device. I could get the input and output data by intercepting the IRP, but I don’t know how I could get the pipe and endpoint configuration that the driver sent to osrfx2 device? Could I just simply intercept the IRP?

Currently I set my filter driver above the OSRUSBFX2 driver, it seems not work if I want to get the pipe info. So where Could I set it and what should I do?

thanks so much for suggestions!

-Arike

You have to be a lower filter of you want to see usb specific io. What is your ultimate goal?

d

dent from a phpne with no keynoard

-----Original Message-----
From: xxxxx@gmail.com
Sent: August 13, 2010 3:14 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] How to get the Pipe information in USB driver stack?

Hi, everyone,

I am trying to write a osrusbfx2 device filter driver which can intercept some basic informations in the interaction between driver and device. I could get the input and output data by intercepting the IRP, but I don’t know how I could get the pipe and endpoint configuration that the driver sent to osrfx2 device? Could I just simply intercept the IRP?

Currently I set my filter driver above the OSRUSBFX2 driver, it seems not work if I want to get the pipe info. So where Could I set it and what should I do?

thanks so much for suggestions!

-Arike


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Thanks, Doron.

I want to set up a filter driver to runtime check the interaction between driver and device, which means I need to get some states in device’s running. That’s just a basic idea, the first step I plan to try to get the basic configurations of the device, such as pipe and I/O data like that.

But it seems a little harder to get the pipe and endpoint config when the system is runnning. I just wonder is it possible to implement in the filter driver?

-Arike
-----Original Message-----
You have to be a lower filter of you want to see usb specific io. What is your
ultimate goal?

d

dent from a phpne with no keynoard

Depending on what you actually need you can check out how usbview sample
from WDK works. You should be able to learn about arbitrary USB device’s
properties like device descriptor, interfaces descriptors, etc.

Kris

-----Original Message-----
From: xxxxx@gmail.com [mailto:xxxxx@gmail.com]
Posted At: Saturday, August 14, 2010 9:32 PM
Posted To: ntdev
Conversation: How to get the Pipe information in USB driver stack?
Subject: RE: How to get the Pipe information in USB driver stack?

Thanks, Doron.

I want to set up a filter driver to runtime check the interaction
between driver and device, which means I need to get some states in
device’s running. That’s just a basic idea, the first step I plan to try
to get the basic configurations of the device, such as pipe and I/O data
like that.

But it seems a little harder to get the pipe and endpoint config when
the system is runnning. I just wonder is it possible to implement in the
filter driver?

-Arike
-----Original Message-----
You have to be a lower filter of you want to see usb specific io. What
is your
ultimate goal?

d

dent from a phpne with no keynoard

Thanks, kris.

usbview is exact what I need :slight_smile:

-----Original Message-----
Depending on what you actually need you can check out how usbview sample
from WDK works. You should be able to learn about arbitrary USB device’s
properties like device descriptor, interfaces descriptors, etc.

Kris

xxxxx@gmail.com wrote:

I want to set up a filter driver to runtime check the interaction between driver and device, which means I need to get some states in device’s running. That’s just a basic idea, the first step I plan to try to get the basic configurations of the device, such as pipe and I/O data like that.

But it seems a little harder to get the pipe and endpoint config when the system is runnning. I just wonder is it possible to implement in the filter driver?

You need to intercept the SELECT_CONFIGURATION and SELECT_INTERFACE
URBs. That’s where you can find the pipe handles for the pipes in your
configuration.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.