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: Advertisement time

Part Number: LAUNCHXL-CC26X2R1


Hello,

As above i mentioned we are using cc26x2r1 board for BLE peripheral in which we want to advertise time for 7days so I used command 

GapAdv_enable(advHandleLongRange, GAP_ADV_ENABLE_OPTIONS_USE_DURATION, 68400000);

but not able to set it more tha 65535 sec so kindly help us

  • Hi,

    Thank you for reaching out.

    In  order to work around this limitation, I would suggest to either

    - enable 14 times advertising for 12 hours (43'200 seconds). When advertising is disabled after 12 hours, you'll receive a callback (that should be handled in a task context using some events) where you can count the number of times it has completed and turning it back on. You can refer to the simple_peripheral example showcasing this in the function SimplePeripheral_processAdvEvent, especially the case "GAP_EVT_ADV_END_AFTER_DISABLE"

    - enable unlimited advertising, then using RTC, stop advertising after 7 days

    Even if the first suggestion looks slightly more complex, I would recommend it as it reduces the overall system complexity.

    I hope this will help,

    Best regards,

  • My advertisement duration is 1 sec. so if i enable for 14 times then it will take on 14 sec so might be not possible for this.

  • Hi again,

    My advertisement duration is 1 sec. so if i enable for 14 times then it will take on 14 sec so might be not possible for this.

    I am not sure I got the sense of your last answer. May I kindly ask you to develop it?

    Best regards,