piBeacon
piBeacon copied to clipboard
iBeacon using a Raspberry Pi - from http://developer.radiusnetworks.com/2013/10/09/how-to-make-an-ibeacon-out-of-a-raspberry-pi.html
piBeacon
iBeacon using a Raspberry Pi - from a blog post by James Nebeker and David G. Young.
Prerequisites
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
Installation
$ sudo cp ibeacon.conf /etc
$ sudo cp ibeacon /etc/init.d
$ sudo update-rc.d ibeacon defaults
Startup
$ sudo service ibeacon start
Shutdown
$ sudo service ibeacon shutdown