I'm trying to get my CC2540 to send out notifications at 50Hz.
What I've done is to make the following changes in simpleBLEPeripheral.c
#define SBP_PERIODIC_EVT_PERIOD 20
#define DEFAULT_ENABLE_UPDATE_REQUEST TRUE
#define DEFAULT_DESIRED_MIN_CONN_INTERVAL 8
#define DEFAULT_DESIRED_MAX_CONN_INTERVAL 8
#define DEFAULT_DESIRED_CONN_TIMEOUT 100
I'm looking at the time in btool and am only receiving notifications every 70-100ms.
First notification received at : 10:19:58.146
2nd notification received at: 10:19:58.232
3rd notification received at: 10:19:58.318
I've looked through about 500 packets, at different times of the day and most of the data appear to follow the same trend, so it can't be a random noise spike. Also, the CC2540 and the USB dongle are only about 5 cm apart.
As you can see, notifications are received at nowhere near the expected frequency of 50Hz (20ms period).
Would appreciate some help!