【发布时间】:2021-09-02 09:50:46
【问题描述】:
我想创建一个扫描广告数据(制造商数据)的网络蓝牙应用程序。我使用了 chrome for scaning advertisement 提供的示例。然而,它只给了我设备的 UUID,而不是制造商数据。
您知道是否可以扫描特定设备并获取其制造商数据?
【问题讨论】:
标签: web-applications bluetooth bluetooth-lowenergy web-bluetooth
我想创建一个扫描广告数据(制造商数据)的网络蓝牙应用程序。我使用了 chrome for scaning advertisement 提供的示例。然而,它只给了我设备的 UUID,而不是制造商数据。
您知道是否可以扫描特定设备并获取其制造商数据?
【问题讨论】:
标签: web-applications bluetooth bluetooth-lowenergy web-bluetooth
https://googlechrome.github.io/samples/web-bluetooth/scan.html?namePrefix=Ruuvi 如果由“Ruuvi”BLE 设备广播,确实应该可以工作并记录制造商数据。
从内部页面chrome://bluetooth-internals/#devices扫描附近的蓝牙设备时,你能看到制造商数据吗?您需要 Chrome 92 才能查看此列(撰写本文时为 Chrome Beta)。见https://chromiumdash.appspot.com/commit/613b3bf2a0de8ac5cddbe73e01b03db20f25d110
如果您没有看到它们,您可以尝试使用 Android 设备上的https://play.google.com/store/apps/details?id=no.nordicsemi.android.mcp 扫描附近的蓝牙设备吗?如果您仍然看不到某些制造商数据,则表示此设备未广播某些数据。如果这样做,您可能会遇到 Chrome 问题。我建议你在https://sites.google.com/a/chromium.org/dev/developers/how-tos/file-web-bluetooth-bugs
提交一个错误【讨论】: