Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is anything required to support remote wakeup? #18

Open
dlkj opened this issue Jan 10, 2022 · 3 comments
Open

Is anything required to support remote wakeup? #18

dlkj opened this issue Jan 10, 2022 · 3 comments
Labels
question Further information is requested

Comments

@dlkj
Copy link
Owner

dlkj commented Jan 10, 2022

Anything more required other than setting UsbDeviceBuilder::supports_remote_wakeup(true)?

@dlkj dlkj added the question Further information is requested label Jan 10, 2022
@dlkj
Copy link
Owner Author

dlkj commented Jan 19, 2022

Yes, will require implementing suspended and resume in rp2040-hal::usb and exposing remote wakeup in usb-device

@ithinuel
Copy link
Contributor

This does the trick: rp-rs/rp-hal#406

@JohnAZoidberg
Copy link

Anything more required other than setting UsbDeviceBuilder::supports_remote_wakeup(true)?

This just tells the host that the device supports remote wakeup. Then the host will "arm" remote wakeup which you can check with UsbDevice::remote_wakeup_enabled().
And finally, as @ithinuel mentioned you'll have to check your wakeup condition, that the device is in USB suspend, remote wakeup is enabled and then call the MCU specific API to actually wake the device/bus again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
Development

No branches or pull requests

3 participants