From e4b3fe2f46822d4707fce38d99517335ad9bafcd Mon Sep 17 00:00:00 2001 From: Yuhan Wei Date: Mon, 15 Jul 2024 19:41:43 +0800 Subject: [PATCH 01/14] docs(ble): Reorganized the bluetooth API guide structure --- docs/conf_common.py | 20 ++++++++----- .../api-guides/{ => bluetooth}/bluetooth.rst | 24 +++++++-------- docs/en/api-guides/bluetooth/index.rst | 20 +++++++++++++ docs/en/api-guides/index.rst | 2 +- .../api-guides/{ => bluetooth}/bluetooth.rst | 30 +++++++++---------- docs/zh_CN/api-guides/bluetooth/index.rst | 20 +++++++++++++ docs/zh_CN/api-guides/index.rst | 2 +- 7 files changed, 81 insertions(+), 37 deletions(-) rename docs/en/api-guides/{ => bluetooth}/bluetooth.rst (88%) create mode 100644 docs/en/api-guides/bluetooth/index.rst rename docs/zh_CN/api-guides/{ => bluetooth}/bluetooth.rst (83%) create mode 100644 docs/zh_CN/api-guides/bluetooth/index.rst diff --git a/docs/conf_common.py b/docs/conf_common.py index 108b94611b..055efc1365 100644 --- a/docs/conf_common.py +++ b/docs/conf_common.py @@ -17,20 +17,24 @@ if os.environ.get('IDF_PATH') is None: raise RuntimeError('IDF_PATH should be set, run export.sh before building docs') BT_DOCS = ['api-guides/bluetooth.rst', - 'api-reference/bluetooth/bt_le.rst', + 'api-guides/bluetooth/index.rst', + 'api-guides/bluetooth/bluetooth.rst', 'api-reference/bluetooth/esp_bt_defs.rst', 'api-reference/bluetooth/esp_bt_device.rst', 'api-reference/bluetooth/esp_bt_main.rst', 'api-reference/bluetooth/bt_common.rst', 'api-reference/bluetooth/controller_vhci.rst', - 'api-reference/bluetooth/esp_gap_ble.rst', - 'api-reference/bluetooth/esp_gatt_defs.rst', - 'api-reference/bluetooth/esp_gatts.rst', - 'api-reference/bluetooth/esp_gattc.rst', - 'api-reference/bluetooth/index.rst', - 'api-reference/bluetooth/nimble/index.rst'] + 'api-reference/bluetooth/index.rst'] + +BLE_DOCS = ['api-reference/bluetooth/bt_le.rst', + 'api-guides/bluetooth/ble/ble-feature-support-status.rst', + 'api-reference/bluetooth/esp_gap_ble.rst', + 'api-reference/bluetooth/esp_gatt_defs.rst', + 'api-reference/bluetooth/esp_gatts.rst', + 'api-reference/bluetooth/esp_gattc.rst', + 'api-reference/bluetooth/nimble/index.rst', + 'migration-guides/release-5.x/5.0/bluetooth-low-energy.rst'] -BLE_DOCS = ['migration-guides/release-5.x/5.0/bluetooth-low-energy.rst'] BLE_MESH_DOCS = ['api-guides/esp-ble-mesh/ble-mesh-index.rst', 'api-guides/esp-ble-mesh/ble-mesh-feature-list.rst', diff --git a/docs/en/api-guides/bluetooth.rst b/docs/en/api-guides/bluetooth/bluetooth.rst similarity index 88% rename from docs/en/api-guides/bluetooth.rst rename to docs/en/api-guides/bluetooth/bluetooth.rst index 7617e1b432..0cab773f3d 100644 --- a/docs/en/api-guides/bluetooth.rst +++ b/docs/en/api-guides/bluetooth/bluetooth.rst @@ -1,5 +1,5 @@ -Bluetooth® Overview -=================== +Introduction +------------ :link_to_translation:`zh_CN:[中文]` @@ -21,7 +21,7 @@ The Bluetooth stack in ESP-IDF is a layered architecture that enables Bluetooth .. only:: esp32 or esp32s3 or esp32c3 or esp32c6 - .. figure:: ../../_static/bluetooth-architecture.png + .. figure:: ../../../_static/bluetooth-architecture.png :align: center :scale: 90% :alt: {IDF_TARGET_NAME} Bluetooth Stack Architecture @@ -30,7 +30,7 @@ The Bluetooth stack in ESP-IDF is a layered architecture that enables Bluetooth .. only:: esp32c2 - .. figure:: ../../_static/bluetooth-architecture-no-ble-mesh.png + .. figure:: ../../../_static/bluetooth-architecture-no-ble-mesh.png :align: center :scale: 90% :alt: {IDF_TARGET_NAME} Bluetooth Stack Architecture @@ -39,7 +39,7 @@ The Bluetooth stack in ESP-IDF is a layered architecture that enables Bluetooth .. only:: esp32h2 - .. figure:: ../../_static/bluetooth-architecture-no-blufi.png + .. figure:: ../../../_static/bluetooth-architecture-no-blufi.png :align: center :scale: 90% :alt: {IDF_TARGET_NAME} Bluetooth Stack Architecture @@ -110,7 +110,7 @@ ESP Bluetooth Controller At the bottom layer is ESP Bluetooth Controller, which encompasses various modules such as PHY, Baseband, Link Controller, Link Manager, Device Manager, and HCI. It handles hardware interface management and link management. It provides functions in the form of libraries and is accessible through APIs. This layer directly interacts with the hardware and low-level Bluetooth protocols. -- :doc:`API reference <../api-reference/bluetooth/controller_vhci>` +- :doc:`API reference <../../api-reference/bluetooth/controller_vhci>` - :example:`Application examples ` @@ -141,12 +141,12 @@ ESP-Bluedroid is a modified version of the native Android Bluetooth stack, Blued - API references - - :doc:`../api-reference/bluetooth/bt_common` - - :doc:`Bluetooth LE <../api-reference/bluetooth/bt_le>` + - :doc:`../../api-reference/bluetooth/bt_common` + - :doc:`Bluetooth LE <../../api-reference/bluetooth/bt_le>` .. only:: esp32 - - :doc:`../api-reference/bluetooth/classic_bt` + - :doc:`../../api-reference/bluetooth/classic_bt` - :example:`Application examples ` @@ -162,7 +162,7 @@ ESP-NimBLE supports Bluetooth LE only. Classic Bluetooth is not supported. - API references - `NimBLE API references `__ - - :doc:`ESP-NimBLE API references for initialization <../api-reference/bluetooth/nimble/index>` + - :doc:`ESP-NimBLE API references for initialization <../../api-reference/bluetooth/nimble/index>` - :example:`Application examples ` @@ -180,7 +180,7 @@ Above the host stacks are the profile implementations by Espressif and some comm Built on top of Zephyr Bluetooth Mesh stack, the ESP-BLE-MESH implementation supports device provisioning and node control. It also supports such node features as Proxy, Relay, Low power and Friend. - - :doc:`ESP-BLE-MESH documentation `: feature list, get started, architecture, description of application examples, frequently asked questions, etc. + - :doc:`ESP-BLE-MESH documentation <../esp-ble-mesh/ble-mesh-index>`: feature list, get started, architecture, description of application examples, frequently asked questions, etc. - :example:`Application examples ` @@ -191,7 +191,7 @@ Above the host stacks are the profile implementations by Espressif and some comm The BluFi for {IDF_TARGET_NAME} is a Wi-Fi network configuration function via Bluetooth channel. It provides a secure protocol to pass Wi-Fi configuration and credentials to {IDF_TARGET_NAME}. Using this information, {IDF_TARGET_NAME} can then connect to an AP or establish a softAP. - - :doc:`BluFi documentation ` + - :doc:`BluFi documentation <../blufi>` - :example:`Application examples ` diff --git a/docs/en/api-guides/bluetooth/index.rst b/docs/en/api-guides/bluetooth/index.rst new file mode 100644 index 0000000000..199935e3f3 --- /dev/null +++ b/docs/en/api-guides/bluetooth/index.rst @@ -0,0 +1,20 @@ +Bluetooth® +============ +:link_to_translation:`zh_CN:[中文]` + +Overview +-------- +.. toctree:: + :maxdepth: 1 + + bluetooth + +.. .. only:: SOC_BLE_SUPPORTED + + .. Bluetooth® Low Energy (Bluetooth LE) + .. ------------------------------------ + + .. .. toctree:: + .. :maxdepth: 2 + + .. ble/ble-feature-support-status diff --git a/docs/en/api-guides/index.rst b/docs/en/api-guides/index.rst index 9e11d6e4f9..bd0c0704e8 100644 --- a/docs/en/api-guides/index.rst +++ b/docs/en/api-guides/index.rst @@ -8,7 +8,7 @@ API Guides app_trace startup :SOC_BLUFI_SUPPORTED: blufi - :SOC_BT_SUPPORTED: bluetooth + :SOC_BT_SUPPORTED: bluetooth/index bootloader build-system :SOC_SUPPORT_COEXISTENCE: coexist diff --git a/docs/zh_CN/api-guides/bluetooth.rst b/docs/zh_CN/api-guides/bluetooth/bluetooth.rst similarity index 83% rename from docs/zh_CN/api-guides/bluetooth.rst rename to docs/zh_CN/api-guides/bluetooth/bluetooth.rst index 477d20238c..de511d7927 100644 --- a/docs/zh_CN/api-guides/bluetooth.rst +++ b/docs/zh_CN/api-guides/bluetooth/bluetooth.rst @@ -1,5 +1,5 @@ -蓝牙®概述 -========= +介绍 +------ :link_to_translation:`en:[English]` @@ -21,7 +21,7 @@ ESP-IDF 中的蓝牙协议栈是一个分层架构,可在 {IDF_TARGET_NAME} .. only:: esp32 or esp32s3 or esp32c3 or esp32c6 - .. figure:: ../../_static/bluetooth-architecture.png + .. figure:: ../../../_static/bluetooth-architecture.png :align: center :scale: 90% :alt: {IDF_TARGET_NAME} 蓝牙协议栈架构 @@ -30,7 +30,7 @@ ESP-IDF 中的蓝牙协议栈是一个分层架构,可在 {IDF_TARGET_NAME} .. only:: esp32c2 - .. figure:: ../../_static/bluetooth-architecture-no-ble-mesh.png + .. figure:: ../../../_static/bluetooth-architecture-no-ble-mesh.png :align: center :scale: 90% :alt: {IDF_TARGET_NAME} 蓝牙协议栈架构 @@ -39,7 +39,7 @@ ESP-IDF 中的蓝牙协议栈是一个分层架构,可在 {IDF_TARGET_NAME} .. only:: esp32h2 - .. figure:: ../../_static/bluetooth-architecture-no-blufi.png + .. figure:: ../../../_static/bluetooth-architecture-no-blufi.png :align: center :scale: 90% :alt: {IDF_TARGET_NAME} 蓝牙协议栈架构 @@ -110,7 +110,7 @@ ESP 蓝牙控制器 底层为 ESP 蓝牙控制器,包含 PHY、基带、链路控制器、链路管理器、设备管理器和 HCI 等各种模块。该层管理硬件接口和链路,以库的形式提供功能,并通过 API 访问,且直接与硬件和低级别蓝牙协议交互。 -- :doc:`API 参考 <../api-reference/bluetooth/controller_vhci>` +- :doc:`API 参考 <../../api-reference/bluetooth/controller_vhci>` - :example:`应用示例 ` @@ -141,12 +141,12 @@ ESP-Bluedroid 是原生 Android 蓝牙协议栈 Bluedroid 的修改版,由两 - API 参考 - - :doc:`../api-reference/bluetooth/bt_common` - - :doc:`低功耗蓝牙 <../api-reference/bluetooth/bt_le>` + - :doc:`../../api-reference/bluetooth/bt_common` + - :doc:`低功耗蓝牙 <../../api-reference/bluetooth/bt_le>` .. only:: esp32 - - :doc:`../api-reference/bluetooth/classic_bt` + - :doc:`../../api-reference/bluetooth/classic_bt` - :example:`应用程序示例 ` @@ -162,15 +162,15 @@ ESP-NimBLE 仅支持低功耗蓝牙,不支持经典蓝牙。 - API 参考 - `NimBLE API 参考 `__ - - :doc:`ESP-NimBLE 初始化 API 参考 initialization <../api-reference/bluetooth/nimble/index>` + - :doc:`ESP-NimBLE 初始化 API 参考 initialization <../../api-reference/bluetooth/nimble/index>` - :example:`应用程序示例 ` -配置文件 +蓝牙规范 -------- -主机协议层之上是 Espressif 的配置文件实现和一些常见的配置文件。根据具体配置,这些配置文件可以在 ESP-Bluedroid 或 ESP-NimBLE 上运行。 +主机协议层之上是 Espressif 的蓝牙规范和一些常见的蓝牙规范。根据具体配置,这些规范可以在 ESP-Bluedroid 或 ESP-NimBLE 上运行。 .. only:: SOC_BLE_MESH_SUPPORTED @@ -180,7 +180,7 @@ ESP-NimBLE 仅支持低功耗蓝牙,不支持经典蓝牙。 ESP-BLE-MESH 基于 Zephyr 蓝牙 Mesh 协议栈,其实现支持设备配网和节点控制,还支持代理、中继、低功耗和朋友等节点功能。 - - :doc:`ESP-BLE-MESH 文档 `:功能列表、快速入门、架构、应用示例描述、常见问题等。 + - :doc:`ESP-BLE-MESH 文档 <../esp-ble-mesh/ble-mesh-index>`:功能列表、快速入门、架构、应用示例描述、常见问题等。 - :example:`应用示例 ` @@ -191,11 +191,11 @@ ESP-NimBLE 仅支持低功耗蓝牙,不支持经典蓝牙。 {IDF_TARGET_NAME} 的 BluFi 是通过蓝牙信道进行的 Wi-Fi 网络配置功能。BluFi 提供了将 Wi-Fi 配置和凭据传递给 {IDF_TARGET_NAME} 的安全协议,从而使 {IDF_TARGET_NAME} 连接到 AP 或搭建软 AP。 - - :doc:`BluFi 文档 ` + - :doc:`BluFi 文档 <../blufi>` - :example:`应用示例 ` 应用 ---- -最上层是应用层。利用上述 API 和配置文件,可以在 ESP-Bluedroid 和 ESP-NimBLE 协议栈之上创建特定用例的蓝牙应用程序。 +最上层是应用层。利用上述 API 和蓝牙规范,可以在 ESP-Bluedroid 和 ESP-NimBLE 协议栈之上创建特定用例的蓝牙应用程序。 diff --git a/docs/zh_CN/api-guides/bluetooth/index.rst b/docs/zh_CN/api-guides/bluetooth/index.rst new file mode 100644 index 0000000000..426fee96f5 --- /dev/null +++ b/docs/zh_CN/api-guides/bluetooth/index.rst @@ -0,0 +1,20 @@ +蓝牙® +========= +:link_to_translation:`en:[English]` + +概述 +-------- +.. toctree:: + :maxdepth: 1 + + bluetooth + +.. .. only:: SOC_BLE_SUPPORTED + + .. 低功耗蓝牙® + .. ------------------ + + .. .. toctree:: + .. :maxdepth: 2 + + .. ble/ble-feature-support-status diff --git a/docs/zh_CN/api-guides/index.rst b/docs/zh_CN/api-guides/index.rst index c99ad1d9f3..428ba4fb5a 100644 --- a/docs/zh_CN/api-guides/index.rst +++ b/docs/zh_CN/api-guides/index.rst @@ -8,7 +8,7 @@ API 指南 app_trace startup :SOC_BLUFI_SUPPORTED: blufi - :SOC_BT_SUPPORTED: bluetooth + :SOC_BT_SUPPORTED: bluetooth/index bootloader build-system :SOC_SUPPORT_COEXISTENCE: coexist From c6f974e68937b728faca86cb513593b90f8a3a92 Mon Sep 17 00:00:00 2001 From: Yuhan Wei Date: Tue, 16 Jul 2024 14:18:41 +0800 Subject: [PATCH 02/14] docs(ble): Created an independent BLE folder --- docs/conf_common.py | 8 +++--- docs/en/api-guides/ble/index.rst | 10 ++++++++ .../bluetooth.rst => ble/overview.rst} | 25 ++++++++----------- docs/en/api-guides/bluetooth/index.rst | 20 --------------- docs/en/api-guides/index.rst | 2 +- docs/zh_CN/api-guides/ble/index.rst | 10 ++++++++ .../bluetooth.rst => ble/overview.rst} | 13 +++------- docs/zh_CN/api-guides/bluetooth/index.rst | 20 --------------- docs/zh_CN/api-guides/index.rst | 2 +- 9 files changed, 39 insertions(+), 71 deletions(-) create mode 100644 docs/en/api-guides/ble/index.rst rename docs/en/api-guides/{bluetooth/bluetooth.rst => ble/overview.rst} (86%) delete mode 100644 docs/en/api-guides/bluetooth/index.rst create mode 100644 docs/zh_CN/api-guides/ble/index.rst rename docs/zh_CN/api-guides/{bluetooth/bluetooth.rst => ble/overview.rst} (93%) delete mode 100644 docs/zh_CN/api-guides/bluetooth/index.rst diff --git a/docs/conf_common.py b/docs/conf_common.py index 055efc1365..379d4ae513 100644 --- a/docs/conf_common.py +++ b/docs/conf_common.py @@ -16,10 +16,7 @@ from esp_docs.conf_docs import * # noqa: F403,F401 if os.environ.get('IDF_PATH') is None: raise RuntimeError('IDF_PATH should be set, run export.sh before building docs') -BT_DOCS = ['api-guides/bluetooth.rst', - 'api-guides/bluetooth/index.rst', - 'api-guides/bluetooth/bluetooth.rst', - 'api-reference/bluetooth/esp_bt_defs.rst', +BT_DOCS = ['api-reference/bluetooth/esp_bt_defs.rst', 'api-reference/bluetooth/esp_bt_device.rst', 'api-reference/bluetooth/esp_bt_main.rst', 'api-reference/bluetooth/bt_common.rst', @@ -27,7 +24,8 @@ BT_DOCS = ['api-guides/bluetooth.rst', 'api-reference/bluetooth/index.rst'] BLE_DOCS = ['api-reference/bluetooth/bt_le.rst', - 'api-guides/bluetooth/ble/ble-feature-support-status.rst', + 'api-guides/ble/index.rst', + 'api-guides/ble/overview.rst', 'api-reference/bluetooth/esp_gap_ble.rst', 'api-reference/bluetooth/esp_gatt_defs.rst', 'api-reference/bluetooth/esp_gatts.rst', diff --git a/docs/en/api-guides/ble/index.rst b/docs/en/api-guides/ble/index.rst new file mode 100644 index 0000000000..4896107669 --- /dev/null +++ b/docs/en/api-guides/ble/index.rst @@ -0,0 +1,10 @@ +Bluetooth® Low Energy (Bluetooth LE) +==================================== +:link_to_translation:`zh_CN:[中文]` + +Overview +-------- +.. toctree:: + :maxdepth: 1 + + overview diff --git a/docs/en/api-guides/bluetooth/bluetooth.rst b/docs/en/api-guides/ble/overview.rst similarity index 86% rename from docs/en/api-guides/bluetooth/bluetooth.rst rename to docs/en/api-guides/ble/overview.rst index 0cab773f3d..44d3f648d1 100644 --- a/docs/en/api-guides/bluetooth/bluetooth.rst +++ b/docs/en/api-guides/ble/overview.rst @@ -3,7 +3,7 @@ Introduction :link_to_translation:`zh_CN:[中文]` -This document provides an architecture overview of the Bluetooth stack in ESP-IDF and some quick links to related documents and application examples. +This document provides an architecture overview of the Bluetooth Low Energy (Bluetooth LE) stack in ESP-IDF and some quick links to related documents and application examples. .. only:: esp32 @@ -17,36 +17,36 @@ This document provides an architecture overview of the Bluetooth stack in ESP-ID {IDF_TARGET_NAME} supports Bluetooth 5.0 (LE) and is certified for Bluetooth LE 5.3. -The Bluetooth stack in ESP-IDF is a layered architecture that enables Bluetooth functionality on {IDF_TARGET_NAME} chip series. The table below shows its architecture. +The Bluetooth LE stack in ESP-IDF is a layered architecture that enables Bluetooth functionality on {IDF_TARGET_NAME} chip series. The table below shows its architecture. .. only:: esp32 or esp32s3 or esp32c3 or esp32c6 .. figure:: ../../../_static/bluetooth-architecture.png :align: center :scale: 90% - :alt: {IDF_TARGET_NAME} Bluetooth Stack Architecture + :alt: {IDF_TARGET_NAME} Bluetooth LE Stack Architecture - {IDF_TARGET_NAME} Bluetooth Stack Architecture + {IDF_TARGET_NAME} Bluetooth LE Stack Architecture .. only:: esp32c2 .. figure:: ../../../_static/bluetooth-architecture-no-ble-mesh.png :align: center :scale: 90% - :alt: {IDF_TARGET_NAME} Bluetooth Stack Architecture + :alt: {IDF_TARGET_NAME} Bluetooth LE Stack Architecture - {IDF_TARGET_NAME} Bluetooth Stack Architecture + {IDF_TARGET_NAME} Bluetooth LE Stack Architecture .. only:: esp32h2 .. figure:: ../../../_static/bluetooth-architecture-no-blufi.png :align: center :scale: 90% - :alt: {IDF_TARGET_NAME} Bluetooth Stack Architecture + :alt: {IDF_TARGET_NAME} Bluetooth LE Stack Architecture - {IDF_TARGET_NAME} Bluetooth Stack Architecture + {IDF_TARGET_NAME} Bluetooth LE Stack Architecture -The table below shows whether the Bluetooth modules are supported in a specific chip series. +The table below shows whether the Bluetooth LE modules are supported in a specific chip series. .. list-table:: :width: 100% @@ -143,11 +143,6 @@ ESP-Bluedroid is a modified version of the native Android Bluetooth stack, Blued - :doc:`../../api-reference/bluetooth/bt_common` - :doc:`Bluetooth LE <../../api-reference/bluetooth/bt_le>` - - .. only:: esp32 - - - :doc:`../../api-reference/bluetooth/classic_bt` - - :example:`Application examples ` @@ -198,4 +193,4 @@ Above the host stacks are the profile implementations by Espressif and some comm Applications ------------ -At the uppermost layer are applications. You can build your own applications on top of the ESP-Bluedroid and ESP-NimBLE stacks, leveraging the provided APIs and profiles to create Bluetooth-enabled applications tailored to specific use cases. +At the uppermost layer are applications. You can build your own applications on top of the ESP-Bluedroid and ESP-NimBLE stacks, leveraging the provided APIs and profiles to create Bluetooth LE-enabled applications tailored to specific use cases. diff --git a/docs/en/api-guides/bluetooth/index.rst b/docs/en/api-guides/bluetooth/index.rst deleted file mode 100644 index 199935e3f3..0000000000 --- a/docs/en/api-guides/bluetooth/index.rst +++ /dev/null @@ -1,20 +0,0 @@ -Bluetooth® -============ -:link_to_translation:`zh_CN:[中文]` - -Overview --------- -.. toctree:: - :maxdepth: 1 - - bluetooth - -.. .. only:: SOC_BLE_SUPPORTED - - .. Bluetooth® Low Energy (Bluetooth LE) - .. ------------------------------------ - - .. .. toctree:: - .. :maxdepth: 2 - - .. ble/ble-feature-support-status diff --git a/docs/en/api-guides/index.rst b/docs/en/api-guides/index.rst index bd0c0704e8..14b527a92a 100644 --- a/docs/en/api-guides/index.rst +++ b/docs/en/api-guides/index.rst @@ -8,7 +8,7 @@ API Guides app_trace startup :SOC_BLUFI_SUPPORTED: blufi - :SOC_BT_SUPPORTED: bluetooth/index + :SOC_BLE_SUPPORTED: ble/index bootloader build-system :SOC_SUPPORT_COEXISTENCE: coexist diff --git a/docs/zh_CN/api-guides/ble/index.rst b/docs/zh_CN/api-guides/ble/index.rst new file mode 100644 index 0000000000..0d581546b1 --- /dev/null +++ b/docs/zh_CN/api-guides/ble/index.rst @@ -0,0 +1,10 @@ +蓝牙® +========= +:link_to_translation:`en:[English]` + +概述 +-------- +.. toctree:: + :maxdepth: 1 + + overview diff --git a/docs/zh_CN/api-guides/bluetooth/bluetooth.rst b/docs/zh_CN/api-guides/ble/overview.rst similarity index 93% rename from docs/zh_CN/api-guides/bluetooth/bluetooth.rst rename to docs/zh_CN/api-guides/ble/overview.rst index de511d7927..a2d7a980b8 100644 --- a/docs/zh_CN/api-guides/bluetooth/bluetooth.rst +++ b/docs/zh_CN/api-guides/ble/overview.rst @@ -3,7 +3,7 @@ :link_to_translation:`en:[English]` -此文档概述了 ESP-IDF 中蓝牙协议栈的架构,并提供了一些相关文档和应用示例的快速链接。 +此文档概述了 ESP-IDF 中低功耗蓝牙协议栈的架构,并提供了一些相关文档和应用示例的快速链接。 .. only:: esp32 @@ -17,7 +17,7 @@ {IDF_TARGET_NAME} 支持蓝牙 5.0 (LE),并且已经获得蓝牙 LE 5.3 认证。 -ESP-IDF 中的蓝牙协议栈是一个分层架构,可在 {IDF_TARGET_NAME} 系列芯片上实现蓝牙功能,详见下。 +ESP-IDF 中的低功耗蓝牙协议栈是一个分层架构,可在 {IDF_TARGET_NAME} 系列芯片上实现低功耗蓝牙功能,详见下。 .. only:: esp32 or esp32s3 or esp32c3 or esp32c6 @@ -46,7 +46,7 @@ ESP-IDF 中的蓝牙协议栈是一个分层架构,可在 {IDF_TARGET_NAME} {IDF_TARGET_NAME} 蓝牙协议栈架构 -参考下表可知特定芯片是否支持蓝牙模块。 +参考下表可知特定芯片是否支持低功耗蓝牙模块。 .. list-table:: :width: 100% @@ -143,11 +143,6 @@ ESP-Bluedroid 是原生 Android 蓝牙协议栈 Bluedroid 的修改版,由两 - :doc:`../../api-reference/bluetooth/bt_common` - :doc:`低功耗蓝牙 <../../api-reference/bluetooth/bt_le>` - - .. only:: esp32 - - - :doc:`../../api-reference/bluetooth/classic_bt` - - :example:`应用程序示例 ` @@ -198,4 +193,4 @@ ESP-NimBLE 仅支持低功耗蓝牙,不支持经典蓝牙。 应用 ---- -最上层是应用层。利用上述 API 和蓝牙规范,可以在 ESP-Bluedroid 和 ESP-NimBLE 协议栈之上创建特定用例的蓝牙应用程序。 +最上层是应用层。利用上述 API 和蓝牙规范,可以在 ESP-Bluedroid 和 ESP-NimBLE 协议栈之上创建特定用例的低功耗蓝牙应用程序。 diff --git a/docs/zh_CN/api-guides/bluetooth/index.rst b/docs/zh_CN/api-guides/bluetooth/index.rst deleted file mode 100644 index 426fee96f5..0000000000 --- a/docs/zh_CN/api-guides/bluetooth/index.rst +++ /dev/null @@ -1,20 +0,0 @@ -蓝牙® -========= -:link_to_translation:`en:[English]` - -概述 --------- -.. toctree:: - :maxdepth: 1 - - bluetooth - -.. .. only:: SOC_BLE_SUPPORTED - - .. 低功耗蓝牙® - .. ------------------ - - .. .. toctree:: - .. :maxdepth: 2 - - .. ble/ble-feature-support-status diff --git a/docs/zh_CN/api-guides/index.rst b/docs/zh_CN/api-guides/index.rst index 428ba4fb5a..953a4f42ff 100644 --- a/docs/zh_CN/api-guides/index.rst +++ b/docs/zh_CN/api-guides/index.rst @@ -8,7 +8,7 @@ API 指南 app_trace startup :SOC_BLUFI_SUPPORTED: blufi - :SOC_BT_SUPPORTED: bluetooth/index + :SOC_BLE_SUPPORTED: ble/index bootloader build-system :SOC_SUPPORT_COEXISTENCE: coexist From 48bf83416a0160380c14038d4cecf811a5ce857b Mon Sep 17 00:00:00 2001 From: Yuhan Wei Date: Sun, 21 Jul 2024 17:18:37 +0800 Subject: [PATCH 03/14] docs(ble): Moved ble-mesh and blufi to ble section --- docs/conf_common.py | 12 ++--- docs/en/api-guides/{ => ble}/blufi.rst | 17 +++---- .../esp-ble-mesh/ble-mesh-architecture.rst | 8 +-- .../{ => ble}/esp-ble-mesh/ble-mesh-faq.rst | 6 +-- .../esp-ble-mesh/ble-mesh-feature-list.rst | 4 +- .../{ => ble}/esp-ble-mesh/ble-mesh-index.rst | 49 +++++++++---------- .../esp-ble-mesh/ble-mesh-terminology.rst | 4 +- docs/en/api-guides/ble/index.rst | 44 +++++++++++++++-- docs/en/api-guides/ble/overview.rst | 6 +-- docs/en/api-guides/index.rst | 2 - .../api-reference/bluetooth/esp-ble-mesh.rst | 3 +- 11 files changed, 93 insertions(+), 62 deletions(-) rename docs/en/api-guides/{ => ble}/blufi.rst (99%) rename docs/en/api-guides/{ => ble}/esp-ble-mesh/ble-mesh-architecture.rst (99%) rename docs/en/api-guides/{ => ble}/esp-ble-mesh/ble-mesh-faq.rst (99%) rename docs/en/api-guides/{ => ble}/esp-ble-mesh/ble-mesh-feature-list.rst (98%) rename docs/en/api-guides/{ => ble}/esp-ble-mesh/ble-mesh-index.rst (93%) rename docs/en/api-guides/{ => ble}/esp-ble-mesh/ble-mesh-terminology.rst (99%) diff --git a/docs/conf_common.py b/docs/conf_common.py index 379d4ae513..b8f7249a53 100644 --- a/docs/conf_common.py +++ b/docs/conf_common.py @@ -34,11 +34,11 @@ BLE_DOCS = ['api-reference/bluetooth/bt_le.rst', 'migration-guides/release-5.x/5.0/bluetooth-low-energy.rst'] -BLE_MESH_DOCS = ['api-guides/esp-ble-mesh/ble-mesh-index.rst', - 'api-guides/esp-ble-mesh/ble-mesh-feature-list.rst', - 'api-guides/esp-ble-mesh/ble-mesh-terminology.rst', - 'api-guides/esp-ble-mesh/ble-mesh-architecture.rst', - 'api-guides/esp-ble-mesh/ble-mesh-faq.rst', +BLE_MESH_DOCS = ['api-guides/ble/esp-ble-mesh/ble-mesh-index.rst', + 'api-guides/ble/esp-ble-mesh/ble-mesh-feature-list.rst', + 'api-guides/ble/esp-ble-mesh/ble-mesh-terminology.rst', + 'api-guides/ble/esp-ble-mesh/ble-mesh-architecture.rst', + 'api-guides/ble/esp-ble-mesh/ble-mesh-faq.rst', 'api-reference/bluetooth/esp-ble-mesh.rst'] CLASSIC_BT_DOCS = ['api-reference/bluetooth/classic_bt.rst', @@ -55,7 +55,7 @@ CLASSIC_BT_DOCS = ['api-reference/bluetooth/classic_bt.rst', 'api-reference/bluetooth/esp_gap_bt.rst', 'migration-guides/release-5.x/5.0/bluetooth-classic.rst'] -BLUFI_DOCS = ['api-guides/blufi.rst', +BLUFI_DOCS = ['api-guides/ble/blufi.rst', 'api-reference/bluetooth/esp_blufi.rst'] WIFI_DOCS = ['api-guides/low-power-mode/low-power-mode-wifi.rst', diff --git a/docs/en/api-guides/blufi.rst b/docs/en/api-guides/ble/blufi.rst similarity index 99% rename from docs/en/api-guides/blufi.rst rename to docs/en/api-guides/ble/blufi.rst index 5e69ccf2a9..460799826f 100644 --- a/docs/en/api-guides/blufi.rst +++ b/docs/en/api-guides/ble/blufi.rst @@ -1,11 +1,8 @@ -BluFi -^^^^^ +Introduction +============== :link_to_translation:`zh_CN:[中文]` -Overview --------- - The BluFi for {IDF_TARGET_NAME} is a Wi-Fi network configuration function via Bluetooth channel. It provides a secure protocol to pass Wi-Fi configuration and credentials to {IDF_TARGET_NAME}. Using this information, {IDF_TARGET_NAME} can then connect to an AP or establish a SoftAP. Fragmenting, data encryption, and checksum verification in the BluFi layer are the key elements of this process. @@ -13,7 +10,7 @@ Fragmenting, data encryption, and checksum verification in the BluFi layer are t You can customize symmetric encryption, asymmetric encryption, and checksum support customization. Here we use the DH algorithm for key negotiation, 128-AES algorithm for data encryption, and CRC16 algorithm for checksum verification. The BluFi Flow ---------------- +=============== The BluFi networking flow includes the configuration of the SoftAP and Station. @@ -46,7 +43,7 @@ The following uses Station as an example to illustrate the core parts of the pro 2. The data lengths before and after symmetric encryption/decryption must stay the same. It also supports in-place encryption and decryption. The Flow Chart of BluFi --------------------------- +======================== .. seqdiag:: :caption: BluFi Flow Chart @@ -75,7 +72,7 @@ The Flow Chart of BluFi .. _frame_formats: The Frame Formats Defined in BluFi ------------------------------------ +=================================== The frame formats for the communication between the mobile phone App and {IDF_TARGET_NAME} are defined as follows: @@ -431,7 +428,7 @@ The format of ACK Frame: The **CheckSum** field takes two bytes, which is used to check "sequence + data length + clear text data". The Security Implementation of {IDF_TARGET_NAME} ------------------------------------------------- +================================================= 1. Securing Data @@ -482,7 +479,7 @@ The data to be encrypted and decrypted must be in the same length. The IV8 is an This function is used to compute CheckSum and return a value of CheckSum. BluFi uses the returned value to compare the CheckSum of the frame. GATT Related Instructions -------------------------- +========================== UUID >>>>> diff --git a/docs/en/api-guides/esp-ble-mesh/ble-mesh-architecture.rst b/docs/en/api-guides/ble/esp-ble-mesh/ble-mesh-architecture.rst similarity index 99% rename from docs/en/api-guides/esp-ble-mesh/ble-mesh-architecture.rst rename to docs/en/api-guides/ble/esp-ble-mesh/ble-mesh-architecture.rst index f096c8a797..7d196c604a 100644 --- a/docs/en/api-guides/esp-ble-mesh/ble-mesh-architecture.rst +++ b/docs/en/api-guides/ble/esp-ble-mesh/ble-mesh-architecture.rst @@ -1,5 +1,5 @@ -ESP-BLE-MESH Architecture -========================= +Architecture +============= :link_to_translation:`zh_CN:[中文]` @@ -22,7 +22,7 @@ This document introduces ESP-BLE-MESH architecture overview, ESP-BLE-MESH archit Currently ESP-BLE-MESH has implemented most functions of Mesh Profile and all the Client Models defined in Mesh Model specification. Those missing functions/models are under development and will be provided soon. ESP-BLE-MESH architecture has been granted the official Bluetooth `certification `__. -.. figure:: ../../../_static/esp-ble-mesh-architecture.png +.. figure:: ../../../../_static/esp-ble-mesh-architecture.png :align: center Figure 1.1 ESP-BLE-MESH Architecture Diagram @@ -217,7 +217,7 @@ The design and implementation of ESP-BLE-MESH architecture is based on layers an - **Module-based Approach**: Every file implements an independent function that can be called by other programs. -.. figure:: ../../../_static/esp-ble-mesh-interface.png +.. figure:: ../../../../_static/esp-ble-mesh-interface.png :align: center Figure 2.1 ESP-BLE-MESH Architecture Implementation Diagram diff --git a/docs/en/api-guides/esp-ble-mesh/ble-mesh-faq.rst b/docs/en/api-guides/ble/esp-ble-mesh/ble-mesh-faq.rst similarity index 99% rename from docs/en/api-guides/esp-ble-mesh/ble-mesh-faq.rst rename to docs/en/api-guides/ble/esp-ble-mesh/ble-mesh-faq.rst index e6ed548923..3223670b72 100644 --- a/docs/en/api-guides/esp-ble-mesh/ble-mesh-faq.rst +++ b/docs/en/api-guides/ble/esp-ble-mesh/ble-mesh-faq.rst @@ -1,5 +1,5 @@ -ESP-BLE-MESH FAQ -================ +FAQ +===== :link_to_translation:`zh_CN:[中文]` @@ -532,7 +532,7 @@ Generally, a Provisioner is used to provision unprovisioned devices and form a m .. only:: esp32 - The :doc:`ESP32-DevKitC <../../hw-reference/esp32/get-started-devkitc>` board without PSRAM can run properly but the throughput of it is low since it has no PSRAM. When Bluetooth and Wi-Fi coexist, the throughput of ESP32-DevKitC with PSRAM can be stabilized to more than 1 Mbps. + The :doc:`ESP32-DevKitC <../../../hw-reference/esp32/get-started-devkitc>` board without PSRAM can run properly but the throughput of it is low since it has no PSRAM. When Bluetooth and Wi-Fi coexist, the throughput of ESP32-DevKitC with PSRAM can be stabilized to more than 1 Mbps. Some configurations in menuconfig shall be enabled to support PSRAM. diff --git a/docs/en/api-guides/esp-ble-mesh/ble-mesh-feature-list.rst b/docs/en/api-guides/ble/esp-ble-mesh/ble-mesh-feature-list.rst similarity index 98% rename from docs/en/api-guides/esp-ble-mesh/ble-mesh-feature-list.rst rename to docs/en/api-guides/ble/esp-ble-mesh/ble-mesh-feature-list.rst index f2efc745f9..5955646296 100644 --- a/docs/en/api-guides/esp-ble-mesh/ble-mesh-feature-list.rst +++ b/docs/en/api-guides/ble/esp-ble-mesh/ble-mesh-feature-list.rst @@ -1,5 +1,5 @@ -ESP-BLE-MESH Feature List -========================= +Feature List +============= :link_to_translation:`zh_CN:[中文]` diff --git a/docs/en/api-guides/esp-ble-mesh/ble-mesh-index.rst b/docs/en/api-guides/ble/esp-ble-mesh/ble-mesh-index.rst similarity index 93% rename from docs/en/api-guides/esp-ble-mesh/ble-mesh-index.rst rename to docs/en/api-guides/ble/esp-ble-mesh/ble-mesh-index.rst index b6874b932f..591e00d1b0 100644 --- a/docs/en/api-guides/esp-ble-mesh/ble-mesh-index.rst +++ b/docs/en/api-guides/ble/esp-ble-mesh/ble-mesh-index.rst @@ -1,6 +1,5 @@ -************ -ESP-BLE-MESH -************ +Introduction +============== :link_to_translation:`zh_CN:[中文]` @@ -12,7 +11,7 @@ Bluetooth mesh is not a wireless communications technology, but a networking tec Built on top of Zephyr Bluetooth Mesh stack, the ESP-BLE-MESH implementation supports device provisioning and node control. It also supports such node features as Proxy, Relay, Low power and Friend. -Please see the :doc:`ble-mesh-architecture` for information about the implementation of ESP-BLE-MESH architecture and :doc:`ESP-BLE-MESH API Reference <../../api-reference/bluetooth/esp-ble-mesh>` for information about respective API. +Please see the :doc:`ble-mesh-architecture` for information about the implementation of ESP-BLE-MESH architecture and :doc:`ESP-BLE-MESH API Reference <../../../api-reference/bluetooth/esp-ble-mesh>` for information about respective API. ESP-BLE-MESH is implemented and certified based on the latest Mesh Profile v1.0.1, users can refer `here `_ for the certification details of ESP-BLE-MESH. @@ -20,19 +19,19 @@ ESP-BLE-MESH is implemented and certified based on the latest Mesh Profile v1.0. .. note:: - If you are looking for Wi-Fi based implementation of mesh for {IDF_TARGET_NAME}, please check another product by Espressif called ESP-WIFI-MESH. For more information and documentation see :doc:`ESP-WIFI-MESH <../../api-reference/network/esp-wifi-mesh>`. + If you are looking for Wi-Fi based implementation of mesh for {IDF_TARGET_NAME}, please check another product by Espressif called ESP-WIFI-MESH. For more information and documentation see :doc:`ESP-WIFI-MESH <../../../api-reference/network/esp-wifi-mesh>`. .. _getting-started-with-ble-mesh: -Getting Started with ESP-BLE-MESH -================================= +Getting Started +================= This section is intended to help you get started with ESP-BLE-MESH for the hardware based on the {IDF_TARGET_NAME} chip by Espressif. We are going to demonstrate process of setting and operation of a small ESP-BLE-MESH network of three nodes. This process will cover device provisioning and node configuration, and then sending on/off commands to Generic OnOff Server Models on specific nodes. -If you are new to ESP-IDF, please first set up development environment, compile , flash and run example application following top level ESP-IDF :doc:`../../get-started/index` documentation. +If you are new to ESP-IDF, please first set up development environment, compile , flash and run example application following top level ESP-IDF :doc:`../../../get-started/index` documentation. What You Need @@ -83,7 +82,7 @@ After the :example:`bluetooth/esp_ble_mesh/onoff_models/onoff_server` example is Once boards are powered on, the RGB LED on each board should turn **GREEN**. -.. figure:: ../../../_static/ble-mesh-device-power-on.png +.. figure:: ../../../../_static/ble-mesh-device-power-on.png :align: center ESP-BLE-MESH Devices Power On @@ -98,7 +97,7 @@ In this section, we will use the **nRF Mesh Android** App to demonstrate how to The Scanner is App's functionality to search for unprovisioned devices in range. Open the App, press **Scanner** at the bottom and the search will start. After a short while we should see three unprovisioned devices displayed. -.. figure:: ../../../_static/ble-mesh-scanner.png +.. figure:: ../../../../_static/ble-mesh-scanner.png :align: center :height: 370 @@ -114,7 +113,7 @@ Users can select any unprovisioned device, then the App will try to set up a con After the **IDENTIFY** interface button is pressed, users can see the **PROVISION** interface button. -.. figure:: ../../../_static/ble-mesh-identify-provision.png +.. figure:: ../../../../_static/ble-mesh-identify-provision.png :align: center :height: 370 @@ -132,7 +131,7 @@ Then, the App will try to provision the unprovisioned device. When the device is When all the procedures are finished, the node is configured properly. And after pressing **OK**, users can see that unicast address is assigned, and Composition Data of the node is decoded successfully. -.. figure:: ../../../_static/ble-mesh-config-complete.png +.. figure:: ../../../../_static/ble-mesh-config-complete.png :align: center :height: 370 @@ -140,7 +139,7 @@ When all the procedures are finished, the node is configured properly. And after Sometimes in procedure 2, the App may fail to reconnect with the node. In this case, after pressing **OK**, users can see that only unicast address of the node has been assigned, but no Composition Data has been got. Then users need to press **CONNECT** on the top right, and the previously provisioned node will be displayed on the screen, and users need to choose it and try to connect with the node. -.. figure:: ../../../_static/ble-mesh-initial-config-fail.png +.. figure:: ../../../../_static/ble-mesh-initial-config-fail.png :align: center :height: 370 @@ -148,7 +147,7 @@ Sometimes in procedure 2, the App may fail to reconnect with the node. In this c After connecting successfully, the App will show the interface buttons which can be used to get Composition Data and add AppKey. -.. figure:: ../../../_static/ble-mesh-reconnect-initial-config.png +.. figure:: ../../../../_static/ble-mesh-reconnect-initial-config.png :align: center :height: 370 @@ -161,7 +160,7 @@ Here an example of three devices listed. * The left picture shows that the third device is provisioned successfully, but the App failed to connect with it. When it tries to reconnect with the third node, three nodes are displayed on the App. * The right picture shows that after connecting with any node successfully, the App displays the information of the three nodes. Users can see that the App has got the Composition Data of the first and the second nodes, but for the third one, only the unicast address has been assigned to it while the Composition Data is unknown. -.. figure:: ../../../_static/ble-mesh-reconnect-three.png +.. figure:: ../../../../_static/ble-mesh-reconnect-three.png :align: center :height: 370 @@ -174,7 +173,7 @@ When provisioning and initial configuration are finished, users can start to con Example below shows how to bind AppKey with Generic OnOff Server Model within the Primary Element. -.. figure:: ../../../_static/ble-mesh-model-bind-appkey.png +.. figure:: ../../../../_static/ble-mesh-model-bind-appkey.png :align: center :height: 370 @@ -191,7 +190,7 @@ After all the Generic OnOff Server Models within the three elements are bound wi In the :example:`bluetooth/esp_ble_mesh/onoff_models/onoff_server` example, the first Generic OnOff Server Model is used to control the **RED** color, the second one is used to control the **GREEN** color and the third one is used to control the **BLUE** color. -.. figure:: ../../../_static/ble-mesh-generic-onoff.png +.. figure:: ../../../../_static/ble-mesh-generic-onoff.png :align: center :height: 370 @@ -199,7 +198,7 @@ In the :example:`bluetooth/esp_ble_mesh/onoff_models/onoff_server` example, the The following screenshot shows different board with different color on. -.. figure:: ../../../_static/ble-mesh-three-nodes-on.png +.. figure:: ../../../../_static/ble-mesh-three-nodes-on.png :align: center Three ESP-BLE-MESH Nodes On @@ -210,8 +209,8 @@ The following screenshot shows different board with different color on. .. _esp-ble-mesh-examples: -ESP-BLE-MESH Examples -===================== +Examples +========= * :example_file:`OnOff Server ` - shows the use of ESP-BLE-MESH as a node having a Configuration Server model and a Generic OnOff Server model. A ESP-BLE-MESH Provisioner can then provision the unprovisioned device and control a RGB LED representing on/off state, see :example:`example code `. @@ -230,15 +229,15 @@ ESP-BLE-MESH Examples .. _esp-ble-mesh-demo-videos: -ESP-BLE-MESH Demo Videos -======================== +Demo Videos +============ * `Espressif Fast Provisioning using ESP-BLE-MESH App `_ * `Espressif ESP-BLE-MESH and Wi-Fi Coexistence `_ -ESP-BLE-MESH FAQ -================ +FAQ +==== * :ref:`ble-mesh-faq-provisioner-development` * :ref:`ble-mesh-faq-node-development` @@ -253,7 +252,7 @@ Related Documents ================= .. toctree:: - :maxdepth: 1 + :maxdepth: 2 ble-mesh-feature-list ble-mesh-architecture diff --git a/docs/en/api-guides/esp-ble-mesh/ble-mesh-terminology.rst b/docs/en/api-guides/ble/esp-ble-mesh/ble-mesh-terminology.rst similarity index 99% rename from docs/en/api-guides/esp-ble-mesh/ble-mesh-terminology.rst rename to docs/en/api-guides/ble/esp-ble-mesh/ble-mesh-terminology.rst index d6ab0031e3..fdf4dbdf5a 100644 --- a/docs/en/api-guides/esp-ble-mesh/ble-mesh-terminology.rst +++ b/docs/en/api-guides/ble/esp-ble-mesh/ble-mesh-terminology.rst @@ -1,5 +1,5 @@ -ESP-BLE-MESH Terminology -======================== +Terminology +============ :link_to_translation:`zh_CN:[中文]` diff --git a/docs/en/api-guides/ble/index.rst b/docs/en/api-guides/ble/index.rst index 4896107669..f39237ac3d 100644 --- a/docs/en/api-guides/ble/index.rst +++ b/docs/en/api-guides/ble/index.rst @@ -1,10 +1,48 @@ -Bluetooth® Low Energy (Bluetooth LE) -==================================== +####################### +Bluetooth® Low Energy +####################### + :link_to_translation:`zh_CN:[中文]` +********* Overview --------- +********* .. toctree:: :maxdepth: 1 overview + +********** +Profile +********** + +.. only:: SOC_BLE_MESH_SUPPORTED + + ESP-BLE-MESH + ^^^^^^^^^^^^^ + + - See the :ref:`ESP-BLE-MESH ` section. + +.. only:: SOC_BLUFI_SUPPORTED + + BluFi + ^^^^^ + + .. toctree:: + :maxdepth: 1 + + blufi + + +.. only:: SOC_BLE_MESH_SUPPORTED + + .. _mesh: + + ************* + ESP-BLE-MESH + ************* + + .. toctree:: + :maxdepth: 2 + + esp-ble-mesh/ble-mesh-index diff --git a/docs/en/api-guides/ble/overview.rst b/docs/en/api-guides/ble/overview.rst index 44d3f648d1..94572fdb41 100644 --- a/docs/en/api-guides/ble/overview.rst +++ b/docs/en/api-guides/ble/overview.rst @@ -1,5 +1,5 @@ Introduction ------------- +============= :link_to_translation:`zh_CN:[中文]` @@ -175,7 +175,7 @@ Above the host stacks are the profile implementations by Espressif and some comm Built on top of Zephyr Bluetooth Mesh stack, the ESP-BLE-MESH implementation supports device provisioning and node control. It also supports such node features as Proxy, Relay, Low power and Friend. - - :doc:`ESP-BLE-MESH documentation <../esp-ble-mesh/ble-mesh-index>`: feature list, get started, architecture, description of application examples, frequently asked questions, etc. + - :doc:`ESP-BLE-MESH documentation `: feature list, get started, architecture, description of application examples, frequently asked questions, etc. - :example:`Application examples ` @@ -186,7 +186,7 @@ Above the host stacks are the profile implementations by Espressif and some comm The BluFi for {IDF_TARGET_NAME} is a Wi-Fi network configuration function via Bluetooth channel. It provides a secure protocol to pass Wi-Fi configuration and credentials to {IDF_TARGET_NAME}. Using this information, {IDF_TARGET_NAME} can then connect to an AP or establish a softAP. - - :doc:`BluFi documentation <../blufi>` + - :doc:`BluFi documentation ` - :example:`Application examples ` diff --git a/docs/en/api-guides/index.rst b/docs/en/api-guides/index.rst index 14b527a92a..011537284c 100644 --- a/docs/en/api-guides/index.rst +++ b/docs/en/api-guides/index.rst @@ -7,7 +7,6 @@ API Guides app_trace startup - :SOC_BLUFI_SUPPORTED: blufi :SOC_BLE_SUPPORTED: ble/index bootloader build-system @@ -20,7 +19,6 @@ API Guides :SOC_RTC_MEM_SUPPORTED: deep-sleep-stub :SOC_USB_OTG_SUPPORTED and not esp32p4: dfu error-handling - :SOC_BLE_MESH_SUPPORTED: esp-ble-mesh/ble-mesh-index :SOC_WIFI_MESH_SUPPORT: esp-wifi-mesh :SOC_SPIRAM_SUPPORTED: external-ram fatal-errors diff --git a/docs/en/api-reference/bluetooth/esp-ble-mesh.rst b/docs/en/api-reference/bluetooth/esp-ble-mesh.rst index 74cc7cdb89..138c4d88fa 100644 --- a/docs/en/api-reference/bluetooth/esp-ble-mesh.rst +++ b/docs/en/api-reference/bluetooth/esp-ble-mesh.rst @@ -11,7 +11,7 @@ For an ESP32 to join and work on a ESP-BLE-MESH network, it must be provisioned Apart from ESP-BLE-MESH nodes, inside ESP-BLE-MESH network, there is also ESP32 that works as ESP-BLE-MESH provisioner, which could provision unprovisioned devices into ESP-BLE-MESH nodes and configure the nodes with various features. -For information how to start using ESP32 and ESP-BLE-MESH, please see the Section :ref:`getting-started-with-ble-mesh`. If you are interested in information on ESP-BLE-MESH architecture, including some details of software implementation, please see Section :doc:`../../api-guides/esp-ble-mesh/ble-mesh-architecture`. +For information how to start using ESP32 and ESP-BLE-MESH, please see the Section :ref:`getting-started-with-ble-mesh`. If you are interested in information on ESP-BLE-MESH architecture, including some details of software implementation, please see Section :doc:`../../api-guides/ble/esp-ble-mesh/ble-mesh-architecture`. Application Examples and Demos @@ -225,4 +225,3 @@ Composition and Metadata ^^^^^^^^^^^^^^^^^^^^^^^^ .. include-build-file:: inc/esp_ble_mesh_cm_data_api.inc - From 8379a45f4d1323185ea7a3063d064c7908bff571 Mon Sep 17 00:00:00 2001 From: Yuhan Wei Date: Tue, 23 Jul 2024 17:19:32 +0800 Subject: [PATCH 04/14] docs(ble): Moved blufi to ble folder --- docs/conf_common.py | 10 +++--- docs/en/api-guides/ble/index.rst | 16 +-------- docs/en/api-guides/ble/overview.rst | 2 +- .../esp-ble-mesh/ble-mesh-architecture.rst | 4 +-- .../{ble => }/esp-ble-mesh/ble-mesh-faq.rst | 0 .../esp-ble-mesh/ble-mesh-feature-list.rst | 0 .../{ble => }/esp-ble-mesh/ble-mesh-index.rst | 33 +++++++++--------- .../esp-ble-mesh/ble-mesh-terminology.rst | 0 docs/en/api-guides/index.rst | 1 + .../api-reference/bluetooth/esp-ble-mesh.rst | 2 +- docs/zh_CN/api-guides/{ => ble}/blufi.rst | 0 docs/zh_CN/api-guides/ble/index.rst | 34 ++++++++++++++++--- docs/zh_CN/api-guides/ble/overview.rst | 2 +- docs/zh_CN/api-guides/index.rst | 3 +- 14 files changed, 59 insertions(+), 48 deletions(-) rename docs/en/api-guides/{ble => }/esp-ble-mesh/ble-mesh-architecture.rst (99%) rename docs/en/api-guides/{ble => }/esp-ble-mesh/ble-mesh-faq.rst (100%) rename docs/en/api-guides/{ble => }/esp-ble-mesh/ble-mesh-feature-list.rst (100%) rename docs/en/api-guides/{ble => }/esp-ble-mesh/ble-mesh-index.rst (94%) rename docs/en/api-guides/{ble => }/esp-ble-mesh/ble-mesh-terminology.rst (100%) rename docs/zh_CN/api-guides/{ => ble}/blufi.rst (100%) diff --git a/docs/conf_common.py b/docs/conf_common.py index b8f7249a53..abfd1b9e61 100644 --- a/docs/conf_common.py +++ b/docs/conf_common.py @@ -34,11 +34,11 @@ BLE_DOCS = ['api-reference/bluetooth/bt_le.rst', 'migration-guides/release-5.x/5.0/bluetooth-low-energy.rst'] -BLE_MESH_DOCS = ['api-guides/ble/esp-ble-mesh/ble-mesh-index.rst', - 'api-guides/ble/esp-ble-mesh/ble-mesh-feature-list.rst', - 'api-guides/ble/esp-ble-mesh/ble-mesh-terminology.rst', - 'api-guides/ble/esp-ble-mesh/ble-mesh-architecture.rst', - 'api-guides/ble/esp-ble-mesh/ble-mesh-faq.rst', +BLE_MESH_DOCS = ['api-guides/esp-ble-mesh/ble-mesh-index.rst', + 'api-guides/esp-ble-mesh/ble-mesh-feature-list.rst', + 'api-guides/esp-ble-mesh/ble-mesh-terminology.rst', + 'api-guides/esp-ble-mesh/ble-mesh-architecture.rst', + 'api-guides/esp-ble-mesh/ble-mesh-faq.rst', 'api-reference/bluetooth/esp-ble-mesh.rst'] CLASSIC_BT_DOCS = ['api-reference/bluetooth/classic_bt.rst', diff --git a/docs/en/api-guides/ble/index.rst b/docs/en/api-guides/ble/index.rst index f39237ac3d..85f20303cd 100644 --- a/docs/en/api-guides/ble/index.rst +++ b/docs/en/api-guides/ble/index.rst @@ -21,7 +21,7 @@ Profile ESP-BLE-MESH ^^^^^^^^^^^^^ - - See the :ref:`ESP-BLE-MESH ` section. + - See the :doc:`ESP-BLE-MESH documentation <../esp-ble-mesh/ble-mesh-index>`. .. only:: SOC_BLUFI_SUPPORTED @@ -32,17 +32,3 @@ Profile :maxdepth: 1 blufi - - -.. only:: SOC_BLE_MESH_SUPPORTED - - .. _mesh: - - ************* - ESP-BLE-MESH - ************* - - .. toctree:: - :maxdepth: 2 - - esp-ble-mesh/ble-mesh-index diff --git a/docs/en/api-guides/ble/overview.rst b/docs/en/api-guides/ble/overview.rst index 94572fdb41..37e04f5f4b 100644 --- a/docs/en/api-guides/ble/overview.rst +++ b/docs/en/api-guides/ble/overview.rst @@ -175,7 +175,7 @@ Above the host stacks are the profile implementations by Espressif and some comm Built on top of Zephyr Bluetooth Mesh stack, the ESP-BLE-MESH implementation supports device provisioning and node control. It also supports such node features as Proxy, Relay, Low power and Friend. - - :doc:`ESP-BLE-MESH documentation `: feature list, get started, architecture, description of application examples, frequently asked questions, etc. + - :doc:`ESP-BLE-MESH documentation <../esp-ble-mesh/ble-mesh-index>`: feature list, get started, architecture, description of application examples, frequently asked questions, etc. - :example:`Application examples ` diff --git a/docs/en/api-guides/ble/esp-ble-mesh/ble-mesh-architecture.rst b/docs/en/api-guides/esp-ble-mesh/ble-mesh-architecture.rst similarity index 99% rename from docs/en/api-guides/ble/esp-ble-mesh/ble-mesh-architecture.rst rename to docs/en/api-guides/esp-ble-mesh/ble-mesh-architecture.rst index 7d196c604a..64f1e09636 100644 --- a/docs/en/api-guides/ble/esp-ble-mesh/ble-mesh-architecture.rst +++ b/docs/en/api-guides/esp-ble-mesh/ble-mesh-architecture.rst @@ -22,7 +22,7 @@ This document introduces ESP-BLE-MESH architecture overview, ESP-BLE-MESH archit Currently ESP-BLE-MESH has implemented most functions of Mesh Profile and all the Client Models defined in Mesh Model specification. Those missing functions/models are under development and will be provided soon. ESP-BLE-MESH architecture has been granted the official Bluetooth `certification `__. -.. figure:: ../../../../_static/esp-ble-mesh-architecture.png +.. figure:: ../../../_static/esp-ble-mesh-architecture.png :align: center Figure 1.1 ESP-BLE-MESH Architecture Diagram @@ -217,7 +217,7 @@ The design and implementation of ESP-BLE-MESH architecture is based on layers an - **Module-based Approach**: Every file implements an independent function that can be called by other programs. -.. figure:: ../../../../_static/esp-ble-mesh-interface.png +.. figure:: ../../../_static/esp-ble-mesh-interface.png :align: center Figure 2.1 ESP-BLE-MESH Architecture Implementation Diagram diff --git a/docs/en/api-guides/ble/esp-ble-mesh/ble-mesh-faq.rst b/docs/en/api-guides/esp-ble-mesh/ble-mesh-faq.rst similarity index 100% rename from docs/en/api-guides/ble/esp-ble-mesh/ble-mesh-faq.rst rename to docs/en/api-guides/esp-ble-mesh/ble-mesh-faq.rst diff --git a/docs/en/api-guides/ble/esp-ble-mesh/ble-mesh-feature-list.rst b/docs/en/api-guides/esp-ble-mesh/ble-mesh-feature-list.rst similarity index 100% rename from docs/en/api-guides/ble/esp-ble-mesh/ble-mesh-feature-list.rst rename to docs/en/api-guides/esp-ble-mesh/ble-mesh-feature-list.rst diff --git a/docs/en/api-guides/ble/esp-ble-mesh/ble-mesh-index.rst b/docs/en/api-guides/esp-ble-mesh/ble-mesh-index.rst similarity index 94% rename from docs/en/api-guides/ble/esp-ble-mesh/ble-mesh-index.rst rename to docs/en/api-guides/esp-ble-mesh/ble-mesh-index.rst index 591e00d1b0..7144342bcc 100644 --- a/docs/en/api-guides/ble/esp-ble-mesh/ble-mesh-index.rst +++ b/docs/en/api-guides/esp-ble-mesh/ble-mesh-index.rst @@ -1,5 +1,6 @@ -Introduction -============== +************ +ESP-BLE-MESH +************ :link_to_translation:`zh_CN:[中文]` @@ -11,7 +12,7 @@ Bluetooth mesh is not a wireless communications technology, but a networking tec Built on top of Zephyr Bluetooth Mesh stack, the ESP-BLE-MESH implementation supports device provisioning and node control. It also supports such node features as Proxy, Relay, Low power and Friend. -Please see the :doc:`ble-mesh-architecture` for information about the implementation of ESP-BLE-MESH architecture and :doc:`ESP-BLE-MESH API Reference <../../../api-reference/bluetooth/esp-ble-mesh>` for information about respective API. +Please see the :doc:`ble-mesh-architecture` for information about the implementation of ESP-BLE-MESH architecture and :doc:`ESP-BLE-MESH API Reference <../../api-reference/bluetooth/esp-ble-mesh>` for information about respective API. ESP-BLE-MESH is implemented and certified based on the latest Mesh Profile v1.0.1, users can refer `here `_ for the certification details of ESP-BLE-MESH. @@ -19,19 +20,19 @@ ESP-BLE-MESH is implemented and certified based on the latest Mesh Profile v1.0. .. note:: - If you are looking for Wi-Fi based implementation of mesh for {IDF_TARGET_NAME}, please check another product by Espressif called ESP-WIFI-MESH. For more information and documentation see :doc:`ESP-WIFI-MESH <../../../api-reference/network/esp-wifi-mesh>`. + If you are looking for Wi-Fi based implementation of mesh for {IDF_TARGET_NAME}, please check another product by Espressif called ESP-WIFI-MESH. For more information and documentation see :doc:`ESP-WIFI-MESH <../../api-reference/network/esp-wifi-mesh>`. .. _getting-started-with-ble-mesh: -Getting Started +Getting Started ================= This section is intended to help you get started with ESP-BLE-MESH for the hardware based on the {IDF_TARGET_NAME} chip by Espressif. We are going to demonstrate process of setting and operation of a small ESP-BLE-MESH network of three nodes. This process will cover device provisioning and node configuration, and then sending on/off commands to Generic OnOff Server Models on specific nodes. -If you are new to ESP-IDF, please first set up development environment, compile , flash and run example application following top level ESP-IDF :doc:`../../../get-started/index` documentation. +If you are new to ESP-IDF, please first set up development environment, compile , flash and run example application following top level ESP-IDF :doc:`../../get-started/index` documentation. What You Need @@ -82,7 +83,7 @@ After the :example:`bluetooth/esp_ble_mesh/onoff_models/onoff_server` example is Once boards are powered on, the RGB LED on each board should turn **GREEN**. -.. figure:: ../../../../_static/ble-mesh-device-power-on.png +.. figure:: ../../../_static/ble-mesh-device-power-on.png :align: center ESP-BLE-MESH Devices Power On @@ -97,7 +98,7 @@ In this section, we will use the **nRF Mesh Android** App to demonstrate how to The Scanner is App's functionality to search for unprovisioned devices in range. Open the App, press **Scanner** at the bottom and the search will start. After a short while we should see three unprovisioned devices displayed. -.. figure:: ../../../../_static/ble-mesh-scanner.png +.. figure:: ../../../_static/ble-mesh-scanner.png :align: center :height: 370 @@ -113,7 +114,7 @@ Users can select any unprovisioned device, then the App will try to set up a con After the **IDENTIFY** interface button is pressed, users can see the **PROVISION** interface button. -.. figure:: ../../../../_static/ble-mesh-identify-provision.png +.. figure:: ../../../_static/ble-mesh-identify-provision.png :align: center :height: 370 @@ -131,7 +132,7 @@ Then, the App will try to provision the unprovisioned device. When the device is When all the procedures are finished, the node is configured properly. And after pressing **OK**, users can see that unicast address is assigned, and Composition Data of the node is decoded successfully. -.. figure:: ../../../../_static/ble-mesh-config-complete.png +.. figure:: ../../../_static/ble-mesh-config-complete.png :align: center :height: 370 @@ -139,7 +140,7 @@ When all the procedures are finished, the node is configured properly. And after Sometimes in procedure 2, the App may fail to reconnect with the node. In this case, after pressing **OK**, users can see that only unicast address of the node has been assigned, but no Composition Data has been got. Then users need to press **CONNECT** on the top right, and the previously provisioned node will be displayed on the screen, and users need to choose it and try to connect with the node. -.. figure:: ../../../../_static/ble-mesh-initial-config-fail.png +.. figure:: ../../../_static/ble-mesh-initial-config-fail.png :align: center :height: 370 @@ -147,7 +148,7 @@ Sometimes in procedure 2, the App may fail to reconnect with the node. In this c After connecting successfully, the App will show the interface buttons which can be used to get Composition Data and add AppKey. -.. figure:: ../../../../_static/ble-mesh-reconnect-initial-config.png +.. figure:: ../../../_static/ble-mesh-reconnect-initial-config.png :align: center :height: 370 @@ -160,7 +161,7 @@ Here an example of three devices listed. * The left picture shows that the third device is provisioned successfully, but the App failed to connect with it. When it tries to reconnect with the third node, three nodes are displayed on the App. * The right picture shows that after connecting with any node successfully, the App displays the information of the three nodes. Users can see that the App has got the Composition Data of the first and the second nodes, but for the third one, only the unicast address has been assigned to it while the Composition Data is unknown. -.. figure:: ../../../../_static/ble-mesh-reconnect-three.png +.. figure:: ../../../_static/ble-mesh-reconnect-three.png :align: center :height: 370 @@ -173,7 +174,7 @@ When provisioning and initial configuration are finished, users can start to con Example below shows how to bind AppKey with Generic OnOff Server Model within the Primary Element. -.. figure:: ../../../../_static/ble-mesh-model-bind-appkey.png +.. figure:: ../../../_static/ble-mesh-model-bind-appkey.png :align: center :height: 370 @@ -190,7 +191,7 @@ After all the Generic OnOff Server Models within the three elements are bound wi In the :example:`bluetooth/esp_ble_mesh/onoff_models/onoff_server` example, the first Generic OnOff Server Model is used to control the **RED** color, the second one is used to control the **GREEN** color and the third one is used to control the **BLUE** color. -.. figure:: ../../../../_static/ble-mesh-generic-onoff.png +.. figure:: ../../../_static/ble-mesh-generic-onoff.png :align: center :height: 370 @@ -198,7 +199,7 @@ In the :example:`bluetooth/esp_ble_mesh/onoff_models/onoff_server` example, the The following screenshot shows different board with different color on. -.. figure:: ../../../../_static/ble-mesh-three-nodes-on.png +.. figure:: ../../../_static/ble-mesh-three-nodes-on.png :align: center Three ESP-BLE-MESH Nodes On diff --git a/docs/en/api-guides/ble/esp-ble-mesh/ble-mesh-terminology.rst b/docs/en/api-guides/esp-ble-mesh/ble-mesh-terminology.rst similarity index 100% rename from docs/en/api-guides/ble/esp-ble-mesh/ble-mesh-terminology.rst rename to docs/en/api-guides/esp-ble-mesh/ble-mesh-terminology.rst diff --git a/docs/en/api-guides/index.rst b/docs/en/api-guides/index.rst index 011537284c..4e7e40aa8c 100644 --- a/docs/en/api-guides/index.rst +++ b/docs/en/api-guides/index.rst @@ -8,6 +8,7 @@ API Guides app_trace startup :SOC_BLE_SUPPORTED: ble/index + :SOC_BLE_MESH_SUPPORTED: esp-ble-mesh/ble-mesh-index bootloader build-system :SOC_SUPPORT_COEXISTENCE: coexist diff --git a/docs/en/api-reference/bluetooth/esp-ble-mesh.rst b/docs/en/api-reference/bluetooth/esp-ble-mesh.rst index 138c4d88fa..bf03a8fe79 100644 --- a/docs/en/api-reference/bluetooth/esp-ble-mesh.rst +++ b/docs/en/api-reference/bluetooth/esp-ble-mesh.rst @@ -11,7 +11,7 @@ For an ESP32 to join and work on a ESP-BLE-MESH network, it must be provisioned Apart from ESP-BLE-MESH nodes, inside ESP-BLE-MESH network, there is also ESP32 that works as ESP-BLE-MESH provisioner, which could provision unprovisioned devices into ESP-BLE-MESH nodes and configure the nodes with various features. -For information how to start using ESP32 and ESP-BLE-MESH, please see the Section :ref:`getting-started-with-ble-mesh`. If you are interested in information on ESP-BLE-MESH architecture, including some details of software implementation, please see Section :doc:`../../api-guides/ble/esp-ble-mesh/ble-mesh-architecture`. +For information how to start using ESP32 and ESP-BLE-MESH, please see the Section :ref:`getting-started-with-ble-mesh`. If you are interested in information on ESP-BLE-MESH architecture, including some details of software implementation, please see Section :doc:`../../api-guides/esp-ble-mesh/ble-mesh-architecture`. Application Examples and Demos diff --git a/docs/zh_CN/api-guides/blufi.rst b/docs/zh_CN/api-guides/ble/blufi.rst similarity index 100% rename from docs/zh_CN/api-guides/blufi.rst rename to docs/zh_CN/api-guides/ble/blufi.rst diff --git a/docs/zh_CN/api-guides/ble/index.rst b/docs/zh_CN/api-guides/ble/index.rst index 0d581546b1..08301dac17 100644 --- a/docs/zh_CN/api-guides/ble/index.rst +++ b/docs/zh_CN/api-guides/ble/index.rst @@ -1,10 +1,34 @@ -蓝牙® -========= -:link_to_translation:`en:[English]` +################ +低功耗蓝牙® +################ -概述 --------- +:link_to_translation:`zh_CN:[中文]` + +***** +概览 +***** .. toctree:: :maxdepth: 1 overview + +********** +蓝牙规范 +********** + +.. only:: SOC_BLE_MESH_SUPPORTED + + ESP-BLE-MESH + ^^^^^^^^^^^^^ + + - See the :doc:`ESP-BLE-MESH documentation <../esp-ble-mesh/ble-mesh-index>`. + +.. only:: SOC_BLUFI_SUPPORTED + + BluFi + ^^^^^ + + .. toctree:: + :maxdepth: 1 + + blufi diff --git a/docs/zh_CN/api-guides/ble/overview.rst b/docs/zh_CN/api-guides/ble/overview.rst index a2d7a980b8..aacc40b68a 100644 --- a/docs/zh_CN/api-guides/ble/overview.rst +++ b/docs/zh_CN/api-guides/ble/overview.rst @@ -186,7 +186,7 @@ ESP-NimBLE 仅支持低功耗蓝牙,不支持经典蓝牙。 {IDF_TARGET_NAME} 的 BluFi 是通过蓝牙信道进行的 Wi-Fi 网络配置功能。BluFi 提供了将 Wi-Fi 配置和凭据传递给 {IDF_TARGET_NAME} 的安全协议,从而使 {IDF_TARGET_NAME} 连接到 AP 或搭建软 AP。 - - :doc:`BluFi 文档 <../blufi>` + - :doc:`BluFi 文档 ` - :example:`应用示例 ` diff --git a/docs/zh_CN/api-guides/index.rst b/docs/zh_CN/api-guides/index.rst index 953a4f42ff..3f49d592b6 100644 --- a/docs/zh_CN/api-guides/index.rst +++ b/docs/zh_CN/api-guides/index.rst @@ -7,8 +7,8 @@ API 指南 app_trace startup - :SOC_BLUFI_SUPPORTED: blufi :SOC_BLE_SUPPORTED: ble/index + :SOC_BLE_MESH_SUPPORTED: esp-ble-mesh/ble-mesh-index bootloader build-system :SOC_SUPPORT_COEXISTENCE: coexist @@ -20,7 +20,6 @@ API 指南 :SOC_RTC_MEM_SUPPORTED: deep-sleep-stub :SOC_USB_OTG_SUPPORTED and not esp32p4: dfu error-handling - :SOC_BLE_MESH_SUPPORTED: esp-ble-mesh/ble-mesh-index :SOC_WIFI_MESH_SUPPORT: esp-wifi-mesh :SOC_SPIRAM_SUPPORTED: external-ram fatal-errors From 2030b83b1a547fde20cfcd6214e981f72fc5cd84 Mon Sep 17 00:00:00 2001 From: Yuhan Wei Date: Wed, 24 Jul 2024 10:19:27 +0800 Subject: [PATCH 05/14] docs(ble): Reduced the toctree depth for Related Documents --- docs/en/api-guides/esp-ble-mesh/ble-mesh-index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/api-guides/esp-ble-mesh/ble-mesh-index.rst b/docs/en/api-guides/esp-ble-mesh/ble-mesh-index.rst index 7144342bcc..402dfb008c 100644 --- a/docs/en/api-guides/esp-ble-mesh/ble-mesh-index.rst +++ b/docs/en/api-guides/esp-ble-mesh/ble-mesh-index.rst @@ -253,7 +253,7 @@ Related Documents ================= .. toctree:: - :maxdepth: 2 + :maxdepth: 1 ble-mesh-feature-list ble-mesh-architecture From 95f9bf8e64a92bfce839f6d04763330473d389bd Mon Sep 17 00:00:00 2001 From: Yuhan Wei Date: Wed, 24 Jul 2024 11:06:09 +0800 Subject: [PATCH 06/14] docs(ble): Make the section name consistent for the zh_CN and eng versions --- docs/zh_CN/api-guides/ble/overview.rst | 4 ++-- .../api-guides/esp-ble-mesh/ble-mesh-index.rst | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/zh_CN/api-guides/ble/overview.rst b/docs/zh_CN/api-guides/ble/overview.rst index aacc40b68a..80392861eb 100644 --- a/docs/zh_CN/api-guides/ble/overview.rst +++ b/docs/zh_CN/api-guides/ble/overview.rst @@ -114,8 +114,8 @@ ESP 蓝牙控制器 - :example:`应用示例 ` -主机 ----- +ESP 蓝牙主机 +------------- 有 ESP-Bluedroid 和 ESP-NimBLE 两个主机,其主要区别如下: diff --git a/docs/zh_CN/api-guides/esp-ble-mesh/ble-mesh-index.rst b/docs/zh_CN/api-guides/esp-ble-mesh/ble-mesh-index.rst index 274c0cd879..ce5218b00a 100644 --- a/docs/zh_CN/api-guides/esp-ble-mesh/ble-mesh-index.rst +++ b/docs/zh_CN/api-guides/esp-ble-mesh/ble-mesh-index.rst @@ -25,8 +25,8 @@ ESP-BLE-MESH 的实现和认证基于最新的 `Mesh Profile v1.0.1 ` - 展示了将 ESP-BLE-MESH 作为拥有 Configuration Server model 和 Generic OnOff Server model 的节点设备的用法。然后,ESP-BLE-MESH Provisioner 可以配网设备,控制表示开/关状态的 RGB 灯,示例请见 :example:`example code `。 @@ -230,15 +230,15 @@ ESP-BLE-MESH 示例 .. _esp-ble-mesh-demo-videos: -ESP-BLE-MESH 演示视频 -====================== +演示视频 +======== * `Espressif Fast Provisioning using ESP-BLE-MESH App `_ * `Espressif ESP-BLE-MESH and Wi-Fi Coexistence `_ -ESP-BLE-MESH 常见问题手册 -========================= +常见问题手册 +=========== * :ref:`ble-mesh-faq-provisioner-development` * :ref:`ble-mesh-faq-node-development` From dc6f1503c2c3287ab4a923842d0a70a3c25e97d3 Mon Sep 17 00:00:00 2001 From: Yuhan Wei Date: Wed, 24 Jul 2024 16:22:53 +0800 Subject: [PATCH 07/14] docs(ble): Modified the table of content in ble/index.rst --- docs/en/api-guides/ble/index.rst | 19 ++++------------- docs/zh_CN/api-guides/ble/blufi.rst | 12 +++++------ docs/zh_CN/api-guides/ble/index.rst | 21 +++++-------------- .../esp-ble-mesh/ble-mesh-index.rst | 2 +- 4 files changed, 16 insertions(+), 38 deletions(-) diff --git a/docs/en/api-guides/ble/index.rst b/docs/en/api-guides/ble/index.rst index 85f20303cd..88c0599b9a 100644 --- a/docs/en/api-guides/ble/index.rst +++ b/docs/en/api-guides/ble/index.rst @@ -16,19 +16,8 @@ Overview Profile ********** -.. only:: SOC_BLE_MESH_SUPPORTED +.. toctree:: + :maxdepth: 2 - ESP-BLE-MESH - ^^^^^^^^^^^^^ - - - See the :doc:`ESP-BLE-MESH documentation <../esp-ble-mesh/ble-mesh-index>`. - -.. only:: SOC_BLUFI_SUPPORTED - - BluFi - ^^^^^ - - .. toctree:: - :maxdepth: 1 - - blufi + :SOC_BLE_MESH_SUPPORTED: ../esp-ble-mesh/ble-mesh-index + :SOC_BLUFI_SUPPORTED: blufi diff --git a/docs/zh_CN/api-guides/ble/blufi.rst b/docs/zh_CN/api-guides/ble/blufi.rst index 4478385e27..33737b6298 100644 --- a/docs/zh_CN/api-guides/ble/blufi.rst +++ b/docs/zh_CN/api-guides/ble/blufi.rst @@ -1,10 +1,10 @@ BluFi -^^^^^ +^^^^^^ :link_to_translation:`en:[English]` 概览 ------ +-------- BluFi 是一项基于蓝牙通道的 Wi-Fi 网络配置功能,适用于 {IDF_TARGET_NAME}。它通过安全协议将 Wi-Fi 的 SSID、密码等配置信息传输到 {IDF_TARGET_NAME}。基于这些信息,{IDF_TARGET_NAME} 可进而连接到 AP 或建立 SoftAP。 @@ -13,7 +13,7 @@ BluFi 流程的关键部分包括数据的分片、加密以及校验和验证 用户可按需自定义用于对称加密、非对称加密以及校验的算法。此处,我们采用 DH 算法进行密钥协商,128-AES 算法用于数据加密,CRC16 算法用于校验和验证。 BluFi 流程 ----------- +----------- BluFi 配网流程包含配置 SoftAP 和配置 Station 两部分。 @@ -46,7 +46,7 @@ BluFi 配网流程包含配置 SoftAP 和配置 Station 两部分。 2. 进行对称加密和解密时,加密和解密前后的数据长度必须一致。支持原地加密和解密。 BluFi 流程图 ---------------- +------------ .. seqdiag:: :caption: BluFi Flow Chart @@ -75,7 +75,7 @@ BluFi 流程图 .. _frame_formats: BluFi 中定义的帧格式 ----------------------------- +--------------------- 手机应用程序与 {IDF_TARGET_NAME} 之间的 BluFi 通信格式定义如下: @@ -431,7 +431,7 @@ ACK 帧格式 (8 bit): 此字段占两个字节,用来校验序列、数据长度以及明文。 {IDF_TARGET_NAME} 端的安全实现 ----------------------------------- +----------------------------- 1. 数据安全 diff --git a/docs/zh_CN/api-guides/ble/index.rst b/docs/zh_CN/api-guides/ble/index.rst index 08301dac17..fc141f0396 100644 --- a/docs/zh_CN/api-guides/ble/index.rst +++ b/docs/zh_CN/api-guides/ble/index.rst @@ -2,7 +2,7 @@ 低功耗蓝牙® ################ -:link_to_translation:`zh_CN:[中文]` +:link_to_translation:`en:[English]` ***** 概览 @@ -16,19 +16,8 @@ 蓝牙规范 ********** -.. only:: SOC_BLE_MESH_SUPPORTED +.. toctree:: + :maxdepth: 2 - ESP-BLE-MESH - ^^^^^^^^^^^^^ - - - See the :doc:`ESP-BLE-MESH documentation <../esp-ble-mesh/ble-mesh-index>`. - -.. only:: SOC_BLUFI_SUPPORTED - - BluFi - ^^^^^ - - .. toctree:: - :maxdepth: 1 - - blufi + :SOC_BLE_MESH_SUPPORTED: ../esp-ble-mesh/ble-mesh-index + :SOC_BLUFI_SUPPORTED: blufi diff --git a/docs/zh_CN/api-guides/esp-ble-mesh/ble-mesh-index.rst b/docs/zh_CN/api-guides/esp-ble-mesh/ble-mesh-index.rst index ce5218b00a..b0b7671782 100644 --- a/docs/zh_CN/api-guides/esp-ble-mesh/ble-mesh-index.rst +++ b/docs/zh_CN/api-guides/esp-ble-mesh/ble-mesh-index.rst @@ -238,7 +238,7 @@ Step 5. 运行网络 常见问题手册 -=========== +============= * :ref:`ble-mesh-faq-provisioner-development` * :ref:`ble-mesh-faq-node-development` From 28160ef5d68782c827884ceeac4fe46c3a0b9de5 Mon Sep 17 00:00:00 2001 From: Yuhan Wei Date: Wed, 24 Jul 2024 16:41:52 +0800 Subject: [PATCH 08/14] docs(ble): Adjusted the title level in en/api-guides/ble/blufi.rst --- docs/en/api-guides/ble/blufi.rst | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/docs/en/api-guides/ble/blufi.rst b/docs/en/api-guides/ble/blufi.rst index 460799826f..ce60c53f46 100644 --- a/docs/en/api-guides/ble/blufi.rst +++ b/docs/en/api-guides/ble/blufi.rst @@ -1,7 +1,10 @@ -Introduction -============== +BluFi +^^^^^^ -:link_to_translation:`zh_CN:[中文]` +:link_to_translation:`en:[English]` + +Overview +---------- The BluFi for {IDF_TARGET_NAME} is a Wi-Fi network configuration function via Bluetooth channel. It provides a secure protocol to pass Wi-Fi configuration and credentials to {IDF_TARGET_NAME}. Using this information, {IDF_TARGET_NAME} can then connect to an AP or establish a SoftAP. @@ -10,7 +13,7 @@ Fragmenting, data encryption, and checksum verification in the BluFi layer are t You can customize symmetric encryption, asymmetric encryption, and checksum support customization. Here we use the DH algorithm for key negotiation, 128-AES algorithm for data encryption, and CRC16 algorithm for checksum verification. The BluFi Flow -=============== +---------------- The BluFi networking flow includes the configuration of the SoftAP and Station. @@ -43,7 +46,7 @@ The following uses Station as an example to illustrate the core parts of the pro 2. The data lengths before and after symmetric encryption/decryption must stay the same. It also supports in-place encryption and decryption. The Flow Chart of BluFi -======================== +------------------------- .. seqdiag:: :caption: BluFi Flow Chart @@ -72,7 +75,7 @@ The Flow Chart of BluFi .. _frame_formats: The Frame Formats Defined in BluFi -=================================== +------------------------------------ The frame formats for the communication between the mobile phone App and {IDF_TARGET_NAME} are defined as follows: @@ -428,7 +431,7 @@ The format of ACK Frame: The **CheckSum** field takes two bytes, which is used to check "sequence + data length + clear text data". The Security Implementation of {IDF_TARGET_NAME} -================================================= +-------------------------------------------------- 1. Securing Data @@ -479,7 +482,7 @@ The data to be encrypted and decrypted must be in the same length. The IV8 is an This function is used to compute CheckSum and return a value of CheckSum. BluFi uses the returned value to compare the CheckSum of the frame. GATT Related Instructions -========================== +---------------------------- UUID >>>>> From 4b32ffb8a9e6237f1a675c7469a370e00b3694d8 Mon Sep 17 00:00:00 2001 From: Yuhan Wei Date: Wed, 24 Jul 2024 22:28:24 +0800 Subject: [PATCH 09/14] docs(ble): created an independent entry for classic bt --- docs/conf_common.py | 4 +- docs/en/api-guides/ble/overview.rst | 9 +- docs/en/api-guides/classic-bt/index.rst | 13 +++ docs/en/api-guides/classic-bt/overview.rst | 93 +++++++++++++++++++ docs/en/api-guides/index.rst | 1 + docs/zh_CN/api-guides/ble/overview.rst | 9 +- docs/zh_CN/api-guides/classic-bt/index.rst | 13 +++ docs/zh_CN/api-guides/classic-bt/overview.rst | 93 +++++++++++++++++++ docs/zh_CN/api-guides/index.rst | 1 + 9 files changed, 233 insertions(+), 3 deletions(-) create mode 100644 docs/en/api-guides/classic-bt/index.rst create mode 100644 docs/en/api-guides/classic-bt/overview.rst create mode 100644 docs/zh_CN/api-guides/classic-bt/index.rst create mode 100644 docs/zh_CN/api-guides/classic-bt/overview.rst diff --git a/docs/conf_common.py b/docs/conf_common.py index abfd1b9e61..792e7c3129 100644 --- a/docs/conf_common.py +++ b/docs/conf_common.py @@ -41,7 +41,9 @@ BLE_MESH_DOCS = ['api-guides/esp-ble-mesh/ble-mesh-index.rst', 'api-guides/esp-ble-mesh/ble-mesh-faq.rst', 'api-reference/bluetooth/esp-ble-mesh.rst'] -CLASSIC_BT_DOCS = ['api-reference/bluetooth/classic_bt.rst', +CLASSIC_BT_DOCS = ['api-guides/classic-bt/index.rst', + 'api-guides/classic-bt/overview.rst', + 'api-reference/bluetooth/classic_bt.rst', 'api-reference/bluetooth/esp_a2dp.rst', 'api-reference/bluetooth/esp_avrc.rst', 'api-reference/bluetooth/esp_hidd.rst', diff --git a/docs/en/api-guides/ble/overview.rst b/docs/en/api-guides/ble/overview.rst index 37e04f5f4b..2aa07f2569 100644 --- a/docs/en/api-guides/ble/overview.rst +++ b/docs/en/api-guides/ble/overview.rst @@ -143,8 +143,15 @@ ESP-Bluedroid is a modified version of the native Android Bluetooth stack, Blued - :doc:`../../api-reference/bluetooth/bt_common` - :doc:`Bluetooth LE <../../api-reference/bluetooth/bt_le>` -- :example:`Application examples ` +.. only:: esp32 + + - :example:`Bluetooth LE 4.2 Application Examples ` + +.. only:: not esp32 + + - :example:`Bluetooth LE 4.2 Application Examples ` + - :example:`Bluetooth LE 5.0 Application Examples ` ESP-NimBLE ^^^^^^^^^^ diff --git a/docs/en/api-guides/classic-bt/index.rst b/docs/en/api-guides/classic-bt/index.rst new file mode 100644 index 0000000000..873af279e4 --- /dev/null +++ b/docs/en/api-guides/classic-bt/index.rst @@ -0,0 +1,13 @@ +####################### +Classic Bluetooth® +####################### + +:link_to_translation:`zh_CN:[中文]` + +********* +Overview +********* +.. toctree:: + :maxdepth: 1 + + overview diff --git a/docs/en/api-guides/classic-bt/overview.rst b/docs/en/api-guides/classic-bt/overview.rst new file mode 100644 index 0000000000..1f82914b2a --- /dev/null +++ b/docs/en/api-guides/classic-bt/overview.rst @@ -0,0 +1,93 @@ +Introduction +============= + +:link_to_translation:`zh_CN:[中文]` + +This document provides an architecture overview of the Classic Bluetooth stack in ESP-IDF and some quick links to related documents and application examples. + +.. only:: esp32 + + {IDF_TARGET_NAME} supports Dual-Mode Bluetooth 4.2. + +The Classic Bluetooth stack in ESP-IDF is a layered architecture that enables Bluetooth functionality on {IDF_TARGET_NAME} chip series. The table below shows its architecture. + +.. only:: esp32 + + .. figure:: ../../../_static/bluetooth-architecture-no-ble-mesh.png + :align: center + :scale: 90% + :alt: {IDF_TARGET_NAME} Classic Bluetooth Stack Architecture + + {IDF_TARGET_NAME} Classic Bluetooth Stack Architecture + +The table below shows whether the Classic Bluetooth modules are supported in a specific chip series. + +.. list-table:: + :width: 100% + :widths: auto + :header-rows: 1 + + * - Chip Series + - Controller + - ESP-Bluedroid + * - ESP32 + - Y + - Y + * - ESP32-S2 + - \– + - \– + * - ESP32-S3 + - \– + - \– + * - ESP32-C2 + - \– + - \– + * - ESP32-C3 + - \- + - \- + * - ESP32-C6 + - \- + - \- + * - ESP32-H2 + - \- + - \- + +The following sections briefly describe each layer and provide quick links to the related documents and application examples. + + +ESP Bluetooth Controller +------------------------ + +At the bottom layer is ESP Bluetooth Controller, which encompasses various modules such as PHY, Baseband, Link Controller, Link Manager, Device Manager, and HCI. It handles hardware interface management and link management. It provides functions in the form of libraries and is accessible through APIs. This layer directly interacts with the hardware and low-level Bluetooth protocols. + +- :doc:`API reference <../../api-reference/bluetooth/controller_vhci>` +- :example:`Application examples ` + + +Hosts +----- + +There are one host, ESP-Bluedroid, supporting Classic Bluetooth in IDF. + + +ESP-Bluedroid +^^^^^^^^^^^^^ + +ESP-Bluedroid is a modified version of the native Android Bluetooth stack, Bluedroid. It consists of two layers: the Bluetooth Upper Layer (BTU) and the Bluetooth Transport Controller layer (BTC). The BTU layer is responsible for processing bottom layer Bluetooth protocols such as L2CAP, GATT/ATT, SMP, GAP, and other profiles. The BTU layer provides an interface prefixed with "bta". The BTC layer is mainly responsible for providing a supported interface, prefixed with "esp", to the application layer, processing GATT-based profiles and handling miscellaneous tasks. All the APIs are located in the ESP_API layer. Developers should use the Bluetooth APIs prefixed with "esp". + +- API references + + - :doc:`../../api-reference/bluetooth/bt_common` + - :doc:`../../api-reference/bluetooth/classic_bt` +- :example:`Application examples ` + +Profiles +-------- + +Above the host stacks are the profile implementations by Espressif and some common profiles. Depending on your configuration, these profiles can run on ESP-Bluedroid. + + +Applications +------------ + +At the uppermost layer are applications. You can build your own applications on top of the ESP-Bluedroid stacks, leveraging the provided APIs and profiles to create Classic Bluetooth applications tailored to specific use cases. diff --git a/docs/en/api-guides/index.rst b/docs/en/api-guides/index.rst index 4e7e40aa8c..7c004d947d 100644 --- a/docs/en/api-guides/index.rst +++ b/docs/en/api-guides/index.rst @@ -7,6 +7,7 @@ API Guides app_trace startup + :SOC_BT_CLASSIC_SUPPORTED: classic-bt/index :SOC_BLE_SUPPORTED: ble/index :SOC_BLE_MESH_SUPPORTED: esp-ble-mesh/ble-mesh-index bootloader diff --git a/docs/zh_CN/api-guides/ble/overview.rst b/docs/zh_CN/api-guides/ble/overview.rst index 80392861eb..41463cc37f 100644 --- a/docs/zh_CN/api-guides/ble/overview.rst +++ b/docs/zh_CN/api-guides/ble/overview.rst @@ -143,8 +143,15 @@ ESP-Bluedroid 是原生 Android 蓝牙协议栈 Bluedroid 的修改版,由两 - :doc:`../../api-reference/bluetooth/bt_common` - :doc:`低功耗蓝牙 <../../api-reference/bluetooth/bt_le>` -- :example:`应用程序示例 ` +.. only:: esp32 + + - :example:`低功耗蓝牙 4.2 应用程序示例 ` + +.. only:: not esp32 + + - :example:`低功耗蓝牙 4.2 应用程序示例 ` + - :example:`低功耗蓝牙 5.0 应用程序示例 ` ESP-NimBLE ^^^^^^^^^^ diff --git a/docs/zh_CN/api-guides/classic-bt/index.rst b/docs/zh_CN/api-guides/classic-bt/index.rst new file mode 100644 index 0000000000..a1806a02ec --- /dev/null +++ b/docs/zh_CN/api-guides/classic-bt/index.rst @@ -0,0 +1,13 @@ +########### +经典蓝牙® +########### + +:link_to_translation:`en:[English]` + +***** +概览 +***** +.. toctree:: + :maxdepth: 1 + + overview diff --git a/docs/zh_CN/api-guides/classic-bt/overview.rst b/docs/zh_CN/api-guides/classic-bt/overview.rst new file mode 100644 index 0000000000..4f0b22a80c --- /dev/null +++ b/docs/zh_CN/api-guides/classic-bt/overview.rst @@ -0,0 +1,93 @@ +介绍 +------ + +:link_to_translation:`en:[English]` + +此文档概述了 ESP-IDF 中经典蓝牙协议栈的架构,并提供了一些相关文档和应用示例的快速链接。 + +.. only:: esp32 + + {IDF_TARGET_NAME} 支持双模蓝牙 4.2,并且已经获得双模蓝牙 4.2 认证。 + +ESP-IDF 中的经典蓝牙协议栈是一个分层架构,可在 {IDF_TARGET_NAME} 系列芯片上实现经典蓝牙功能,详见下。 + +.. only:: esp32 + + .. figure:: ../../../_static/bluetooth-architecture-no-ble-mesh.png + :align: center + :scale: 90% + :alt: {IDF_TARGET_NAME} 经典蓝牙协议栈架构 + + {IDF_TARGET_NAME} 经典蓝牙协议栈架构 + +参考下表可知特定芯片是否支持经典蓝牙模块。 + +.. list-table:: + :width: 100% + :widths: auto + :header-rows: 1 + + * - 芯片系列 + - 控制器 + - ESP-Bluedroid + * - ESP32 + - Y + - Y + * - ESP32-S2 + - \– + - \– + * - ESP32-S3 + - \– + - \– + * - ESP32-C2 + - \- + - \- + * - ESP32-C3 + - \- + - \- + * - ESP32-C6 + - \- + - \- + * - ESP32-H2 + - \- + - \- + +以下各节简要介绍了每个层,并提供了相关文档和应用示例的快速链接。 + + +ESP 蓝牙控制器 +-------------- + +底层为 ESP 蓝牙控制器,包含 PHY、基带、链路控制器、链路管理器、设备管理器和 HCI 等各种模块。该层管理硬件接口和链路,以库的形式提供功能,并通过 API 访问,且直接与硬件和低级别蓝牙协议交互。 + +- :doc:`API 参考 <../../api-reference/bluetooth/controller_vhci>` +- :example:`应用示例 ` + + +ESP 蓝牙主机 +------------- + +IDF 中的ESP-Bluedroid 主机支持经典蓝牙。 + + +ESP-Bluedroid +^^^^^^^^^^^^^ + +ESP-Bluedroid 是原生 Android 蓝牙协议栈 Bluedroid 的修改版,由两层组成:蓝牙上层 (BTU) 和蓝牙传输控制器层 (BTC)。BTU 层负责处理 L2CAP、GATT/ATT、SMP、GAP 等底层蓝牙协议以及其他配置文件,提供以 "bta" 为前缀的接口。BTC 层主要负责向应用层提供以 "esp" 为前缀的支持接口,并处理基于 GATT 的配置文件以及其他任务。所有的 API 都位于 ESP_API 层,开发者应使用以 "esp" 为前缀的蓝牙 API。 + +- API 参考 + + - :doc:`../../api-reference/bluetooth/bt_common` + - :doc:`经典蓝牙 <../../api-reference/bluetooth/classic_bt>` +- :example:`应用程序示例 ` + +蓝牙规范 +-------- + +主机协议层之上是 Espressif 的蓝牙规范和一些常见的蓝牙规范。根据具体配置,这些规范可以在 ESP-Bluedroid 上运行。 + + +应用 +---- + +最上层是应用层。利用上述 API 和蓝牙规范,可以在 ESP-Bluedroid 协议栈之上创建特定用例的经典蓝牙应用程序。 diff --git a/docs/zh_CN/api-guides/index.rst b/docs/zh_CN/api-guides/index.rst index 3f49d592b6..9ee0dadb8b 100644 --- a/docs/zh_CN/api-guides/index.rst +++ b/docs/zh_CN/api-guides/index.rst @@ -7,6 +7,7 @@ API 指南 app_trace startup + :SOC_BT_CLASSIC_SUPPORTED: classic-bt/index :SOC_BLE_SUPPORTED: ble/index :SOC_BLE_MESH_SUPPORTED: esp-ble-mesh/ble-mesh-index bootloader From b71b3366d98326107a03dd70f0ccee8df4f75f77 Mon Sep 17 00:00:00 2001 From: Yuhan Wei Date: Thu, 25 Jul 2024 09:55:29 +0800 Subject: [PATCH 10/14] docs(ble): Adjusted the title level in the chinese version of overview.rst --- docs/en/api-guides/classic-bt/index.rst | 2 +- docs/zh_CN/api-guides/ble/overview.rst | 2 +- docs/zh_CN/api-guides/classic-bt/index.rst | 2 +- docs/zh_CN/api-guides/classic-bt/overview.rst | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/en/api-guides/classic-bt/index.rst b/docs/en/api-guides/classic-bt/index.rst index 873af279e4..7c8195bca6 100644 --- a/docs/en/api-guides/classic-bt/index.rst +++ b/docs/en/api-guides/classic-bt/index.rst @@ -8,6 +8,6 @@ Classic Bluetooth® Overview ********* .. toctree:: - :maxdepth: 1 + :maxdepth: 2 overview diff --git a/docs/zh_CN/api-guides/ble/overview.rst b/docs/zh_CN/api-guides/ble/overview.rst index 41463cc37f..fb124c4f45 100644 --- a/docs/zh_CN/api-guides/ble/overview.rst +++ b/docs/zh_CN/api-guides/ble/overview.rst @@ -1,5 +1,5 @@ 介绍 ------- +======= :link_to_translation:`en:[English]` diff --git a/docs/zh_CN/api-guides/classic-bt/index.rst b/docs/zh_CN/api-guides/classic-bt/index.rst index a1806a02ec..57aba1ca5d 100644 --- a/docs/zh_CN/api-guides/classic-bt/index.rst +++ b/docs/zh_CN/api-guides/classic-bt/index.rst @@ -8,6 +8,6 @@ 概览 ***** .. toctree:: - :maxdepth: 1 + :maxdepth: 2 overview diff --git a/docs/zh_CN/api-guides/classic-bt/overview.rst b/docs/zh_CN/api-guides/classic-bt/overview.rst index 4f0b22a80c..c090d81056 100644 --- a/docs/zh_CN/api-guides/classic-bt/overview.rst +++ b/docs/zh_CN/api-guides/classic-bt/overview.rst @@ -1,5 +1,5 @@ 介绍 ------- +======= :link_to_translation:`en:[English]` From 124a23d9b16d3dc025c80489e3a8ebedc0eaa68b Mon Sep 17 00:00:00 2001 From: Yuhan Wei Date: Thu, 25 Jul 2024 14:31:01 +0800 Subject: [PATCH 11/14] docs(ble): Uploaded the classic-bluetooth-architecture.png; Applied the suggestion from Mengyang --- .../classic-bluetooth-architecture.png | Bin 0 -> 23207 bytes docs/en/api-guides/ble/overview.rst | 2 +- docs/en/api-guides/classic-bt/overview.rst | 21 ++++-------------- docs/zh_CN/api-guides/ble/overview.rst | 2 +- docs/zh_CN/api-guides/classic-bt/overview.rst | 19 +++------------- 5 files changed, 9 insertions(+), 35 deletions(-) create mode 100644 docs/_static/classic-bluetooth-architecture.png diff --git a/docs/_static/classic-bluetooth-architecture.png b/docs/_static/classic-bluetooth-architecture.png new file mode 100644 index 0000000000000000000000000000000000000000..671f04729a1bbdc6cce9059960169cf2ac26dc7a GIT binary patch literal 23207 zcmeAS@N?(olHy`uVBq!ia0y~yVCrFDU^vOa#=yX^(lS|rfq{XsILO_JVcj{ImkbP| zCrVr+N^&dGGILTHRE?b>EL9_ejQrvfRbv-bBO}+G)Z~(){5(}7BUK}V-29Zxw9M2L zh@6puk%_K>xvr6Eh=Hl9v7@nxsH{RgDaCGP6@vjSSpVle6oN4T>o0^vC8Xp{1>JAB#lFEWq zh?il0)?Hbv2#jhVtP?xuBwqi zUScj(XFy_lsxDM}CNz#pBMd$Lv;2$P%ltj6%*|2)!oob!O@o=4Tj5@mSdihHp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X#givbKDl|v&ZeiSBhKyi-ar)j2lLA> zE@=<^Y~;0di_EjLNXv><67I4vY1e&woOq?cz$EvsIa|0p%%=`aP6`VGwz!>$Kd7-V zQ?S=&_C#}GghM0L8H>Np+usxzJf|jQLFqk(7*T}e2|=r%7eWzINexXC7fm!5LdZm@ zGj^)Xj@~S^BEh6D*Vra^t~pP*E6mOWYnCm-g=a*&osQ`o%+QfKTNr(duV@`S#Wb)e z@iFSA8?LB2mvc}2tho^9{OmoKZ-j@q)?%PS>{?M;5fr_dTn7r0L@Jf+?OS=NqM-VzIQ7oAn`M zHY~9>u&kNdu+cp5-`aAP2=jw0avOX;otUV+%E4{+hHvvaJTj{^VzciStm{T-_@k_F z%Pad>mG&0dvR&M6_qnG`*t&7XlzM6XY1>&4K?>Te(K9!1TF;Ar_TI;2c>VU=l4M|D OVDNPHb6Mw<&;$T)tAjfL literal 0 HcmV?d00001 diff --git a/docs/en/api-guides/ble/overview.rst b/docs/en/api-guides/ble/overview.rst index 2aa07f2569..e360d210cd 100644 --- a/docs/en/api-guides/ble/overview.rst +++ b/docs/en/api-guides/ble/overview.rst @@ -129,7 +129,7 @@ There are two hosts, ESP-Bluedroid and ESP-NimBLE. The major difference between ESP-Bluedroid ^^^^^^^^^^^^^ -ESP-Bluedroid is a modified version of the native Android Bluetooth stack, Bluedroid. It consists of two layers: the Bluetooth Upper Layer (BTU) and the Bluetooth Transport Controller layer (BTC). The BTU layer is responsible for processing bottom layer Bluetooth protocols such as L2CAP, GATT/ATT, SMP, GAP, and other profiles. The BTU layer provides an interface prefixed with "bta". The BTC layer is mainly responsible for providing a supported interface, prefixed with "esp", to the application layer, processing GATT-based profiles and handling miscellaneous tasks. All the APIs are located in the ESP_API layer. Developers should use the Bluetooth APIs prefixed with "esp". +ESP-Bluedroid is a modified version of the native Android Bluetooth stack, Bluedroid. It consists of two layers: the Bluetooth Upper Layer (BTU) and the Bluetooth Transport Controller layer (BTC). The BTU layer is responsible for processing bottom layer Bluetooth protocols such as L2CAP, GATT/ATT, SMP, GAP, and other profiles. The BTU layer provides an interface prefixed with "bta". The BTC layer is mainly responsible for providing a supported interface, prefixed with "esp", to the application layer, processing GATT-based profiles and handling miscellaneous tasks. All the APIs are located in the ESP_API layer. Developers should use the Bluetooth Low Energy APIs prefixed with "esp". .. only:: esp32 diff --git a/docs/en/api-guides/classic-bt/overview.rst b/docs/en/api-guides/classic-bt/overview.rst index 1f82914b2a..3932ad0aee 100644 --- a/docs/en/api-guides/classic-bt/overview.rst +++ b/docs/en/api-guides/classic-bt/overview.rst @@ -13,14 +13,14 @@ The Classic Bluetooth stack in ESP-IDF is a layered architecture that enables Bl .. only:: esp32 - .. figure:: ../../../_static/bluetooth-architecture-no-ble-mesh.png + .. figure:: ../../../_static/classic-bluetooth.png :align: center :scale: 90% :alt: {IDF_TARGET_NAME} Classic Bluetooth Stack Architecture {IDF_TARGET_NAME} Classic Bluetooth Stack Architecture -The table below shows whether the Classic Bluetooth modules are supported in a specific chip series. +The table below shows whether the Classic Bluetooth Controller are supported in a specific chip series. .. list-table:: :width: 100% @@ -29,28 +29,20 @@ The table below shows whether the Classic Bluetooth modules are supported in a s * - Chip Series - Controller - - ESP-Bluedroid * - ESP32 - Y - - Y * - ESP32-S2 - \– - - \– * - ESP32-S3 - \– - - \– * - ESP32-C2 - \– - - \– * - ESP32-C3 - \- - - \- * - ESP32-C6 - \- - - \- * - ESP32-H2 - \- - - \- The following sections briefly describe each layer and provide quick links to the related documents and application examples. @@ -67,13 +59,13 @@ At the bottom layer is ESP Bluetooth Controller, which encompasses various modul Hosts ----- -There are one host, ESP-Bluedroid, supporting Classic Bluetooth in IDF. +There is one host, ESP-Bluedroid, supporting Classic Bluetooth in IDF. ESP-Bluedroid ^^^^^^^^^^^^^ -ESP-Bluedroid is a modified version of the native Android Bluetooth stack, Bluedroid. It consists of two layers: the Bluetooth Upper Layer (BTU) and the Bluetooth Transport Controller layer (BTC). The BTU layer is responsible for processing bottom layer Bluetooth protocols such as L2CAP, GATT/ATT, SMP, GAP, and other profiles. The BTU layer provides an interface prefixed with "bta". The BTC layer is mainly responsible for providing a supported interface, prefixed with "esp", to the application layer, processing GATT-based profiles and handling miscellaneous tasks. All the APIs are located in the ESP_API layer. Developers should use the Bluetooth APIs prefixed with "esp". +ESP-Bluedroid is a modified version of the native Android Bluetooth stack, Bluedroid. It consists of two layers: the Bluetooth Upper Layer (BTU) and the Bluetooth Transport Controller layer (BTC). The BTU layer is responsible for processing bottom layer Bluetooth protocols such as L2CAP and other profiles. The BTU layer provides an interface prefixed with "bta". The BTC layer is mainly responsible for providing a supported interface, prefixed with "esp", to the application layer and handling miscellaneous tasks. All the APIs are located in the ESP_API layer. Developers should use the Classic Bluetooth APIs prefixed with "esp". - API references @@ -81,11 +73,6 @@ ESP-Bluedroid is a modified version of the native Android Bluetooth stack, Blued - :doc:`../../api-reference/bluetooth/classic_bt` - :example:`Application examples ` -Profiles --------- - -Above the host stacks are the profile implementations by Espressif and some common profiles. Depending on your configuration, these profiles can run on ESP-Bluedroid. - Applications ------------ diff --git a/docs/zh_CN/api-guides/ble/overview.rst b/docs/zh_CN/api-guides/ble/overview.rst index fb124c4f45..62dbc36db0 100644 --- a/docs/zh_CN/api-guides/ble/overview.rst +++ b/docs/zh_CN/api-guides/ble/overview.rst @@ -129,7 +129,7 @@ ESP 蓝牙主机 ESP-Bluedroid ^^^^^^^^^^^^^ -ESP-Bluedroid 是原生 Android 蓝牙协议栈 Bluedroid 的修改版,由两层组成:蓝牙上层 (BTU) 和蓝牙传输控制器层 (BTC)。BTU 层负责处理 L2CAP、GATT/ATT、SMP、GAP 等底层蓝牙协议以及其他配置文件,提供以 "bta" 为前缀的接口。BTC 层主要负责向应用层提供以 "esp" 为前缀的支持接口,并处理基于 GATT 的配置文件以及其他任务。所有的 API 都位于 ESP_API 层,开发者应使用以 "esp" 为前缀的蓝牙 API。 +ESP-Bluedroid 是原生 Android 蓝牙协议栈 Bluedroid 的修改版,由两层组成:蓝牙上层 (BTU) 和蓝牙传输控制器层 (BTC)。BTU 层负责处理 L2CAP、GATT/ATT、SMP、GAP 等底层蓝牙协议以及其他配置文件,提供以 "bta" 为前缀的接口。BTC 层主要负责向应用层提供以 "esp" 为前缀的支持接口,并处理基于 GATT 的配置文件以及其他任务。所有的 API 都位于 ESP_API 层,开发者应使用以 "esp" 为前缀的低功耗蓝牙 API。 .. only:: esp32 diff --git a/docs/zh_CN/api-guides/classic-bt/overview.rst b/docs/zh_CN/api-guides/classic-bt/overview.rst index c090d81056..2c4298d882 100644 --- a/docs/zh_CN/api-guides/classic-bt/overview.rst +++ b/docs/zh_CN/api-guides/classic-bt/overview.rst @@ -13,14 +13,14 @@ ESP-IDF 中的经典蓝牙协议栈是一个分层架构,可在 {IDF_TARGET_NA .. only:: esp32 - .. figure:: ../../../_static/bluetooth-architecture-no-ble-mesh.png + .. figure:: ../../../_static/classic-bluetooth.png :align: center :scale: 90% :alt: {IDF_TARGET_NAME} 经典蓝牙协议栈架构 {IDF_TARGET_NAME} 经典蓝牙协议栈架构 -参考下表可知特定芯片是否支持经典蓝牙模块。 +参考下表可知特定芯片是否支持经典蓝牙控制器。 .. list-table:: :width: 100% @@ -29,28 +29,20 @@ ESP-IDF 中的经典蓝牙协议栈是一个分层架构,可在 {IDF_TARGET_NA * - 芯片系列 - 控制器 - - ESP-Bluedroid * - ESP32 - Y - - Y * - ESP32-S2 - \– - - \– * - ESP32-S3 - \– - - \– * - ESP32-C2 - \- - - \- * - ESP32-C3 - \- - - \- * - ESP32-C6 - \- - - \- * - ESP32-H2 - \- - - \- 以下各节简要介绍了每个层,并提供了相关文档和应用示例的快速链接。 @@ -73,7 +65,7 @@ IDF 中的ESP-Bluedroid 主机支持经典蓝牙。 ESP-Bluedroid ^^^^^^^^^^^^^ -ESP-Bluedroid 是原生 Android 蓝牙协议栈 Bluedroid 的修改版,由两层组成:蓝牙上层 (BTU) 和蓝牙传输控制器层 (BTC)。BTU 层负责处理 L2CAP、GATT/ATT、SMP、GAP 等底层蓝牙协议以及其他配置文件,提供以 "bta" 为前缀的接口。BTC 层主要负责向应用层提供以 "esp" 为前缀的支持接口,并处理基于 GATT 的配置文件以及其他任务。所有的 API 都位于 ESP_API 层,开发者应使用以 "esp" 为前缀的蓝牙 API。 +ESP-Bluedroid 是原生 Android 蓝牙协议栈 Bluedroid 的修改版,由两层组成:蓝牙上层 (BTU) 和蓝牙传输控制器层 (BTC)。BTU 层负责处理 L2CAP 等底层蓝牙协议以及其他配置文件,提供以 "bta" 为前缀的接口。BTC 层主要负责向应用层提供以 "esp" 为前缀的支持接口,并处理其他任务。所有的 API 都位于 ESP_API 层,开发者应使用以 "esp" 为前缀的经典蓝牙 API。 - API 参考 @@ -81,11 +73,6 @@ ESP-Bluedroid 是原生 Android 蓝牙协议栈 Bluedroid 的修改版,由两 - :doc:`经典蓝牙 <../../api-reference/bluetooth/classic_bt>` - :example:`应用程序示例 ` -蓝牙规范 --------- - -主机协议层之上是 Espressif 的蓝牙规范和一些常见的蓝牙规范。根据具体配置,这些规范可以在 ESP-Bluedroid 上运行。 - 应用 ---- From d5c35d8b9b1e294be4d2834a01a2bdc097c1d58f Mon Sep 17 00:00:00 2001 From: Yuhan Wei Date: Thu, 25 Jul 2024 15:44:47 +0800 Subject: [PATCH 12/14] docs(ble): Fixed the image name in classic-bt/overview.rst --- docs/en/api-guides/classic-bt/overview.rst | 2 +- docs/zh_CN/api-guides/classic-bt/overview.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/api-guides/classic-bt/overview.rst b/docs/en/api-guides/classic-bt/overview.rst index 3932ad0aee..5707c51323 100644 --- a/docs/en/api-guides/classic-bt/overview.rst +++ b/docs/en/api-guides/classic-bt/overview.rst @@ -13,7 +13,7 @@ The Classic Bluetooth stack in ESP-IDF is a layered architecture that enables Bl .. only:: esp32 - .. figure:: ../../../_static/classic-bluetooth.png + .. figure:: ../../../_static/classic-bluetooth-architecture.png :align: center :scale: 90% :alt: {IDF_TARGET_NAME} Classic Bluetooth Stack Architecture diff --git a/docs/zh_CN/api-guides/classic-bt/overview.rst b/docs/zh_CN/api-guides/classic-bt/overview.rst index 2c4298d882..53a1e3eac3 100644 --- a/docs/zh_CN/api-guides/classic-bt/overview.rst +++ b/docs/zh_CN/api-guides/classic-bt/overview.rst @@ -13,7 +13,7 @@ ESP-IDF 中的经典蓝牙协议栈是一个分层架构,可在 {IDF_TARGET_NA .. only:: esp32 - .. figure:: ../../../_static/classic-bluetooth.png + .. figure:: ../../../_static/classic-bluetooth-architecture.png :align: center :scale: 90% :alt: {IDF_TARGET_NAME} 经典蓝牙协议栈架构 From 524549fdb25e30aa88855d1ff07354c0b48e3bf3 Mon Sep 17 00:00:00 2001 From: Wei Yu Han Date: Fri, 26 Jul 2024 17:16:48 +0800 Subject: [PATCH 13/14] docs(ble): Replaced Classic Bluetooth with Bluetooth Classic --- docs/en/api-guides/classic-bt/index.rst | 2 +- docs/en/api-guides/classic-bt/overview.rst | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/en/api-guides/classic-bt/index.rst b/docs/en/api-guides/classic-bt/index.rst index 7c8195bca6..e6e9141c70 100644 --- a/docs/en/api-guides/classic-bt/index.rst +++ b/docs/en/api-guides/classic-bt/index.rst @@ -1,5 +1,5 @@ ####################### -Classic Bluetooth® +Bluetooth® Classic ####################### :link_to_translation:`zh_CN:[中文]` diff --git a/docs/en/api-guides/classic-bt/overview.rst b/docs/en/api-guides/classic-bt/overview.rst index 5707c51323..4c28f800e8 100644 --- a/docs/en/api-guides/classic-bt/overview.rst +++ b/docs/en/api-guides/classic-bt/overview.rst @@ -3,24 +3,24 @@ Introduction :link_to_translation:`zh_CN:[中文]` -This document provides an architecture overview of the Classic Bluetooth stack in ESP-IDF and some quick links to related documents and application examples. +This document provides an architecture overview of the Bluetooth Classic stack in ESP-IDF and some quick links to related documents and application examples. .. only:: esp32 {IDF_TARGET_NAME} supports Dual-Mode Bluetooth 4.2. -The Classic Bluetooth stack in ESP-IDF is a layered architecture that enables Bluetooth functionality on {IDF_TARGET_NAME} chip series. The table below shows its architecture. +The Bluetooth Classic stack in ESP-IDF is a layered architecture that enables Bluetooth functionality on {IDF_TARGET_NAME} chip series. The table below shows its architecture. .. only:: esp32 .. figure:: ../../../_static/classic-bluetooth-architecture.png :align: center :scale: 90% - :alt: {IDF_TARGET_NAME} Classic Bluetooth Stack Architecture + :alt: {IDF_TARGET_NAME} Bluetooth Classic Stack Architecture - {IDF_TARGET_NAME} Classic Bluetooth Stack Architecture + {IDF_TARGET_NAME} Bluetooth Classic Stack Architecture -The table below shows whether the Classic Bluetooth Controller are supported in a specific chip series. +The table below shows whether the Bluetooth Classic Controller are supported in a specific chip series. .. list-table:: :width: 100% @@ -77,4 +77,4 @@ ESP-Bluedroid is a modified version of the native Android Bluetooth stack, Blued Applications ------------ -At the uppermost layer are applications. You can build your own applications on top of the ESP-Bluedroid stacks, leveraging the provided APIs and profiles to create Classic Bluetooth applications tailored to specific use cases. +At the uppermost layer are applications. You can build your own applications on top of the ESP-Bluedroid stacks, leveraging the provided APIs and profiles to create Bluetooth Classic applications tailored to specific use cases. From 182e2c17bafc80376cf70289dbfec1056691fe9e Mon Sep 17 00:00:00 2001 From: Wei Yu Han Date: Mon, 29 Jul 2024 09:54:19 +0800 Subject: [PATCH 14/14] docs(bluetooth): Repaced Classic Bluetooth with Bluetooth Classic in API reference section name --- docs/en/api-reference/bluetooth/classic_bt.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/en/api-reference/bluetooth/classic_bt.rst b/docs/en/api-reference/bluetooth/classic_bt.rst index a1f861bb50..0fc595fb79 100644 --- a/docs/en/api-reference/bluetooth/classic_bt.rst +++ b/docs/en/api-reference/bluetooth/classic_bt.rst @@ -1,8 +1,8 @@ -Classic Bluetooth® -================== +Bluetooth® Classic +=================== .. toctree:: - :caption: Classic Bluetooth + :caption: Bluetooth Classic Bluetooth GAP Bluetooth A2DP