-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
BLE Modem Sleep #207
Comments
There is no API for power save at the moment. |
You can enable modem sleep with menu config, though some chips may require an external 32khz crystal / oscillator for maximum power savings. I use this library with modem sleep and see dramatic improvements |
Hey @finger563 thanks I'll try this! You just set it up by setting up something like the below? // Configure Bluetooth modem sleep
// Set low power options, using external crystal for timing
esp_pm_config_esp32_t pm_config = {
.max_freq_mhz = 80,
.min_freq_mhz = 10,
.light_sleep_enable = true,
};
ESP_ERROR_CHECK(esp_pm_configure(&pm_config));
ESP_LOGI(TAG, "Bluetooth modem sleep enabled");
` |
couple notes:
You may also want to enable the external crystal:
I'd recommend looking into the help text for all those menuconfig options and their other / related options as it will help explain more what they do and how you may need to configure it for your specific system. |
Are there any easy ways to enable BLE modem sleep in this library like the example here for the idf https://github.com/espressif/esp-idf/blob/master/examples/bluetooth/nimble/power_save/main/main.c ?
The text was updated successfully, but these errors were encountered: