Suspending a USB Port in User Mode

Suspending a USB Port in User Mode

Post by Hapar » Tue, 03 Jul 2007 02:23:48


Dear All,

I have a custom USB CDC device which fully supports resume/suspend and
remote wakeup. The device is using a battery and I would like to
suspend it whenever it is not required. It goes to suspend mode when
the windows is in standby mode, but what if I want to suspend it
whenever it is needed (without the need of windows going to standby
mode). Is it possible using a user mode utility (or a code snippet) ?

The device is using the standard windows CDC driver (usbser.sys),
which I suppose supports selective suspend.

Thank you so much in advance,
Hapary
 
 
 

Suspending a USB Port in User Mode

Post by Maxim S. S » Tue, 03 Jul 2007 20:35:11


Use the timer-based idle detection (supported in both WDM and KMDF, though
via different ways) and set the timeout to zero.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
XXXX@XXXXX.COM
http://www.yqcomputer.com/

 
 
 

Suspending a USB Port in User Mode

Post by Doron Hola » Wed, 04 Jul 2007 08:53:18

the device will remain powered on as long as there is a handle open to the
device. IIRC, usbser will turn off the device when it is not in use. there
is no way for you to force this in UM

d