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.

CC2652R: [RTLS]How to change the interval for non-connectable advertisements

Part Number: CC2652R

search all the configuration of CLAoA, just find the interval setting of connectable advertisements

// Minimum connection interval (units of 1.25ms, 80=100ms) for parameter update request
#define DEFAULT_DESIRED_MIN_CONN_INTERVAL     80

// Maximum connection interval (units of 1.25ms, 104=130ms) for  parameter update request
#define DEFAULT_DESIRED_MAX_CONN_INTERVAL     104

How to change interval setting of non-connectable advertisements

  • Hey Valery,

    Can you clarify which SDK you are using and which example project you are wanting to change the interval for?

    I've assigned your post to an expert to comment on.

  • I used rtls_responder on SDK5.2

  • Hi Valery,

    The periodic advertising interval should be changed on the rtls_responder side. In rtls_responder.c, the following code will allow to do so:

    // Periodic Advertising Intervals
    #define PERIDIC_ADV_INTERVAL_MIN    240  // 300 ms
    #define PERIDIC_ADV_INTERVAL_MAX    240  // 300 ms

    As a side note, the code you are referring to in your first message allows to change the connection interval (not the advertising interval).

    I hope this will help,

    Best regards,

  • Hi Clement,

       I used sniffer to check interval,  PERIDIC_ADV_INTERVAL just for CTE packet interval, but adv(37,38,39) still keep in 100ms

  • Hi,

    Correct, the code provided changes the interval between the periodic advertisements. If you want to change the interval between the non-connectable advertisements sent on the the primary channels, you should use the following code:

      // Create non connectable & non scannable advertising set #3
      GapAdv_params_t advParamNonConn = GAPADV_PARAMS_AE_NC_NS;
      
      advParamNonConn.primIntMax = 480; // default value is 160
      advParamNonConn.primIntMin = 480; // default value is 160
      
    
      // Create Advertisement set #3 and assign handle
      status = GapAdv_create(&RTLSResponder_advCb, &advParamNonConn,
                                                       &advHandleNCNS);

    I hope this will help,

    Best regards,