Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
a bunch of hciXXX instruction to setup custom beacon
hciconfig hci0 reset
hciconfig hci0 -a
hciconfig hci0 noscan
sleep 1
hciconfig hci0 noleadv
sleep 1
hciconfig hci0 leadv
sleep 1
# 16 bytes uuid
# origami!
uuid="20 20 20 20 4f 52 49 47 41 4d 49 21 20 20 20 20"
# ios beacon
#uuid="84 92 E7 5F 4F D6 46 9D B1 32 04 3F E9 49 21 D8"
# mac beacon
#uuid="08 D4 A9 50 80 F0 4D 42 A1 4B D5 3E 06 35 16 E6"
# estimote proximity uuid - also requires changing name to 'estimote'
#uuid="b9 40 7f 30 f5 f8 46 6e af f9 25 55 6b 57 fe 6d"
minor="ca fe"
major="ba be"
hcitool -i hci0 cmd 0x08 0x0008 1E 02 01 1A 1A FF 4C 00 02 15 ${uuid} ${major} ${minor} C8
echo "uuid: ${uuid}"
echo "minor: ${minor}"
echo "major: ${major}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment