Re: Getting the device information for modification

From: Lars-Åke Berg (lars-ake.berg_at_intermec.com)
Date: 06/23/04


Date: Wed, 23 Jun 2004 17:48:47 +0200

Thanks for the information Doran.

I already have a base filter driver that I have installed on top of the
ROOT_HUB.

This driver is intended to filter and modify an USB class error in one of
our printer USB chips.

The problem today is that we use an USB chip that doesn't report Class_07
(USB printer device) and we can't reprogram it to report anything different
than Class_ff.

We can there for not use MS usbprint.sys and usbmon.dll.

So by exchange the reported class information from the printer when
enumerated with class_07, I hope that the OS (in this case XP) will fix the
rest (launch the USB printer installation).

/Lars-Åke Berg

"Doron Holan [MS]" <doronh@nospam.microsoft.com> wrote in message
news:u$BUndPWEHA.2844@TK2MSFTNGP11.phx.gbl...
> device relations / BusRelations is where the PDO list is reported. then
> each PDO (note, *NOT* the FDO which responded to the query relations) is
> sent the pnp irp IRP_MN_QUERY_ID / BusQueryHardwareIDs. If you want, you
> can walk the list of reported PDOs in query device relations and send your
> own query ID / BusQueryHardwareIds, but this will not modify information
> that usb will subsequently report to PNP when it sends the query IDs
> request.
>
> what i think you want in the end is a bus filter driver. you would attach
a
> new DO to each new PDO that is reported. you also have to keep track of
the
> PDO's reported state to the os so that you know how to properly handle
> remove device (b/c if the PDO is reported as still present, you must not
> delete your device object). This is complicated and very hairy stuff.
>
> What are you exactly trying to do? there may be an easier way to do what
> you want.
>
> d
>
> --
> Please do not send e-mail directly to this alias. this alias is for
> newsgroup purposes only.
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>
>
> "Lars-Åke Berg" <lars-ake.berg@nibland.org> wrote in message
> news:eQ8QlGKWEHA.556@tk2msftngp13.phx.gbl...
> > Hi all,
> > I need to modify the device information enumerated by the PnP request
when
> > enumerating a new device (for instance an USB device).
> > What I see in my filter driver is a IRP_MN_QUERY_DEVICE_RELATIONS sent
> down
> > the pipe but is the information there?
> > Is this not where you return your PDO's?
> > Please advice if you know on how to get the device information
(hardwareID
> > etc.) enumerated before the PnP manager gets it.
> >
> > regards,
> > Lars-Åke Berg
> >
> >
>
>



Relevant Pages

  • Re: Getting the device information for modification
    ... I think the easier thing for you to do is to write a function driver that is ... assigned to the PDO for your device. ... > our printer USB chips. ... > The problem today is that we use an USB chip that doesn't report Class_07 ...
    (microsoft.public.win32.programmer.kernel)
  • Re: [SLE] Things I learned..
    ... laptop and burned the urgently needed Solaris patches back across the ... M$ media player checks home, ... YASTs H/W report shows ... Three weeks ago I bought an enclosure with a USB 2.0 and 2 firewire ...
    (SuSE)
  • Re: wacom graphire usb with freebsd 5.1
    ... > You can not use standard USB mouse driver in XFree86. ... That suggests using the wacom driver from Xfree. ... now attaches a separate device for each "report ID" of a HID device, ... it didn't work as a graphics tablet (when ...
    (comp.unix.bsd.freebsd.misc)
  • Kernel-2.6.0 & USB AOK
    ... This is just to report my success with kernel-2.6.0 and USB. ... an Epson Perfection 2400 Photo scanner, a Sony DVD+/-RW drive and a ... reports speed 12 for the printer and speed 480 for the scanner, dvd ...
    (Debian-User)
  • Re: Cant Use Onboard USB On P4C800 E Deluxe???
    ... >> into a Southbridge USB port, appears to cause what is called ... In a paper on the Intel site, ... they know how to make I/O pads with 8KV ESD resistance. ... to report what happened. ...
    (alt.comp.periphs.mainboard.asus)

Loading