【问题标题】:Send/Receive Data using Gatttool (Bluetooth Low energy)使用 Gatttool 发送/接收数据(蓝牙低功耗)
【发布时间】:2018-08-20 07:01:43
【问题描述】:

我从 Linux 连接到具有蓝牙低功耗 (BLE 4.2) 的微控制器。 目前我可以通过 gatttool (-I) 和 bluetoothctl 连接,但我无法发送/接收数据。

我发现它无法将 rfcomm 与 BLE 一起使用。

如何接收数据?

【问题讨论】:

    标签: linux bluetooth-lowenergy


    【解决方案1】:

    我的问题已经解决了,想和大家分享一下。

    使用连接到设备后

    gatttool -b XX:XX:XX:XX:XX -I
    > char-read-uuid 2902
    > handle: 0x000b     value: 00 00  
    

    我已启用通知

     > char-write-req 000b 0100
    

    之后,我收到了从微控制器发送的所有数据。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-03-26
      • 2014-08-23
      • 1970-01-01
      • 1970-01-01
      • 2014-06-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多