How to retrieve advertising payload from iBeacon / BLE

Samrung picture Samrung · Mar 21, 2014 · Viewed 14.8k times · Source

How do you retrieve the advertising payload for a Bluetooth LE emitter in linux?

Specifically, I've configured arduino's and R-PI's using hcitool to act as iBeacons.

What I'm looking for is a command to print out what the current advertising payload is for the device.

Answer

davidgyoung picture davidgyoung · Mar 21, 2014

At Radius Networks, we put together a set of scripts that parse the iBeacon identifiers out of BLE advertisement detected on Linux. You can find a description of this here.

If you simply want to see the raw advertisement bytes, you can start scanning on Linux with:

sudo hcitool lescan --duplicates &

And then see the results with:

sudo hcidump --raw 

More details are in the answer linked above.