iOS蓝牙双模;同时将 BLE (GATT) 连接到已连接的 BR/EDR (A2DP/HFP) 立体声耳机 [英] iOS Bluetooth dual-mode; connect BLE (GATT) to an already connected BR/EDR (A2DP/HFP) stereo headset simultaneously

查看:17
本文介绍了iOS蓝牙双模;同时将 BLE (GATT) 连接到已连接的 BR/EDR (A2DP/HFP) 立体声耳机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用经典配置文件(HFP、A2DP、AVRCP)开发一款带蓝牙的立体声耳机,正如人们所期望的 Ina 立体声耳机.但是,我想为 iOS 部署一个远程控制应用程序,并同时将其用于其他经典链接,但是我在设计中使用的双模芯片组的行为并不符合我的预期;

I'm developing a stereo headset with Bluetooth using the classic profiles (HFP, A2DP, AVRCP) as one would expect Ina stereo headset. However, I want to deploy a remote control app for iOS, and use it simultaneously to the other classic links, but the dual-mode chipset I'm working with in my design does not behave as I'd expect;

耳机被设置为外围设备,让 iOS 设备充当中心.因此,外围设备宣传其 BLE 服务(使用我特定的 128 位 UUID)并且一切正常.我可以从任何中央浏览外围设备,但前提是我没有连接经典配置文件(例如,当没有流式传输音频时).

The headset is setup as a peripheral, letting the iOS device act as central. As such, the peripheral advertise its BLE services (with my specific 128-bit UUIDs) and all is good. I can browse the peripheral from any central, but only when I'm not connected with classic profiles (e.g., while not streaming audio).

我的设备在与 HFP 和/或 A2DP 连接时似乎无法宣传 BLE!但是,我看到了相同芯片组充当 BLE 中心、扫描并连接到其他 BLE 外设,同时通过 A2DP 流式传输音频的演示.但是,在该设置中,该设备充当连接到 iPhone 的 A2DP 接收器,同时通过 BLE 扫描/连接到充当 BLE 外围设备的第三个单元.因此,不能将经典蓝牙和智能蓝牙点对点连接到同一设备.

My device does not seem to be able to advertise BLE, while connected with HFP and/or A2DP! However, I have seen demos of the same chipset acting as BLE central, scanning and connecting to other BLE peripherals, while simultaneously streaming audio via A2DP. However, in that setup the device was acting as A2DP sink connected to an iPhone, while scanning/connecting via BLE to a third unit acting as BLE peripheral. Hence, not point-to-point with both Classic and Smart Bluetooth to the same device.

在支持/连接到蓝牙经典配置文件时,是否存在不能充当外围设备的双模式限制?那种情况下只支持中央模式?

Is there a dual-mode constraint that one cannot act as peripheral while supporting/connecting to Bluetooth Classic profiles? And that only Central-mode is supported in that case?

仅供参考,我使用的是 CSR 的 8670 芯片组.

FYI, I'm using CSR's 8670 chipset.

添加了新答案.我很抱歉直到现在才澄清/清理我以前的答案——时间过得真快!

New answer added. My apologies for not clarifying/cleaning-up my previous answer until now -- time flies!

推荐答案

我想,只要你活着,你就可以学习,这个问题的答案并不是我之前声称的不受支持(基于我认为我知道的).

You learn as long as you live, I suppose, and this question's answer is NOT that it's not supported which I claimed earlier (based on what I thought I knew).

对 CSR 芯片组上的双模和耳机开发的简短而明确的回答很简单,它是早期 SDK 上的 CSR 蓝牙堆栈中的一个限制.

The short and clean answer to dual-mode and headset development on CSR-chipsets is simply that it was a constraint in the CSR bluetooth stack on earlier SDKs.

蓝牙 SIG 从来不支持双模作为外设,同时通过经典链接连接到同一设备.相反,它明确规范.应该如何实现这种互操作性——但这并不总是意味着所有 BT 堆栈实现都能够实现这种功能.

The Bluetooth SIG has never not supported dual-mode acting as Peripheral while being connected via classic links to the same device. On the contrary, it clearly spec. how such interoperability should be carried out -- but that doesn't always mean that all BT-stack implementations out there are capable of such functionality.

因此;使用最新的 devtools 和来自 CSR 的最新蓝牙固件/堆栈已经解决了所有问题,双模现在已经完全支持,实际上我可能会补充说很好,支持 CSR8670/75 芯片组.

Hence; Using the latest devtools and the latest Bluetooth firmwares/stacks from CSR has resolved all issues and dual-mode is now fully, and actually quite nicely I might add, supported on the CSR8670/75 chipsets.

这篇关于iOS蓝牙双模;同时将 BLE (GATT) 连接到已连接的 BR/EDR (A2DP/HFP) 立体声耳机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆