labapart / gattlib

Library to access GATT information from BLE (Bluetooth Low Energy) devices
http://labapart.com/
436 stars 157 forks source link

High latency at long intervals #223

Open alinouriz opened 3 years ago

alinouriz commented 3 years ago

In Ubuntu 20, I try using "write without response" and in response turning LED connected to the Bluetooth device RN4871(microchip). All works well. The issue is if I do multiple writes at short intervals (below 500ms) my latency (from sensing the write command in my PC to LED turning ON) is below 20ms, which is fine for my application. However for longer intervals, lets say 1 second between two write command, the latency can go up to 300ms! I tried to figure this out by changing the connection protocols and measuring the latency using different methods, all the same result!

Also I tried to create a stream for writing data but again the same issue remains.

I was wondering if anyone has any update on this issue.