<?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>If Bluetooth is turned off, the mobile phone cannot find it when it is turned on later</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87472/if-bluetooth-is-turned-off-the-mobile-phone-cannot-find-it-when-it-is-turned-on-later</link><description>Hello Nordic engineer， 
 
 SDK is 15.3.0, and example is ble_app_uart 
 I use the &amp;quot;nrf_sdh_disable_request()&amp;quot; function to turn off Bluetooth 
 Then start with the function &amp;quot;nrf_sdh_enable_request()&amp;quot; 
 The mobile phone cannot find Bluetooth 
 After turning</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 03 May 2022 15:11:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87472/if-bluetooth-is-turned-off-the-mobile-phone-cannot-find-it-when-it-is-turned-on-later" /><item><title>RE: If Bluetooth is turned off, the mobile phone cannot find it when it is turned on later</title><link>https://devzone.nordicsemi.com/thread/366040?ContentTypeID=1</link><pubDate>Tue, 03 May 2022 15:11:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2155f209-eb0e-4ce5-b0a9-10c6acba254d</guid><dc:creator>Einar Thorsrud</dc:creator><description>[quote user="eric_cheng"]&lt;p&gt;For example &amp;quot;ble_app_uart&amp;quot;&lt;/p&gt;
&lt;p&gt;It should only have &amp;quot;advertising&amp;quot; and not &amp;quot;scanning&amp;quot;, right?&lt;/p&gt;[/quote]
&lt;p&gt;Yes. The&amp;nbsp;point is that to &amp;quot;disable Bluetooth&amp;quot; you stop doing bluetooth activities. And that is typically scanning, advertising or being in a connection. For a pure peripheral, scanning is never relevant. And for a pure central, advertising is never relevant. The key is to stop doing what you no longer want to to &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
[quote user="eric_cheng"]&lt;p&gt;If I stop advertising, will it not occupy the timeslot?&lt;/p&gt;
&lt;p&gt;I use BLE+ESB, but the synchronization is not good&lt;/p&gt;[/quote]
&lt;p&gt;If you stop advertising, the SoftDevice will not schedule time for advertising, no. So you will get allocated more time from the radio&amp;nbsp;timeslot API. But of course skipping it altogether is simpler, as you can if you only use ESB while the SoftDevice is disabled. I do not know the details about your product, but it could be that you have a use case where disabling the SoftDevice makes sense.&lt;/p&gt;
[quote user="eric_cheng"]So I want to try to turn off bluetooth, because only 1 device in my usage scenario needs to be paired with the phone,[/quote]
&lt;p&gt;I did not get that? If you only want to prevent others from connection, you can stop advertising. Or if you only want the bonded device to be allowed to&amp;nbsp;connect you can use whitelisting. (not sure if that is the point with the above sentence, though).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If Bluetooth is turned off, the mobile phone cannot find it when it is turned on later</title><link>https://devzone.nordicsemi.com/thread/365968?ContentTypeID=1</link><pubDate>Tue, 03 May 2022 12:08:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2175a67c-4ec5-4055-8a4b-b61d66babb94</guid><dc:creator>eric_cheng</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;span&gt;Nordic&amp;nbsp;engineer,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your reply,&lt;/p&gt;
&lt;p&gt;Regarding &amp;quot;advertising&amp;quot;, I try to add &amp;quot;ble_advertising_start()&amp;quot;&lt;/p&gt;
&lt;p&gt;About your second paragraph&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;(As a side note, 
most applications never need to disable the SoftDevice so unless there is a good reason for your orginal call to nrf_sdh_disable_request(),
you should consider removing that as well. 
If the point is just to &amp;quot;turn off Bluetooth&amp;quot;,
then you can simply stop advertising and/or scanning and disconnect any connections until you want to &amp;quot;turn on Bluetooth&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;For example &amp;quot;ble_app_uart&amp;quot;&lt;/p&gt;
&lt;p&gt;It should only have &amp;quot;advertising&amp;quot; and not &amp;quot;scanning&amp;quot;, right?&lt;/p&gt;
&lt;p&gt;If I stop advertising, will it not occupy the timeslot?&lt;/p&gt;
&lt;p&gt;I use BLE+ESB, but the synchronization is not good&lt;/p&gt;
&lt;p&gt;So I want to try to turn off bluetooth, because only 1 device in my usage scenario needs to be paired with the phone,&lt;/p&gt;
&lt;p&gt;the rest can be turned off&lt;/p&gt;
&lt;p&gt;Thank&amp;nbsp;you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If Bluetooth is turned off, the mobile phone cannot find it when it is turned on later</title><link>https://devzone.nordicsemi.com/thread/365736?ContentTypeID=1</link><pubDate>Mon, 02 May 2022 11:33:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a09a1af2-d7d4-4758-8e1a-beb914fcdaa1</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Your mobile phone (or any other device) can only see the nRF when it is advertising. I do not know much about your code, but I assume you do not start advertising (for instance by calling ble_advertising_start()) after re-enabling the SoftDevice using&amp;nbsp;nrf_sdh_enable_request().&lt;/p&gt;
&lt;p&gt;(As a side note, most applications never need to disable the SoftDevice so unless there is a good reason for your orginal call to nrf_sdh_disable_request(), you should consider removing that as well. If the point is just to &amp;quot;turn off Bluetooth&amp;quot;, then you can simply stop advertising and/or scanning and disconnect any connections until you want to &amp;quot;turn on Bluetooth&amp;quot; again.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>