Android的5蓝牙静态MAC地址BLE广告 [英] Android 5 static bluetooth MAC address for BLE advertising

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

问题描述

Android的5引入BLE MAC地址增加隐私旋转。每次调用BluetoothLeAdvertiser.startAdvertising()时,该MAC地址被改变。

Android 5 introduces BLE MAC address rotating for increased privacy. Every time when calling BluetoothLeAdvertiser.startAdvertising(), the MAC-address is changed.

是否有可能禁止地址旋转,只是BluetoothLeAdvertiser的整个生命周期过程中使用相同的MAC地址?

Is it possible to disable address rotating, and just use the same MAC address during the entire lifetime of BluetoothLeAdvertiser?

推荐答案

MAC地址是物理地址,并不会改变。在BLE的术语,它是公共设备地址或BD_ADDR为BR / EDR。我还没有尝试过,但readAddress()读取它应该每次都返回相同的值。

The MAC Address is a physical address and does not change. In BLE terminology, it is the Public Device Address or BD_ADDR for BR/EDR. I haven't tried it, but reading it with readAddress() should return the same value each time.

什么是Android的BLE框架确实不使用该地址时广告。它使相当隐私使用私有地址可分解可能改变每隔几分钟左右,但仍允许绑定设备使用IRK在粘接交换识别它。

What the Android's BLE framework does is NOT use that address when advertising. It rather enables privacy by using Private Resolvable Addresses which may change every few minutes or so but still allow bonded devices to recognize it using the IRK exchanged at bonding.

有关显而易见的隐私的原因,Android的BLE框架不允许您设置控制器的时候,广告中使用的公共地址。所以你不能禁止的地址旋转。

For obvious privacy reasons, Android's BLE framework does not allow you to set the Controller to use the public address when advertising. So you cannot disable the "address rotating".

这篇关于Android的5蓝牙静态MAC地址BLE广告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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