|
|
@@ -1,5 +1,5 @@
|
|
|
-| Supported Targets | ESP32 | ESP32-C3 | ESP32-C6 | ESP32-S3 |
|
|
|
-| ----------------- | ----- | -------- | -------- | -------- |
|
|
|
+| Supported Targets | ESP32 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-S3 |
|
|
|
+| ----------------- | ----- | -------- | -------- | -------- | -------- |
|
|
|
|
|
|
Bluetooth Power Save Example
|
|
|
=================================
|
|
|
@@ -10,7 +10,6 @@ If the modem sleep mode is enabled, bluetooth will switch periodically between a
|
|
|
In sleep state, RF, PHY and BB are turned off in order to reduce power consumption.
|
|
|
|
|
|
This example contains five 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.
|
|
|
@@ -18,12 +17,13 @@ This example contains five build configurations. For each configuration, a few c
|
|
|
- `sdkconfig.40m.esp32c6`: ESP32C6 uses main XTAL as low power clock in light sleep enabled.
|
|
|
- `sdkconfig.defaults.esp32s3`: ESP32S3 uses 32kHz XTAL as low power clock in light sleep enabled.
|
|
|
- `sdkconfig.40m.esp32s3`: ESP32S3 uses main XTAL as low power clock in light sleep enabled.
|
|
|
-
|
|
|
+- `sdkconfig.defaults.esp32h2`: ESP32H2 uses 32kHz XTAL as low power clock in light sleep enabled.
|
|
|
+- `sdkconfig.40m.esp32h2`: ESP32H2 uses main XTAL as low power clock in light sleep enabled.
|
|
|
## How to use example
|
|
|
|
|
|
### Hardware Required
|
|
|
|
|
|
-This example should be able to run on any commonly available ESP32/ESP32-C3/ESP32-S3/ESP32-C6 development board.
|
|
|
+This example should be able to run on any commonly available ESP32/ESP32-C3/ESP32-S3/ESP32-H2/ESP32-C6 development board.
|
|
|
|
|
|
### Configure the project
|
|
|
|
|
|
@@ -37,11 +37,10 @@ idf.py menuconfig
|
|
|
- `Component config > Power Management > [*] Support for power management`
|
|
|
3. Configure FreeRTOS:
|
|
|
- `Component config > FreeRTOS > Kernel`
|
|
|
- - `(1000) configTICK_RATE_HZ`
|
|
|
- - `[*] configUSE_TICKLESS_IDLE`
|
|
|
- - `(3) configEXPECTED_IDLE_TIME_BEFORE_SLEEP`
|
|
|
-
|
|
|
-#### For ESP32/ESP32-C3/ESP32-S3 Chip:
|
|
|
+ - `(1000) configTICK_RATE_HZ`
|
|
|
+ - `[*] configUSE_TICKLESS_IDLE`
|
|
|
+ - `(3) configEXPECTED_IDLE_TIME_BEFORE_SLEEP`
|
|
|
+#### For Chip ESP32/ESP32-C3/ESP32-S3:
|
|
|
|
|
|
4. Enable power down MAC and baseband:
|
|
|
- `Component config > PHY > [*] Power down MAC and baseband of Wi-Fi and Bluetooth when PHY is disabled`
|
|
|
@@ -54,7 +53,7 @@ idf.py menuconfig
|
|
|
7. Enable power up main XTAL during light sleep:
|
|
|
- `Component config > Bluetooth > Controller Options > MODEM SLEEP Options > [*] power up main XTAL during light sleep`
|
|
|
|
|
|
-#### For ESP32-C6 Chip:
|
|
|
+#### For Chip ESP32-C6/ESP32-H2
|
|
|
|
|
|
4. Enable bluetooth modem sleep:
|
|
|
- `Component config > Bluetooth > Controller Options`
|
|
|
@@ -129,6 +128,7 @@ I (463) NimBLE:
|
|
|
| ESP32C3 | 262 mA | 12 mA | 2.3 mA | 140 uA |
|
|
|
| ESP32S3 | 240 mA | 17.9 mA | 3.3 mA | 230 uA |
|
|
|
| ESP32C6 | 240 mA | 22 mA | 3.3 mA | 34 uA |
|
|
|
+| ESP32H2 | 82 mA | 16.0 mA | 4.0 mA | 24 uA |
|
|
|
X: This feature is currently not supported.
|
|
|
|
|
|
## Example Breakdown
|