0

With Bluez I was able to get the MAC adresses of beacons with this command

sudo hcitool lescan

But this return MAC adresses and not the detected UUID, Major and Minor values.Did someone have an idea how to get them ?

user3235881
  • 487
  • 2
  • 9
  • 24

1 Answers1

1

You have to get the raw output of the advertisement as bytes with the hcidump command, then parse the beacon identifiers out of these bytes. Here is a script that does exactly that for the open source AltBeacon format:

https://github.com/RadiusNetworks/altbeacon-reference/blob/master/altbeacon_receive

If you want to do the equivalent for iBeacon, you must modify the parsing script to handle that similar format. Because the iBeacon format is proprietary, posting the AltBeacon version is the best I can do to help.

davidgyoung
  • 63,876
  • 14
  • 121
  • 204