问题描述
我们目前正在构建一种设备,该设备需要与运行 BLE 的较新智能手机兼容,但也要向后兼容蓝牙 2.1.
We are currently building a device that needs to be compatible with newer smartphones that run BLE but also be backwards compatible with Bluetooth 2.1.
我们正在使用 Mediatek Linkit ONE 板作为我们的原型,它可以在双模式下运行.他们有可用的蓝牙课程,但似乎我必须在运行 1) 蓝牙经典 2.1 或 2) BLE 之间进行选择
We are using a Mediatek Linkit ONE board for our prototype which can operate in dual mode. They have Bluetooth classes available, however it seems that I would have to pick between either running 1) Bluetooth Classic 2.1 OR 2) BLE
课程和文档在这里:http://labs.mediatek.com/site/znch/developer_tools/mediatek_linkit/api_references/Lib_Bluetooth.gsp
我们基本上想让我们的设备与尽可能多的智能手机兼容,所以我想知道是否有可能有一个设备作为外围设备同时收听 BLE 和蓝牙经典连接.然后,如果它通过任何一个连接到,停止广播另一个?
We basically want to make our device compatible with as many Smart phones as possible so I wonder whether it possible to have a device that is a peripheral to listen to both, BLE and Bluetooth Classic Connections at the same time. Then if it gets connected to via either, stop broadcasting the other?
唯一的技术方法似乎是在 iot 设备上设置一个拨码开关来设置模式,它根据拨码开关的位置使用 BLE 代码库或经典代码库.这对我来说似乎不太优雅.
The only technical way seems to have maybe a dip switch on the iot device that sets the mode and it uses BLE code base or Classic code base based on the position of the dip switch. That does not seem very elegant to me.
最后,我想知道我的问题是否有意义.我搜索了几个小时,似乎找不到其他人在这样做,所以我想知道这些天大多数人是否只使用 BLE 而不再关心 Classic BR/EDR.任何帮助将非常感激.
Lastly, I wonder if my question even makes sense. I searched around for hours and I cannot seem to find anybody else that is doing this, so I wonder if most people are just going with BLE these days and just don't care about about Classic BR/EDR anymore.Any help would be much appreciated.
推荐答案
使用 LinkIt ONE HDK/SDK,以上场景是可以实现的.LinkIt ONE 平台上的蓝牙 2.1 和蓝牙 GATT (4.0) 独立运行.目前,LinkIt ONE 平台支持SPP (2.1) 和 GATT (4.0) 配置文件.您可以开始尝试 SPP 和 GATT 在同时在板上,通过分别实例化BT Basic和BLE的对象.
With LinkIt ONE HDK/SDK, the above scenario is achievable. The Bluetooth 2.1 and Bluetooth GATT (4.0) on LinkIt ONE platform run independently. Currently, the LinkIt ONE platform supports SPP (2.1) and GATT (4.0) profiles. You can start to try both the SPP and GATT at the same time on the board, by instantiating the objects of BT Basic and BLE separately.
这篇关于是否有可能(并且有意义)在外围模式下使用蓝牙 iOT 设备同时收听 BLE 和蓝牙经典连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!