問題描述
我一直在修補(bǔ) BLE(藍(lán)牙低功耗)連接類最近有點(diǎn)安靜,并且無法使其傳輸數(shù)據(jù)的速度超過 1KB/5 秒.我相信,在文檔中,它說最大速度是每 20 毫秒 60 字節(jié).通過數(shù)據(jù)傳輸和每組數(shù)據(jù)包后的 Ack 傳輸計(jì)數(shù),我相信我們應(yīng)該能夠達(dá)到每秒 1.5KB 的速度.所以我的代碼比它應(yīng)該慢了大約 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 中進(jìn)行數(shù)據(jù)傳輸.如果比我快,你能達(dá)到什么樣的速度?
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,你會(huì)看到需要一個(gè)連接更新請求來加速你的連接.
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
希望能幫到你
羅馬
這篇關(guān)于iPhone 4S - BLE 數(shù)據(jù)傳輸速度的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!