問題描述
我一直在修補 BLE(藍牙低功耗)連接類最近有點安靜,并且無法使其傳輸數據的速度超過 1KB/5 秒.我相信,在文檔中,它說最大速度是每 20 毫秒 60 字節.通過數據傳輸和每組數據包后的 Ack 傳輸計數,我相信我們應該能夠達到每秒 1.5KB 的速度.所以我的代碼比它應該慢了大約 7-8 倍.
I've been tinkering around with the BLE (Bluetooth Low Energy) connectivity classes quiet a bit lately and haven't been able to make it transfer data any faster than 1KB / 5 seconds. I believe, in the documentation, it says the max speed is 60 bytes per 20 milliseconds. With data transfer and counting the Ack transfer after each set of packets, I believe we should be able to go as fast as 1.5KB per second. So my code is around 7-8 times slower than it should be.
我只是想知道是否有人能夠像文檔所說的那樣快速地在 BLE 中進行數據傳輸.如果比我快,你能達到什么樣的速度?
I'm just wondering if anyone has been able to do data transfer in BLE as fast as the documentation says it should be able to do. What sort of speed are you getting if faster than mine?
非常感謝
推薦答案
查看apple的guidlines,你會看到需要一個連接更新請求來加速你的連接.
see at the guidlines of apple and you will see that a connection update request is required to speed up your connection.
https://developer.apple.com/hardwaredrivers/BluetoothDesignGuidelines.pdf
我有 min=20ms max 40 ms
I have min=20ms max 40 ms
希望能幫到你
羅馬
這篇關于iPhone 4S - BLE 數據傳輸速度的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!