<?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>Bluetooth connection problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39957/bluetooth-connection-problem</link><description>Hi, 
 I am working with hid keyboard example on my Windows machine. 
 Problem 1 : After flashing the code, I make bluetooth connection and the code works properly. Then I remove the bluetooth device and if I try reconnecting, it does not connect. So I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 31 Oct 2018 21:10:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39957/bluetooth-connection-problem" /><item><title>RE: Bluetooth connection problem</title><link>https://devzone.nordicsemi.com/thread/155434?ContentTypeID=1</link><pubDate>Wed, 31 Oct 2018 21:10:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0dcf7d9-8805-4f9c-a44a-5bc79a3e6ef6</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Removing a device on a host will have no effect on the peripheral, meaning that the peripheral will not know that the host have removed the device.&lt;/p&gt;
&lt;p&gt;The device will assume that it should connect to the same host until you explicit decide otherwize by disable whitelist to allow for a new host to connect.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth connection problem</title><link>https://devzone.nordicsemi.com/thread/155433?ContentTypeID=1</link><pubDate>Wed, 31 Oct 2018 21:10:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d866ed0c-9603-4f42-9a7b-52aa2dc911fa</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Removing a device on a host will have no effect on the peripheral, meaning that the peripheral will not know that the host have removed the device.&lt;/p&gt;
&lt;p&gt;The device will assume that it should connect to the same host until you explicit decide otherwize by disable whitelist to allow for a new host to connect.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth connection problem</title><link>https://devzone.nordicsemi.com/thread/155432?ContentTypeID=1</link><pubDate>Wed, 31 Oct 2018 20:12:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75e6006b-f730-49c6-ac62-9e60f7046c4e</guid><dc:creator>bscdb</dc:creator><description>&lt;p&gt;So how does disabling whitelist affect bluetooth connection? Does a power cycle from the nrf DK or the host machine remove the physical connection?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth connection problem</title><link>https://devzone.nordicsemi.com/thread/155430?ContentTypeID=1</link><pubDate>Wed, 31 Oct 2018 20:05:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0d072ce-9795-4af3-8b09-daa5ff9f111b</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;If you want to connect to another central, then you will have to temporary disable whitelist yes.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth connection problem</title><link>https://devzone.nordicsemi.com/thread/155429?ContentTypeID=1</link><pubDate>Wed, 31 Oct 2018 20:02:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ac6ecfe-1547-4ee7-8c49-23d5c3a600f5</guid><dc:creator>bscdb</dc:creator><description>&lt;p&gt;I not sure as to where this function should be called. It is called inside bsp_event_handler(). So are you suggesting to disable whitelist?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth connection problem</title><link>https://devzone.nordicsemi.com/thread/155428?ContentTypeID=1</link><pubDate>Wed, 31 Oct 2018 19:25:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9df21690-14d7-4268-88b3-e198413ce5da</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Have you tried calling&amp;nbsp;ble_advertising_restart_without_whitelist(&amp;amp;m_advertising);&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth connection problem</title><link>https://devzone.nordicsemi.com/thread/155426?ContentTypeID=1</link><pubDate>Wed, 31 Oct 2018 19:21:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e732e4b-01b4-46d5-925f-f5bd5d0fe464</guid><dc:creator>bscdb</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;As per your suggestion, switching from SDK 15 to SDK 15.2 works for re-connecting the bluetooth device. No issues there. But now what is happening is unless I remove the device from one host machine, I cannot connect to the other machine. So is there any way that if the host machine is shut down, the bond information is erased automatically and I can connect nrf to other machine without removing the bluetooth device from previous machine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth connection problem</title><link>https://devzone.nordicsemi.com/thread/155191?ContentTypeID=1</link><pubDate>Tue, 30 Oct 2018 15:11:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1053704a-9d6c-41b7-8c0b-fae135cea511</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Sounds to me that the case then may be that you need to allow repairing.&amp;nbsp;Can you try&amp;nbsp;to add the following to pm_evt_handler() in main.c&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// Insert in pm_evt_handler() in main.c

        case PM_EVT_CONN_SEC_CONFIG_REQ:
        {
            // Allow or reject pairing request from an already bonded peer.
            pm_conn_sec_config_t conn_sec_config = {.allow_repairing = true};
            pm_conn_sec_config_reply(p_evt-&amp;gt;conn_handle, &amp;amp;conn_sec_config);
        } break; 
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth connection problem</title><link>https://devzone.nordicsemi.com/thread/155115?ContentTypeID=1</link><pubDate>Tue, 30 Oct 2018 12:36:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8d845d7-73b9-456c-9fe6-91a9a7ef0ac5</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;1. There have been some issues with re-connection in Win 10, you may want to make sure to download the latest build of Win 10, or possible get the preview insider build from Microsoft to&amp;nbsp;test directly that the issue is resolved. Also for testing you should consider using SDKv15.2 since that has a fix regarding directed advertisement that may have an effect on re-connection time.&lt;/p&gt;
&lt;p&gt;2. You will likely need to disable whitelist if you want to connect with a new central, there should be a start advertising without whitelist api call if I remember correctly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth connection problem</title><link>https://devzone.nordicsemi.com/thread/154970?ContentTypeID=1</link><pubDate>Mon, 29 Oct 2018 23:46:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b7a58a4-43b3-4b76-bccd-42d7bc696763</guid><dc:creator>bscdb</dc:creator><description>&lt;p&gt;I am using nrf52 DK. No changes made to the code. &amp;quot;I remove the bluetooth device&amp;quot; meaning I unpair the connected Nordic device. I tried pressing buttons 1,2,3,4 and the reset button and restarting the computers and the DK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth connection problem</title><link>https://devzone.nordicsemi.com/thread/154949?ContentTypeID=1</link><pubDate>Mon, 29 Oct 2018 19:11:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:482b9f04-e275-411b-94de-fd137be6d5dc</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;On what have you implemented the&amp;nbsp;&lt;span&gt;hid keyboard example?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Have you made changes to the example?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="73596" url="~/f/nordic-q-a/39957/bluetooth-connection-problem"] I remove the bluetooth device[/quote]
&lt;p&gt;&lt;span&gt;What do you mean by that?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="73596" url="~/f/nordic-q-a/39957/bluetooth-connection-problem"]I have to again flash the code with the soft device (SDK 15) to make it wor[/quote]
&lt;p&gt;&lt;span&gt;What else have you tried?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Does a reset not work? Or power-cycling?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>