Hi,
I want to advertise in variable intervals and mostly only one advertisement at a time. I planned to do it like this:
1- start advertising with any interval (e.g., 100msec) in non-connectable mode
2- in the radio INACTIVE notification handler use sd_ble_gap_adv_stop()
3- start again whenever needed, and repeat the steps
The problem that I noticed is that the program will enter radio_notification_evt_handler only after the 2nd advertisement (e.g., t=0 1st adv and t=100msec 2nd adv).
However, if I stop adv after 50msec for example and then again start adv, the handler will be called after the 1st adv too.
Any idea why this happens?
Also, how long after the transmit is completed, the handler will be called? My understanding was that it should be exactly after the packet is sent, but I'm seeing delays up to 15msec between NRF_SUCCESS return from start_advertising and entering the radio_notification_evt_handler. Does adv taked 15msec to complete? I think it should be around 4-5msec.
I'm using nRF51 SDK 9.