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.

Initial connection interval set from master

Other Parts Discussed in Thread: CC2541, CC2540

Hi There,

Is it possible to set the initial connection in central device. Each time I initiate a connection it sets initial connection interval to 100ms (0x50 as shown in image, 80 in decimal which indicates 80 X 1.25 = 100ms conn interval). 

Is it possible to change this value to some another value?

Regards,

Maulik

  • Hey Maulik,

    If you are using the cc254x as the central device then you will need to change the GAP parameters for the min/max connection intervals. You will be able to use GAP_SetParamValue(param, value) to change the parameters and the specific param macros you will use are TGAP_CONN_EST_INT_MIN and TGAP_CONN_EST_INT_MAX.

    The BLE spec defines the absolute connection interval min to be 7.5ms  (value passed to GAP_SetParamValue() would be 6) and the max to be 4s (value passed would be 3200). Look at the GAP_SetParamValue() calls in SimpleBLECentral_Init() of the simpleBLECentral project for an example of when and how to set those parameters.

    -Matt

  • Hi Matt,


    Thank you for your reply. that's what I was looking for.


    Just wanted to ask one more thing. What is the minimum practical connection interval. I am supposed to use UART of the CC2540/41 device(both as slave(cc2541) and master(cc2540)) along with connection. There are no any other peripheral I am using. I would like to establish minimum connection interval. Can I use 7.5 or 10 ms?


    Thanks,

    Maulik Patel

  • Hey Maulik,

    You should be able to achieve a 7.5ms conn interval with only one connection on your central side. If you have a lot of application processing on the central or if you add more connections then you may need to increase this interval.

    -Matt