iBeacon using a Raspberry Pi - from a blog post by James Nebeker and David G. Young.
You'll need to download and install BlueZ version 5.7 or later and install it.
-
Install prerequisite packages
$ sudo apt-get install libusb-dev libdbus-1-dev libglib2.0-dev libudev-dev libical-dev libreadline-dev
-
Download and install the latest BlueZ
$ sudo wget www.kernel.org/pub/linux/bluetooth/bluez-5.8.tar.xz $ sudo unxz bluez-5.x.tar.xz $ sudo tar xvf bluez-5.x.tar $ cd bluez-5.x
-
Configure and make BlueZ
$ sudo ./configure --disable-systemd $ sudo make $ sudo make install
$ sudo cp ibeacon.conf /etc
$ sudo cp ibeacon /etc/init.d
$ sudo update-rc.d ibeacon defaults
$ sudo service ibeacon start
$ sudo service ibeacon shutdown