How to scan iBeacon signals without specifying UUID?

老子叫甜甜 提交于 2019-12-05 00:54:26

问题


Since iBeacon signal is just a BLE broadcasting with a predefined BLE profile, I think I can write an iOS App which scan the BLE broadcasting signals and analyze whether any found signal is iBeacon. But how to do that?

  1. How to scan all BLE broadcasting signals around?
  2. How to distinguish whether a BLE broadcasting signals is iBeacon?

回答1:


Unfortunately on iOS you must supply a ProximityUUID to see iBeacons. On Android you can see all iBeacons regardless of UUID. Further, on iOS you can not use CoreBluetooth APIs to what advertisements are iBeacons.

See here for details.




回答2:


The answer by @davidgyoung is not entirely correct. On iOS you can subscribe to enter/leave reigning, but you have to know the UUID beforehand.

However, you can use regular Bluetooth device scanning for detecting all Bluetooth devices. You can then look at the advertisement data to see if it is actually using a iBeacon identifier and list its iBeacon UUID.




回答3:


According to me, You can't find all beacons that are broadcasting advertise data, regardless of their proximity UUID.

This can be only done in Mac app, not in iOS.

This will help you better understand Click here

And this is the link for open sourced beacon scanning app in working state for mac: Click here



来源:https://stackoverflow.com/questions/20988671/how-to-scan-ibeacon-signals-without-specifying-uuid

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!