I'm working on a USB Device (could be USB HID) that will be put into suspend mode after being plugged into the USB Port or when the system goes into Standby/Sleep mode. Then when I press the button on netduino, it will wake-up the computer. I have looked into the HID keyboard/mouse drivers and now have a good understanding of WinUSB + USB protocol.
The issue I'm having is trying to figure out how to:
1. Have the device be put into USB suspend mode by the computer?
2. Determine (or be Notified) in my netduino/.NETMF code that the device has been placed in suspend mode and that it is armed to wake up the computer?
3. Send the wake command from my code when the button is pressed?
4. Would this code require a custom driver on windows side? What if I were to create a HID Mouse device, would it use existing generic windows mouse driver and support idle suspend and remote wake feature?
Btw, I know how to use Wake-On-LAN, but I'm trying to figure out how to do it via USB.