fakeBeaconBluez / README.md /
Yanik Cawidrone First commit
494ba40 5 years ago
1 contributor
46 lines | 0.765kb

fakeBeaconBluez

Running raspberry pi as iBeacon using bluez and python 2.7

Bluez configuration

Bluez 5.43 is requiring the use of --experimental.

sudo vim /lib/systemd/system/bluetooth.service

Apply the following change from this line: bash ExecStart=/usr/libexec/bluetooth/bluetoothd

To: bash ExecStart=/usr/libexec/bluetooth/bluetoothd --experimental

sudo reboot

Faking MAC address

This is optional bash sudo bdaddr -i hci0 11:22:33:44:55:66

Usage

usage: ble-ad [-h] -t X -i ID
  • X : Value from 1 to 5 mapped as follow
    • 1 : Entry
    • 2 : Exit
    • 3 : Hazard
    • 4 : Safe
    • 5 : Other
  • ID : 2-bytes Hex value without 0x prefix

Example

ble-ad -t 3 -i abcd