bluetooth lowenergy - How do you uniquely identify a BLE device on Android when they use Random Resolvable Private Addressing? D

I am working on a BLE device that connects to an android app. The device uses Random Resolvable Private

I am working on a BLE device that connects to an android app. The device uses Random Resolvable Private Addressing for privacy reasons. The android API seems to use "hardware address" as the only way to identify a device. Same with the Kable library. I would expect that if the device is periodically changing its address, then at some point I'm not going to be able to keep track of each device. I don't see a way to access the IRK at all. I'm looking for a way to keep track of each device as the interact with my app.

I did some testing and it sort of seems that when you bond with a BLE device, Android fixes its "hardware address" and keeps it constant even as the device changes it's address. This would mean that I could use the hardware address as a unique identifier for each device but I would like some confirmation that this is indeed the case.

I am working on a BLE device that connects to an android app. The device uses Random Resolvable Private Addressing for privacy reasons. The android API seems to use "hardware address" as the only way to identify a device. Same with the Kable library. I would expect that if the device is periodically changing its address, then at some point I'm not going to be able to keep track of each device. I don't see a way to access the IRK at all. I'm looking for a way to keep track of each device as the interact with my app.

I did some testing and it sort of seems that when you bond with a BLE device, Android fixes its "hardware address" and keeps it constant even as the device changes it's address. This would mean that I could use the hardware address as a unique identifier for each device but I would like some confirmation that this is indeed the case.

Share Improve this question asked Mar 14 at 5:41 Achu Geetha ByjuAchu Geetha Byju 11 silver badge
Add a comment  | 

2 Answers 2

Reset to default 1

Yes, you are correct. The identity address is shared during bonding and that can be used as the "stable" identifier.

In case you want to avoid bonding and if you have access to the device code and want a stable identifier, you could also expose your own identifier via the custom advertising data.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744672585a4587132.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信