Question Regarding windows Vista

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi,

i am writing device driver for my USB device for windows Vista, it is
a USB2.0 Device and i am using Intel Dual Core Machine and Windows
Vista32Bit\64Bit.

The following is my obeservation,

i can plaug in my device and i am able to work with it normally
without any problem.

Observation 1 :
if i goto sleep mode and when iwakeup up the system then some of my
URBs are failing when i do IoCallDriver and gives the NtStatus as
STATUS_NO_SUCH_DEVICE and urb status as USBD_STATUS_DEVICE_GONE, where
as the device is never dosconnected here.

Observation 2 :
1.Connect my USB 2.0 Device.
2. Go To Sleep Mode in Windows Vista.
3. Disconnect the USB Device and then Wake Up,
this time too my URB fails as expected as there is no physical device
present and i get NtSStatus as STATUS_UNSUCCESSFUL and URB status as
USBD_STATUS_INTERNAL_HC_ERROR.

Why is it so, when the device is present i get STATUS_NO_SUCH_DEVICE
and really when the device is disc then i get
USBD_STATUS_INTERNAL_HC_ERROR.

At last i get IRP_MN_SUPRISE_REMOVAL and IRP_MN_REMOVE_DEVICE

Observation 3 :
The Observation 2 when done under 2 Hubs i mean HC->HUB1->HUB2-
MYDEVICE, then sometimes i do not get IRP_MN_REMOVE_DEVICE and yes i
get IRP_MN_SURRISE_REMOVAL.

Can anybody please help me.

i have different things to handle if the status is
STATUS_NO_SUCH_DEVICE or DEVICE_GONE but my part of code is hit even
when the DEVICE is Physically present.

Thanks and Regards,
Neo

.



Relevant Pages

  • Re: WdfUsbTargetDeviceSelectConfig -> STATUS_INVALID_PARAMETER on Vista
    ... I am writing a KMDF driver for a USB device for Windows Vista, ... having problems selecting the only endpoint descriptor available ...
    (microsoft.public.development.device.drivers)
  • sending urb to usb device
    ... For a week I'm trying to send a single URB to an USB device, ... no matter how I try to get the urb structure ...
    (comp.os.linux.development.system)
  • Re: USBPORT/USBEHCI fails read_bulk URB
    ... STATUS_UNSUCCESSFUL for a BULK_READ URB via ... Remember that the USB device is never told how ... Providenza & Boekelheide, Inc. ...
    (microsoft.public.development.device.drivers)
  • Re: Virtual Serial Port
    ... that maps to a usb device. ... under Windows Vista I get the error "The system could not find the file ... Have you tried referencing mdmgen.inf somehow? ...
    (microsoft.public.development.device.drivers)