【问题标题】:Web bluetooth application scanning for manufacturer data网络蓝牙应用程序扫描制造商数据
【发布时间】:2021-09-02 09:50:46
【问题描述】:

我想创建一个扫描广告数据(制造商数据)的网络蓝牙应用程序。我使用了 chrome for scaning advertisement 提供的示例。然而,它只给了我设备的 UUID,而不是制造商数据。

您知道是否可以扫描特定设备并获取其制造商数据?

【问题讨论】:

    标签: web-applications bluetooth bluetooth-lowenergy web-bluetooth


    【解决方案1】:

    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

    提交一个错误

    【讨论】:

    • 我可以在蓝牙内部看到我的 Ruuvi 传感器。但是,除非我连接到制造商数据,否则我看不到制造商数据。有时数据会弹出一秒钟然后消失,这很奇怪。我可以在 nrf Connect 上看到制造商数据。
    • 确保您的 Android 设备未与 Ruuvi 传感器配对,然后使用 NRF Connect 重试。你还能看到制造商数据吗?
    • 是的,我没有连接到传感器,我可以看到数据在变化。
    • 我想知道这是否是 Chromium 问题。请按照上述答案中的建议提交一份。
    猜你喜欢
    • 1970-01-01
    • 2021-07-05
    • 1970-01-01
    • 2015-03-03
    • 1970-01-01
    • 2018-03-25
    • 1970-01-01
    • 2014-10-12
    • 1970-01-01
    相关资源
    最近更新 更多