This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Advertising Time Frame control

Hi All

Working with my nRF52840 DK board and running the BLE Central & Peripheral\ Experimental CLI interface example, I customized my DEVICE_NAME to get it advertised as soon as the board is switched on. I noticed that the device stops advertising after around 150 seconds. I also read that this is due to BT 5 Specifications, but in my project, I need this name permanently advertised every time the device gets on and till switched off. Which expression/sentence/command should I edit and in which file of the example could I find it, so this modification could, later on, be part of the device firmware by executing a Secure DFU Bootloader process?

Thanks in advance

Parents
  • Which SDK version are you using, SDk v15.2.0?

    If its v15.2.0 then you should only have to change the APP_ADV_DURATION definition in main.c from 

    #define APP_ADV_DURATION                18000

    to 

    #define APP_ADV_DURATION                0

    for the nRF52840 to advertise without any timeout. 

    I didnt quite understand the part about DFU. Could you elaborate?

    Best regards

    Bjørn

Reply
  • Which SDK version are you using, SDk v15.2.0?

    If its v15.2.0 then you should only have to change the APP_ADV_DURATION definition in main.c from 

    #define APP_ADV_DURATION                18000

    to 

    #define APP_ADV_DURATION                0

    for the nRF52840 to advertise without any timeout. 

    I didnt quite understand the part about DFU. Could you elaborate?

    Best regards

    Bjørn

Children
Related