ySi*_*gen 5 mac-address bluetooth-lowenergy ibeacon
我正在研究iBeacon技术,找不到关于地址类型的特定问题的任何答案。我发现文档说明(蓝牙规范)解释了什么是地址类型,但我似乎找不到如何在两种类型(公共和随机)之间进行选择的方法。
这是我找到它的示例(这是iBeacon在Raspberry PI上发送的嗅探数据包):
http://i.stack.imgur.com/QF5gf.png 和http://i.stack.imgur.com/NHY6x.png(对不起,由于我的声誉,我还不能发布图片)
让我们尝试提出问题,并使其更加具体:
由于公共地址必须是有效的,是否可能有一个命令生成一个随机的命令(但在格式化地址时仍然正确)以将其分配给相关设备?
如果以上是正确的:命令是什么?以及如何回滚(到主公用地址)?
还是有一个“开关”允许在(有效)公共地址之间进行选择或生成一个随机的地址?
谢谢。
这是一个看起来非常像您想要的命令。 详细信息请参见此处。
Set Static Address Command
==========================
Command Code: 0x002B
Controller Index: <controller id>
Command Parameters: Address (6 Octets)
Return Parameters:
This command allows for setting the static random address. It is
only supported on controllers with LE support. The static random
address is suppose to be valid for the lifetime of the
controller or at least until the next power cycle. To ensure
such behavior, setting of the address is limited to when the
controller is powered off.
The special BDADDR_ANY address (00:00:00:00:00:00) can be used
to disable the static address.
When a controller has a public address (which is required for
all dual-mode controllers), this address is not used. Only when
the controller information reports BDADDR_ANY (00:00:00:00:00:00),
it is required to configure a static address first.
If privacy mode is enabled and the controller is single mode
LE only without a public address, the static random address is
used as identity address.
This command generates a Command Complete event on success or a
Command Status event on failure.
Possible errors: Rejected
Not Supported
Invalid Parameters
Invalid Index
Run Code Online (Sandbox Code Playgroud)
在我看来,BlueZ 的隐私功能目前正在积极开发中,可能尚未完成。 请参阅 2014/02/18 的此提交。如果您想使用最新更新尝试此操作,则必须从源代码编译 BlueZ。
| 归档时间: |
|
| 查看次数: |
2951 次 |
| 最近记录: |