Where to put connection interval change request in custom profile

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

I have a custom profile where I want to request a slower connection interval.

   

I am using HRS example to see how this is done.

   

In that example, the request is sent from a CYBLE_EVT_HRSS_NOTIFICATION_ENABLED event.

   

I can not find a similar event for a custom profile.

   

Does anyone know where I can put my code for this request?

   

Thanks,

   

Dale

0 Likes
2 Replies
Anonymous
Not applicable

Hi,

   

Use the CyBle_L2capLeConnectionParamUpdateRequest  on the peripheral side. (Refer to BLE Datasheet for more details on this API). This would trigger the CYBLE_EVT_L2CAP_CONN_PARAM_UPDATE_REQ on the Central. Now the central should call CyBle_L2capLeConnectionParamUpdateResponse  API to acknowledge the connection interval change request.

   

Regards,

   

-Madhu Sudhan

0 Likes
Anonymous
Not applicable

Hi @Madhu Sudhan, 

   

    I used this function because when I put the connection intervals between 1000 and 2000, the function does not send the request or else it loses connection. What can it be?

0 Likes