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

sdk14 radio notification unstable

I am using radio notification to change every advertisement packet. Here is my code:

static void on_ble_radio_active_evt(bool radio_active) { if (radio_active) { advertising_data_init(); m_dynamic_adv_counter++; } }

int main(void) { ... err_code = ble_radio_notification_init(APP_IRQ_PRIORITY_LOW, NRF_RADIO_NOTIFICATION_DISTANCE_1740US, on_ble_radio_active_evt); ... }

advertising_data_init() simply fills the advertisement packet using the m_dynamic_adv_counter.

The advertisement packets are configured 1 second interval. So most of the time I can see the on_ble_radio_active_evt() gets called every 1 sec, and things are working as expected. But from time to time, this function gets called continuously for several seconds, eg, gets called 50 times in 5 seconds. Then it comes back to the normal once in a second frequency. How can I make this consistent? Is this a bug or I am doing something wrong?

Thanks for help.

Related