esp32s3 pauses when PC sleeps #18285
Unanswered
krismc
asked this question in
Hardware & Peripherals
Replies: 2 comments
-
|
What MicroPython version are you using? In particular, it looks like this board uses the native USB for its serial connection and this bug sounds similar to this: #18000 - that issue was fixed in MicroPython v1.26.1 patch release. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I'm on 1.24.1, I'll try the later version, tnx |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My early experiences with esp32s is that they will continue to run, squirting diagnostic prints about program flow out the usb port after the PC has gone to sleep. I figured this was because a sleeping PC keeps 5v on the USB to power the esp32 & that there was no handshaking usb involved.
So recently I got a https://www.waveshare.com/esp32-s2.htm?sku=21179 an s3 with an lcd. I'd had some problems with prints to the usb not restarting after a deepsleep so the lcd was a better alternative.
Today I had a non deepsleeping program running with prints going to both the usb & the lcd & I happened to be present when the PC went to sleep. To my great surprise the run of prints to the lcd stopped. At first I thought a spike from the PC power down had glitched the esp32 & locked up the program but when I woke up the PC via the keyboard code execution on the esp32 resumed & the lcd prints continued from where they had paused.
Has anybody else encountered this behaviour in a repl (I was using atom)? Is there vendor code in the esp32 monitoring some usb line that changes state when the PC powers down & pausing my code or what? I mean I've often wished for the ability to pause program execution to have a think about some anomaly before resuming but I never figured sleeping my PC would be the way to achieve that.
Beta Was this translation helpful? Give feedback.
All reactions