树莓iBeacon显示未检测 [英] Raspberry iBeacon not detecting

查看:189
本文介绍了树莓iBeacon显示未检测的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我试图对一个树莓派一个BLE加密狗(剑桥硅电台)配置iBeacon显示。
参考:<一href=\"http://developer.radiusnetworks.com/2013/10/09/how-to-make-an-ibeacon-out-of-a-raspberry-pi.html\">http://developer.radiusnetworks.com/2013/10/09/how-to-make-an-ibeacon-out-of-a-raspberry-pi.html

I recently was trying to configure ibeacon on a BLE dongle (cambridge silicon radio) on a raspberry pi. Reference: http://developer.radiusnetworks.com/2013/10/09/how-to-make-an-ibeacon-out-of-a-raspberry-pi.html

我得到这个消息:

HCI Command: ogf 0x08, ocf 0x0008, plen 44
  1E 02 01 1A 1A FF 4C 00 02 15 E2 C5 6D B5 DF FB 48 D2 B0 60
  D0 F5 A7 10 96 E0 00 00 00 00 C9 00 00 00 00 00 00 00 00 00
  00 00 00 00
> HCI Event: 0x0e plen 4
  01 08 20 12

和应用程序甚至没有找到指路明灯。虽然我可以看到加密狗上运行此命令闪烁一些轻:

And the app does not even locate the beacon. Though I can see the dongle flashing some light on this command:

sudo hciconfig hci0 leadv 0

但被检测什么。

因此​​,从在AppStore去的APP命名LIGHTBLUE并检测到一个不同的UUID蓝牙。

So go an APP named LIGHTBLUE from the appstore and it detects the bluetooth with a different UUID.

我已经这个现在尝试的次数。并已完成本教程中的所有步骤。但这蓝牙设备只是不会出现。

I have tried this a number of times now. And have completed all the steps in the tutorial. But this bluetooth device just wont show up.

另外,我很想知道什么是0x08的和×0008
如果我想投出不同的UUID我应该怎么办?但是,多数民众赞成在后期...

Also, I am curious to know what is 0x08 and 0x0008 and if I want to cast a different UUID what should I do? But thats a later part...

目前,蓝牙不会投的Estimote UUID由半径Networks的教程说。

Right now, THE BLUETOOTH wont cast the Estimote UUID as said by Radius Networks' tutorial.

希望能尽快得到一些回复。

Hope to receive some reply soon.

命令我写了(在此之后不工作,我改变了权力C9):

Command I wrote (after this not working I changed the power to C9):

$ sudo的hcitool -i hci0 CMD 0x08的×0008 1E 02 01 1A 1A FF 4C 00 02 15 E2 C5 6D B5 DF FB 48 D2 B0 60 D0 F5 A7 10 96 E0 00 00 00 00 00 C5 00 00 00 00 00 00 00 00 00 00 00 00

和出人意料的是,错误是:错误:无效的HCI命令参数;
如何对其无效来的?
是不是因为CSR支持128位,而不是64位十六进制?

and surprisingly, the error is: Error: Invalid HCI Command Parameters; How come its invalid? Is it because CSR supports 128bit rather than 64bit hex?

谢谢!

推荐答案

我看到了同样的问题,因为忘怀洞,我不得不删除多余的零。
我也不得不启用广告之前,我配置的广告数据为它与我的加密狗正常工作。

I saw the same issue as memoryhole where I had to remove the extra zeros. I also had to enable advertising before I configured the advertising data for it to work properly with my dongle.

下面是为我工作的确切顺序/命令:

Here is the exact sequence/commands that worked for me:

sudo hciconfig hci0 up
sudo hciconfig hci0 leadv 3
sudo hcitool -i hci0 cmd 0x08 0x0008 1e 02 01 1a 1a ff 4c 00 02 15 e2 c5 6d b5 df fb 48 d2 b0 60 d0 f5 a7 10 96 e0 00 00 00 00 c5 00

这是我的半径脚本版本结束了看起来像:

This is what my version of the Radius script ended up looking like:

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

这是一个树莓派了ORICO BTA-402-BK品牌BLE加密狗(CSR8510 A10)

This was on a Rasberry Pi with a ORICO BTA-402-BK branded BLE dongle (CSR8510 A10)

(我会离开这个作为一个评论,但没有足够的代表)

(I would have left this as a comment, but didn't have enough rep)

这篇关于树莓iBeacon显示未检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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