如何蓝牙配对工作? [英] How does Bluetooth pairing work?

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

问题描述

如何究竟不配对蓝牙工作?在配对过程中各个设备之间传达什么?

How exactly does Bluetooth paring work? What is communicated between each device during the pairing process?

如果你有我被告知<大骨节病>设备-A 想配对<大骨节病>设备-B

I was told if you had device-A wanting to pair with device-B:


  • <大骨节病> A 发送一个独特的关键设备<大骨节病>乙在某些波长/频率

  • <大骨节病>乙返回一个回响回<大骨节病> A ,因此设备对。

  • A sends a 'unique key' to device B on some wavelength/frequency
  • B returns an 'echo' back to A, and hence the devices pair.

+-----+     key    +-----+ 
|     |  ---->     |     |
|  A  |            |  B  |
|     |     <----  |     |
+-----+     echoed +-----+ 


这似乎是不准确的,所以会有人能够要么进一步扩大或实际解释如何/什么是沟通造成的设备的成功配对?

This seems to be inaccurate, so would anyone be able to either expand further or actually explain how/what is communicated to result in a successful pairing of the devices?

我想将一些本研究的成最后一年的项目(大学),但至少会首先需要知道的的东西的蓝牙配对编程的。

I was thinking of incorporating some of this research into a final year project (University), but would at least need to know the something of the Bluetooth programming pairing first.

任何帮助将是非常美联社preciated中的描述的如何将这些最初的通讯工作。

Any help would be much appreciated in describing how these initial communications work.

我听说过诸如暂停模式,而我的研究中被动模式,但我还没有找到在设计背后的编程任何有用的信息,(因此我也问过这个问题, )。谷歌搜索这类话题的喜欢也是因为它似乎带来了这样的东西相当困难如何打开蓝牙的网页,而不是它背后的编程设计。

I've heard of terms such as 'parked mode', and 'passive mode' within my research, but am yet to find any 'useful' information in the programming behind the design, (and hence I have asked this question). The likes of googling this type of topic is also quite difficult as it seems to bring up stuff like 'how to turn your bluetooth on' pages, and not the design of the programming behind it.

推荐答案

蓝牙安全简单配对使用椭圆曲线Diffie-Hellman(ECDH)使用批准的FIPS熵的约95位公共密钥加密P192椭圆曲线。

Bluetooth Secure Simple Pairing uses Elliptic Curve Diffie Hellman (ECDH) public key cryptography with approximately 95 bits of entropy using the FIPS approved P192 elliptic curve.

E:y2=x3 +ax+b(modp)

以下参数给出:


  • 质数模数P,令R,基点x坐标GX,基点坐标Y-戈瑞。

  • 的整数,p和r在十进制形式给出;比特串和域元素以十六进制给出。

  • The prime modulus p, order r, base point x-coordinate Gx, base point y- coordinate Gy.
  • The integers p and r are given in decimal form; bit strings and field elements are given in hex.

p = 6277101735386680763835789423207666416083908700390324961279
r = 6277101735386680763835789423176059013767194773182842284081
b = 64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1
Gx = 188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012
Gy = 07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811


1。公共密钥交换

每个设备生成自己的椭圆曲线的Diffie-Hellman(ECDH)公私密钥对。

Each device generates its own Elliptic Curve Diffie-Hellman (ECDH) public-private key pair.

2。认证阶段1

1 3的协议选项通过基于这两个装置的IO能力连接装置选择。它们是:

1 of 3 protocol options is chosen by the connecting devices based on the IO capabilities of the two devices. These are:


  • 数字比较,

  • 出带外,

  • 密钥输入

3。认证阶段2

每个设备确认两台设备都成功地完成了交换规定由协议的被选择,并在previous步骤中使用。

Each device confirms that both devices have successfully completed the exchange as stipulated by which of protocol was chosen and used in the previous step.

4。链路密钥计算

一个链路密钥从导出共享密钥计算并且该公开交换的数据。这是示出给用户的数字code

A link key is computed from the derived shared key and the publicly exchanged data. This is the numeric code shown to the user.

5。 LMP验证和加密

的加密密钥生成的。该设备成功连接。

The encryption keys are generated. The devices are successfully connected.

&NBSP;
&NBSP;
&NBSP;

&NBSP;
&NBSP;
&NBSP;

           

核心规范是138页,完全回答你的问题将需要至少20所以完全回答你的问题,你需要阅读的参考

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

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