-
Notifications
You must be signed in to change notification settings - Fork 7.6k
USB stops working after Windows host computer sleep #8107
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
Comments
Good day, I I was wondering if you found a solution to this problem? I'm encountering the same issue with the ESP32-S3-WROOM-1 module. |
Did you try this? USB.usbAttributes(TUSB_DESC_CONFIG_ATT_SELF_POWERED | TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP); |
Hi, I'm having this issue too and the fix in the above post doesn't seem to work. I think |
I'm having the same issue. It's not an ESP32-* issue, but rather an issue with the TinyUSB library. I tried a different project on an RP2040 board, which also uses TinyUSB and exhibits the same behavior. You should open a bug ticket for that project as well. |
I actually remade my project on an rp2040 and this issue went away, but I'm using the mbed os core, not the arduino-pico core. Does the mbed os core also use TinyUSB? |
I couldn't find any reference to TinyUSB in the mbed project. Do you use USB CDC in your project? Also, do you use USB power or a dedicated 5V voltage? When the PC goes to sleep, the 5V is not disconnected, leaving the cdc usb stack in a broken state. I found out that if you use a 5V source from the PSU, the MCU will shut off on PC sleep and turn on again on wake up, It's a workaround, not a solution. |
Hello, Due to the overwhelming volume of issues currently being addressed, we have decided to close the previously received tickets. If you still require assistance or if the issue persists, please don't hesitate to reopen the ticket. Thanks. |
Please do NOT close all those tickets as "completed"... They're stale since nobody cared. |
@tobwen if this issue still exists, please open a new issue referencing this one, so we can move it up the queue and try to solve it |
i have the same problem with my ESP32-S3 dev board too, i program the ESP32 as USB joystick, but after windows sleep and wake up, the ESP32 joystick not working anymore, i need to reset the ESP32 in order to work |
Hi, can you please reopen this? This issue still exists. |
Just to clarify: With my reply, I wanted to express that it's not appropriate to close all open/stale tickets as "completed," as this implies that the issue has been fixed. However, this is not the case and only makes the statistics look better. This doesn't help anyone... When someone takes the time to report bugs, the ticket should remain open until someone has processed it - OR be marked as "stale" accordingly. But closing tickets as "completed" is absolutely the wrong approach and punches the community into the face, Thanks for opening! Let's try to fix this annoying bug. Maybe here or maybe somewhere else upstream. |
Board
LOLIN S2 mini
Device Description
LOLIN S2 mini with ESP32-S2FH4 chip
Hardware Configuration
LOLIN S2 mini with some buttons attached to IO pins, connected to a Windows PC through USB.
Version
v2.0.8
IDE Name
Arduino IDE
Operating System
Windows 10 21H2
Flash frequency
40MHz
PSRAM enabled
no
Upload speed
921600
Description
Reproduction steps:
It appears the whole USB ends up in a broken state as uploading to the port(which still shows as connected) is no longer possible. Trying to access the debug serial port gives Error 31 "A device attached to the system is not functioning".
Unplugging the USB cable USBLogView shows the
USB Composite device
,USB Input Device
andUSB Serial Device
being unplugged.Reconnecting the USB cable (and thus also resetting the device) makes the sketch and upload port work again.
What I tried:
USB.usbAttributes(TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP);
beforeUSB.begin();
I can confirm that USB power is not turned off.
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: