<?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>Enable/Disable Bluetooth.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39608/enable-disable-bluetooth</link><description>Hi, 
 I use nRF5 SDK v15.0.0. In my application I need periodically disable and enable Bluetooth because they are wifi also, which connected to the same antenna. Its mean the receiver of the Bluetooth also mast be disabled. For that I completely disable</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Oct 2018 06:23:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39608/enable-disable-bluetooth" /><item><title>RE: Enable/Disable Bluetooth.</title><link>https://devzone.nordicsemi.com/thread/153742?ContentTypeID=1</link><pubDate>Mon, 22 Oct 2018 06:23:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e95cf93-4a2f-457a-a753-962f90856623</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;As you say, disabling the SoftDevice takes time, but the radio is &lt;strong&gt;only&lt;/strong&gt; active when you are advertising or in a connection, so by using &lt;strong&gt;sd_ble_gap_adv_stop()&lt;/strong&gt; and &lt;strong&gt;sd_ble_gap_disconnect()&lt;/strong&gt; the Bluetooth should be completely disabled.&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable/Disable Bluetooth.</title><link>https://devzone.nordicsemi.com/thread/153595?ContentTypeID=1</link><pubDate>Fri, 19 Oct 2018 09:06:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5cd5e98-bda3-4b4b-8b68-606a2e08b0cb</guid><dc:creator>S_Ma</dc:creator><description>&lt;p&gt;Thank you for the answer.&lt;br /&gt;I used sd_ble_gap_adv_stop() and sd_ble_gap_disconnect() functions, but i don&amp;#39;t sure that &lt;span&gt;Bluetooth&amp;nbsp;&lt;/span&gt;receiver disabled. For that I disable SoftDevice after stopped advertising and disconnected from the central.&lt;/p&gt;
&lt;p&gt;Can I use only&amp;nbsp;&lt;span&gt;sd_ble_gap_adv_stop() and sd_ble_gap_disconnect() functions for completely disable Bluetooth?&lt;/span&gt;&amp;nbsp;Can I sure that receiver disabled after&lt;span&gt;&amp;nbsp;stopped advertising&lt;/span&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable/Disable Bluetooth.</title><link>https://devzone.nordicsemi.com/thread/153549?ContentTypeID=1</link><pubDate>Fri, 19 Oct 2018 05:22:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28d3292e-acdf-4ab3-928f-c5f6a9071b07</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;You can SoftDevice API&amp;#39;s that you can use without disabling the SoftDevice &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v6.0.0%2Fgroup___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html&amp;amp;cp=2_3_1_1_1_2_1_2"&gt;here&lt;/a&gt;. Here is also a&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v6.0.0%2Fgroup___b_l_e___g_a_p___c_o_n_n___m_s_c.html"&gt;message sequence chart&lt;/a&gt; for peripheral connection establishment and termination.&lt;/p&gt;
&lt;p&gt;You can start/stop advertising using sd_ble_gap_adv_start() and sd_ble_gap_adv_stop(). If you are in a connection you can use sd_ble_gap_disconnect() to disconnect from the central. In the ble_app_uart example, use the bsp_event_handler() in main.c to implement the functionality you want on different button events.&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>