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: CCS: CC26X2 How to configure scan response buffer in GAP

Part Number: LAUNCHXL-CC26X2R1
Other Parts Discussed in Thread: CC2640

Hi,

I'm trying to migrate from CC2640 to CC2652 and I'm in the process of replacing the old GapRole configuration with the new method as outlined by the migration guide here

However, I'm struggling with the scan response buffer configuration. According to the migration guide linked above, I need to replace the parameter GAPROLE_SCAN_RSP_DATA with the following API calls:

  1. GapAdv_loadByBuffer()
  2. GapAdv_prepareLoadByBuffer()
  3. GapAdv_loadByHandle()
  4. GapAdv_prepareLoadByHandle()
  5. GapAdv_getBuffer()

The way that the old project did the scan rsp data configuration is as follows:

// Set scanRspData
GAPRole_SetParameter(GAPROLE_SCAN_RSP_DATA, sizeof(scanRspData),scanRspData);
GAPRole_SetParameter(GAPROLE_ADVERT_DATA, sizeof(advertData),advertData);

However I'm not sure about which API calls, listed above, I need to replace these two lines with. Could you please offer any advice on this matter?

  • Hi!

    I'd be happy to help you.

    What you need to do is very well explained in the GAP Advertiser section on the User's Guide.

    This section is going to explain to you the steps that you need to take in your code to configure the GAP layer for advertising. As this section mentions, our example project simple_peripheral, contained in your SDK, is taken as an example. I recommend that you take a moment to look at an example and use it. It's normally here: C:\ti\simplelink_cc13x2_26x2_sdk_4_40_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\simple_peripheral. 

    Another great resource for you is our SimpleLink Academy. In particular, I believe you can benefit from the lab on Scanning and Advertising.

    I hope this helps.

    -Luis