Re: Use IOCTL_USB_USER_REQUEST to develop a test program for USB d
- From: Jimmy <Jimmy@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 6 Jan 2008 19:18:02 -0800
Hi Doron,
Thanks for your information. In fact, we do not want to install, not to
write a driver for our program. It takes too much time to install a driver
for our application program. Therefore, we want to control the device
directly in this program. I can understand that the device under the same
root hub will be disabled also by this method and we need to enumerate the
USB device by ourselves.
Can you give me more information about it?
"Doron Holan [MSFT]" wrote:
this is going down a very undocumented and not very supported path. if you.
want to test yoru device w/out writing a driver for it, use winusb
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.
"Jimmy" <Jimmy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:CF745044-60E3-4D96-94DF-CAD689405A9F@xxxxxxxxxxxxxxxx
Hi,
We want to develop a test program for USB device without driver. I find
the
IOCTL_USB_USER_REQUEST in WDK document and have try to use this IOCTL to
get
some root hub status. It works fine.
But I meet problem when I start to use USBUSER_SET_ROOTPORT_FEATURE
request.
I want to enable the specific port on root hub. But the status of this
port
is always disable when I check it with USBUSER_GET_ROOTPORT_STATUS.
I am sure that the USBUSER_GET_ROOTPORT_STATUS request is successful
because
the port connection status is always correct.
According to WDK, USBUSER_SET_ROOTPORT_FEATURE is not enabled unless the
root hub is disabled. Therefore, I have disable the root hub.
And I have issued USBUSER_GET_BUS_STATISTICS_0 to get bus statistics
information. It shows that the RootHubEnabled == 1 and
RootHubDevicePowerState == 3. It seems that the root hub enters suspend
mode.
Could somebody help me?
- Follow-Ups:
- Re: Use IOCTL_USB_USER_REQUEST to develop a test program for USB d
- From: Doron Holan [MSFT]
- Re: Use IOCTL_USB_USER_REQUEST to develop a test program for USB d
- From: Tim Roberts
- Re: Use IOCTL_USB_USER_REQUEST to develop a test program for USB d
- References:
- Re: Use IOCTL_USB_USER_REQUEST to develop a test program for USB devic
- From: Doron Holan [MSFT]
- Re: Use IOCTL_USB_USER_REQUEST to develop a test program for USB devic
- Prev by Date: Write to the PCI Bus
- Next by Date: How to implement MSI-X (Message-signaled interrupts) in NDIS driver ?
- Previous by thread: Re: Use IOCTL_USB_USER_REQUEST to develop a test program for USB devic
- Next by thread: Re: Use IOCTL_USB_USER_REQUEST to develop a test program for USB d
- Index(es):
Relevant Pages
|