一.概述
HFP(Hands-free Profile),可以让蓝牙设备可以控制电话,如接听、挂断、拒接、语音拨号等,拒接、语音拨号要视蓝牙耳机及电话是否支持。
结构图:
定义了两种角色(role):
Audio Gateway (AG) – This is the device that is the gateway of the audio, both for input and
output. Typical devices acting as Audio Gateways are cellular phones.
Hands-Free unit (HF) – This is the device acting as the Audio Gateway’s remote audio input
and output mechanism. It also provides some remote control means
通常手机充当AG角色,耳机或者车机或者其他蓝牙设备充当HF角色
二.Feature
查看表中AG和HFP必须支持或者可选支持的列表
![蓝牙 电话 HFP 剖析(一) --- 概述_第2张图片](http://img.e-com-net.com/image/info8/b182cd39a227417dba583590e94ef63d.png)
![蓝牙 电话 HFP 剖析(一) --- 概述_第3张图片](http://img.e-com-net.com/image/info8/68b324a8e6bf4f2c972aa28eb2c70adf.jpg)
三.FLOW
HFP基本所有的过程都是基于AT command
列举一例:SLC建立
想列举所有的flow太多,一篇文章贴不过来
文章二会列表所有的AT command
文章三会根据空中包贴出flow(部分)
四.SDP注册部分
AG role的注册:
HF role的注册:
![蓝牙 电话 HFP 剖析(一) --- 概述_第6张图片](http://img.e-com-net.com/image/info8/e4b77a4e86d5497bb9b32d5509509f10.png)
![蓝牙 电话 HFP 剖析(一) --- 概述_第7张图片](http://img.e-com-net.com/image/info8/e5ef75aa1b6c47768b8a2ae33c8e4bf9.png)