Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to retrieve advertising payload from iBeacon / BLE

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

Specifically, I've configured Arduinos and Raspberry Pis 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.

like image 476
Samrung Avatar asked Mar 21 '14 19:03

Samrung


1 Answers

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.

like image 71
davidgyoung Avatar answered Oct 13 '22 06:10

davidgyoung