Raspberry Pi iBeacon connection timing out

后端 未结 3 1095
北恋
北恋 2020-12-14 13:07

I am currently attempting the Raspberry Pi iBeacon tutorial posted by RadiusNetworks at

http://developer.radiusnetworks.com/2013/10/09/how-to-make-an-ibeacon-out-of-

3条回答
  •  囚心锁ツ
    2020-12-14 13:24

    Looks like you have it solved but I'll go ahead and post for others that may have the same problem I did and find this thread.

    Like Chris, I completed the steps from the tutorial with the exception of using bluez 5.11. After some experimentation I had to change the order of the steps in the "start" script. Not sure why but this seems to be the only order in which it will work correctly. Maybe I did something wrong?

    #!/bin/sh
    . ./ibeacon.conf
    echo "Launching virtual iBeacon..."
    sudo hciconfig $BLUETOOTH_DEVICE up
    sudo hciconfig $BLUETOOTH_DEVICE noleadv
    sudo hciconfig $BLUETOOTH_DEVICE leadv 0
    sudo hcitool -i hci0 cmd 0x08 0x0008 1e 02 01 1a 1a ff 4c 00 02 15 $UUID $MAJOR $MINOR $POWER 00 00 00 00 00 00 00 00 00 00 00 00 00
    echo "Complete"
    

提交回复
热议问题