<?xml-stylesheet type="text/xsl" href="https://test-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/"><channel><title>Radio Notification</title><link>/guides/short-range-guides/b/software-development-kit/posts/radio-notification</link><description>Radio Notification
In this tutorial we will set up a beacon example and modify it to use radio notification. Then we will use radio notification to light a LED when the radio is transmitting.
While this is a relatively simple example, radio notific</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><item><title>RE: Radio Notification</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/radio-notification</link><pubDate>Sun, 03 Jan 2021 13:37:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d80e83cd-8258-431f-956a-1c32c30c8850</guid><dc:creator>user75889</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hello,&lt;br /&gt;I used this in an application that is both advertising and scanning, and I seem to get events from both.&lt;br /&gt;what I&amp;#39;m looking for is to get events only when i have an advertising burst. &lt;br /&gt;since I use both scan and advertising then I understand that some of the advertising events will be disabled and so I want to count them.&lt;br /&gt;I am using SDK v17.0.2 with nrf52840, is that possible?&lt;br /&gt;thanks.&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1172&amp;AppID=14&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Radio Notification</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/radio-notification</link><pubDate>Tue, 19 May 2020 04:00:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d80e83cd-8258-431f-956a-1c32c30c8850</guid><dc:creator>user82764</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;thank you!&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1172&amp;AppID=14&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Radio Notification</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/radio-notification</link><pubDate>Fri, 07 Apr 2017 07:07:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d80e83cd-8258-431f-956a-1c32c30c8850</guid><dc:creator>user13967</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I want to be notified when radio becomes active and inactive. How?&lt;/p&gt;
&lt;p&gt;If I use NRF_RADIO_NOTIFICATION_TYPE_INT_ON_BOTH when calling radio_notification_init(), how would I know which event happens in SWI1_IRQHandler()? The input parameter radio_evt is just a bool value.&lt;/p&gt;
&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1172&amp;AppID=14&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Radio Notification</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/radio-notification</link><pubDate>Mon, 20 Feb 2017 05:47:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d80e83cd-8258-431f-956a-1c32c30c8850</guid><dc:creator>user8101</dc:creator><slash:comments>0</slash:comments><description>&lt;pre&gt;void SWI1_IRQHandler(bool radio_evt)
&lt;/pre&gt;
&lt;p&gt;When would this ever be an argument of 0? When if ever does the softdevice call SWI1_IRQ but not as a radio_evt?&lt;/p&gt;
&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1172&amp;AppID=14&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Radio Notification</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/radio-notification</link><pubDate>Tue, 21 Jun 2016 13:55:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d80e83cd-8258-431f-956a-1c32c30c8850</guid><dc:creator>user6606</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;To disable radio notifications you have a few options, some fit certain solutions better than others. To ensure proper operation we need to heed the following sentence from the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.sds/dita/softdevices/s130/radio_notif/radio_notif.html?cp=2_3_0_0_10_0"&gt;SoftDevice specification&lt;/a&gt;.&lt;/p&gt;
&lt;pre&gt;To ensure that the Radio Notification signals behave in a consistent way, the Radio Notification 
shall always be configured when the SoftDevice is in an idle state with no protocol stack or 
other SoftDevice activity in progress. Therefore, it is recommended to configure the Radio 
Notification signals directly after the SoftDevice has been enabled.
&lt;/pre&gt;
&lt;p&gt;Start off by making sure that the first time it is initialized is in a section where the SoftDevice is not active, for example right after initialization.&lt;/p&gt;
&lt;p&gt;In the right context, radio notification can be disabled by calling:&lt;/p&gt;
&lt;pre&gt;// Deinitialize Radio Notification software interrupt
uint32_t ble_radio_notification_uninit(void)
{
    err_code = sd_nvic_ClearPendingIRQ(SWI1_IRQn);
    if (err_code != NRF_SUCCESS)
    {
        return err_code;
    }
    err_code = sd_nvic_DisableIRQ(SWI1_IRQn);
    if (err_code != NRF_SUCCESS)
    {
        return err_code;
    }
    return sd_radio_notification_cfg_set(NRF_RADIO_NOTIFICATION_TYPE_NONE, NRF_RADIO_NOTIFICATION_DISTANCE_NONE);
}
&lt;/pre&gt;
&lt;p&gt;This context limitations is the same as for the first initialization of the radio notifications, as described above. We need to find some context where there will not be any SoftDevice activity. Since we already have radio notifications set up it is simplest to call ble_radio_notification_uninit() inside itself. However if we want to restart it we will be faced with the problem of when/how to restart it.&lt;/p&gt;
&lt;p&gt;One of the tools available is a &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.sds/dita/softdevices/s130/concurrent_multiprotocol_tsl_api/tsl_usage_examples.html?cp=2_3_0_0_8_2"&gt;radio timeslot&lt;/a&gt; where radio activity is guaranteed to not occur. When using timeslots be aware that you cannot call SoftDevice functions in the signal handler as it &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.sds/dita/softdevices/s130/concurrent_multiprotocol_tsl_api/signal_handler_priority_0.html?cp=3_6_2_0_8_1_5_5"&gt;executes at priority 0&lt;/a&gt;.&lt;/p&gt;
&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1172&amp;AppID=14&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Radio Notification</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/radio-notification</link><pubDate>Mon, 06 Jun 2016 13:24:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d80e83cd-8258-431f-956a-1c32c30c8850</guid><dc:creator>user3550</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Once radio notification is enabled how to disable it? Could you please let me know.&lt;/p&gt;
&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1172&amp;AppID=14&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Radio Notification</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/radio-notification</link><pubDate>Sun, 05 Jun 2016 05:48:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d80e83cd-8258-431f-956a-1c32c30c8850</guid><dc:creator>user12611</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I understand and followed this article, but not works&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;environment. nRF51 DK board, SDK 10 example, Softdevice S110 v8.0.0&lt;/li&gt;
&lt;li&gt;Just beacon example: It works, LED1 blink&lt;/li&gt;
&lt;li&gt;Added radio notification: compile ok, but no LED blinks&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I got answer.
I should radio notification init after SoftDevice Init.&lt;/p&gt;
&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1172&amp;AppID=14&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Radio Notification</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/radio-notification</link><pubDate>Fri, 22 Apr 2016 08:46:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d80e83cd-8258-431f-956a-1c32c30c8850</guid><dc:creator>user7554</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;For SDK 11 be aware of &lt;a href="https://devzone.nordicsemi.com/question/71636/ble_radio_notification-wont-compile/"&gt;this bug&lt;/a&gt;.&lt;/p&gt;
&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1172&amp;AppID=14&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Radio Notification</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/radio-notification</link><pubDate>Mon, 15 Feb 2016 14:09:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d80e83cd-8258-431f-956a-1c32c30c8850</guid><dc:creator>user7796</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Do I need to disable the radio notifications before starting the bootloader?
If yes, you can I do this?&lt;/p&gt;
&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1172&amp;AppID=14&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Radio Notification</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/radio-notification</link><pubDate>Fri, 23 Oct 2015 07:12:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d80e83cd-8258-431f-956a-1c32c30c8850</guid><dc:creator>user8323</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;it&amp;#39;s great,thank you!&lt;/p&gt;
&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1172&amp;AppID=14&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>