bluetooth - Android BLE, Writing and Reading from the same device, without loss throughput and time -


i'm currentily developing application uses bluetooth low energy communicate ble device. problem project require high continuous exchange of data working.

currently i've developed 4 fragments share same bluetoothgatt istance , same data array. when connect ble device, set connection priority high, start writing loop writes data, 4 bytes, every 50 mls.

at same time start reading , update interface. i've noticed if stop writing receive packet of data every 50 mls, if let writing loop working reading time increase 50mls 100 or more. that's not real big problem reduce sistem performances.

i looked on internet solutions didn't find nothing, except connection priority helped me lot, i'd know if have never managed such problems , how did it. thanks

ble device using has called "connection interval". set in firmware of device. minimal value 7.5ms, set 30ms or more (ios not work intervals lower 20-30ms or miss packets).

so when ble device firmware designed, connection interval set value safe , work mobile devices, , important save battery.

al means can transfer to, or device once per connection interval, no mater if read, write or notification.

some devices has configuration settings allows changing of connection interval, if wanted know happens, thats it.


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -