Skip to content

jacklund/piBeacon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

  1. Install prerequisite packages

     $ sudo apt-get install libusb-dev libdbus-1-dev libglib2.0-dev libudev-dev libical-dev libreadline-dev
    
  2. 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
    
  3. 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