USB Enumeration in BulkUSb.sys

Hi ,

I have to write a USB filter Driver , IN which I have to change the Enumeration process of the USB Device .I have done study on USB Enumeration from specs

I am suing the BulkUSB samople of the DDK .
But I am not clear that which file or which part of the code deal with the USB enumeration process in the BulkUSb.

Any suggestion will be helpful .

Thanks
Sandy Ron


No banners. No pop-ups. No kidding.
Make My Way your home on the Web - http://www.myway.com

Hi ,

I have to write a USB filter Driver , IN which I have to change the Enumeration process of the USB Device .I have done study on USB Enumeration from USB specs.

I am studying the BulkUSB samople of the DDK .
But I am not clear that which file or which part of the code deal with the USB enumeration process in the BulkUSb.

Any suggestion will be helpful .

Thanks
Sandy Ron


No banners. No pop-ups. No kidding.
Make My Way your home on the Web - http://www.myway.com

What part of the enumeration process are you changing? The VID/PID?
The hardware IDs? The device or config descriptors? BulkUsb, or any
USB client driver does not deal with the enumeration process on the USB
bus, a client driver just retrieves its descriptors, configures its
endpoints and then uses those endpoints

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Sandeep
Sent: Tuesday, April 24, 2007 10:47 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] USB Enumeration in BulkUSb.sys

Hi ,

I have to write a USB filter Driver , IN which I have to change the
Enumeration process of the USB Device .I have done study on USB
Enumeration from USB specs.

I am studying the BulkUSB samople of the DDK .
But I am not clear that which file or which part of the code deal with
the USB enumeration process in the BulkUSb.

Any suggestion will be helpful .

Thanks
Sandy Ron


No banners. No pop-ups. No kidding.
Make My Way your home on the Web - http://www.myway.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

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

Hi ,

I need to change the VID/PID of the enumeration process.

Will BulkUSb/ISOUsb be helpful or I have to work on Other driver sample?

Thanks
Sandy

— On Wed 04/25, Doron Holan < xxxxx@microsoft.com > wrote:
From: Doron Holan [mailto: xxxxx@microsoft.com]
To: xxxxx@lists.osr.com
Date: Tue, 24 Apr 2007 23:09:06 -0700
Subject: RE: [ntdev] USB Enumeration in BulkUSb.sys

What part of the enumeration process are you changing? The VID/PID?The hardware IDs? The device or config descriptors? BulkUsb, or anyUSB client driver does not deal with the enumeration process on the USBbus, a client driver just retrieves its descriptors, configures itsendpoints and then uses those endpointsd-----Original Message-----From: xxxxx@lists.osr.com[mailto:xxxxx@lists.osr.com] On Behalf Of SandeepSent: Tuesday, April 24, 2007 10:47 PMTo: Windows System Software Devs Interest ListSubject: [ntdev] USB Enumeration in BulkUSb.sysHi ,I have to write a USB filter Driver , IN which I have to change theEnumeration process of the USB Device .I have done study on USBEnumeration from USB specs.I am studying the BulkUSB samople of the DDK .But I am not clear that which file or which part of the code deal withthe USB enumeration process in the BulkUSb.Any suggestion will be helpful .ThanksSandy Ron_______________________________________________No
banners. No pop-ups. No kidding.Make My Way your home on the Web - http://www.myway.com---Questions? First check the Kernel Driver FAQ athttp://www.osronline.com/article.cfm?id=256To unsubscribe, visit the List Server section of OSR Online athttp://www.osronline.com/page.cfm?name=ListServer—Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


No banners. No pop-ups. No kidding.
Make My Way your home on the Web - http://www.myway.com

Sandeep wrote:

Hi ,

I need to change the VID/PID of the enumeration process.

Will BulkUSb/ISOUsb be helpful or I have to work on Other driver sample?

Thanks
Sandy

— On Wed 04/25, Doron Holan < xxxxx@microsoft.com > wrote:
From: Doron Holan [mailto: xxxxx@microsoft.com]
To: xxxxx@lists.osr.com
Date: Tue, 24 Apr 2007 23:09:06 -0700
Subject: RE: [ntdev] USB Enumeration in BulkUSb.sys

What part of the enumeration process are you changing? The VID/PID?The hardware IDs? The device or config descriptors? BulkUsb, or anyUSB client driver does not deal with the enumeration process on the USBbus, a client driver just retrieves its descriptors, configures itsendpoints and then uses those endpointsd-----Original Message-----From: xxxxx@lists.osr.com[mailto:xxxxx@lists.osr.com] On Behalf Of SandeepSent: Tuesday, April 24, 2007 10:47 PMTo: Windows System Software Devs Interest ListSubject: [ntdev] USB Enumeration in BulkUSb.sysHi ,I have to write a USB filter Driver , IN which I have to change theEnumeration process of the USB Device .I have done study on USBEnumeration from USB specs.I am studying the BulkUSB samople of the DDK .But I am not clear that which file or which part of the code deal withthe USB enumeration process in the BulkUSb.Any suggestion will be helpful .ThanksSandy Ron______________________________________________
_No
banners. No pop-ups. No kidding.Make My Way your home on the Web - http://www.myway.com---Questions? First check the Kernel Driver FAQ athttp://www.osronline.com/article.cfm?id=256To unsubscribe, visit the List Server section of OSR Online athttp://www.osronline.com/page.cfm?name=ListServer—Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


No banners. No pop-ups. No kidding.
Make My Way your home on the Web - http://www.myway.com

Enumeration is done by “Bus Drivers”, see the Toaster samples for
generic code, the USB HUB and OHCI/EHCI drivers for USB specifics.

Also look at the “Multifunction” device driver (part of Windows), which
offers a way to handle many VID/PID mapping issues by simply writing an
INF file.


Jakob B?hm, M.Sc.Eng. * xxxxx@danware.dk * direct tel:+45-45-90-25-33
Danware Data A/S * Bregnerodvej 127 * DK-3460 Birkerod * DENMARK
http://www.netop.com * tel:+45-45-90-25-25 * fax tel:+45-45-90-25-26
Information in this mail is hasty, not binding and may not be right

Why do you want to change the VID/PID? To have a different driver
install on the device? Is this a testing solution or something you want
to ship? Changing the VID/PID of the device requires writing a bus
filter driver which sits on top of each instance of usbhub. A very
complicated driver to write. There is probably an easier way to do what
you want, but you have let us know what the final result of what you
want to happen vs what you think you need to change to get it done.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Sandeep
Sent: Tuesday, April 24, 2007 11:52 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] USB Enumeration in BulkUSb.sys

Hi ,

I need to change the VID/PID of the enumeration process.

Will BulkUSb/ISOUsb be helpful or I have to work on Other driver sample?

Thanks
Sandy

— On Wed 04/25, Doron Holan < xxxxx@microsoft.com > wrote:
From: Doron Holan [mailto: xxxxx@microsoft.com]
To: xxxxx@lists.osr.com
Date: Tue, 24 Apr 2007 23:09:06 -0700
Subject: RE: [ntdev] USB Enumeration in BulkUSb.sys

What part of the enumeration process are you changing? The VID/PID?The
hardware IDs? The device or config descriptors? BulkUsb, or anyUSB
client driver does not deal with the enumeration process on the USBbus,
a client driver just retrieves its descriptors, configures itsendpoints
and then uses those endpointsd-----Original Message-----From:
xxxxx@lists.osr.com[mailto:xxxxx@lists.osr.c
om] On Behalf Of SandeepSent: Tuesday, April 24, 2007 10:47 PMTo:
Windows System Software Devs Interest ListSubject: [ntdev] USB
Enumeration in BulkUSb.sysHi ,I have to write a USB filter Driver , IN
which I have to change theEnumeration process of the USB Device .I have
done study on USBEnumeration from USB specs.I am studying the BulkUSB
samople of the DDK .But I am not clear that which file or which part of
the code deal withthe USB enumeration process in the BulkUSb.Any
suggestion will be helpful .ThanksSandy
Ron_______________________________________________No
banners. No pop-ups. No kidding.Make My Way your home on the Web -
http://www.myway.com---Questions? First check the Kernel Driver FAQ
athttp://www.osronline.com/article.cfm?id=256To unsubscribe, visit the
List Server section of OSR Online
athttp://www.osronline.com/page.cfm?name=ListServer—Questions? First
check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256To unsubscribe, visit the
List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


No banners. No pop-ups. No kidding.
Make My Way your home on the Web - http://www.myway.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

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

Doron Holan wrote:

Changing the VID/PID of the device requires writing a bus
filter driver which sits on top of each instance of usbhub.
A very complicated driver to write.

Harder than just watching for a few get-descriptor URBs, tweaking them, and then passing them along? Seems like maybe 100 lines in KMDF?

The problem is that where are you going to attach the filter? Has to be
below the usbhub, but there can be an arbitrary topology, which means
you need to dynamically attach yourself to downstream hubs to get the
URB traffic you want. Furthermore, there are multiple host controllers
which means you need to filter multiple roots…again, not fun. There
is probably an easier way to do what the OP wants, we just need to know
what his end goal is first.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@gmail.com
Sent: Wednesday, April 25, 2007 11:04 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] USB Enumeration in BulkUSb.sys

Doron Holan wrote:

Changing the VID/PID of the device requires writing a bus
filter driver which sits on top of each instance of usbhub.
A very complicated driver to write.

Harder than just watching for a few get-descriptor URBs, tweaking them,
and then passing them along? Seems like maybe 100 lines in KMDF?


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

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