diff --git a/source/LE_AUDIO/01_LE_AUDIO/LE_AUDIO.md b/source/LE_AUDIO/01_LE_AUDIO/LE_AUDIO.md index ad44030..cf9ff03 100644 --- a/source/LE_AUDIO/01_LE_AUDIO/LE_AUDIO.md +++ b/source/LE_AUDIO/01_LE_AUDIO/LE_AUDIO.md @@ -225,8 +225,12 @@ GATT 服务发现阶段,可以看出手机和耳机各有哪些服务。 [BT_HCI_2024_1108_134415.cfa](ref\BT_HCI_2024_1108_134415.cfa) +#### 耳机端重要的 characteristic + 首先是手机搜寻耳机的ATT服务,根据这些数据可以整理出耳机的service如下: + + ![image-20241207183414668](figure/LE_AUDIO/image-20241207183414668.png) primary service和second service @@ -269,6 +273,84 @@ PACS: 这个代表该音响有哪些能力 ASCS: 这个是音响或者耳机的主要的音频流控制接口,开启音频流主要用该服务. + + +#### 手机端重要的characteristic + +耳机也要搜索手机的服务,手机的服务主要有以下所示,重要的有MCS和TBS. + +![image-20241113150311429](figure/LE_AUDIO/image-20241113150311429.png) + +#### MCP- MCS + +Media State和Media Control Point, 这两个是主要的 + +![image-20241113150422141](figure/LE_AUDIO/image-20241113150422141.png) + +播放音乐之前,会发个playing的notification过来。 + +![image-20241113150557544](figure/LE_AUDIO/image-20241113150557544.png) + +![image-20241113151318174](figure/LE_AUDIO/image-20241113151318174.png) + +Media Control Point 是由耳机来控制的,主要在MCS中有介绍 + +![image-20241113151423586](figure/LE_AUDIO/image-20241113151423586.png) + +status和opcode组队还有如下图的状态机。 + +![image-20241113151602403](figure/LE_AUDIO/image-20241113151602403.png) + +#### CCP-TBS + +同样的GTBS中两个重要的属性,Call State和Call control Point。 + +![image-20241113152739254](figure/LE_AUDIO/image-20241113152739254.png) + + TBS中有定义: + +![image-20241113153116765](figure/LE_AUDIO/image-20241113153116765.png) + + + +![image-20241113152947619](figure/LE_AUDIO/image-20241113152947619.png) + +![image-20241113153109466](figure/LE_AUDIO/image-20241113153109466.png) + +![image-20241113153139841](figure/LE_AUDIO/image-20241113153139841.png) + +Call control Point + +![image-20241113153207068](figure/LE_AUDIO/image-20241113153207068.png) + +## 手机和耳机服务和角色 + +根据每个profile中的角色: + +BAP: + +![image-20241113161213302](figure/LE_AUDIO/image-20241113161213302.png) + +MCP: + +![image-20241113161232942](figure/LE_AUDIO/image-20241113161232942.png) + +VCP: + +![image-20241113161255324](figure/LE_AUDIO/image-20241113161255324.png) + +![image-20241113161316385](figure/LE_AUDIO/image-20241113161316385.png) + +![image-20241113161338800](figure/LE_AUDIO/image-20241113161338800.png) + +![image-20241113161401982](figure/LE_AUDIO/image-20241113161401982.png) + +![image-20241113161501967](figure/LE_AUDIO/image-20241113161501967.png) + +![image-20241113161110962](figure/LE_AUDIO/image-20241113161110962.png) + + + ## 流程分析 ### 播放音乐流程 diff --git a/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113150311429.png b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113150311429.png new file mode 100644 index 0000000..20e0348 Binary files /dev/null and b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113150311429.png differ diff --git a/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113150422141.png b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113150422141.png new file mode 100644 index 0000000..67668a2 Binary files /dev/null and b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113150422141.png differ diff --git a/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113150557544.png b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113150557544.png new file mode 100644 index 0000000..c996cb9 Binary files /dev/null and b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113150557544.png differ diff --git a/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113151318174.png b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113151318174.png new file mode 100644 index 0000000..621af9b Binary files /dev/null and b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113151318174.png differ diff --git a/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113151423586.png b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113151423586.png new file mode 100644 index 0000000..1c80079 Binary files /dev/null and b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113151423586.png differ diff --git a/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113151602403.png b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113151602403.png new file mode 100644 index 0000000..044d350 Binary files /dev/null and b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113151602403.png differ diff --git a/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113152739254.png b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113152739254.png new file mode 100644 index 0000000..c3ef1fd Binary files /dev/null and b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113152739254.png differ diff --git a/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113152947619.png b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113152947619.png new file mode 100644 index 0000000..27b742d Binary files /dev/null and b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113152947619.png differ diff --git a/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113153109466.png b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113153109466.png new file mode 100644 index 0000000..35cd8b5 Binary files /dev/null and b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113153109466.png differ diff --git a/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113153116765.png b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113153116765.png new file mode 100644 index 0000000..63444e6 Binary files /dev/null and b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113153116765.png differ diff --git a/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113153139841.png b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113153139841.png new file mode 100644 index 0000000..67932ad Binary files /dev/null and b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113153139841.png differ diff --git a/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113153207068.png b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113153207068.png new file mode 100644 index 0000000..8825c10 Binary files /dev/null and b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113153207068.png differ diff --git a/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113161110962.png b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113161110962.png new file mode 100644 index 0000000..2975e40 Binary files /dev/null and b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113161110962.png differ diff --git a/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113161213302.png b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113161213302.png new file mode 100644 index 0000000..df37f0f Binary files /dev/null and b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113161213302.png differ diff --git a/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113161232942.png b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113161232942.png new file mode 100644 index 0000000..eb2ec3c Binary files /dev/null and b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113161232942.png differ diff --git a/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113161255324.png b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113161255324.png new file mode 100644 index 0000000..be5ec68 Binary files /dev/null and b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113161255324.png differ diff --git a/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113161316385.png b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113161316385.png new file mode 100644 index 0000000..56cea54 Binary files /dev/null and b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113161316385.png differ diff --git a/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113161338800.png b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113161338800.png new file mode 100644 index 0000000..2700bc1 Binary files /dev/null and b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113161338800.png differ diff --git a/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113161401982.png b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113161401982.png new file mode 100644 index 0000000..ae36f37 Binary files /dev/null and b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113161401982.png differ diff --git a/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113161501967.png b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113161501967.png new file mode 100644 index 0000000..4277e1c Binary files /dev/null and b/source/LE_AUDIO/01_LE_AUDIO/figure/LE_AUDIO/image-20241113161501967.png differ