This is not the defacto behavior (look at a USB mouse in device
manager). The USB controller is not removed when you go into S1 or any
low power state. I would put a CATC on the bus, but if you are getting
a surprise remove, then your device is not addressable when coming out
of a lower state and USB assumes it is gone.
D
This posting is provided “AS IS” with no warranties, and confers no
rights.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of rahul gupta
Sent: Wednesday, February 04, 2004 8:49 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Power Management USB Device
Yes I do download the firmware on the device and with a new VID/PID. But
my device is externally powered so it does not loose firmware in Low
power state.
I am getting IRP_MN_SURPRISE_REMOVAL & IRP_MN_REMOVE_DEVICE in my driver
immidiately after I resume from Standby (S1), while my firmware is still
intact.
Moreover, If you see the system messages below, It seems windows 2000,
while going in standby mode suspends or removes the USB host controller
itself. (Which probably means all devices connected to that controller
are gone).
Now Is this the expected behaviour for windows 2K ?? (Because this
prevents my application doing continous I/O on USB device to stop when
resuming from Low System power state.)
And Is there a way I can circumvent this behaviour in win2K ??
TIA
Rahul Gupta
On Wed, 2004-02-04 at 22:12, Doron Holan wrote:
Do you download firmware to the device upon start and the device gains
a
new VID/PID? If so, does the device lose it’s firmware when it goes
into low power? if the answer is yes to both, that is why you are
seeing the removal of your device.
D
This posting is provided “AS IS” with no warranties, and confers no
rights
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of rahul gupta
Sent: Wednesday, February 04, 2004 3:06 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Power Management USB Device
Hi,
I have a Cypress EZ USB FX based USB device. My problem is with Power
Management
handling for this device on Window 2000.
Problem: USB device is removed after the system comes back from
Standby
(S1)
state
I have an application which does continuous I/O on this device. Now I
bring
the system to a “Standby” state. After a few seconds, I press some key
on
the keyboard leading to the system coming back to the Working state.
(I
am
using “DbgView” to view the debug messages.)
When I bring the system to the standy state, the debug messages are:
'UHCD.SYS: 'saving host controller state
'UHCD.SYS: 'Shutdown (Suspend) Host Controller
'UHCD.SYS: 'saving host controller state
When I bring the system back to the Working state, the sequence of
messages
is
'UHCD.SYS: 'restoring host controller state
'UHCD.SYS: 'restoring HC from hibernate
'UHCD.SYS: 'detected (APM/HIBERNATE) loss of power during suspend
'UHCD.SYS: 'Warning: Host contoller did not respond to halt req
When the system comes up, I get IRP_MN_SURPRISE_REMOVAL and then
IRP_MN_REMOVE_DEVICE
for my device. (I guess this is because UHCD.sys is going into
“Suspend”
state and
losing all context).
Does this mean that if continuous I/O is going on and my system goes
into a
“standby” state (because of system settings), I will have to restart
my
application as after “Standby”, the device is a totally new device.
My USB host controller is Intel 82801AA.
TIA …
Rahul Gupta
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@dcmtech.co.in
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com