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

Change advertising data every interval with scanning

I can listen for radio inactive event according to this post https://devzone.nordicsemi.com/f/nordic-q-a/9137/change-advertising-every-time-event but I am scanning at the same time with scan window > 2 * advertising interval.  Is it possible for 2 advertising intervals to occur without getting a radio inactive event in between because the scan window occurs in between?  For example, I use scan interval=10s, scan window=100ms, advertising interval=40ms.  I don't want to set a periodic app timer to wake up just to change the advertising data.  I want to change the data while already awake to save power.

  • Hi Jeffereson, 

    You can configure the t_ndist smaller than t_gap and this will make sure that you will receive the event between the advertising events. 
    Please have a look at the Radio Notification chapter in the S132 specification document. 

    Please beware that if you set a scan interval of 10s, AFAIK, the scheduler will dedicate that 10s for the scanner and I don't think you would be able to schedule advertising events inside that period. 

    An option for your application, if you need to have full control over the advertising content, is to use timeslot  API and access the radio directly to send advertising packets. This way you have full control of what sending on advertising packets. 

Related