<?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>gls example : connect to the bonded peripheral</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35413/gls-example-connect-to-the-bonded-peripheral</link><description>Hello 
 I am running gls example on SDK14.2. 
 I paired after flashing program to my DK board, and then turn off power. 
 And turned on again, but i can&amp;#39;t connect to my DK board( nRF connect show that the gls is bonded ). 
 Why? 
 
 another question </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 Jun 2018 09:13:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35413/gls-example-connect-to-the-bonded-peripheral" /><item><title>RE: gls example : connect to the bonded peripheral</title><link>https://devzone.nordicsemi.com/thread/136306?ContentTypeID=1</link><pubDate>Fri, 15 Jun 2018 09:13:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:862d05c3-da88-4f92-b726-a068d19ae9f6</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;You will always get a&amp;nbsp;BLE_GAP_EVT_DISCONNECTED on the nRF side when there is a disconnect, and the&amp;nbsp;advertising module used in the GLS example will start to advertise immediately after the&amp;nbsp;BLE_GAP_EVT_DISCONNECTED event. However, the time when this comes depend on the type of disconnect. If the phone sends a disconnect, then the you will get the&amp;nbsp;BLE_GAP_EVT_DISCONNECTED immediately with the disconnect reason&amp;nbsp; BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION. If the phone did not send a disconnect (for some reason), then you will wait until the supervision timeout and the disconnect reason will be&amp;nbsp;BLE_HCI_CONNECTION_TIMEOUT.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gls example : connect to the bonded peripheral</title><link>https://devzone.nordicsemi.com/thread/136294?ContentTypeID=1</link><pubDate>Fri, 15 Jun 2018 08:26:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d318502a-74a7-4710-8138-94d50e1db9a2</guid><dc:creator>MikeLin</dc:creator><description>&lt;p&gt;I want to advertise when nRF connect press &amp;quot;disconnect&amp;quot; , but I can&amp;#39;t get any event to do this.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have sniffer.&lt;/p&gt;
&lt;p&gt;nRF connect( 4.19.1 ) ; Android( 7.0 ) ;&amp;nbsp;ASUS ZenPad 3S 10 (Z500M)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gls example : connect to the bonded peripheral</title><link>https://devzone.nordicsemi.com/thread/136290?ContentTypeID=1</link><pubDate>Fri, 15 Jun 2018 08:03:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f48b56e-baa4-4f1b-996e-2cacfb331eab</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;The Android phone should send a disconnect on air so that the nRF should see it (and log it if you have logging enabled). If not, then the nRF will think the connection is active until there is a supervision timeout. Do you have a sniffer trace?&lt;/p&gt;
&lt;p&gt;A few questions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Which nRF Connect version did you use on the Android phone where it did not work?&lt;/li&gt;
&lt;li&gt;Which Android version?&lt;/li&gt;
&lt;li&gt;Which Phone model?&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gls example : connect to the bonded peripheral</title><link>https://devzone.nordicsemi.com/thread/136282?ContentTypeID=1</link><pubDate>Fri, 15 Jun 2018 07:52:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2658e60-ba8f-4e67-9ce0-1019c4f97852</guid><dc:creator>MikeLin</dc:creator><description>&lt;p&gt;I tried another android device, and it work ! What&amp;nbsp;can&amp;nbsp;I do ?&lt;/p&gt;
&lt;p&gt;And can you tell me that when I press &amp;quot;disconnect&amp;quot;&amp;nbsp;&amp;nbsp;on nRF connect APP ,and not any event occurred on my&amp;nbsp;peripheral.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gls example : connect to the bonded peripheral</title><link>https://devzone.nordicsemi.com/thread/136273?ContentTypeID=1</link><pubDate>Fri, 15 Jun 2018 07:33:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:481cb502-f275-4f83-a06e-e2764b54ffec</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I have not been able to reproduce this on Android. Did you complete the bonding procedure, entering the 6 digit pass key (MITM protection) etc. before disconnecting? If not, the GLS example will delete bonding information and disconnect as it requires MITM.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gls example : connect to the bonded peripheral</title><link>https://devzone.nordicsemi.com/thread/136262?ContentTypeID=1</link><pubDate>Fri, 15 Jun 2018 06:40:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dccb39fb-4e25-48e6-8596-3e32cbfe2cb9</guid><dc:creator>MikeLin</dc:creator><description>&lt;p&gt;Thanks !&lt;/p&gt;
&lt;p&gt;But my device is android, can you tell me any possible I can&amp;#39;t connect to bonded&amp;nbsp;peripheral?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gls example : connect to the bonded peripheral</title><link>https://devzone.nordicsemi.com/thread/136196?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 13:50:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f9eb4d7-275b-4214-a054-19a8a4754047</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I believe this is due to a peculiarity in &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-low-energy/nRF-Connect-for-desktop"&gt;nRF Connect for Desktop&lt;/a&gt;. By default, it attempts to do repairing with the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/ble_sdk_app_gls.html?cp=4_0_0_4_1_2_11"&gt;GLS example&lt;/a&gt;. I have reported an issue to the nRF Connect developers. You can avoid it by disabling &amp;quot;Auto reply security requests&amp;quot; as shown in this image:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/600x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-acef90c186a04c009fbef502825b3b9b/auto_5F00_reply_5F00_security_5F00_requests.PNG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Then you will be prompted when there is a security request. The correct answer is &amp;quot;Ignore&amp;quot;, which will result in existing bonding information being used. See image:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/600x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-acef90c186a04c009fbef502825b3b9b/pairing_5F00_requested.PNG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Clicking &amp;quot;Accept&amp;quot; will make nRF Connect attempt to pair again instead of using existing bonding information, but this will fail and cause a disconnection as&amp;nbsp;&lt;code&gt;allow_repairing&lt;/code&gt; is set to &lt;code&gt;false&lt;/code&gt; in main.c of the GLS example. Clicking &amp;quot;Reject&amp;quot; will also cause a disconnect, as the GLS example will disconnect on the PM_EVT_CONN_SEC_FAILED event.&lt;/p&gt;
&lt;p&gt;The nRF Connect apps for iOS and Android does not have this issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>