google / eddystone

Specification for Eddystone, an open beacon format from Google
Apache License 2.0
3.08k stars 762 forks source link

How to enter beacon URL #107

Open winster opened 8 years ago

winster commented 8 years ago

In my peripheral(lets say a raspberry pi), after installing Bluez and adding a USB module, how can I set the URL?

For example, this is what I have to do for iBeacon

sudo hcitool -i hci0 cmd 0x08 0x0008 1E 02 01 1A 1A FF 4C 00 02 15 [ 92 77 83 0A B2 EB 49 0F A1 DD 7F E3 8C 49 2E DE ] [ 00 00 ] [ 00 00 ] C5 00

which gives the value in [uuid][major][minor] format

dermike commented 8 years ago

@winster you can use this python script for use with hcitool, found in the eddystone-url/implementations directory: https://github.com/google/eddystone/tree/master/eddystone-url/implementations/linux-url-advertiser