【问题标题】:BlueZ 5.4 DBus API ConnectProfile GATT service UUIDBlueZ 5.4 DBus API ConnectProfile GATT 服务 UUID
【发布时间】:2013-04-12 08:28:23
【问题描述】:

如何使用带有 BlueZ 的 DBus API 连接到 GATT 服务?

我已使用 BlueZ DBUS API 发现设备、连接并发现 GATT 服务 UUID。

但是,当我尝试为 GATT 服务 UUID 之一连接配置文件时,我收到错误。

【问题讨论】:

    标签: dbus bluetooth-lowenergy bluez


    【解决方案1】:

    从 BlueZ 邮件列表中得到了答复:

    “到目前为止,BlueZ 5.x 中还没有 GATT D-Bus API。唯一的方法是 在 BlueZ 5.x 中访问 GATT 配置文件正在使用现有的配置文件特定 D-Bus API(温度计、心率、接近度、骑行速度、HID 通过 GATT)或使用 C API(就像 gatttool 一样)。” (http://marc.info/?l=linux-bluetooth&m=136656873604635&w=2")

    BlueZ 5.4 不支持此功能

    【讨论】:

    • 您找到解决方案了吗?有一个gap-gatt-profile,但没有观察者。
    • @dashesy 还没有,我降级到 BlueZ 4.101,然后转用 gatttool。请参阅noble node.js BLE 库。我已经创建了一个示例。
    • 历史记录中,实验性 GATT D-Bus API 终于在 5.29 版中添加:git.kernel.org/cgit/bluetooth/bluez.git/tree/…
    猜你喜欢
    • 2016-08-25
    • 1970-01-01
    • 2019-08-08
    • 2014-01-08
    • 2023-02-11
    • 2019-02-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多