From 1ed76f53ecfaa458a1ab3123747bb9ffc8ebcb79 Mon Sep 17 00:00:00 2001 From: Wei Yu Han Date: Thu, 30 Oct 2025 14:24:13 +0800 Subject: [PATCH] docs(ble): Fixed the common operation path for all chips (cherry picked from commit c55a1180ebeb720252f70f573b6a25d2679a94e4) Co-authored-by: Wei Yuhan --- .../low-power-mode/low-power-mode-ble.rst | 16 ++++++++++------ .../low-power-mode/low-power-mode-ble.rst | 18 +++++++++++------- 2 files changed, 21 insertions(+), 13 deletions(-) diff --git a/docs/en/api-guides/low-power-mode/low-power-mode-ble.rst b/docs/en/api-guides/low-power-mode/low-power-mode-ble.rst index 07e7c5ed5c..42738b6547 100644 --- a/docs/en/api-guides/low-power-mode/low-power-mode-ble.rst +++ b/docs/en/api-guides/low-power-mode/low-power-mode-ble.rst @@ -57,7 +57,7 @@ To use a 32kHz external crystal as the Bluetooth LE internal clock source, confi .. only:: esp32 or esp32c3 or esp32s3 - **Configuration Path:** + **Configuration Path 1:** ``Component config → Bluetooth → Controller Options → MODEM SLEEP Options → Bluetooth modem sleep → Bluetooth Modem sleep Mode 1 → Bluetooth low power clock`` @@ -75,13 +75,13 @@ To use a 32kHz external crystal as the Bluetooth LE internal clock source, confi - \ (X) Use system RTC slow clock source - **Configuration Path 2:** +**Configuration Path 2:** - ``Component config → Hardware Settings → RTC Clock Config → RTC clock source`` +``Component config → Hardware Settings → RTC Clock Config → RTC clock source`` - **Configuration Option:** +**Configuration Option:** - - \ (X) External 32 kHz crystal + - \ (X) External 32 kHz crystal **Note:** Even if 32kHz is selected in menuconfig, the system will fall back to the main XTAL if the external crystal is not detected during Bluetooth LE initialization. This may lead to unexpected current consumption in light-sleep mode. @@ -93,7 +93,7 @@ Selecting 136 kHz RC Oscillator To use a 136 kHz internal RC oscillator as the Bluetooth LE internal clock source, configure the following option: - **Configuration Path:** ` + **Configuration Path 1:** `Component config → Bluetooth → Controller Options → MODEM SLEEP Options → Bluetooth modem sleep → Bluetooth Modem sleep Mode 1 → Bluetooth low power clock`` @@ -119,6 +119,8 @@ Selecting 136 kHz RC Oscillator - \ (X) Use system RTC slow clock source +.. only:: not esp32 + **Configuration Path 2:** ``Component config → Hardware Settings → RTC Clock Config → RTC clock source`` @@ -127,6 +129,8 @@ Selecting 136 kHz RC Oscillator - \ (X) Internal 136 kHz RC oscillator +.. only:: esp32c2 or esp32c6 or esp32h2 or esp32c5 or esp32c61 + If low current consumption is required but have no access to the External 32kHz Crystal, then this clock source is recommended. However, selecting this clock source will have the sleep clock accuracy larger than 500 PPM, which is supported if the peer device is also an ESP chip. If the peer device is not an ESP chip, here's some Bluetooth LE event not supported: 1. Central role of Connection diff --git a/docs/zh_CN/api-guides/low-power-mode/low-power-mode-ble.rst b/docs/zh_CN/api-guides/low-power-mode/low-power-mode-ble.rst index 121f19fe65..8fa171dfb6 100644 --- a/docs/zh_CN/api-guides/low-power-mode/low-power-mode-ble.rst +++ b/docs/zh_CN/api-guides/low-power-mode/low-power-mode-ble.rst @@ -8,7 +8,7 @@ 低功耗模式下的时钟源选择 -------------------------------------------- -在低功耗蓝牙应用场景中,由于协议要求休眠时钟精度需在 500 PPM 以内,light-sleep 和 modem-sleep 模式下所用的时钟源必须满足该要求。如果时钟精度不足,可能会出现 ACL 连接失败或超时断开等问题。**因此在使用前请确保所选时钟源及其精度满 要求。** +在低功耗蓝牙应用场景中,由于协议要求休眠时钟精度需在 500 PPM 以内,light-sleep 和 modem-sleep 模式下所用的时钟源必须满足该要求。如果时钟精度不足,可能会出现 ACL 连接失败或超时断开等问题。**因此在使用前请确保所选时钟源及其精度满足要求。** 选择主晶振 @@ -57,7 +57,7 @@ .. only:: esp32 or esp32c3 or esp32s3 - **配置路径:** + **配置路径 1:** ``Component config → Bluetooth → Controller Options → MODEM SLEEP Options → Bluetooth modem sleep → Bluetooth Modem sleep Mode 1 → Bluetooth low power clock`` @@ -75,13 +75,13 @@ - \ (X) Use system RTC slow clock source - **配置路径 2:** +**配置路径 2:** - ``Component config → Hardware Settings → RTC Clock Config → RTC clock source`` +``Component config → Hardware Settings → RTC Clock Config → RTC clock source`` - **配置选项:** +**配置选项:** - - \ (X) External 32 kHz crystal +- \ (X) External 32 kHz crystal **注意:** 即使在 menuconfig 中选择了 32kHz 外部晶振,如果低功耗蓝牙初始化时未检测到外部晶振,系统会自动切换为主晶振,可能导致 light-sleep 电流高于预期。 @@ -93,7 +93,7 @@ 要使用 136 kHz 内部 RC 振荡器作为低功耗蓝牙内部时钟源,请配置以下选项: - **配置路径:** + **配置路径 1:** ``Component config → Bluetooth → Controller Options → MODEM SLEEP Options → Bluetooth modem sleep → Bluetooth Modem sleep Mode 1 → Bluetooth low power clock`` @@ -119,6 +119,8 @@ - \ (X) Use system RTC slow clock source +.. only:: not esp32 + **配置路径 2:** ``Component config → Hardware Settings → RTC Clock Config → RTC clock source`` @@ -127,6 +129,8 @@ - \ (X) Internal 136 kHz RC oscillator +.. only:: esp32c2 or esp32c6 or esp32h2 or esp32c5 or esp32c61 + 对于需要低功耗且没有 32kHz 外部晶振的场景下,可以选择 136 kHz R C振荡器。然而这个时钟无法满足低功耗蓝牙的 500PPM 的休眠时钟精度需求。不过如果对端设备使用的是 ESP 芯片,仍能支持低功耗蓝牙行为。但是如果对端设备并非使用 ESP 芯片,则使用下面低功耗蓝牙行为将无法支持: 1. 作为连接的 Central 方