This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

USB remote wakeup support

Hey,

After some messing with Interface Association Descriptors, I now have a working composite device that supports both HID and audio streaming. Now, I would like the HID to be able to wake the computer via remote wakeup. The HID device is recognized as having this capability by Windows, but what is the right way to actually initiate the remote wakeup sequence? Is there any support for this in the STM32 internal USB state machine or USB standard library?

Resume(RESUME_EXTERNAL) does not seem to work, and I couldn't find any reference to the proper wakeup sequence (D+ high, D- low for at least 12 ms). Is this implemented at all in the standard library or should I write my own routine for this?

Much obliged.

Parents
  • Thanks Tsuneo, but now I'm a bit confused. So far I've only used the USB peripheral for communication with the host, and not using USB-OTG at all. It is my understanding that these are two totally separate parts of the hardware.

    So now to wake up the host, connected to the USB peripheral, I need to in addition use the USB-OTG peripheral? When I then set the WKUPINT bit, this will play nice with the (not-OTG)-USB state machine?

Reply
  • Thanks Tsuneo, but now I'm a bit confused. So far I've only used the USB peripheral for communication with the host, and not using USB-OTG at all. It is my understanding that these are two totally separate parts of the hardware.

    So now to wake up the host, connected to the USB peripheral, I need to in addition use the USB-OTG peripheral? When I then set the WKUPINT bit, this will play nice with the (not-OTG)-USB state machine?

Children