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.

CC2340R5: CC2340 problem with connection Parameter Update Request.

Expert 1165 points

Part Number: CC2340R5
Other Parts Discussed in Thread: SYSCONFIG

Hi Ti Expert.

I have 2 questions about the connection parameter update request.

Question 1: about sending parameter update requests after connection establishment.

I made the following settings in syscfg,
When I used my mobile phone to establish a connection with the CC2340, I never saw a connection request update. According to the syscfg settings, the connection update should be executed six seconds after the connection is successful, but on the CC2340, I didn't seem to see it. this behavior.

At the same time, I searched the entire SDK for the following definitions and did not see them being used anywhere.

Question 2: After I used my mobile phone to establish a connection with CC2340,

I used BLEAppUtil_paramUpdateReq on CC2340 to update the connection parameter, but the status returned 2, and the connection interval was not successfully updated.

Now I can only send parameter update requests to CC2340 from the mobile phone, and then it can be updated.

so could you help to solve the above questions?

SDK version:V7.2

Thanks.

  • Hello Weli,

    Thanks for reaching out.

    At the moment this feature (parameter update requests) is not implemented from SysConfig. However, you can use the out-of-the-box button menu (through Serial Terminal) to execute a GAP_UpdateLinkParamReq(). From your second question, I can see you are already following a similar approach. The status = 0x02 refers to INVALIDPARAMETER and based on a quick test I have done it happens when the connection latency is set to more than 1. I will double check this internally with the team and come back to you as soon as possible. Could you please try with .connLatency = 0 or 1 and let me know if you get a SUCCESS status (0x00) back?

    BR,

    David.

  • Dear David,

    thanks for your reply.

    when i modify .connLatency to 0 or 1, it can return sucess(0x00).

    So if I need to change the connection interval after the connection is successful, I need to create a timer, and then execute GAP_UpdateLinkParamReq() after the connection is successful. right?

  • Hello Weli,

    Understood. Thanks for the confirmation.

    Yes, you can execute GAP_UpdateLinkParamReq() right after LINK_ESTABLISHED_EVENT using an interrupt callback function as it is done in the example.

    BR,

    David