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.

CC2640R2L: Some issues about updating broadcast function.

Part Number: CC2640R2L
Other Parts Discussed in Thread: CC2640

Hi team,

Here's the questions from the customer:

Does CC2640R2L have a function to directly update broadcast content function like GAP_UpdateAdvertisingData() in CC2640?

I didn't find any definition of this function in CC2640R2L SDK. If there is no such function, how can I update the content data of the broadcast?

 

Could you help check this case? Thanks.

Best Regards,                                                       

Nick    

  • Hi Nick,

    Thank you for reaching out. Could you provide some additional details that may help us resolve this in a timely manner? Which SDK version is being used? Is this BLE or BLE5 stack being used here? Which example is this occurring on?

    Best Regards,

    Jan

  • Hi Jan,

    Customer was using C:\ti\simplelink_cc2640r2_sdk_4_30_00_08\examples\rtos\CC2640R2_LAUNCHXL\ble5stack\simple_peripheral.

    What's more, how about using C:\ti\simplelink_cc2640r2_sdk_4_30_00_08\examples\rtos\CC2640R2_LAUNCHXL\blestack\simple_peripheral?

    Regards and thanks.

    Nick

  • Hi Nick,

    Got it. Thank you for clarifying. Can you specify what kind of broadcasting data the customer would like to update? If they simply want to update the advertising data, then the function that was discussed earlier should suffice.

    Best Regards,

    Jan

  • Hi Jan,

    Customer is going to broadcast it with new custom data after triggering the button during the broadcast. So is there a function to directly modify the broadcast content, like GAP_UpdateAdvertisingData();  function.

    What method should he use to update the broadcast data, is there any example?

    Best Regards,

    Nick

  • Hi Nick,

    My apologies, I see now that the customer is using the BLE5stack now. There is no single function in the BLE5 stack to update the advertising data like GAP_UpdateAdvertisingData(). However, the process for updating advertising or scanning data is still very straightforward. In order to change advertising data, the customer will need to use the GapAdv_prepareLoadByHandle() and the GapAdv_loadByHandle() functions in order to update the data. Essentially, the customer will need to call the GapAdv_prepareLoadByHandle() function first, modifying the advertData variable, and the calling the GapAdv_loadByHandle() function. The documentation in the linked API guide provides specific instructions for how to use the functions.

    Best Regards,

    Jan