有什么方法可以唯一地识别BLE设备? [英] Is there any way to uniquely identify BLE device?

查看:279
本文介绍了有什么方法可以唯一地识别BLE设备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在本地存储有关BLE设备的信息,但是我不能依赖MAC地址,因为它经常更改.有什么办法吗?

I want to store information about BLE device locally, but I cannot rely on MAC address because it changes too often. Is there any way to do that?

推荐答案

蓝牙地址是区分设备的最佳方法.蓝牙规范中提到了以下内容[1]:

The Bluetooth address is the best way you can distinguish between devices. This is mentioned in the Bluetooth specification as follows [1]:

使用设备地址标识设备.设备地址可能是 公共设备地址或随机设备地址.公众 设备地址和随机设备地址的长度均为48位

Devices are identified using a device address. Device addresses may be either a public device address or a random device address. A public device address and a random device address are both 48 bits in length

正如Mike提到的,MAC地址有几种类型,并且正在更改的不是您要查看的一种.蓝牙规范标识以下地址:-

As Mike mentioned, there are a few types of MAC Addresses and the one that is changing is not the one that you want to look at. The Bluetooth specification identifies the following addresses:-

  • 公共地址:这是根据IEEE 802-2014标准创建的唯一地址.对您来说,这是与您的答案相关的地址.
  • 随机静态地址:这是随机生成的地址,除非对设备重新通电,否则该地址不会更改.因此,如果您的设备没有关机后再打开,则可以使用此地址进行标识.
  • 私有可解析地址:这是一个不断变化的MAC地址(更改频率取决于应用程序),如果知道IRK(即,即IRK),则可以解析该MAC地址并将其与设备的唯一地址相关联如果设备已配对).
  • 私有不可解析地址:这是一个正在更改的MAC地址(更改频率取决于应用程序),无法解析,也无法与设备的唯一地址相关联.当设备仅做广告时,出于安全考虑,通常使用这种地址.
  • Public Address: This is a unique address created in accordance with IEEE 802-2014 Standard. For you this is the Address relevant to your answer.
  • Random Static Address: This is a randomly generated address that does not change unless the device is power cycled. Therefore, if your device is not power cycled you can use this address to identify it.
  • Private Resolvable Address: This is a changing MAC address (with the frequency of the change depending on the application) that can be resolved and associated with the device's unique address if the IRK is known (i.e. if the devices are paired).
  • Private Non-resolvable Address: This is a changing MAC address (with the frequency of the change depending on the application) that cannot be resolved nor associated with the device's unique address. This kind of address is usually used for security reasons when a device only advertises.

有关更多信息,请参见下面的参考.

For more information, please see the reference below.

我希望这会有所帮助.

[1]蓝牙核心规范版本5.0,第6卷,B部分,第1.3节设备地址".

[1] Bluetooth Core Specification Version 5.0, Vol 6, Part B, Section 1.3 DEVICE ADDRESS.

这篇关于有什么方法可以唯一地识别BLE设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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