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 ?
sleep and wake-up from suspend/hibernate
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.
(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.