一、概念
HFP(Hands-free Profile),HFP1.6定义了Hands-Free设备的功能,可以让蓝牙设备可以控制电话,如接听、挂断、拒接、语音拨号等,拒接、语音拨号要视蓝牙耳机及电话是否支持。
1、依赖关系:


2、配置和角色
HFP定义了音频网关(AG)和免提组件(HF)两个角色:
AG–该设备为音频(特别是手机)的输入/输出网关。
HF–该设备作为音频网关的远程音频输入/输出机制,并可提供若干遥控功能。
注:HFP并没有master与slave的区分,在建立HFP通信前,LMP link是必须的;
3、支持的功能
其中编解码方式可以看到CVSD是必须支持的,mSBC不是必须支持的,

4、AT command
HFP使用AT command的子集来发送命令;
(1)格式HFP中通过AT command来发送命令,响应,我们来看下命令格式说明:

(2)HFP AT command命令子集如下图:
| 序号 |
命令参数 |
说明 |
| 1 |
ATA |
Standard call answer AT command. |
| 2 |
ATDdd…dd |
Standard AT command intended for placing a call to a phone number |
| 3 |
ATD>nnn |
Extension of the standard ATD command, intended for memory dialing |
| 4 |
ERROR |
Standard error indication code |
| 5 |
OK |
Standard acknowledgement to the execution of a command |
| 6 |
NO CARRIER, BUSY, NO ANSWER, DELAYED, BLACKLISTED |
Extended response indication codes for AT commands. |
| 7 |
RING |
Standard ―incoming call‖ indication |
| 8 |
AT+CCWA |
Standard ―Call Waiting notification‖ AT comma |

本文详细介绍了HFP1.6协议,包括其定义、角色配置、支持的编解码和AT命令,以及通信流程,如ServiceLevelConnectionEstablishment和Release过程。重点展示了AT+BRSF和AT+CMER等关键命令的作用。

888

被折叠的 条评论
为什么被折叠?



