Did anybody know how I could determine the connection interval for a established ble connection between an android (4.4) central and a (e.g. nRF51822) peripheral?
Did anybody know how I could determine the connection interval for a established ble connection between an android (4.4) central and a (e.g. nRF51822) peripheral?
The simplest and cross platform way would be to have a characteristic that sets the link timing, this characteristic can be read or notified from the Peripheral. There is an example for this in the BLE over UART project for Arduino using the github.com/.../ble-sdk-arduino , see the ble_uart_project_template. You can view the XML file in that project using nRFgo studio and the Characteristic is called "UART link timing current". This example is for the nRF8001 however it should be trivial to do the same for the nRF51.
Unfortunately this is the best possible to directly find the connection interval. The other indirect method would be to send a read from the app and check the time it takes to get a read response.
Unfortunately this is the best possible to directly find the connection interval. The other indirect method would be to send a read from the app and check the time it takes to get a read response.