Android bluetooth low energy (ble) writeCharacteristic delay callback

前端 未结 4 2018
失恋的感觉
失恋的感觉 2021-02-06 16:10

I am implementing a application on Android using BLE Api (SDK 18), and I have a issue that the transfer data process is delay very slow. This is my log.

03-1

4条回答
  •  梦如初夏
    2021-02-06 16:33

    Performance of a BLE link is highly dependent on the connection interval used, and if your connection interval is high, the performance you see may not be that unreasonable. By the Core Specification, the connection interval can be between 7.5 ms and 4 s, so there's quite some flexibility.

    If it's possible for you, I'd recommend you to try changing the Peripheral you're talking to to use a shorter connection interval, which should improve performance. You may have use in taking a look at this page, explaining BLE throughput, and this page, explaining connection parameters.

提交回复
热议问题