mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
docs(ble): Added BLE Multi Connection Guide
This commit is contained in:
@@ -38,6 +38,7 @@ BLE_DOCS = [
|
|||||||
'api-guides/ble/ble-feature-support-status.rst',
|
'api-guides/ble/ble-feature-support-status.rst',
|
||||||
'api-guides/ble/host-feature-support-status.rst',
|
'api-guides/ble/host-feature-support-status.rst',
|
||||||
'api-guides/ble/ble-qualification.rst',
|
'api-guides/ble/ble-qualification.rst',
|
||||||
|
'api-guides/ble/ble-multiconnection-guide.rst',
|
||||||
'api-guides/ble/get-started/ble-introduction.rst',
|
'api-guides/ble/get-started/ble-introduction.rst',
|
||||||
'api-guides/ble/get-started/ble-device-discovery.rst',
|
'api-guides/ble/get-started/ble-device-discovery.rst',
|
||||||
'api-guides/ble/get-started/ble-connection.rst',
|
'api-guides/ble/get-started/ble-connection.rst',
|
||||||
|
|||||||
@@ -0,0 +1,63 @@
|
|||||||
|
Multi-Connection Guide
|
||||||
|
==========================================
|
||||||
|
|
||||||
|
:link_to_translation:`zh_CN:[中文]`
|
||||||
|
|
||||||
|
Introduction
|
||||||
|
--------------
|
||||||
|
|
||||||
|
The following table provides an overview of the maximum number of concurrent connections supported for each ESP Bluetooth LE Host. In multi-connection scenarios, connection parameters must be configured appropriately. In general, as the number of connections increases, the connection interval should be increased accordingly. For detailed parameter configuration recommendations and SDK configuration details, please refer to the corresponding example code in the following table.
|
||||||
|
|
||||||
|
In this document, the maximum number of connections refers to the maximum number of simultaneous active connections that the device can maintain, whether operating as a central or peripheral.
|
||||||
|
|
||||||
|
.. table:: Maximum Concurrent Connections by ESP Bluetooth LE Host
|
||||||
|
|
||||||
|
+---------------+-----------------------------+------------------------------+---------------------+
|
||||||
|
| Host | Max Connections | SDKconfig | Example |
|
||||||
|
+===============+=============================+==============================+=====================+
|
||||||
|
| | | |bluedroid_enable_config| | |
|
||||||
|
| ESP-Bluedroid | |max_bluedroid_connections| | | |bluedroid_example| |
|
||||||
|
| | | |bluedroid_connection_num| | |
|
||||||
|
+---------------+-----------------------------+------------------------------+---------------------+
|
||||||
|
| ESP-NimBLE | |max_nimble_connections| | |nimble_connection_num| | |nimble_example| |
|
||||||
|
+---------------+-----------------------------+------------------------------+---------------------+
|
||||||
|
|
||||||
|
|
||||||
|
Note
|
||||||
|
----
|
||||||
|
|
||||||
|
1. The ability to support multiple connections highly depends on the application’s overall memory usage. It is recommended to disable unnecessary features to optimize multi-connection performance.
|
||||||
|
|
||||||
|
2. When the device operates in the peripheral role, connection stability and overall performance will be influenced by the central device and the negotiated connection parameters.
|
||||||
|
|
||||||
|
.. only:: not esp32 and not esp32c3 and not esp32s3 and not esp32c2
|
||||||
|
|
||||||
|
3. Due to the relatively higher memory usage of ESP-Bluedroid, it supports fewer concurrent connections compared to ESP-Nimble.
|
||||||
|
|
||||||
|
4. If your application requires more simultaneous connections than the values listed above, please contact our `customer support team <https://www.espressif.com/en/contact-us/sales-questions>`__ for further assistance.
|
||||||
|
|
||||||
|
.. |bluedroid_enable_config| replace:: :ref:`BT_MULTI_CONNECTION_ENBALE <CONFIG_BT_MULTI_CONNECTION_ENBALE>`
|
||||||
|
.. |bluedroid_connection_num| replace:: :ref:`BT_ACL_CONNECTIONS <CONFIG_BT_ACL_CONNECTIONS>`
|
||||||
|
.. |bluedroid_example| replace:: :example:`multi_conn <bluetooth/bluedroid/ble/ble_multi_conn>`
|
||||||
|
.. |nimble_connection_num| replace:: :ref:`BT_NIMBLE_MAX_CONNECTIONS <CONFIG_BT_NIMBLE_MAX_CONNECTIONS>`
|
||||||
|
.. |nimble_example| replace:: :example:`multi_conn<bluetooth/nimble/ble_multi_conn>`
|
||||||
|
|
||||||
|
.. only:: esp32 or esp32c3 or esp32s3
|
||||||
|
|
||||||
|
.. |max_bluedroid_connections| replace:: 9
|
||||||
|
.. |max_nimble_connections| replace:: 9
|
||||||
|
|
||||||
|
.. only:: esp32c2
|
||||||
|
|
||||||
|
.. |max_bluedroid_connections| replace:: 2
|
||||||
|
.. |max_nimble_connections| replace:: 2
|
||||||
|
|
||||||
|
.. only:: esp32h2
|
||||||
|
|
||||||
|
.. |max_bluedroid_connections| replace:: 15
|
||||||
|
.. |max_nimble_connections| replace:: 70
|
||||||
|
|
||||||
|
.. only:: esp32c6 or esp32c5 or esp32c61
|
||||||
|
|
||||||
|
.. |max_bluedroid_connections| replace:: 50
|
||||||
|
.. |max_nimble_connections| replace:: 70
|
||||||
@@ -14,6 +14,7 @@ Overview
|
|||||||
ble-feature-support-status
|
ble-feature-support-status
|
||||||
ble-qualification
|
ble-qualification
|
||||||
Low Power Mode Introduction <../low-power-mode/low-power-mode-ble>
|
Low Power Mode Introduction <../low-power-mode/low-power-mode-ble>
|
||||||
|
ble-multiconnection-guide
|
||||||
|
|
||||||
***************
|
***************
|
||||||
Get Started
|
Get Started
|
||||||
|
|||||||
@@ -0,0 +1,63 @@
|
|||||||
|
多连接指南
|
||||||
|
=============================
|
||||||
|
|
||||||
|
:link_to_translation:`en:[English]`
|
||||||
|
|
||||||
|
介绍
|
||||||
|
----
|
||||||
|
|
||||||
|
下表展示了每个 ESP 低功耗蓝牙主机所支持的最大多连接个数。在多连接场景下,需要对连接参数进行合理配置。通常情况下,随着连接数量的增加,连接间隔(Connection Interval)也应相应增大。具体的参数配置建议和 sdkconfig 详细信息,请参阅下表中的相应示例代码。
|
||||||
|
|
||||||
|
在本文档中,最大连接数指设备作为中心设备或外围设备时,能够同时维持的最大连接数量。
|
||||||
|
|
||||||
|
.. table:: ESP 低功耗蓝牙主机支持的最大连接数
|
||||||
|
|
||||||
|
+---------------+-----------------------------+------------------------------+---------------------+
|
||||||
|
| 主机(Host) | 最大连接个数 | SDKconfig | 示例 |
|
||||||
|
+===============+=============================+==============================+=====================+
|
||||||
|
| | | |bluedroid_enable_config| | |
|
||||||
|
| ESP-Bluedroid | |max_bluedroid_connections| | | |bluedroid_example| |
|
||||||
|
| | | |bluedroid_connection_num| | |
|
||||||
|
+---------------+-----------------------------+------------------------------+---------------------+
|
||||||
|
| ESP-NimBLE | |max_nimble_connections| | |nimble_connection_num| | |nimble_example| |
|
||||||
|
+---------------+-----------------------------+------------------------------+---------------------+
|
||||||
|
|
||||||
|
|
||||||
|
注意
|
||||||
|
----
|
||||||
|
|
||||||
|
1. 应用能够支持的最大连接数在很大程度上取决于整体内存使用情况。建议禁用不必要的功能,以优化多连接性能。
|
||||||
|
|
||||||
|
2. 当设备处于外围角色时,连接稳定性和整体性能将受到中心设备和协商连接参数的影响。
|
||||||
|
|
||||||
|
.. only:: not esp32 and not esp32c3 and not esp32s3 and not esp32c2
|
||||||
|
|
||||||
|
3. 由于 ESP-Bluedroid 的内存占用相对更高,其支持的最大连接数会少于 ESP-Nimble。
|
||||||
|
|
||||||
|
4. 如果您的应用需要的同时连接数量超过上述数值,请联系 `乐鑫客户支持团队 <https://www.espressif.com/zh-hans/contact-us/sales-questions>`__ 以获取进一步的协助。
|
||||||
|
|
||||||
|
.. |bluedroid_enable_config| replace:: :ref:`BT_MULTI_CONNECTION_ENBALE <CONFIG_BT_MULTI_CONNECTION_ENBALE>`
|
||||||
|
.. |bluedroid_connection_num| replace:: :ref:`BT_ACL_CONNECTIONS <CONFIG_BT_ACL_CONNECTIONS>`
|
||||||
|
.. |bluedroid_example| replace:: :example:`multi_conn <bluetooth/bluedroid/ble/ble_multi_conn>`
|
||||||
|
.. |nimble_connection_num| replace:: :ref:`BT_NIMBLE_MAX_CONNECTIONS <CONFIG_BT_NIMBLE_MAX_CONNECTIONS>`
|
||||||
|
.. |nimble_example| replace:: :example:`multi_conn<bluetooth/nimble/ble_multi_conn>`
|
||||||
|
|
||||||
|
.. only:: esp32 or esp32c3 or esp32s3
|
||||||
|
|
||||||
|
.. |max_bluedroid_connections| replace:: 9
|
||||||
|
.. |max_nimble_connections| replace:: 9
|
||||||
|
|
||||||
|
.. only:: esp32c2
|
||||||
|
|
||||||
|
.. |max_bluedroid_connections| replace:: 2
|
||||||
|
.. |max_nimble_connections| replace:: 2
|
||||||
|
|
||||||
|
.. only:: esp32h2
|
||||||
|
|
||||||
|
.. |max_bluedroid_connections| replace:: 15
|
||||||
|
.. |max_nimble_connections| replace:: 70
|
||||||
|
|
||||||
|
.. only:: esp32c6 or esp32c5 or esp32c61
|
||||||
|
|
||||||
|
.. |max_bluedroid_connections| replace:: 50
|
||||||
|
.. |max_nimble_connections| replace:: 70
|
||||||
@@ -14,6 +14,7 @@
|
|||||||
ble-feature-support-status
|
ble-feature-support-status
|
||||||
ble-qualification
|
ble-qualification
|
||||||
低功耗模式介绍 <../low-power-mode/low-power-mode-ble>
|
低功耗模式介绍 <../low-power-mode/low-power-mode-ble>
|
||||||
|
ble-multiconnection-guide
|
||||||
|
|
||||||
**********
|
**********
|
||||||
快速入门
|
快速入门
|
||||||
|
|||||||
Reference in New Issue
Block a user