1. Check for your USB Module
This should give you a list of devices on your system:
tools/hciconfig
(if you compiled bluez)
or
hciconfig
(if you apt-get'd bluez)
On a Raspberry Pi 3 you'll see the Bus is UART, not USB!
2. Enable the USB Device
Next you can enable the device with the following commands, turning off device scanning since this can cause problems when advertising.
If you're using the compiled bluez, add tools/
before each call to hciconfig
sudo hciconfig hci0 up sudo hciconfig hci0 leadv 3 sudo hciconfig hci0 noscan
hciconfig
3. Enter the Beacon Advertising Data
The last thing to do is to enter the Beacon advertising data, which we can do with the following command (which should all be on one line):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