- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我根据 https://learn.adafruit.com/pibeacon-ibeacon-with-a-raspberry-pi/setting-up-the-pi 等几个教程将 Raspberry Pi 设置为 iBeacon
就我能在不同应用程序中找到信标而言,一切正常。但我也从 BeaconInside 购买了一个“真正的”iBeacon,在将两个信标的广告数据与蓝牙 LE 扫描应用程序进行比较时,我注意到存在差异:
pi-beacon 缺少“名称(完整)”和“服务数据”记录: http://postimg.org/image/yc5wky7bv/
我还尝试使用 Android BluetoothLeGatt 示例应用程序 (developer.android.com/samples/BluetoothLeGatt/index.html) 扫描两者,结果相同:
信标内部:
8836-8889/com.example.android.bluetoothlegatt D/BluetoothLeScanner﹕ onScanResult() - ScanResult{mDevice=78:A5:04:39:8C:3A, mScanRecord=ScanRecord [mAdvertiseFlags=6, mServiceUuids=null, mManufacturerSpecificData={76=[2, 21, -16, 1, -117, -101, 117, 9, 76, 49, -87, 5, 26, 39, -45, -100, 0, 60, 51, 1, -86, -36, -65]}, mServiceData={0000d00d-0000-1000-8000-00805f9b34fb=[1, 51, -36, -86, 93]}, mTxPowerLevel=0, mDeviceName=BEACON 39:8C:3A], mRssi=-76, mTimestampNanos=387592434672407}
树莓派信标:
8836-8889/com.example.android.bluetoothlegatt D/BluetoothLeScanner﹕ onScanResult() - ScanResult{mDevice=5C:F3:70:61:93:C7, mScanRecord=ScanRecord [mAdvertiseFlags=6, mServiceUuids=null, mManufacturerSpecificData={76=[2, 21, -30, -59, 109, -75, -33, -5, 72, -46, -80, 96, -48, -11, -89, 16, -106, -32, 17, 17, 18, 17, -56]}, mServiceData={}, mTxPowerLevel=-2147483648, mDeviceName=null], mRssi=-28, mTimestampNanos=387592794842927}
DeviceName 为空且没有ServiceData。
hciconfig hci0 -a:
hci0:类型:BR/EDR 总线:USB
BD地址:5C:F3:70:61:93:C7 ACL MTU:1021:8 SCO MTU:64:1
UP RUNNING PSCAN ISCAN
RX 字节:2785 acl:0 sco:0 事件:73 错误:0
TX 字节:1348 acl:0 sco:0 命令:71 错误:0
特征:0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
数据包类型:DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
链接策略:RSWITCH SNIFF
链接模式:SLAVE ACCEPT
名称:'ABC'
类:0x000000
服务等级:未指定
设备类别:杂项,
HCI 版本:4.0 (0x6) 修订:0x1000
LMP 版本:4.0 (0x6) 版本:0x220e
制造商:Broadcom Corporation (15)
有人知道为什么pi-beacon没有名称和服务数据记录吗?
最佳答案
设备名称作为 BLE 扫描响应的一部分发送,而不是信标广告的一部分。蓝牙信标通常不会在扫描响应中发送名称。
如果您想让 BlueZ 设备在扫描响应中传输其名称,您可以尝试使用如下命令进行设置:hciconfig hci0 name 'Device Name'
关于linux - Raspberry Pi IBeacon 缺少名称特征,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29970241/
我有一个运行 Raspbian 的 Raspberry Pi 1。我尝试在 Raspberry Pi 3 上运行 SD 卡,但它没有启动。 我已经阅读了有关升级 Raspberry Pi 2 安装以在
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 这个问题似乎不是关于 a specific programming problem, a softwar
我目前正在尝试RadiusNetworks发布的Raspberry Pi iBeacon教程,网址为 http://developer.radiusnetworks.com/2013/10/09/ho
我的公司使用 Raspberry Pi 3 作为产品中的嵌入式 Controller 。用户不会优雅地关闭它,他们只是扳动一个开关。为避免损坏,/boot 和/root 文件系统是只读的。这似乎是防弹
如何使用 Raspberry Pi 作为 b/w USB Tethered 手机和路由器的桥接器,使用“以太网电缆 b/w Raspberry Pi 和路由器”和“USB 电缆 b/w 手机和 Ras
我关注了一个名为Creating an Electron Application for the Raspberry Pi的博客,内容涉及使用Buster OS在Raspberry Pi中启动Elec
关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。 想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。 7年前关闭。 Improve thi
我有一个树莓派,并且已经从 raspbmc.com 加载了最新的独立版本。在使用 XBMC 时,我看到 CPU 使用率始终在 90% 以上。查看 XBMC wiki 和常见问题解答后,脏区域似乎是减少
我现在正在做一个小项目。我希望 python 脚本在登录到 GUI 后自动运行。 我按照这里的步骤操作:https://www.raspberrypi.org/forums/view ... 91&t
我正在使用 Android Things 在 Raspberry Pi 上构建应用程序并且我有 7 inch touch screen ,但屏幕永远不会关闭。 是否可以像 Android 手机一样设置
我正在执行一组事件以确保 Redis 在一组嵌入式系统(包括 Raspberry PI)中运行良好。为了修复执行未对齐内存访问的 Redis 的某些代码路径(由于 Redis 3.2 中引入的更改),
我正在尝试使用 Tanuki Java Service Wrapper。 我使用的硬件是带有 Raspbian wheezy 发行版的 Raspberry Pi。 (见 http://www.rasp
我希望构建一个以全屏模式在 Raspberry Pi 上运行的应用程序。我已经尝试过 JavaFX 和基于 Swing 的应用程序,但性能非常糟糕。 在我开始使用 SDL( http://www.li
我的项目在/home/pi/app中 以npm start开头 启动操作系统后如何启动应用程序? ****西类牙文 Mi proyecto esta zh/home/pi/app Arranca la
我正在尝试安装 Kappelt gBridge在 Raspberry Pi 3 B 型上,使用本指南:https://doc.gbridge.io/selfHosted/hostItYourself.
我正在使用我的 Pi 作为文件服务器,最近当我登录时,我看到一条错误消息,指出 libarmmem.so(无法打开共享对象文件),尽管有一些建议运行 apt-get update + 升级它并没有带来
我正在尝试使用 Raspberry# 库通过 Raspberry PI 上的 GPIO 引脚(打开和关闭)执行基本任务。根据 github 上的示例:https://github.com/raspbe
如标题所述,我在将一些用户空间中断代码从另一个 armv7 嵌入式 linux 平台移植到 Raspberry Pi 2 Model B 时遇到问题。 我知道 wiringPi 库(并让它以这种方式工
我正在尝试为 Raspberry Pi B+ 交叉编译 Tensorflow-Lite。为此,我正在关注 these instructions来自官方网站,它们是: git clone https:/
我正在尝试使用 PulseAudio RTP 将音频从 Linux Mint 桌面流式传输到运行 LibreELEC (Kodi) 的 RaspberryPi 3B。我可以使用 RTP 多播成功地流式
我是一名优秀的程序员,十分优秀!