RFCOMM/HFP协议

本文详细解析了蓝牙技术中RFCOMM协议的关键帧类型,包括SABM、UA、DM、DISC及UIH命令和响应,同时介绍了HFP(Hands-Free Profile)中的Audio Gateway和Hands-Free单元角色,以及相关的AT指令如AT+CMER、AT+BIA等,用于实现音频设备间的通信控制。

RFCOMM

Set Asynchronous Balanced Mode (SABM) command  向对方请求建立异步平衡模式(ABM)的建立

Unnumbered Acknowledgement (UA) response  对SABM或者DISC的响应帧,表示确认收到

Disconnected Mode (DM) response,disconnect mode下做出的响应

Disconnect (DISC) command

Unnumbered information with header check (UIH) command and response

 

RFComm 帧格式

 

 

HFP

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.

These terms are used in the rest of this document to designate these roles

 

 

 

AT+CMER      enables the Signal strength Indication‖ function in the AG.

AT+BIA   allows the HF to deactivate/reactivate individual indicators.

HF shall send AT+COPS=3,0 command to set name format to long alphanumeric

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值