<?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>How to disable radio notification after enabling it</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14322/how-to-disable-radio-notification-after-enabling-it</link><description>Hi, 
 In my application I need radio notification only during connection. When connection is dropped the peripheral goes to advertising mode and here i disable the radio notification. But it looks like the notification is not disabled since I see the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Jun 2016 11:06:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14322/how-to-disable-radio-notification-after-enabling-it" /><item><title>RE: How to disable radio notification after enabling it</title><link>https://devzone.nordicsemi.com/thread/54679?ContentTypeID=1</link><pubDate>Tue, 21 Jun 2016 11:06:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:601613eb-39e6-4011-9afc-301cc9e53e4a</guid><dc:creator>&amp;#216;yvind Karlsen</dc:creator><description>&lt;p&gt;This was with S132 using SDK 11, what version of SD110, SD130 and SDK are you using? The current draw is due to the chip not being able to sleep, likely due to a pending interrupt.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable radio notification after enabling it</title><link>https://devzone.nordicsemi.com/thread/54682?ContentTypeID=1</link><pubDate>Tue, 21 Jun 2016 10:27:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04c44cd1-83b0-4d26-ba3e-5f8d8b3a4712</guid><dc:creator>&amp;#216;yvind Karlsen</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Firstly NRF_RADIO_SIGNAL_CALLBACK_ACTION_END ends the ongoing timeslot, but not the timeslot session (timeslot events occur in the context of a timeslot session, please refer to the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.sds/dita/softdevices/s130/concurrent_multiprotocol_tsl_api/radio_tsl_api.html?cp=2_3_0_0_8_1_5"&gt;SoftDevice Specification&lt;/a&gt;), this means that you will not get an NRF_EVT_SESSION_CLOSED. If you at some point call sd_radio_session_close() you must call sd_radio_session_open(handler) again to be able to open a timeslot event.&lt;/p&gt;
&lt;p&gt;I am not able to reproduce your issue, I have modified a version of the ble_app_template example to use radio notification and timeslots. Please refer to my code below. In order to see correct current draw I made sure to sleep by calling&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;__SEV();
__WFE();
__WFE();
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Instead of sd_app_evt_wait();. Please see &lt;a href="https://devzone.nordicsemi.com/question/1555/how-do-you-put-the-nrf51822-chip-to-sleep/#reply-1589"&gt;this thread&lt;/a&gt;. I measured the current using a N6705B DC Power Analyzer.&lt;/p&gt;
&lt;p&gt;I set a flag using GPIO to enable/disable radio notifications on the next timeslot, which I also trigger by GPIO. I&amp;#39;ve also made some simplifications to the example given in the answer above&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;int main(void)
{
    uint32_t err_code;
    bool erase_bonds;

    // Initialize.
    timers_init();
    buttons_leds_init(&amp;amp;erase_bonds);
    ble_stack_init();
    device_manager_init(erase_bonds);
    gap_params_init();
    advertising_init();
    services_init();
    conn_params_init();
    
    enable_radio_notification = false; // Set Radio Notification enable flag to false
    err_code = sd_radio_notification_cfg_set(NRF_RADIO_NOTIFICATION_TYPE_INT_ON_ACTIVE, NRF_RADIO_NOTIFICATION_DISTANCE_800US);   //Configure only once
    APP_ERROR_CHECK(err_code);
        
    application_timers_start();
    
    err_code = ble_advertising_start(BLE_ADV_MODE_FAST); // Start execution.
    APP_ERROR_CHECK(err_code);
    
    err_code = sd_radio_session_open(timeslot_callback); // Create timeslot session
    APP_ERROR_CHECK(err_code);
    
    // Enter main loop.
    for (;;)
    {
        __SEV();
        __WFE();
        __WFE();
    }
}


nrf_radio_signal_callback_return_param_t * timeslot_callback(uint8_t signal_type)
{
    static nrf_radio_signal_callback_return_param_t signal_callback_return_param;

    switch(signal_type)
    {
      case NRF_RADIO_CALLBACK_SIGNAL_TYPE_START:
         signal_callback_return_param.params.request.p_next = NULL;           // End timeslot
         signal_callback_return_param.callback_action = NRF_RADIO_SIGNAL_CALLBACK_ACTION_END;

            
         nrf_gpio_pin_toggle(20); // For signal analyzer verification
        
         if(enable_radio_notification)                                                                                                               //Boolean flag to enable/disable radio notification
         {
             NVIC_ClearPendingIRQ(SWI1_IRQn);
             NVIC_EnableIRQ(SWI1_IRQn);
         } 
         else 
         {
             NVIC_ClearPendingIRQ(SWI1_IRQn);
             NVIC_DisableIRQ(SWI1_IRQn);
         }
            
         nrf_gpio_pin_toggle(20);
         break;

       default:
         break;
    }    
    return (&amp;amp;signal_callback_return_param);
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Please find attached in the main answer a folder containing images of the different current test cases. Note that the 800µA draw is due to the application not being power optimized, HFCLK is running, etc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable radio notification after enabling it</title><link>https://devzone.nordicsemi.com/thread/54681?ContentTypeID=1</link><pubDate>Tue, 21 Jun 2016 09:11:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:510e8a84-d972-43e5-8c42-66d77fbe0fca</guid><dc:creator>Arjun</dc:creator><description>&lt;p&gt;Øyvind, We are using Ampere meter method for measurement. That is sufficient for us to observe the problem. In order to observe with more accuracy one can increase  advertising interval or decrease scan window. In the slave example(where the bug is) we can easily see the current falling to uA range even with simple multimeter on bootup. But after a connection-disconnection sequence it does not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable radio notification after enabling it</title><link>https://devzone.nordicsemi.com/thread/54680?ContentTypeID=1</link><pubDate>Tue, 21 Jun 2016 07:00:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fec1b32-be4d-42d9-a522-0448b746ec6f</guid><dc:creator>&amp;#216;yvind Karlsen</dc:creator><description>&lt;p&gt;There are several methods in that tutorial, which one are you using and what equipment?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable radio notification after enabling it</title><link>https://devzone.nordicsemi.com/thread/54678?ContentTypeID=1</link><pubDate>Mon, 20 Jun 2016 13:39:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4548f62-25b6-4b12-8464-aa9da77f2666</guid><dc:creator>Arjun</dc:creator><description>&lt;p&gt;We are using measurement procedure as described in this tutorial -&amp;gt; &lt;a href="https://devzone.nordicsemi.com/tutorials/28/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;.  In order to observe current consumption variations we change advertising interval/ scan window.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable radio notification after enabling it</title><link>https://devzone.nordicsemi.com/thread/54677?ContentTypeID=1</link><pubDate>Mon, 20 Jun 2016 13:30:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f19f5f7-bc68-4f23-93c2-50bfd75bfe1c</guid><dc:creator>&amp;#216;yvind Karlsen</dc:creator><description>&lt;p&gt;Still working on this.&lt;/p&gt;
&lt;p&gt;Could you elaborate more about your current measurement setup?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable radio notification after enabling it</title><link>https://devzone.nordicsemi.com/thread/54676?ContentTypeID=1</link><pubDate>Fri, 17 Jun 2016 15:47:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c580afa-000a-4962-a488-582081b27d6c</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Thanks for looking into this Øyvind. The reason that we need radio notifications is that it is the only way that we found to sync accurately with the connection events. We tried using a timer, but it drifts over time with respect to the connection event.&lt;/p&gt;
&lt;p&gt;We tried your solution. &lt;code&gt;case NRF_RADIO_CALLBACK_SIGNAL_TYPE_TIMER0:&lt;/code&gt; is called after the SWI0 handler as expected. But after this &lt;code&gt;NRF_EVT_RADIO_SESSION_CLOSED&lt;/code&gt; is not received. Also when the next time a timeslot is tried to be opened, it always returns &lt;code&gt;NRF_ERROR_BUSY.&lt;/code&gt; Somehow          &lt;code&gt;signal_callback_return_param.callback_action = NRF_RADIO_SIGNAL_CALLBACK_ACTION_END;&lt;/code&gt; doesn&amp;#39;t seem to close the timeslot.&lt;/p&gt;
&lt;p&gt;Why are you particular about closing the timeslot this way? There is &lt;code&gt;sd_radio_session_close()&lt;/code&gt; API which can be used? Using this generates the &lt;code&gt;NRF_EVT_RADIO_SESSION_CLOSED&lt;/code&gt; and next time the timeslot can be opened, but we&amp;#39;re facing increased current consumption as mentioned.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve attached the radio_notif.c file that we are using in the question. Is your solution working for repeated use in your setup?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable radio notification after enabling it</title><link>https://devzone.nordicsemi.com/thread/54674?ContentTypeID=1</link><pubDate>Fri, 17 Jun 2016 12:43:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:895d9a7e-b9fc-4f2f-b3c1-40315ce9ad96</guid><dc:creator>&amp;#216;yvind Karlsen</dc:creator><description>&lt;p&gt;As stated in the answer below, if you initialize or deinitialize(essentially the same function) when you have a possibility of collision with SoftDevice activity you can/will run into problems.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable radio notification after enabling it</title><link>https://devzone.nordicsemi.com/thread/54675?ContentTypeID=1</link><pubDate>Fri, 17 Jun 2016 12:41:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12d7f1b5-8853-4595-9261-2c04d83c6f5a</guid><dc:creator>&amp;#216;yvind Karlsen</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Starting with a general answer for further reference:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If you have set up radio notifications and do not want to use it, clear the interrupt right after receiving it, this will cause CPU to wakeup once and add some extra current, but is a easy and low complexity solution. If you need to do something periodically there are better, simpler and more energy efficient solutions than using radio notifications. For instance you can use the application timer as described in &lt;a href="https://devzone.nordicsemi.com/tutorials/19/"&gt;this tutorial&lt;/a&gt;.&lt;/p&gt;
&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;&lt;code&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;/code&gt;&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;&lt;code&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;/code&gt;&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;. A simple timeslot signal handler that fulfills our purpose is:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrf_radio_signal_callback_return_param_t * timeslot_callback(uint8_t signal_type)
{
  static nrf_radio_signal_callback_return_param_t signal_callback_return_param;

  switch(signal_type)
  {
      case NRF_RADIO_CALLBACK_SIGNAL_TYPE_START:
	  
         signal_callback_return_param.params.request.p_next = NULL;
         signal_callback_return_param.callback_action = NRF_RADIO_SIGNAL_CALLBACK_ACTION_NONE;

         NRF_TIMER0-&amp;gt;INTENSET = TIMER_INTENSET_COMPARE0_Msk;                  // Timeslot timeout bookkeeper
         NRF_TIMER0-&amp;gt;CC[0] = m_slot_length - 1000;
         NVIC_EnableIRQ(TIMER0_IRQn);

         NVIC_EnableIRQ(SWI0_IRQn);                                           // Set artififical interrupt
         NVIC_SetPendingIRQ(SWI0_IRQn);

         break;
    
     case NRF_RADIO_CALLBACK_SIGNAL_TYPE_TIMER0:
     
         signal_callback_return_param.params.request.p_next = NULL;           // End timeslot
         signal_callback_return_param.callback_action = NRF_RADIO_SIGNAL_CALLBACK_ACTION_END;

	default:
	      break;
  }    
  return (&amp;amp;signal_callback_return_param);
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And the corresponding IRQ handler:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;void SWI0_IRQHandler(void){
	//Context where we can call SoftDevice functions
	uint32_t err_code = sd_nvic_ClearPendingIRQ(SWI0_IRQn);																						//Clear artifical IRQ
	APP_ERROR_CHECK(err_code);
	err_code = sd_nvic_DisableIRQ(SWI0_IRQn);																									//Disable artificial IRQ channel
	APP_ERROR_CHECK(err_code);

	if(enable_radio_notification)																												//Boolean flag to enable/disable radio notification
	{
		err_code = sd_nvic_ClearPendingIRQ(SWI1_IRQn);
		APP_ERROR_CHECK(err_code);
		err_code = sd_nvic_EnableIRQ(SWI1_IRQn);
		APP_ERROR_CHECK(err_code);
		err_code = sd_radio_notification_cfg_set(NRF_RADIO_NOTIFICATION_TYPE_YOURTYPEHERE, NRF_RADIO_NOTIFICATION_DISTANCE_YOURDISTANCEHERE);	//Set desired type and distance
		APP_ERROR_CHECK(err_code);
	} 
	else 
	{
		err_code = sd_nvic_ClearPendingIRQ(SWI1_IRQn);
		APP_ERROR_CHECK(err_code);
		err_code = sd_nvic_DisableIRQ(SWI1_IRQn);
		APP_ERROR_CHECK(err_code);
		err_code = sd_radio_notification_cfg_set(
		NRF_RADIO_NOTIFICATION_TYPE_NONE, NRF_RADIO_NOTIFICATION_DISTANCE_NONE);
		APP_ERROR_CHECK(err_code);
	}
	sd_nvic_SetPendingIRQ(TIMER0_IRQn);               					//Trigger the timer interrupt to end the timeslot
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;To reiterate, this is a very complicated way of solving a relatively simple problem, make sure that you are absolutely sure that this is the way you want to solve the problem if you go down this road.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Øyvind&lt;/p&gt;
&lt;p&gt;EDIT:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/timeslot-case.rar"&gt;Current draw measurements&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable radio notification after enabling it</title><link>https://devzone.nordicsemi.com/thread/54673?ContentTypeID=1</link><pubDate>Thu, 16 Jun 2016 15:03:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bfb10dc-7c7c-4941-b2cd-2b485a49626b</guid><dc:creator>Arjun</dc:creator><description>&lt;p&gt;Great! Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable radio notification after enabling it</title><link>https://devzone.nordicsemi.com/thread/54672?ContentTypeID=1</link><pubDate>Thu, 16 Jun 2016 13:43:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fdcea61-6283-43ee-855c-3e37eb810331</guid><dc:creator>&amp;#216;yvind Karlsen</dc:creator><description>&lt;p&gt;I am still looking into this, will get back to you with a reply tomorrow.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable radio notification after enabling it</title><link>https://devzone.nordicsemi.com/thread/54671?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2016 11:36:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84f43106-2704-43c7-b499-b7afd7e0545c</guid><dc:creator>Arjun</dc:creator><description>&lt;p&gt;Hi Karlsen, Any update regarding the issue? Were you able to reproduce what I was talking about?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable radio notification after enabling it</title><link>https://devzone.nordicsemi.com/thread/54667?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2016 12:12:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6785596d-00ae-4487-8f4d-f9b561d1e9f0</guid><dc:creator>&amp;#216;yvind Karlsen</dc:creator><description>&lt;p&gt;You are right, that was a blunder on my part&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable radio notification after enabling it</title><link>https://devzone.nordicsemi.com/thread/54670?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2016 11:41:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c8ba768-c36a-4333-a473-b9755c76c602</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Hi Øyvind, Isn&amp;#39;t the timeslot_callback called in priority 0 meaning that sd_*** calls can&amp;#39;t be made there?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable radio notification after enabling it</title><link>https://devzone.nordicsemi.com/thread/54666?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2016 11:21:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:654bd3c8-738f-4c6a-ad00-9fae031dbf89</guid><dc:creator>&amp;#216;yvind Karlsen</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;EDIT: I was wrong, will investigate some more.&lt;/p&gt;
&lt;p&gt;I will update the tutorials on radio notifications and timeslots later this week to the latest SDK/SD and attempt to improve clarity, feedback is very welcome.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable radio notification after enabling it</title><link>https://devzone.nordicsemi.com/thread/54669?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2016 09:33:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae160f90-6c9b-497a-a8af-5b0cd3d1c72c</guid><dc:creator>Arjun</dc:creator><description>&lt;p&gt;Hi Karlsen,&lt;/p&gt;
&lt;p&gt;I certainly have. Also you can see the example I have attached with the question. That should run on DK and you can observe the problem for slave device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable radio notification after enabling it</title><link>https://devzone.nordicsemi.com/thread/54668?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2016 09:30:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e8cb37e-f4ee-48be-97c0-7ec0e5ce61cd</guid><dc:creator>&amp;#216;yvind Karlsen</dc:creator><description>&lt;p&gt;Hi Arjun,&lt;/p&gt;
&lt;p&gt;Have you tried disabling the IRQ by calling&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;err_code = sd_nvic_Disable_IRQ(SW1_IRQn);
APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable radio notification after enabling it</title><link>https://devzone.nordicsemi.com/thread/54665?ContentTypeID=1</link><pubDate>Thu, 09 Jun 2016 14:21:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73b611ae-8636-452f-bec7-d4307adbc623</guid><dc:creator>Arjun</dc:creator><description>&lt;p&gt;Hi Anders,&lt;/p&gt;
&lt;p&gt;Please find the code you asked for. It shud run on DK. The bug appears for advertising device only. But if we get to know the issue i think we can use the same logic for our actual implementations.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable radio notification after enabling it</title><link>https://devzone.nordicsemi.com/thread/54664?ContentTypeID=1</link><pubDate>Wed, 08 Jun 2016 15:31:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb835126-76d4-454f-b252-66e3f53a7c00</guid><dc:creator>Arjun</dc:creator><description>&lt;p&gt;We are using custom boards.Since I cannot share the code Ill make a bare minimum version of software for DK, reproduce the bug and send the example to you as soon as possible. Again thanks for timely responses.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable radio notification after enabling it</title><link>https://devzone.nordicsemi.com/thread/54663?ContentTypeID=1</link><pubDate>Wed, 08 Jun 2016 14:57:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a01172e-3f86-4a19-a193-fec88b08fe8e</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;I see. Is the code running on a Dev Kit? If it does, i can try to run your code and see if i can figure something out&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable radio notification after enabling it</title><link>https://devzone.nordicsemi.com/thread/54662?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2016 14:33:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2ae6296-4d83-4dcf-98d6-1eb1a97e8146</guid><dc:creator>Arjun</dc:creator><description>&lt;p&gt;Scenario1: After bootup the device enters scanning(radio notification not enabled) the current varies between 11mA to few uA(microamps). My scan window is 500ms with interval of 1 second.
Note:If I decrease this scan window (say 10ms) much further then i can observe the device current vary from as low as 2uA to 11mA much easily)&lt;/p&gt;
&lt;p&gt;Scenario2: After bootup the device enters scanning and finds the peripheral and establishes connection (radio notification enabled). In connection state it draws a current ~4mA(7.5ms conn interval).  Now I switch off the peripheral to trigger disconnection.The master goes back to scanning(disabling the radio notification). This time the current varies between 3mA to 12mA. I cannot observe the device falling to uA current range.
Note: If I don`t enable the radio notification in connected mode, then the scanning mode power consumption is as expected. That is how I know that its the problem with enabling notification.&lt;/p&gt;
&lt;p&gt;I make sure after programming the devices i hard reset them to disable debug mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable radio notification after enabling it</title><link>https://devzone.nordicsemi.com/thread/54661?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2016 14:09:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c669a0cf-cbf6-483c-bcee-fde38298ff81</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;3mA can indicate that the chip is in debug mode. Do you see this  only after the disconnect? Can you describe the current draw during initial advertising, during connection, and after DC?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable radio notification after enabling it</title><link>https://devzone.nordicsemi.com/thread/54659?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2016 11:48:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b1d3f4b-259d-4aa4-acf3-cfa4147bb077</guid><dc:creator>Arjun</dc:creator><description>&lt;p&gt;Hey Anders,&lt;/p&gt;
&lt;p&gt;That was my first guess too.. I tried with clearing pending interrupt. But that did not solve the issue. And regarding current, It has constant base current of ~3mA, and goes higher during advertising and CPU tasks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable radio notification after enabling it</title><link>https://devzone.nordicsemi.com/thread/54660?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2016 10:58:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d12bb39a-b3e8-414d-a834-4ed98e32a6eb</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;Hi. How much current are you using after disconnect? The first thing i would check is if the SWI1_IRQn is pending. This would stop you from sleeping. Check the interrupt flag with a a debugger or add&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;err_code = sd_nvic_ClearPendingIRQ(SWI1_IRQn);
APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to the disable function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>