<?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>Completely disabling bluetooth.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/3198/completely-disabling-bluetooth</link><description>Hey! 
 I&amp;#39;m working on a device which requires Bluetooth to be completely disabled for short periods of time. It&amp;#39;s got a sensor in it that&amp;#39;s sensitive to 2.4 GHz radiation. Chip is nRF51822, SoftDevice is S110 v6.0.0. 
 I disable Bluetooth using the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Mar 2018 01:34:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/3198/completely-disabling-bluetooth" /><item><title>RE: Completely disabling bluetooth.</title><link>https://devzone.nordicsemi.com/thread/122371?ContentTypeID=1</link><pubDate>Thu, 01 Mar 2018 01:34:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f76cd3e-7f28-43a4-836b-0461ccc509dd</guid><dc:creator>Steph van Schalkwyk</dc:creator><description>&lt;p&gt;Have there been any new(er) development on this question? I have to turn off the RF - hopefully completely - so the MCU can be used to drive other peripherals. Is this possible? Should I just use another M0?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Completely disabling bluetooth.</title><link>https://devzone.nordicsemi.com/thread/11766?ContentTypeID=1</link><pubDate>Tue, 22 Aug 2017 14:33:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8054b589-2f6c-4320-bda4-8c5b7bbc1d8f</guid><dc:creator>saiteja</dc:creator><description>&lt;p&gt;hi if i use 	
NRF_RADIO-&amp;gt;TASKS_DISABLE = 1; my device going to RESET.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Completely disabling bluetooth.</title><link>https://devzone.nordicsemi.com/thread/11765?ContentTypeID=1</link><pubDate>Wed, 10 Aug 2016 09:14:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2c3acc6-3058-4bc6-b45d-20d47c35f901</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Are you sure that you actually disconnected (did you get the disconnected event)? And did the stop advertising function return successfully? Remember to always check the return codes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Completely disabling bluetooth.</title><link>https://devzone.nordicsemi.com/thread/11762?ContentTypeID=1</link><pubDate>Tue, 02 Aug 2016 19:00:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b93d1a5-3339-4fa3-b1c9-fc646bab1105</guid><dc:creator>ALi</dc:creator><description>&lt;p&gt;when tow boards (central and peripheral) has connected together,
I disconnect and stop advertising but they are still connected and I can send data over NUS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Completely disabling bluetooth.</title><link>https://devzone.nordicsemi.com/thread/11764?ContentTypeID=1</link><pubDate>Tue, 02 Aug 2016 13:50:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cac02143-ae14-4c42-9bea-dda254a5ea8b</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;See my &lt;a href="https://devzone.nordicsemi.com/question/13984/completely-disabling-bluetooth/?answer=61297#post-id-61297"&gt;answer&lt;/a&gt; (an give an upvote if you like). This answer is not correct.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Completely disabling bluetooth.</title><link>https://devzone.nordicsemi.com/thread/11763?ContentTypeID=1</link><pubDate>Tue, 02 Aug 2016 13:41:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:978ede4b-35e4-4c2a-91df-694e103eada0</guid><dc:creator>ALi</dc:creator><description>&lt;p&gt;NRF_RADIO-&amp;gt;TASKS_DISABLE = 1;
is output register (__O)
and i use S130 and this trick doesn&amp;#39;t work for me&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Completely disabling bluetooth.</title><link>https://devzone.nordicsemi.com/thread/11772?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2016 14:21:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53f09432-7092-406b-af82-c384af08808d</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;This question is not related to this thread. I suggest that you search for the answer on this forum or make a new question/thread if you don&amp;#39;t find the answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Completely disabling bluetooth.</title><link>https://devzone.nordicsemi.com/thread/11771?ContentTypeID=1</link><pubDate>Wed, 06 Jul 2016 13:32:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f753ece-eb57-443b-bd05-d87c4112c218</guid><dc:creator>Thangaraj</dc:creator><description>&lt;p&gt;Hi Ole,
I could not see any difference in power consumption in the following cases,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Connected or Advertsing -&amp;gt;BLE ON
2)Not connected and not advertising&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Should we do any other changes to reduce power consumption from Radio, I use S132 and NRF52 target.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Completely disabling bluetooth.</title><link>https://devzone.nordicsemi.com/thread/11770?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2015 15:26:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01e6c13b-3e79-41eb-948c-645480927d2e</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;I reopened this case because the answers are not totally correct.&lt;/p&gt;
&lt;p&gt;First: The radio peripheral is blocked by the SoftDevice, so the call &lt;code&gt;NRF_RADIO-&amp;gt;TASK_DISABLE = 1&lt;/code&gt; will not have any effect if the SoftDevice is enabled. Worst case it will lead to a hardfault. The peripherals that are used by the SoftDevice and either blocked or restricted can be seen &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.130.sds.v1.0.0/sd_resource_reqs/hw_block_interrupt_vector.html?cp=2_7_2_0_10_2"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Second: When the SoftDevice is done sending or receiving packets on the radio, it will call &lt;code&gt;NRF_RADIO-&amp;gt;TASK_DISABLE = 1&lt;/code&gt;, probably this is done automatically with PPI. It will also turn off the radio peripheral with &lt;code&gt;NRF_RADIO-&amp;gt;POWER = 0&lt;/code&gt; to additionally save power. When it is going to send a packet it will turn the radio peripheral on and call &lt;code&gt;NRF_RADIO-&amp;gt;TASK_ENABLE = 1&lt;/code&gt;. Calling &lt;code&gt;NRF_RADIO-&amp;gt;TASK_DISABLE = 1&lt;/code&gt;in the meantime will not change this.&lt;/p&gt;
&lt;p&gt;To know that the radio is off, you have to make sure that you are not in a connection and not advertising. You can disable the SoftDevice also, but this is not necessary.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Completely disabling bluetooth.</title><link>https://devzone.nordicsemi.com/thread/11761?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2015 15:19:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebb0a882-99be-47ef-9685-c13a7714c64c</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Adding NRF_RADIO-&amp;gt;TASK_DISABLE = 1 won&amp;#39;t do anything for two reasons: First of all when the SoftDevice is enabled, the Radio registers are not accessible (unless using the Timeslot API), see &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.130.sds.v1.0.0/sd_resource_reqs/hw_block_interrupt_vector.html?cp=2_7_2_0_10_2"&gt;here&lt;/a&gt;. Second the TASK_DISABLE is most likely connected to the END event through something called SHORTS in the RADIO registers. This means that the radio is automatically disabled when a packet is sent or received, meaning it will be disabled most of the time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Completely disabling bluetooth.</title><link>https://devzone.nordicsemi.com/thread/11769?ContentTypeID=1</link><pubDate>Sun, 02 Aug 2015 16:11:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5454989-658a-41be-b0c5-32eca17824f7</guid><dc:creator>Gigel</dc:creator><description>&lt;p&gt;In addition to Jock Murphy&amp;#39;s comment, you might need to add &amp;quot;NRF_RADIO-&amp;gt;TASKS_DISABLE = 0;&amp;quot; in function &amp;quot;bluetooth_wake()&amp;quot;...
From the specs it is not clear if implementation of the &amp;quot;advertising_start()&amp;quot; also enables the radio task.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Completely disabling bluetooth.</title><link>https://devzone.nordicsemi.com/thread/11768?ContentTypeID=1</link><pubDate>Wed, 24 Jun 2015 22:40:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f229beb0-f2cb-4bd3-83bd-79ed4f1147a6</guid><dc:creator>Jock Murphy</dc:creator><description>&lt;p&gt;I think you mean &lt;code&gt;NRF_RADIO-&amp;gt;TASKS_DISABLE = 1;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Completely disabling bluetooth.</title><link>https://devzone.nordicsemi.com/thread/11767?ContentTypeID=1</link><pubDate>Thu, 28 Aug 2014 00:59:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:958ad531-e355-43f1-9164-e23722b0881b</guid><dc:creator>Anne</dc:creator><description>&lt;p&gt;Here are my sleep and wake functions in case anyone else would find them useful.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint32_t bluetooth_sleep(void)
{
	uint32_t err_code;

	// If connected, disconnect
	if (m_conn_handle != BLE_CONN_HANDLE_INVALID)
	{
		err_code = sd_ble_gap_disconnect(m_conn_handle,  BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION);
		if (err_code != NRF_SUCCESS) return err_code;
	}

	// Stop advertising
	err_code = sd_ble_gap_adv_stop();
	if (err_code != NRF_SUCCESS) return err_code;

	// Disable the radio tasks as scytulip suggested
	// &lt;a href="https://devzone.nordicsemi.com/question/13984/completely-disabling-bluetooth/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;
	NRF_RADIO-&amp;gt;TASKS_DISABLE;

	return NRF_SUCCESS;
}

uint32_t bluetooth_wake(void)
{
	uint32_t err_code;

	err_code = advertising_start();
	if (err_code != NRF_SUCCESS) return err_code;

	return NRF_SUCCESS;
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Completely disabling bluetooth.</title><link>https://devzone.nordicsemi.com/thread/11760?ContentTypeID=1</link><pubDate>Thu, 28 Aug 2014 00:53:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db6786c4-21ec-460b-8b83-163a941200a9</guid><dc:creator>Anne</dc:creator><description>&lt;p&gt;I finally got a chance to test it and it works fine for me too ^^&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Completely disabling bluetooth.</title><link>https://devzone.nordicsemi.com/thread/11759?ContentTypeID=1</link><pubDate>Tue, 12 Aug 2014 23:28:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bcbc08e-cb4d-4df9-bb40-1b7a45d3dc14</guid><dc:creator>Anne</dc:creator><description>&lt;p&gt;Thanks for your input guys ^^ I&amp;#39;ll most definitely try out your suggestions and will let you know how they work :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Completely disabling bluetooth.</title><link>https://devzone.nordicsemi.com/thread/11758?ContentTypeID=1</link><pubDate>Mon, 11 Aug 2014 17:07:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7bcd67a-8a73-4ce9-9e70-8c6a152f0c8b</guid><dc:creator>John</dc:creator><description>&lt;p&gt;I think the application timers would be unaffected by disabling and enabling the SD. They rely on SWI0 and RTC1 and those are &amp;quot;open&amp;quot; even when the SD is enabled. I do not know if the critical regions would still work with the SD disabled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Completely disabling bluetooth.</title><link>https://devzone.nordicsemi.com/thread/11757?ContentTypeID=1</link><pubDate>Tue, 22 Jul 2014 02:56:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:222bb9a4-22a7-4b08-95e9-0a4ce6ee2fa8</guid><dc:creator>Anne</dc:creator><description>&lt;p&gt;I&amp;#39;m using the application timer module. I&amp;#39;m not sure, but I think disabling and reenabling the SD would mess them up. I&amp;#39;ve also got a critical region which uses sd_critical_region_enter which is called when Bluetooth needs to be active as well as when it needs to be disabled. I could manage these, of course, but it would be nice to know if there&amp;#39;s any alternative.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Completely disabling bluetooth.</title><link>https://devzone.nordicsemi.com/thread/11756?ContentTypeID=1</link><pubDate>Mon, 21 Jul 2014 04:11:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec2691c3-0ff9-4d1f-aadf-15eb178ecdca</guid><dc:creator>scytulip</dc:creator><description>&lt;p&gt;Hi, Anne,&lt;/p&gt;
&lt;p&gt;I investigated the code for BLE serialization and found no clue of turning off Bluetooth completely.&lt;/p&gt;
&lt;p&gt;However, I tried another solution:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;NRF_RADIO-&amp;gt;TASKS_DISABLE = 1;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It works! See the Fig.23 in &lt;em&gt;NRF51822 reference manual v2.1&lt;/em&gt;, it says &amp;quot;No operations are going on inside the radio and the power consumption is at a minimum.&amp;quot; I think this is what you need.&lt;/p&gt;
&lt;p&gt;I tried this code,&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;advertising_start();
nrf_delay_ms(2000);

NRF_RADIO-&amp;gt;TASKS_DISABLE = 1;

nrf_delay_ms(2000);
advertising_start();
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then the BLE resumes advertising without any problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>