Hi,
I made a own service for a rotary dail in a peripheral(S110). This service send the speed, direction and a counter (all uint8) of de rotarydail in separate characteristics. This will be done by notifications. I have it developed and tested with the Master Control Panel. And it works great, each step is immediately visible.
Now I am working on a central (S120). I used the HRS_C_S120 as template and the rotarydail_c service is based on the battery_c service. It works and receive all the data only too slow. When I turn the rotarydail and stop it again. The central runs behind a number of steps. It take a few seconds before it receives the stop-value. But with the "Master Control Panel" there is no delay "visible".
When receiving a event in the "ble_evt_dispatch"-function, I toggle LED1. When the notification data is processed (send over UART) I toggle LED2. LED1 and LED2 light up at the "same" time. But before LED1 toggles again is about half a second. So the time between the notifications is about half a second. Why is this? Should I change the parameters? Or is the S130 faster?
used nRF51_SDK_9.0.0 with the parameters:
#define SCAN_INTERVAL 100ms
#define SCAN_WINDOW 50ms
#define MIN_CONNECTION_INTERVAL MSEC_TO_UNITS(8, UNIT_1_25_MS)
#define MAX_CONNECTION_INTERVAL MSEC_TO_UNITS(32, UNIT_1_25_MS)
#define SLAVE_LATENCY 0
#define SUPERVISION_TIMEOUT MSEC_TO_UNITS(3000, UNIT_10_MS)