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

Radio Notification events issue

i am using Nrf52840 with SDK 132 and version 13.

here is the initialization

 ble_radio_notification_init(APP_IRQ_PRIORITY_LOW, NRF_RADIO_NOTIFICATION_DISTANCE_5500US, Radio_Event);

this is Event Handler

void Radio_Event(bool radio_active) 
{
	if (radio_active)
	{
        	NRF_LOG_INFO("BLE STOP!\r\n");
 		    sd_ble_gap_adv_stop();
	}
	else
	{
	        NRF_LOG_INFO(" Radio is inActive \r\n");
	}
}

the problem is Active Radio and inActive Radio events Loop. First time, i got radio active event, inside active radio i used sd_ble_gap_adv_stop(); to stop the Advertising. then he should not give me any kind of event. but i got loop of active and inactive events. but in real there is no advertising after calling the sd_ble_gap_adv_stop();

Thank you

Parents
  • sd_ble_gap_adv_stop() is working inside the else.. i have one question, in the definition ble_radio_notification_init i also changes in Notification type from both to active and also inactive., when i made only on active then i got only one notification of active radio. but when i change a type to inactive then i got the both notification on active and also on inactive which i think is not correct.

    ok so, i am using the BLE Relay Program. when i switch off the scanning then regarding to notification every things look ok. but with scanning i got continuous notification of active and inactive. is there any way that i can only catch the advertising notification ?

Reply
  • sd_ble_gap_adv_stop() is working inside the else.. i have one question, in the definition ble_radio_notification_init i also changes in Notification type from both to active and also inactive., when i made only on active then i got only one notification of active radio. but when i change a type to inactive then i got the both notification on active and also on inactive which i think is not correct.

    ok so, i am using the BLE Relay Program. when i switch off the scanning then regarding to notification every things look ok. but with scanning i got continuous notification of active and inactive. is there any way that i can only catch the advertising notification ?

Children
No Data
Related