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.

LAUNCHXL-CC26X2R1: Project 0 GAP Param Update Explanation

Part Number: LAUNCHXL-CC26X2R1

Hi,

I'm going through project zero.c for the CC26X2 4.40 SDK and I'm confused about the purpose the following code snippet is serving in the file:

// Configure GAP for param update
    {
        uint16_t paramUpdateDecision = DEFAULT_PARAM_UPDATE_REQ_DECISION;

        // Pass all parameter update requests to the app for it to decide
        GAP_SetParamValue(GAP_PARAM_LINK_UPDATE_DECISION, paramUpdateDecision);
    }

Specifically, what does it imply from an application standpoint when it says "Pass all parameter update requests to the app for it to decide"? How could this change for my custom application? What considerations need to be kept in mind if this has to change for my purpose?

  • Try to refer to connection interval section in

  • Hi,

    I'm looking for the answer. I'll reply in the next 24 to 48 hrs.

    Luis

  • Kartavya,

    Please take a look at the GAP Peripheral section on our user's guide. There, you will see that the snippet that you are referring to, is part of the initialization of the GAP layer.

    In particular, this step is used to tell the peripheral what to do when a central issues a connection parameter update. The options are to accept or deny all requests, or to pass the decision to the application. See the Gap_updateDecision_t type in gap.h. As to what considerations you keep in mind, one of them is the impact on your requirements of the connection parameters. A well designed application will have a range of acceptable connection parameters, among them the connection interval min/max, the peripheral latency and the supervision timeout.

    As Yikai mentioned, you will benefit greatly from doing the lab on Connections at our SimpleLink Academy, where connection parameters are discussed.

    I hope this helps. Happy coding,

    Luis