-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
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
ESP32: support dynamic freq scaling and wifi power save #5473
Conversation
AN issue I just discovered: the following loop in uselect busy-waits: https://github.com/micropython/micropython/blob/master/extmod/moduselect.c#L250-L257. I'll throw a Edit: also https://github.com/micropython/micropython/blob/master/extmod/moduselect.c#L176 |
Well, this last commit fixed asyncio. But now I better profess that I have no friggin' clue about what I'm doing, LOL :-) |
32cc9e0
to
de52c2e
Compare
rebased on master and squashed commits |
ports/esp32: fix some peripheral clocks for low-power op
I'd like to mention, that as per the esp-idf documentation, it is possible to keep some peripherals, including UART, functioning properly during auto-lightsleep (specifically frequency scaling), by using "REF_TICK" as a tick source. That would make this feature far more usable and desirable. |
Allow any character except / in port or board name
I think the The dynamic frequency scaling is also good but I think it's not yet clear how to make it work properly. And the changes here (like changing the UART clock source) seem like they could have unintended affects on existing behaviour. Also newer version of the IDF (since v4.1) have changed how this is configured. So I suggest to split out the addition of |
What if auto lightsleep was something you manually enabled and disabled? Lots of applications don't need to do anything besides listen for commands, most of the time, you could just manually come out of that state when needed. |
This is an automated heads-up that we've just merged a Pull Request See #13763 A search suggests this PR might apply the STATIC macro to some C code. If it Although this is an automated message, feel free to @-reply to me directly if |
Closing due to inactivity. Also this probably won't work with IDF 5.x. (Still, it would be great to have the |
This PR allows the power consumption of the esp32 to be tweaked. It enables:
The punchline is that one can halve the power consumption for more battery life or double it for lower network latency.
These features are documented, see the PR files. I have not been able to preview the docs, however, so I assume there are issues. I need to figure out how to do that...
One caveat I'm just realizing is that I haven't tested with ESP-IDF v3....