Merge branch 'docs/update_bt_classic_homepage' into 'master'

docs: Add intro and profile summaries to Bluetooth Classic API home page

Closes DOC-11911

See merge request espressif/esp-idf!42612
This commit is contained in:
Lu Wei Ke
2025-11-21 00:13:19 +08:00
2 changed files with 148 additions and 8 deletions
+69 -7
View File
@@ -1,17 +1,79 @@
Bluetooth® Classic
===================
Bluetooth\ :sup:`®` Classic
===============================
:link_to_translation:`zh_CN:[中文]`
**Bluetooth Classic** provides APIs for implementing traditional Bluetooth functionalities, including audio streaming, device communication, and data exchange over the Serial Port Profile. It supports multiple Bluetooth profiles, allowing ESP devices to act as source or sink in scenarios like wireless audio, remote control, and data transmission.
The Bluetooth Classic API provides the following main features:
- Core protocol support (**GAP**, **L2CAP**, and **SDP**)
- Serial data communication (**SPP**)
- High-quality audio streaming (**A2DP**)
- Media playback control (**AVRCP**)
- Hands-free calling support (**HFP**)
- Input device connectivity (**HID** host and device roles)
----
The Bluetooth Classic API in ESP-IDF is organized into the following parts:
**Core Protocols**
- :doc:`Bluetooth GAP <esp_gap_bt>`
**Generic Access Profile (GAP):** Device discovery, pairing, and security management
- :doc:`Bluetooth L2CAP <esp_l2cap_bt>`
**Logical Link Control and Adaptation Protocol (L2CAP):** Data multiplexing and channel management
- :doc:`Bluetooth SDP <esp_sdp>`
**Service Discovery Protocol (SDP):** Discovers remote device services and attributes
**Communication Profile**
- :doc:`Bluetooth SPP <esp_spp>`
**Serial Port Profile (SPP):** Emulates a serial communication channel over Bluetooth for data exchange
**Audio and Media Profiles**
- :doc:`Bluetooth A2DP <esp_a2dp>`
**Advanced Audio Distribution Profile (A2DP):** High-quality audio streaming (source and sink)
- :doc:`Bluetooth AVRCP <esp_avrc>`
**Audio/Video Remote Control Profile (AVRCP):** Media playback control (play, pause, volume)
**Hands-Free Profile (HFP)**
- :doc:`Bluetooth HFP Define <esp_hf_defs>`: Core definitions shared by HFP roles
- :doc:`Bluetooth HFP Client <esp_hf_client>`: Implements the hands-free unit role (e.g., headset, car kit)
- :doc:`Bluetooth HFP AG <esp_hf_ag>`: Implements the audio gateway role (e.g., mobile phone)
**Human Interface Device (HID)**
- :doc:`Bluetooth HID Device <esp_hidd>`: Implements peripheral roles such as keyboard, mouse, or game controller
- :doc:`Bluetooth HID Host <esp_hidh>`: Implements the host role for connecting to remote HID devices
Each part typically includes an **Overview**, **Application Examples**, and **API Reference**, covering purpose, main functionality, sample usage, and detailed API documentation.
.. toctree::
:caption: Bluetooth Classic
:maxdepth: 1
:hidden:
Bluetooth GAP <esp_gap_bt>
Bluetooth A2DP <esp_a2dp>
Bluetooth AVRC <esp_avrc>
Bluetooth L2CAP <esp_l2cap_bt>
Bluetooth SDP <esp_sdp>
Bluetooth SPP <esp_spp>
Bluetooth A2DP <esp_a2dp>
Bluetooth AVRCP <esp_avrc>
Bluetooth HFP Define <esp_hf_defs>
Bluetooth HFP Client <esp_hf_client>
Bluetooth HFP AG <esp_hf_ag>
Bluetooth HID Device <esp_hidd>
Bluetooth HID Host <esp_hidh>
Bluetooth L2CAP <esp_l2cap_bt>
Bluetooth SDP <esp_sdp>
@@ -1 +1,79 @@
.. include:: ../../../en/api-reference/bluetooth/classic_bt.rst
经典蓝牙\ :sup:`®`
===============================
:link_to_translation:`en:[English]`
**经典蓝牙 API** 提供用于实现传统蓝牙功能的 API,包括音频流传输、设备通信,以及通过串口配置文件进行数据交换。它支持多种蓝牙配置文件,使 ESP 设备能够在无线音频、远程控制和数据传输等场景中同时扮演源设备或接收设备的角色。
经典蓝牙 API 提供以下主要功能:
- 核心协议支持 **GAP****L2CAP****SDP**
- 串行数据通信 (**SPP**)
- 高质量音频流传输 (**A2DP**)
- 媒体播放控制 (**AVRCP**)
- 免提通话支持 (**HFP**)
- 输入设备连接 **HID** 主机和外设角色)
----
经典蓝牙 API 在 ESP-IDF 中分为以下部分:
**核心协议**
- :doc:`Bluetooth GAP <esp_gap_bt>`
**通用访问配置文件 (GAP)** 设备发现、配对及安全管理
- :doc:`Bluetooth L2CAP <esp_l2cap_bt>`
**逻辑链路控制与适配协议 (L2CAP):** 数据多路复用和通道管理
- :doc:`Bluetooth SDP <esp_sdp>`
**服务发现协议 (SDP)** 发现远程设备的服务和属性
**通信配置文件**
- :doc:`Bluetooth SPP <esp_spp>`
**串口配置文件 (SPP)** 通过蓝牙模拟串行通信通道进行数据交换
**音频与媒体配置文件**
- :doc:`Bluetooth A2DP <esp_a2dp>`
**高级音频分发配置文件 (A2DP):** 高质量音频流传输(源和接收端)
- :doc:`Bluetooth AVRCP <esp_avrc>`
**音视频远程控制配置文件 (AVRCP):** 媒体播放控制(播放、暂停、音量调节)
**免提配置文件 (HFP)**
- :doc:`Bluetooth HFP Define <esp_hf_defs>`HFP 角色共享的核心定义
- :doc:`Bluetooth HFP Client <esp_hf_client>`:实现免提单元角色(例如耳机、车载套件)
- :doc:`Bluetooth HFP AG <esp_hf_ag>`:实现音频网关角色(例如手机)
**人机接口设备 (HID)**
- :doc:`Bluetooth HID Device <esp_hidd>`:实现外设角色,如键盘、鼠标或游戏手柄
- :doc:`Bluetooth HID Host <esp_hidh>`:实现主机角色,用于连接远程 HID 外设
每个部分通常包含 **概述****应用示例****API 参考**,涵盖用途、主要功能、示例用法及详细 API 文档。
.. toctree::
:maxdepth: 1
:hidden:
Bluetooth GAP <esp_gap_bt>
Bluetooth L2CAP <esp_l2cap_bt>
Bluetooth SDP <esp_sdp>
Bluetooth SPP <esp_spp>
Bluetooth A2DP <esp_a2dp>
Bluetooth AVRCP <esp_avrc>
Bluetooth HFP Define <esp_hf_defs>
Bluetooth HFP Client <esp_hf_client>
Bluetooth HFP AG <esp_hf_ag>
Bluetooth HID Device <esp_hidd>
Bluetooth HID Host <esp_hidh>