【问题标题】:How to Set Linux BlueZ 5 Connection Parameters for Apple iOS Compatibility如何为 Apple iOS 兼容性设置 Linux BlueZ 5 连接参数
【发布时间】:2018-05-14 17:23:08
【问题描述】:

我看到我在 Linux 上的 Bluez 5.41 GATT 服务器和我的 iPhone 之间的 BLE 连接不可靠。连接正常,但有时会随机断开连接。

Apple 有一个文档指定了保持良好/可靠连接所需的最佳连接参数集:

https://developer.apple.com/library/content/qa/qa1931/_index.html

具体指以下参数:

There are certain rules and formulae that the parameters must follow. If the parameters do not comply with all of these rules, the parameter request may be rejected, or the stability and the performance of the connection may be compromised.

Interval Min ≥ 15 ms (multiples of 15 ms)
Interval Min + 15 ms ≤ Interval Max (Interval Max == 15 ms is allowed)
Interval Max * (Slave Latency + 1) ≤ 2 seconds
Interval Max * (Slave Latency + 1) * 3 < connSupervisionTimeout
Slave Latency ≤ 30
2 seconds ≤ connSupervisionTimeout ≤ 6 seconds

如何在 Linux 上为 BlueZ 设置这些 (hcitool / hciconfig?)。

谢谢。

【问题讨论】:

  • 查看/sys/kernel/debug/bluetooth/hci0 目录,其中驱动程序将其属性公开为普通文件,您可以通过向它们写入数据来调整这些值,例如echo 15 &gt; /sys/kernel/debug/bluetooth/hci0/conn_min_interval。我不确定从属延迟是否可用,或者它的名称可能不同。
  • 谢谢。请回答,我将奖励赏金。

标签: ios linux bluetooth bluetooth-lowenergy bluez


【解决方案1】:

Linux 内核将/sys/kernel/debug/bluetooth/hci* 中的许多实验性/高级属性公开为普通文件。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-03-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-08-31
    • 2021-04-02
    相关资源
    最近更新 更多