使用Bluez检测附近的信标 [英] Detect nearby beacons with Bluez

查看:142
本文介绍了使用Bluez检测附近的信标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了Bluez,并且尝试扫描并获取附近的ibeacon的UUID Major,Minor和Mac地址.我发现了类似的问题,并且它们引用的是我在此处找到的脚本.启动脚本时出现此错误

I installed Bluez and I am trying to scan and get UUID Major, Minor and if possible mac address for nearby ibeacon. I found similar questions and they refer to a script which I found here . When I launch the script I get this error

设置扫描参数失败:输入/输出错误

Set scan parameters failed: Input/output error

有人知道如何解决问题或有其他解决方案吗? 如果我开始使用信标进行传输,然后开始扫描,那么我将毫无结果,必须中断脚本.

Did someone know how to solve the problem or has another solution ? If I start transmitting with the beacon and then I start the scan I get no result at all and I have to interrupt the script.

推荐答案

您应该测试BlueZ安装在您的Linux机器上是否正常运行.尝试使用hcitool dev命令查看它是否正确列出了连接的设备.

You should test that the BlueZ installation is working properly on your Linux machine. Try using the hcitool dev command to see if it lists attached devices properly.

您可能要参考BlueZ安装指南,例如针对Ubuntu的版本,以验证您已经正确设置了加密狗.

You may want to refer to a BlueZ installation guide like this one for Ubuntu to verify that you have your dongle set up properly.

这篇关于使用Bluez检测附近的信标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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