Other Parts Discussed in Thread: CC2540
Hi All,
For CC2540 and IOS6,Do you know how to change the "default interval" to some slower time in order to save some energy of the peripheral devices?
Thank you and best regards,
Tony
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Other Parts Discussed in Thread: CC2540
Hi All,
For CC2540 and IOS6,Do you know how to change the "default interval" to some slower time in order to save some energy of the peripheral devices?
Thank you and best regards,
Tony
Hi Tony,
From the CC2540 side you can make an connection parameter update request upon connection establishment. For example, in simpleBLEPeripheral, this can be done by setting DEFAULT_ENABLE_UPDATE_REQUEST to TRUE.
I am not sure in the iOS side, but there's probably some options there.
Best Regards
I have tried this with iOS6 and it could not work. The iOS always disconnect after a few seconds after the connection is established if I set DEFUALT_ENABLE_UPDATE_REQUEST to TRUE. I have check the time setting and the only violation of Apple's requirement is the supervision timeout, which is 10s and Apple need it to be less then 6s. But even if I change that paramter to like 5s it still doesn't work. Has anybody tried this with success?
The connection interval set by iOS device in iOS6 is always 30ms which is a hugh burden to our device.
Hi,
If the service discovery is started from the iOS side immediately (usually does) once connected, the connection parameter update request could be suppressed which essentially causes a connection termination from the peripheral device. During the service discovery, you really would want a high connection interval so the discovery is performed quickly.
I suggest you issue GAPRole_SendUpdateParam() after the service discovery has been performed, or maybe 5 seconds after connection has been established.
Best Regards