【问题标题】:Gatttool "Characteristic Write Request failed:" How to reduce fail timeout for read/write?Gatttool “Characteristic Write Request failed:” 如何减少读/写的失败超时?
【发布时间】:2016-01-21 14:27:27
【问题描述】:

我正在使用 bluez-4.101 从我的板上读取和写入特征。使用 gatttool。

有时我会收到 Characteristic Write Request failed: 或 read failed。

这些错误的频率大约是 2/10,我可以做些什么来充分证明,如果是正常情况,我想减少失败前的超时时间。

【问题讨论】:

    标签: bluetooth-lowenergy bluez read-write gatt characteristics


    【解决方案1】:

    如果您说频率不是 100%,那么这可能不是软件问题。相反,您可能需要将您的设备靠得更近一些,以减少干扰的可能性,或者您的广告设备具有更高的发射功率。

    不幸的是,没有通过 BlueZ 命令减少超时的选项。我猜你正在使用 gatttool 命令来询问另一端的 gatt 表。使用#gatttool --help-all 获取选项的完整列表,您会发现超时不是其中之一。

    【讨论】:

    • 感谢优素福的回复。我不确定我是否可以减少距离,用例大约是 8 9 米。
    猜你喜欢
    • 1970-01-01
    • 2023-03-29
    • 1970-01-01
    • 2020-01-25
    • 2018-04-28
    • 2012-03-15
    • 2017-03-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多