![]() The 16 pairs of two-digit hexadecimal values - each pair is dubbed an "octet" in the jargon - along with Major and Minor pair of octets, need to be punched into the Pi’s Bluetooth sub-system using BlueZ’s hcitool utility: There’s no version of the uuidgen utility readily available for the Pi, so I used this website. This will take a while, but when it’s done, you can reboot and plug in the dongle. The version at the time of writing was 5.11. Next install BlueZ’s source files and compile it. Sudo apt-get install libusb-dev libdbus-1-dev libglib2.0-dev libudev-dev libical-dev libreadline-dev You need to install the official Linux Bluetooth software stack, BlueZ, and various USB development packages, some using the apt-get tool at the command line, others by compiling the code. A branded one will set you back around a tenner, generic ones less. A handy resource listing well-behaving ones can be found at the Embedded Linux Wiki. Not all Bluetooth dongles are Linux-friendly. It uses the value of the Major variable to distinguish one shop from another, and the value of the Minor variable to differentiate between beacons in one shop’s departments. Apple’s iBeacon specification, such as it is, stores four values in this space: a “Proximity” 128-bit UUID and two 16-bit numbers, “Major” and “Minor”.Īpple has a good example of how these variables are used: a department store chain - Macy’s, say - adopts a single UUID for all its beacons. ![]() Each sends out a short packet of data "advertising" which can contain up to 31 bytes of user-defined data. ![]() Surely this can’t be an Apple iBeacon? Yes it canīluetooth LE incorporates a protocol for beacon devices to identify themselves.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |