<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Radio Notification Problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63082/radio-notification-problem</link><description>I think I am having a problem with Radio Notification. I am not sure. I have an application where I need simultaneous “Central and Peripheral”. Device only needs to advertise and listen, it never connects. I started with “ble_app_hrs_rscs_relay” and modified</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 Jun 2020 12:45:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63082/radio-notification-problem" /><item><title>RE: Radio Notification Problem</title><link>https://devzone.nordicsemi.com/thread/257384?ContentTypeID=1</link><pubDate>Mon, 29 Jun 2020 12:45:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18f1ddc0-e6a2-46c5-a0c1-27f82ac9a2d5</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure why the notification type option was removed from the library. I assume it must have been done to simplify the API a bit. However, the SD function to enable radio notifications should pretty straight forward to use directly without the library, so I would suggest doing that instead.&lt;/p&gt;
&lt;p&gt;Eg., something like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void RADIO_NOTIFICATION_IRQHandler()
{ 
    // radio notification ISR
}

void radio_notification_enable()
{
    uint32_t  err_code;

    err_code = sd_nvic_ClearPendingIRQ(RADIO_NOTIFICATION_IRQn);
    APP_ERROR_CHECK(err_code);
    
    /* Interrupt priority is set to 6 by the Softdevice */
    err_code = sd_nvic_EnableIRQ(RADIO_NOTIFICATION_IRQn);
    APP_ERROR_CHECK(err_code);

    err_code = sd_radio_notification_cfg_set(NRF_RADIO_NOTIFICATION_TYPE_INT_ON_INACTIVE, 
                                             NRF_RADIO_NOTIFICATION_DISTANCE_NONE);
    APP_ERROR_CHECK(err_code);
}&lt;/pre&gt;&lt;/p&gt;
[quote userid="81150" url="~/f/nordic-q-a/63082/radio-notification-problem"]&lt;span&gt;&lt;/span&gt;That 10 ms corresponds to the 10 ms in the scan .interval.&lt;span&gt;&amp;nbsp; &lt;/span&gt;If I change the .interval to 20 ms is the interrupt changes to 20 ms.[/quote]
&lt;p&gt;I suspect the reason you are only getting radio notifications for the scan events and not the advertisement events may be that there is too little time between the events. Here is an excerpt from the Softdevice specification stating that notifications may be dropped if the distance is to short (&lt;a href="https://infocenter.nordicsemi.com/topic/sds_s132/SDS/s1xx/radio_notif/radio_notif.html"&gt;link&lt;/a&gt;):&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;When there is sufficient time between Radio Events (t&lt;sub class="ph sub"&gt;gap&lt;/sub&gt; &amp;gt; t&lt;sub class="ph sub"&gt;ndist&lt;/sub&gt;), both the ACTIVE and nACTIVE notification signals will be present at each Radio Event. &lt;a class="xref" href="https://infocenter.nordicsemi.com/topic/sds_s132/SDS/s1xx/radio_notif/radio_notif.html?cp=4_7_3_0_10_0#radio_notif__fig_zb5_zqn_ds"&gt;Two radio events with ACTIVE and nACTIVE signals&lt;/a&gt; illustrates an example of this scenario with two Radio Events.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Only enabling the nACTIVE signal or reducing tprep should increase the chance of getting a notification signal for every radio event.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>