Hi There,
I have been developing a BLE application with CC2540 and Nexus 5 with Android 4.4.2. Currently, I have an issue with min and max connection interval values. I am using SimpleGATTProfile and SimpleBLEPeripheral examples.
I am setting following variables on simpleBLEPeripheral.c
#define DEFAULT_ENABLE_UPDATE_REQUEST TRUE
#define DEFAULT_DESIRED_MIN_CONN_INTERVAL 6
#define DEFAULT_DESIRED_MAX_CONN_INTERVAL 12
I can read/write and send notification between the hardware device and Nexus 5 phone. However, when I try to write information to keyfob from Nexus phone in 19 byte chunks, I can write data every 100 ms instead of 7.5 ms. I debug my code on keyfob and saw that I am setting min conn interval to 6 which is 7.5 ms. However, on physical channel it is still 100 ms which is not expected. When I check the BLE channel by using USB 2540 and TI Packet Sniffer, I can NOT see any information about DEFAULT_ENABLE_UPDATE_REQUEST and setting channel min conn interval to 7.5 ms. Instead of that I am seeing a packet as in the image:
With a little bit search on the Internet, Android OS should take care of setting connection interval for the channel. I would extremely happy if you can give a hand for this issue.
Thank you so much
