![]() ![]() We've also included a -b option for bare output that is easy to parse into other scripts, here's an example: $. Here's an example of the output from the script: $. Soon, we'll include this in the iBeacon Development Kit to add scanning capability. We've put this all together into an ibeacon_scan script that does everything, including converting the raw identifiers into human-readable form. ![]() We've done a lot of research at Radius Networks on the iBeacon bluetooth profile, which we used to identify iBeacon packets and filter them out from packets from other devices. To solve this, we made a filter script that reads in the output line by line and separates out the raw packets from the other output (i.e., MAC addresses, etc.). The filtering is the tricky part, the raw output from hcidump isn't formatted nicely and also shows packets that aren't iBeacon transmissions. Start an hcidump and pipe the raw output to a script that will filter for iBeacon packets: sudo hcidump -raw With the -duplicates setting the scan will not ignore multiple packets from the same iBeacon. Start a background process that does a bluetooth LE scan: sudo hcitool lescan -duplicates & We've put together a script below that does this, you can also do it yourself with these steps: ![]() Yes! You can use your Raspberry Pi to scan for iBeacons. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |