简体   繁体   English

如何在iOS应用中快速写入BLE特性

[英]How to write to a BLE characteristic fast in an iOS app

I want to transfer some data (tens of KB) over BLE from iOS to a BLE peripheral device. 我想通过BLE将某些数据(数十KB)从iOS传输到BLE外围设备。 I use writeValue methods as specified here . 我使用这里指定的writeValue方法。 The preset connection interval of a peripheral is ~ 30ms. 外设的预设连接间隔为〜30ms。 However, after a bunch of GATT writes from my iOS app, the peripheral only gets 1 or 2 writes per seconds, which is way much slower than the expected value. 但是,从我的iOS应用程序进行大量GATT写入后,外围设备每秒仅获得1或2次写入,这比预期值要慢得多。 It seems iOS queues up the write in some way, and send it out with a much slower rate. iOS似乎以某种方式使写入排队,并以慢得多的速度发送出去。 Is there any way to increase the data rate? 有什么办法可以提高数据速率?

Check automatic connection update issued from your BLE device. 检查从BLE设备发出的自动连接更新。 This can happen and lower transmission rate can be set and this will slow down the transfer. 这可能会发生,并且可以设置较低的传输速率,这将减慢传输速度。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM