ibeacon没有出现在iPhone 4S中 [英] ibeacon does not apear in iPhone 4S

查看:102
本文介绍了ibeacon没有出现在iPhone 4S中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试制作Raspberry ibeacon,并且安装已完成.但是我在iPhone 4S(iOS7.1)上看不到任何信标.我正在使用的应用是定位iBeacon"(来自Radius Networks),我在应用中注册了UUID进行搜索.

I'm trying to make Raspberry ibeacon and setup was completed. But I cannot see any beacon on iPhone 4S (iOS7.1). The app I'm using is Locate iBeacon (from Radius Networks) and I registered my UUID in the app for searching.

StackOverflow中有很多问题和答案,但是这些对我没有帮助.或者我找不到适合我的情况的东西,非常抱歉,请您帮助我. 我测试了Raspberry,带有CSR的Fedora和Broadcom BT4.0加密狗.并尝试在命令末尾的power值之后删除或添加填充.另外,我在命令中尝试了示例UUID.但是结果是一样的.

There are bunch of questions and answers in StackOverflow but those won't help me. Or I could not find things for my case, really sorry but please help me kindly. I tested Raspberry, Fedora with CSR and broadcom BT4.0 dongle. And tried remove or add paddings after power value at end of command. Also I tried sample UUIDs in the app for my command. But result were same.

root@raspberrypi:/home/pi# hciconfig
hci0:   Type: BR/EDR  Bus: USB
BD Address: 00:19:0E:14:BD:AD  ACL MTU: 1021:8  SCO MTU: 64:1
UP RUNNING 
RX bytes:85780 acl:42 sco:0 events:2848 errors:0
TX bytes:4651 acl:40 sco:0 commands:207 errors:0

root@raspberrypi:/home/pi# hciconfig hci0 leadv 3

root@raspberrypi:/home/pi# hciconfig hci0 noscan

root@raspberrypi:/home/pi# 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 00 00 00 00 00 00 00 00 00 00 00 00

< HCI Command: ogf 0x08, ocf 0x0008, plen 44
  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 00 00 00 00 00 00 00 00 
  00 00 00 00 
>HCI Event: 0x0e plen 4
  01 08 20 00

然后我在应用程序中输入了UUID E20A39F4-73F5-4BC4-A12F-17D1AD07A961.

and I entered the UUID E20A39F4-73F5-4BC4-A12F-17D1AD07A961 in the app.

有人有什么建议吗?

FYI,我的iPhone上的l2ping如下所示

FYI, l2ping to my iPhone is OK as below

root@raspberrypi:/home/pi# l2ping C8:33:4B:40:B6:5A
Ping: C8:33:4B:40:B6:5A from 00:19:0E:14:BD:AD (data size 44) ...
44 bytes from C8:33:4B:40:B6:5A id 0 time 723.65ms
44 bytes from C8:33:4B:40:B6:5A id 1 time 158.29ms
44 bytes from C8:33:4B:40:B6:5A id 2 time 185.56ms
44 bytes from C8:33:4B:40:B6:5A id 3 time 129.81ms

谢谢.

推荐答案

该解决方案最终只是简单地重新启动iPhone,如下面的评论中所述.

不幸的是,一部iPhone 找到iBeacon (或类似的iBeacon应用程序)不是用于测试Raspberry Pi是否正在传输的很好的故障排除工具.只有在完全UUID匹配的情况下,一切都可以正常运行时,它才会给您确认.

Unfortunately, an iPhone with Locate for iBeacon (or similar iBeacon apps) is not a very good troubleshooting tool for testing whether your Raspberry Pi is transmitting. It will only give you a confirmation if absolutely everything is working perfectly with a full UUID match.

听起来您已经完成功课,以确保广告配置没有格式错误.下一种可能性是您的Raspberry Pi根本不传输广告.

It sounds like you have done your homework on making sure the advertisement configuration is not malformed. The next possibility is that your Raspberry Pi is not transmitting advertisements at all.

您需要验证您的Raspberry Pi是否实际上正在通过BLE加密狗传输任何广告.包括BLE记忆棒硬件,BlueZ配置等在内的很多事情都可能使此操作失败.有一些iOS的Bluetooth LE扫描应用程序(免费,很不幸)可能会告诉您您的设备是否正在传输广告,但iOS却没有让您查看传输的原始字节,以便这些应用无法告诉您广告是否格式错误.

You need to verify that your Raspberry Pi is actually transmitting any advertisements with your BLE dongle. Lots of things could make this fail including the BLE stick hardware, BlueZ configuration, etc. There are some Bluetooth LE scanning apps for iOS (none free, unfortunately) that might tell you if your unit is transmitting advertisements at all, but iOS does not let you see the raw bytes of the transmission so these apps can't tell you if the advertisement is malformed.

也有一些应用程序可以在OSX,Android和Linux上执行此操作. (哎呀,如果您有第二台Raspberry Pi,则只需输入命令sudo hcitool lescan --duplicates即可查看所有广告.)

There are also apps that can do this for OSX, Android, and Linux. (Heck, if you have a second Raspberry Pi, you can just enter the command sudo hcitool lescan --duplicates to see all advertisements.)

最后,您可以尝试确保您的蓝牙棒没有处于坏状态的一件事是在其他命令之前发出以下命令:

Finally, one quick thing you can try to make sure your bluetooth stick isn't in a bad state is to issue the folowing before the other commands:

hciconfig hci0 reset

如果您完全陷入困境,Radius Networks可以为您提供 SD卡,带有已知的工作软件,售价20美元.或完整组装,价格为100美元.已知可以在此处.

If you get totally stuck, Radius Networks can ship you a SD card with known working software for $20. Or a full assembly for $100. You can get a Bluetooth dongle that is known to work here.

全部披露:我是Radius Networks的首席工程师.

Full disclosure: I am Chief Engineer at Radius Networks.

这篇关于ibeacon没有出现在iPhone 4S中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆