Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Bluetooth Raspberry Pi上的iBeacon已配置,但为什么不可见?_Bluetooth_Raspberry Pi_Bluetooth Lowenergy_Raspbian_Ibeacon - Fatal编程技术网

Bluetooth Raspberry Pi上的iBeacon已配置,但为什么不可见?

Bluetooth Raspberry Pi上的iBeacon已配置,但为什么不可见?,bluetooth,raspberry-pi,bluetooth-lowenergy,raspbian,ibeacon,Bluetooth,Raspberry Pi,Bluetooth Lowenergy,Raspbian,Ibeacon,我已经按照我在互联网上找到的使用树莓Pi配置bluetooth 4加密狗的说明进行了操作。我觉得一切都很顺利。运行“hcitool dev”会显示设备 然后我创建并运行了一个脚本: #!/bin/bash sudo hciconfig hci0 up sudo hciconfig hci0 noleadv sudo hcitool -i hci0 cmd 0x08 0x0008 1e 02 01 1a 1a ff 4c 00 02 15 e5 9f fc b0 b5 2d 11 e3 a5 e2

我已经按照我在互联网上找到的使用树莓Pi配置bluetooth 4加密狗的说明进行了操作。我觉得一切都很顺利。运行“hcitool dev”会显示设备

然后我创建并运行了一个脚本:

#!/bin/bash
sudo hciconfig hci0 up
sudo hciconfig hci0 noleadv
sudo hcitool -i hci0 cmd 0x08 0x0008 1e 02 01 1a 1a ff 4c 00 02 15 e5 9f fc b0 b5 2d 11 e3 a5 e2 08 00 20 0c 9a 66 00 00 00 00 c5 00
sudo hciconfig hci0 leadv 3
运行上述脚本会得到以下输出:

LE set advertise enable on hci returned status 12
< HCI Command: ogf 0x08, ocf 0x0008, plen 32
1E 02 01  1A 1A FF 4C 00 02 15 E5 9F FC B0 B5 2D 11 E3 A5 E2
08 00 20 0C 9A 66 00 00 00 00 C5 00
> HCI Event: 0x0e plen 4
01 08 20 00
非常感谢您的帮助


保罗

你用的是哪种型号的手杖?您是否确定UUID的所有数字都正确地放入iBeacon的Locate中?你能做一个剪切粘贴来验证吗?你的数据包末尾有一个额外的00字节(这意味着它与嵌入的字节数不匹配),尽管到目前为止,这是一个人们似乎可以侥幸逃脱的常见错误。
Proximity UUID = e59ffcb0-b52d-11e3-a5e2-0800200c9a66
Major = 0
Minor = 0
Power = -59