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.

CC2745R10-Q1: How to start two ADV set with public address and RPA address?

Part Number: CC2745R10-Q1


Tool/software:

Hi team,

To meet the requriement of CCC/ICCE/ICCOA, we have this feature on CC2642, but I want to know how to make it with CC2340 and CC2745.

Could you please give me an examples guide?

  • Hello Island, 

    I will need a few days to try this myself but using GapAdv_create() allows the user to customize the GapAdv_params_t struct. This allows for the specific adv set to be customized on various parameters. I checked and addrType is included as one of the params. See the GAP_ADV_PARAM_OWN_ADDRESS_TYPE parameter. 

    I will find some time to test this week. Let me know if you test in the meantime. 

    Thanks,
    Isaac

  • Hello Island, 

    I have tested that this works. 

    To enable this, the project must be set to RPA address type. The customer will need to create another advertising set. After this, the customer will call GapAdv_setParam, using the GAP_ADV_PARAM_OWN_ADDRESS_TYPE, and setting the value to 0x00 for the public ID. The first ADV set will be RPA and the second will be Public. 

    I have attached my example project to the E2E as well. Please use this to help explain this to the customer. The GapAdv_setParam function needs to be called before advertising begins, so the function is called before either ADV set is initiated. 

    Let me know if you have any questions. 

    basic_ble_LP_EM_CC2745R10_Q1_freertos_ticlang_RPA_PUB_ADVSets.zip

    Thanks,

    Isaac

  • Hi Isaac,

    Thanks for your effort, I can see two ADDR ADVs with SimpleLink Connect.

    But I have two futhure questions about the peripheral_start(), please reserve your time to answer:

    1. The position of the GapAdv_setParam().

    2. The param of the GapAdv_setParam(), it's not 

    Thank you.

  • Hello Island, 

    To enable two ADVs, one using RPA, and the other Public, you need to have the device default address to RPA. So, enabling ADV normally will yield an advertising set using RPA and using the GapADV_setParam before enabling an advertisement set will yield a Public ID if configured as such. 

    The commented-out section did not work. GapAdv_setParams needs to be called after the advertising set is initialized. 

    Thanks,

    Isaac