<?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>BLE advertising events</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86832/ble-advertising-events</link><description>Hi, 
 Since BLE advertising consumes current, I want to stop sampling ADC data during BLE is advertising. Are there any BLE events to know when advertising happens or are there any ways, how to ignore the samples during ble transmission. 
 
 Regards,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 25 Apr 2022 12:12:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86832/ble-advertising-events" /><item><title>RE: BLE advertising events</title><link>https://devzone.nordicsemi.com/thread/364709?ContentTypeID=1</link><pubDate>Mon, 25 Apr 2022 12:12:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63160f04-dfb3-4011-85a9-4062af393513</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Could you upload your code here so I can see how you plan to handle the sampling in your application?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE advertising events</title><link>https://devzone.nordicsemi.com/thread/364654?ContentTypeID=1</link><pubDate>Mon, 25 Apr 2022 09:36:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d387998-3e74-4aac-b84a-442f1d1f131a</guid><dc:creator>saravana0210</dc:creator><description>&lt;p&gt;O.3ms is the sampling period and advertisement happens every 500ms&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE advertising events</title><link>https://devzone.nordicsemi.com/thread/364612?ContentTypeID=1</link><pubDate>Mon, 25 Apr 2022 07:41:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e9a9759-5503-49aa-86c5-44c546988896</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Exactly how to ignore those samples is dependent on how you are currently using the SAADC driver in your code. How frequent will you need to&amp;nbsp; need to sample the voltage in your app?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE advertising events</title><link>https://devzone.nordicsemi.com/thread/364535?ContentTypeID=1</link><pubDate>Fri, 22 Apr 2022 17:47:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:406d7a77-68b1-424c-ba0e-5fd644629c1b</guid><dc:creator>saravana0210</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;As per the below diagram, i will get notification before and after radio activity in handler so, i won&amp;#39;t be notified during the radio activity. in that case how can the samples be ignored during this radio activity .&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Correct me if i am wrong.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20220422_5F00_230206.jpg" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align:left;"&gt;Regards,&lt;/p&gt;
&lt;p&gt;Saravana&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE advertising events</title><link>https://devzone.nordicsemi.com/thread/362995?ContentTypeID=1</link><pubDate>Tue, 12 Apr 2022 11:06:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e964e19-6ebc-4c58-8465-5e3d6681c1e7</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Here is a snippet showing how you can use the radio notification API:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/*ISR triggered after protocol event end */

void RADIO_NOTIFICATION_IRQHandler()
{   
    //TODO: Perform a single SAADC sample
}

/* This function should be called right after ble_stack_init() */
static void radio_notification_enable()
{
    uint32_t err_code;

    err_code = sd_nvic_ClearPendingIRQ(RADIO_NOTIFICATION_IRQn);
    APP_ERROR_CHECK(err_code);

    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;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE advertising events</title><link>https://devzone.nordicsemi.com/thread/362812?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2022 10:49:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91fcef14-1110-4557-9a49-e5b999a1c325</guid><dc:creator>saravana0210</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am using external ADC and BLE&amp;nbsp; advertising interval is 500 ms and i want to stop sampling during this period how to use radio notification in my application.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;saravana&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE advertising events</title><link>https://devzone.nordicsemi.com/thread/362794?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2022 09:47:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39faeb47-3fe3-4f9c-b2fa-c5921cc87b23</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can trigger the SAADC sampling from the &lt;span&gt;&lt;a title="Radio Notification" href="https://infocenter.nordicsemi.com/topic/sds_s132/SDS/s1xx/radio_notif/radio_notification.html?cp=4_7_3_0_10"&gt;Radio Notification&lt;/a&gt;&lt;/span&gt; end signal if you don&amp;#39;t want the sampling to overlap with RADIO activity during advertisements.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>