最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin3浏览0评论

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.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论