Fri 13 November 2015
Bluetooth low energy (Bluetooth LE, BLE, marketed as Bluetooth Smart) is a wireless personal area network technology designed and marketed by the Bluetooth Special Interest Group aimed at novel applications in the healthcare, fitness, beacons, security, and home entertainment industries. Compared to Classic Bluetooth, Bluetooth Smart is intended to provide considerably reduced power consumption and cost while maintaining a similar communication range.
sudo apt-get install libusb-dev libdbus-1-dev libglib2.0-dev libudev-dev libical-dev libreadline-dev
sudo apt-get install bluez bluez-tools python-bluez
Check status of bluetooth
$ hciconfig hci0: Type: BR/EDR Bus: USB BD Address: 00:1A:7D:DA:71:13 ACL MTU: 310:10 SCO MTU: 64:8 UP RUNNING RX bytes:2401 acl:0 sco:0 events:119 errors:0 TX bytes:2155 acl:0 sco:0 commands:119 errors:0
If it is already up and running, you can shut it down with:
sudo tools/hciconfig hci0 down
Now turn it on:
sudo tools/hciconfig hci0 up sudo tools/hciconfig hci0 leadv sudo tools/hciconfig hci0 noscan
Then send one of these commands:
sudo hcitool -i hci0 cmd 0x08 0x0008 1E 02 01 1A 1A FF 4C 00 02 15 E2 0A 39 F4 73 F5 4B C4 A1 2F 17 D1 AD 07 A9 61 00 00 00 00 C8 00 sudo hcitool -i hci0 cmd 0x08 0x0008 1E 02 01 1A 1A FF 4C 00 02 15 E2 C5 6D B5 DF FB 48 D2 B0 60 D0 F5 A7 10 96 E0 00 00 00 00 C8 00
hcitool -i hci0 cmd 0x08 0x0008 1E 02 01 1A 1A FF 4C 00 02 15 [UUID] [Major] [Minor] [Power]
where, Manufacturers Specific Data starts with FF and 4C 00 is for Apple. The other stuff is:
UUID: E2C56DB5-DFFB-48D2-B060-D0F5A71096E0 Major: 00 00 Minor: 00 00 Power: C8
You should see it appear on a bluetooth finder Locate Beacon by Radius Networks.
To stop transmission:
sudo hciconfig hci0 noleadv
git clone https://github.com/carsonmcdonald/bluez-ibeacon.git
iBeacon-Scanner: git clone https://github.com/switchdoclabs/iBeacon-Scanner-.git
BeaconAirPython: git clone https://github.com/switchdoclabs/BeaconAirPython.git
Eddystone is a protocol specification that defines a Bluetooth low energy (BLE) message format for proximity beacon messages. It describes several different frame types that may be used individually or in combinations to create beacons that can be used for a variety of applications.