Android的蓝牙配对 [英] Android Bluetooth Pairing

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

问题描述


谁能告诉我如何找到配对技术的手机使用其在连接到其他设备?
我有一台Nexus S(安卓2.3.3)和BT设备(Bluetooth2.1 + EDR)。
当我尝试配对他们,我没有给任何输入(密钥)。由于两个器件都具有蓝牙2.1,我想知道他们是使用哪个配对技术。
我们可以指定配对技术的手机?


Can anybody tell me how to find out which pairing technique phone used while connecting to other device?
I have a Nexus S(Android 2.3.3) and a BT device(Bluetooth2.1+EDR).
When I try to pair them, I dont have to give any input(passkey). As both devices are having bluetooth 2.1, I want to know which pairing technique they used.
Can we specify the pairing technique to phone?

推荐答案

当两个设备分别为2.1及以上的安全简单配对(SSP)被用来代替传统的配对(传统配对是一个在那里用户被要求进入两台设备上相同的PIN码进行连接,大部分的情况下,PIN曾经是众所周知的0000或1234),常见的组合

When both devices are 2.1 and above the Secure Simple pairing (SSP) gets used instead of the legacy pairing (legacy pairing is the one where user was required to enter same PIN on both devices to connect and most of the cases PIN used to be well known common combinations of 0000 or 1234)

安全简单的配对简化了过程,摆脱了需要PIN码被输入,而是它会自动生成6位数字相同的口令作为配对过程的一部分,用户可能只需要验证/输入密码在一个或多个的设备。

Secure simple pairing simplifies the process and gets rid of the need for PINs to be entered, instead it generates 6 digit passkeys automatically as part of the pairing process and user may only be required to verify/enter the passkey on one or more of the devices.

安全简单配对(SSP)还具有一些不同的关联模式和关联模型中使用由那些试图配对设备上的显示和输入功能来确定。

Secure Simple Pairing (SSP) further has few different association modes and the association model to be used is determined by the display and input capabilities on the devices that are trying to pair.

在没有任何显示或输入到输入6位数字的设备之一,然后点击只是工作关联模型被使用,在此用户输入配对过程中不需要。使用createInsecureRfcommSocketToServiceRecord()API时在机器人有可能迫使该模型是SPP的应用程序。被普遍使用这种模式与耳机配对时,没有任何显示和输入能力等小型设备

When there is no display or input to enter 6 digits on one of the devices, then "Just works" association model gets used , in this the user input is not required during pairing. In Android it is possible to force this model is SPP applications when using the createInsecureRfcommSocketToServiceRecord() API. This model gets used commonly when pairing with Headsets, other small devices without any display or input capability

其他关联型号有:

  • 数字比较 - 凡有6位数字显示两个设备上,并要求用户确认的是他们都是一样的。当同时使用的设备有显示屏和能够进入的是/否。

  • Numeric Comparison - Where a 6 digit number is shown on both devices and user is asked to confirm is they are the same. Used when both devices has display and capable of entering Yes/No.

密钥输入 - 当一台设备只具有输入功能,也没有输出显示功能,另外具有输出/显示能力,这里的用户将被要求输入6位数字输入仅能设备作为显示功能的设备上显示。

Passkey entry - When one of the devices has only input capability and no output display capability and the other has an output / display capability, here the user will be asked to enter the 6 digits on the input only capable device as shown on the display capable device.

出带外 - 当设备配对交换通过不同的信道信息(比蓝牙等),例如NFC或其他安全机制

Out-of-Band - Where devices exchange pairing information over a different channel (other than Bluetooth) example NFC or some other secure mechanism.

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

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