配对前的蓝牙设备 [英] Pre-pairing bluetooth devices

查看:119
本文介绍了配对前的蓝牙设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够对蓝牙设备进行预配对,以节省使用该应用程序时用户的困惑.我发现有一项专利 用于对蓝牙设备进行预配对的系统,方法和装置.

I would like to be able to pre-pair bluetooth devices, to save the step of user confusion when using the app. I have discovered that there is a patent for System, method and apparatus for pre-pairing bluetooth enabled devices.

我正在考虑将一系列android设备与一系列嵌入式设备配对,因此在设置android设备时,我可以将其与需要与之通信的设备进行预配对.我已经考虑过维护一个可以由应用程序下载和更新的MAC地址列表.

I am looking at pairing an array of android devices with an array of embedded devices, so when the android device is set up, I can pre-pair it with the devices it needs to communicate with. I have considered maintaining a list of MAC-addresses that can be downloaded and updated by the app.

有没有办法使两个设备配对而不必使它们接触?

Is there a way to pair two devices without having to bring them into contact?

推荐答案

我的记忆不准确,前一段时间我在蓝牙堆栈中闲逛,但是,我认为这是不可能的.

My memory is not exact, it's a while ago I poked around in the Bluetooth stack, however, I don't think this is possible.

基本上,白名单(几乎是文本文件)由系统保留在其可能与您的手机相连的设备上,要在Bluetooth api之外访问该白名单,您需要成为平台制造商.蓝牙Api(根据规范)受到严格保护,如果您不遵守蓝牙Api,则不能说您的设备支持蓝牙.配对是蓝牙安全模型的重要组成部分,我怀疑甚至OEM也不允许这样做.

Basically there is a white list (text file pretty much) which is kept by the system with devices that may connect to your phone, in order to access that white list outside of the Bluetooth api you need to be platform manufacturer. The Bluetooth Api is strongly guarded (by the specification), if you don't fulfill it you can't say your device supports Bluetooth. Pairing is an important part of the Bluetooth security model, I doubt even an oem would be allowed to do this.

您可能要研究的一件事是蓝牙低功耗设备,那些设备不需要在连接之前进行配对(如果您具有MAC地址,则应该能够连接),只有蓝牙经典设备才需要配对.

One thing you could look into are Bluetooth low energy devices, those don't require pairing prior to connection (you should be able to connect if you have the MAC address), only Bluetooth classic requires pairing.

更多信息: https://developer.android.com/guide/topics/connectivity/bluetooth -le.html

这篇关于配对前的蓝牙设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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