From a709c402a646754094e9ef4801376e1af7d44e22 Mon Sep 17 00:00:00 2001 From: xiongweichao Date: Mon, 17 Jul 2023 17:13:22 +0800 Subject: [PATCH 1/2] docs(sleep_modes): Updated Wi-Fi/Bluetooth and Sleep Modes in docs --- docs/en/api-reference/system/sleep_modes.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/en/api-reference/system/sleep_modes.rst b/docs/en/api-reference/system/sleep_modes.rst index 3312f568c9..a5b615b241 100644 --- a/docs/en/api-reference/system/sleep_modes.rst +++ b/docs/en/api-reference/system/sleep_modes.rst @@ -33,6 +33,8 @@ Once wakeup sources are configured, application can enter sleep mode using :cpp: In deep sleep and light sleep modes, wireless peripherals are powered down. Before entering light sleep modes, applications must disable WiFi and BT using appropriate calls (:cpp:func:`esp_bluedroid_disable`, :cpp:func:`esp_bt_controller_disable`, :cpp:func:`esp_wifi_stop`). WiFi and BT connections will not be maintained in deep sleep or light sleep, even if these functions are not called. + If Wi-Fi/Bluetooth connections need to be maintained, enable Wi-Fi/Bluetooth Modem-sleep mode and automatic Light-sleep feature (see :doc:`Power Management APIs `). This will allow the system to wake up from sleep automatically when required by the Wi-Fi/Bluetooth driver, thereby maintaining the connection. + .. only:: not SOC_BT_SUPPORTED WiFi and sleep modes @@ -40,7 +42,7 @@ Once wakeup sources are configured, application can enter sleep mode using :cpp: In deep sleep and light sleep modes, wireless peripherals are powered down. Before entering deep sleep or light sleep modes, applications must disable WiFi using appropriate calls (:cpp:func:`esp_wifi_stop`). WiFi connection will not be maintained in deep sleep or light sleep, even if these functions are not called. -If WiFi connection needs to be maintained, enable WiFi modem sleep, and enable automatic light sleep feature (see :doc:`Power Management APIs `). This will allow the system to wake up from sleep automatically when required by WiFi driver, thereby maintaining connection to the AP. + If Wi-Fi connections need to be maintained, enable Wi-Fi Modem-sleep mode and automatic Light-sleep feature (see :doc:`Power Management APIs `). This will allow the system to wake up from sleep automatically when required by the Wi-Fi driver, thereby maintaining a connection to the AP. Wakeup sources -------------- From 098a378c86b4d22fa1061067a3192df6de239344 Mon Sep 17 00:00:00 2001 From: xiongweichao Date: Mon, 3 Jul 2023 19:51:32 +0800 Subject: [PATCH 2/2] docs(bt/example): Updated bluetooth power save readme --- examples/bluetooth/nimble/power_save/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/bluetooth/nimble/power_save/README.md b/examples/bluetooth/nimble/power_save/README.md index ff7c77ba87..20c6d83c43 100644 --- a/examples/bluetooth/nimble/power_save/README.md +++ b/examples/bluetooth/nimble/power_save/README.md @@ -8,8 +8,9 @@ This example is based on the [bleprph](../bleprph) example to show how to use th If the modem sleep mode is enabled, bluetooth will switch periodically between active and sleep. In sleep state, RF, PHY and BB are turned off in order to reduce power consumption. +For more information about sleep modes, please refer to [Sleep Modes](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/sleep_modes.html). -This example contains five build configurations. For each configuration, a few configuration options are set: +This example contains some build configurations. For each configuration, a few configuration options are set: - `sdkconfig.defaults.esp32`: ESP32 uses 32kHz XTAL as low power clock in light sleep enabled. - `sdkconfig.defaults.esp32c3`: ESP32C3 uses 32kHz XTAL as low power clock in light sleep enabled. - `sdkconfig.40m.esp32c3`: ESP32C3 uses main XTAL as low power clock in light sleep enabled.