<?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 only after BLE radio</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/3481/radio-notification-only-after-ble-radio</link><description>I&amp;#39;d like to get a notification every time after the radio has been active (as shown as NACTIVE in the S110 rev 1.3 spec). How can I make this mappen? 
 I see two functions available: sd_radio_notification_cfg_set and ble_radio_notification_init .
Are</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Oct 2015 04:57:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/3481/radio-notification-only-after-ble-radio" /><item><title>RE: Radio notification only after BLE radio</title><link>https://devzone.nordicsemi.com/thread/12610?ContentTypeID=1</link><pubDate>Thu, 01 Oct 2015 04:57:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73c1759b-d0f5-4cda-98c0-65799c705f19</guid><dc:creator>ponlakshmi</dc:creator><description>&lt;p&gt;@kerem Hi Kerem have You Finally achieved what You want which means changing the advertising interval&lt;br /&gt;
(which is user defined) after an advertising start..Thanks in advance&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio notification only after BLE radio</title><link>https://devzone.nordicsemi.com/thread/12609?ContentTypeID=1</link><pubDate>Wed, 24 Jun 2015 10:52:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45e1e99d-7382-4611-b4ca-c3118ec477f2</guid><dc:creator>kerem</dc:creator><description>&lt;p&gt;Im setting the advertising interval inside advertising_init() via adv params, same as the ble_app_hrs example. But im getting the value from a characteristic, after i get on_disconnect(), im calling adv_init() and adv_start() with new params. I will try calling stop first thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio notification only after BLE radio</title><link>https://devzone.nordicsemi.com/thread/12608?ContentTypeID=1</link><pubDate>Wed, 24 Jun 2015 03:45:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20c881c1-88cd-4b15-8d43-2239dafc8c80</guid><dc:creator>Nikita</dc:creator><description>&lt;p&gt;How exactly did you change your advertising interval? Did you call stop/start?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/6665/can-i-change-ble_gap_adv_params_tinterval-after-start-advertising-sd_ble_gap_adv_start/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio notification only after BLE radio</title><link>https://devzone.nordicsemi.com/thread/12607?ContentTypeID=1</link><pubDate>Wed, 24 Jun 2015 03:38:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e117637-961d-4304-9d42-5fd8b263b453</guid><dc:creator>kerem</dc:creator><description>&lt;p&gt;Consecutive events, tested with different advertising intervals.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio notification only after BLE radio</title><link>https://devzone.nordicsemi.com/thread/12606?ContentTypeID=1</link><pubDate>Wed, 24 Jun 2015 03:28:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76168927-4aca-498d-a065-b8bc8e8554d8</guid><dc:creator>Nikita</dc:creator><description>&lt;p&gt;Do you mean the same time between radio_active and radio_inactive event? Or the time between consecutive radio_active or radio_inactive events?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio notification only after BLE radio</title><link>https://devzone.nordicsemi.com/thread/12605?ContentTypeID=1</link><pubDate>Wed, 24 Jun 2015 00:11:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d08bc2f-958d-4c70-80cd-731fc11403e5</guid><dc:creator>kerem</dc:creator><description>&lt;p&gt;No matter how I change the advertising period, I still get the same frequency in between radio_active and radio_inactive events.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio notification only after BLE radio</title><link>https://devzone.nordicsemi.com/thread/12602?ContentTypeID=1</link><pubDate>Sun, 31 May 2015 18:49:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42fe0109-246c-4b17-b744-9445340c75e4</guid><dc:creator>Sarah</dc:creator><description>&lt;p&gt;When I use this code with SDK 7.1, I get this warning:&amp;quot; warning: implicit declaration of function &amp;#39;ble_radio_notification_init&amp;#39; &amp;#39;is invalid in C99&amp;quot;. I don&amp;#39;t get compilation errors, but I cannot build the project.  Why could this be?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio notification only after BLE radio</title><link>https://devzone.nordicsemi.com/thread/12604?ContentTypeID=1</link><pubDate>Wed, 20 Aug 2014 13:14:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:943a8b1c-2cfb-4144-86a6-130c354abef4</guid><dc:creator>Geir Strand</dc:creator><description>&lt;p&gt;I have done some more debug&amp;#39;ing here, and the radio_active flag seems to be true if one has a connection active. Hence, there is no way to determine if the interrupt happens before or after the radio transmission. In addition, I tried using NRF_RADIO_NOTIFICATION_DISTANCE_NONE as (they way I see it) this would only happen after a radio transmission. However, by using this I get a parameter error in return.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio notification only after BLE radio</title><link>https://devzone.nordicsemi.com/thread/12603?ContentTypeID=1</link><pubDate>Wed, 20 Aug 2014 04:30:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86079b29-ef24-43fa-9a1b-4b504b087cec</guid><dc:creator>Nikita</dc:creator><description>&lt;p&gt;You can just use standard ble_radio_notification_init function, that already calling sd_radio_notification_cfg inside, it will generate interrupts on both inactive to active and active to inactive events and you can determine the event type with radio_active value in ble_on_radio_active_evt handler.&lt;/p&gt;
&lt;p&gt;UPD:&lt;/p&gt;
&lt;p&gt;NRF_RADIO_NOTIFICATION_DISTANCE_NONE can only be used when the event does not have a notification. NRF_RADIO_NOTIFICATION_DISTANCE parameter is only distance &lt;strong&gt;before&lt;/strong&gt; radio activity and there shoudn&amp;#39;t be delay with interrupt after radio activity. &lt;a href="https://devzone.nordicsemi.com/documentation/nrf51/6.0.0/s110/html/a01003.html#ga59b1a77ef6dcb1d75833e5c5f5251d58"&gt;Here&lt;/a&gt; is written: &amp;quot;The distance from the active notification to start of radio activity.&amp;quot;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I have done some more debug&amp;#39;ing here,
and the radio_active flag seems to be
true if one has a connection active.
Hence, there is no way to determine if
the interrupt happens before or after
the radio transmission.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Why? When ble_on_radio_active_evt handler will be called with (radio_active == true) it means that now after NRF_RADIO_NOTIFICATION_DISTANCE_XXX time will be radio activity. If ble_on_radio_active_evt handler will be called with (radio_active == false) it means that radio activity ended and now radio is inactive.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio notification only after BLE radio</title><link>https://devzone.nordicsemi.com/thread/12601?ContentTypeID=1</link><pubDate>Tue, 19 Aug 2014 19:52:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54bda4b3-00b0-492c-8328-204d4c340744</guid><dc:creator>kmorris</dc:creator><description>&lt;p&gt;So, just asking for clarification. If I use this example to set ble_radio_notification_init in conjunction with sd_radio_notification_cfg and set the TYPE to NRF_RADIO_NOTIFICATION_TYPE_INT_ON_INACTIVE, it will ignore the distance setting and provide a radio notification on inactive?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio notification only after BLE radio</title><link>https://devzone.nordicsemi.com/thread/12600?ContentTypeID=1</link><pubDate>Thu, 14 Aug 2014 12:20:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:091913d2-e1ec-48de-a560-7854944a225d</guid><dc:creator>Nikita</dc:creator><description>&lt;p&gt;Like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;bool current_radio_active_state = false;

void ble_on_radio_active_evt(bool radio_active)
{
    current_radio_active_state = radio_active;
}

static void radio_notification_init(void)
{
    uint32_t err_code;

    err_code = ble_radio_notification_init(NRF_APP_PRIORITY_LOW,
                                           NRF_RADIO_NOTIFICATION_DISTANCE_800US,
                                           ble_on_radio_active_evt);
    APP_ERROR_CHECK(err_code);
}


int main(void)
{
...
    radio_notification_init();
...
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>