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

Low power BLE advertisments #3235

Open
maufl opened this issue Mar 7, 2025 · 0 comments
Open

Low power BLE advertisments #3235

maufl opened this issue Mar 7, 2025 · 0 comments
Labels
status:needs-attention This should be prioritized

Comments

@maufl
Copy link

maufl commented Mar 7, 2025

Motivations

I would like to sent BLE advertisements (on ESP32-C6) and save as much power as possible. I tried with the ESP IDF in C++ and get much better results if I use dynamic frequency scaling the FreeRTOS tickless idle feature.

Solution

It would be great if the provided Embassy executor could also go into light sleep if no task is running but wake up for sending BLE advertisements.

Alternatives

I'm not sure what the alternatives would be.

Additional context

I tried to read the C++ code and understand what is necessary to implement this feature, but I can't completely wrap my head around it. As far as I understand, it involves multiple features of the ESP: light sleep, modem sleep (which is always disabled in esp-hal), and sleep retention links (that I don't fully understand).

I'm happy to try implementing this if I have enough pointers on how it would theoretically be done. :)

@maufl maufl added the status:needs-attention This should be prioritized label Mar 7, 2025
@github-project-automation github-project-automation bot moved this to Todo in esp-rs Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:needs-attention This should be prioritized
Projects
Status: Todo
Development

No branches or pull requests

1 participant