Page 1 of 1

sleep and wake-up from suspend/hibernate

Posted: Thu Feb 07, 2008 5:07 pm
by Valery
Have anybody a working algorythm for suspend state handling with ObDev USB solution ?

I've searched a bug, i.e. all of my controllers stays invisible when the PC host wakes-up from suspend or hibernate state and I must to reconnect usb cable for device detection.

Due the some reasons thats looks like host simple disconnect device coz device has abnormal power consumptions during host's suspend mode.

I've tried to put the MC into the sleep for reduce power consumption, but MC simple wan't to wake-up after this :-(

Are there any ideas ?

Posted: Thu Feb 07, 2008 5:34 pm
by Guest
Hi,

I had that problem with PowerSwitch too, because while booting, the PC cut-off the power to USB for a moment. I solved it by making sure that the USB device forced a reenumeration by pulling both data lines to low for at least 500ms.

Tom

Posted: Thu Feb 07, 2008 6:18 pm
by christian
Your problem may have several causes:

(1) Make sure that you force a disconnect for at least 250 ms during power-up of the controller. Newer versions of PowerSwitch already do that.

(2) Some versions of libusb-win32 crash when Windows goes into sleep mode. The USB interface becomes unusable after this type of crash. Make sure you have a version which does not suffer this bug.

(3) It's rare that hosts really check the power consumption during sleep mode (I know no such example). But if it's really enforced, see the USB2LPT project for an example how to detect sleep mode and reduce power consumption.

Posted: Thu Feb 07, 2008 7:05 pm
by Valery
Thanx for helping.

Have a nice day !