Hi, we're creating a BLE mouse. We've setup the HID service- clicking button 1 on the nrf52832DK sends left mouse button click- nothing else is being sent.
The problem: even though the connection interval is 6 * 1.25 ms (I've verified that the host device accepts this interval preference)- we're measuring a very high latency (average 80ms). Also, the pref. timeout is set to 100ms - we noticed the connection drop a few times- this means that latency is spiking to more than 100ms sometimes!
Peripheral pref. parameters:
Note that we're also making use of the UART Async API, Baud rate is set to 9600 and it transmits data every 200ms. Could UART be responsible for possibly degrading the connection?
Also, I've made UART uses 'timer 2', to make sure the BLE controller isn't affected by UART hogging up the default timer instance.
Here's the full config:
I'd love to get some help to debug this issue, thanks!