蓝牙协议栈中关于回连和断开的定义

本文详细介绍了蓝牙设备中回连的过程,包括Accept_Connection_Request命令的作用和流程。当耳机重新打开或距离变化时,耳机发起回连请求,协议栈创建连接到手机。内容还提及了角色切换、资源管理和连接完成的事件反馈。参考了蓝牙5.0协议文档。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  蓝牙耳机或者音响设备中,蓝牙回连是经常碰到的,这里也经常出问题,这里我就梳理一下,看看协议栈怎么讲的。

回连的流程一般是这样的,耳机重新打开或者耳机距离远断开后又距离拉近,这时候就会启动回连,一般是耳机要回连接手机的,协议栈的命令是这个:

     

流程描述如下,感觉自己怎么翻译也没有蓝牙协议栈上说的清楚,就原班过来了:

   The Accept_Connection_Request command is used to accept a new incomiing connection request. The Accept_Connection_Request command shall only be

issued after a Connection Request event has occurred. The Connection Request event will return the BD_ADDR of the device which is requesting the

connection. This command will cause the Link Manager to create a connectio to the BR/EDR Controller, with the BD_ADDR specified by the command

parameters. The Link Manager will determine how the new connection will be established. This will be determined by the current state of the dev

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值