<?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>Bond deletion notification</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9506/bond-deletion-notification</link><description>Hi,
My nRf51422 based device holds bonding with single central device and once it bonded it will do whitelist advertising at connection lost (whitelist has one address). If device in the range the central will connect and establish secure link with LTK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Oct 2015 13:39:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9506/bond-deletion-notification" /><item><title>RE: Bond deletion notification</title><link>https://devzone.nordicsemi.com/thread/35102?ContentTypeID=1</link><pubDate>Mon, 05 Oct 2015 13:39:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7acc93ae-a3c4-4149-a9c3-c3a39b0de514</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;We tried to reproduce this. We used SoftDevice S110 8.0.0 with ble_app_proximity from SDK 9.0.0 and Win 8.1 Desktop with a BLE dongle from CSR. Advertising-&amp;gt;Connect-&amp;gt;Bond-&amp;gt;Disconnect-&amp;gt;Whitelist advertising-&amp;gt;Connect. It seems to be working fine. Could you try with ble_app_proximity? What kind of BLE dongle are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bond deletion notification</title><link>https://devzone.nordicsemi.com/thread/35101?ContentTypeID=1</link><pubDate>Fri, 02 Oct 2015 12:36:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f4fe98d-2e37-46b9-89bc-86499c2d5f93</guid><dc:creator>Valer_I</dc:creator><description>&lt;p&gt;Already discussed, Bluetooth Core Spec, v4.2. Vol. 3, Part C, Sections 9.2.3 and 9.2.4:
&amp;quot;The Host shall set the advertising filter policy to ‘process scan and connection requests from all devices’.&amp;quot; with Carles &lt;a href="https://devzone.nordicsemi.com/question/51493/whitelist-advertisingconnection-cases/"&gt;https://devzone.nordicsemi.com/question/51493/whitelist-advertisingconnection-cases/&lt;/a&gt;  .&lt;/p&gt;
&lt;p&gt;So for whitelist advertising I use BLE_GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED and for &amp;quot;simple&amp;quot; advertising BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bond deletion notification</title><link>https://devzone.nordicsemi.com/thread/35100?ContentTypeID=1</link><pubDate>Fri, 02 Oct 2015 12:10:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86d70495-1e50-4321-9e6d-2197d9c6ecda</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;What flags are you setting in the advertisements with whitelist? Could you try setting it to BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE or BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE and see if that helps?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bond deletion notification</title><link>https://devzone.nordicsemi.com/thread/35095?ContentTypeID=1</link><pubDate>Fri, 02 Oct 2015 11:23:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13a384a3-459a-4fd6-99ec-5deba6fa6981</guid><dc:creator>Valer_I</dc:creator><description>&lt;p&gt;I feel that should be something like&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint16_t         ediv;      /**&amp;lt; Peer&amp;#39;s encrypted diversifier. */
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to distinguish sequential connections.  And if one peer deleted bond while other one not, the divercifier in advertisement will be different and connection won&amp;#39;t establish.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bond deletion notification</title><link>https://devzone.nordicsemi.com/thread/35094?ContentTypeID=1</link><pubDate>Fri, 02 Oct 2015 11:18:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65d352b5-d951-42cd-85ad-68260facad99</guid><dc:creator>Valer_I</dc:creator><description>&lt;p&gt;The only reason I could imagine is that Microsoft developers made workaround and filtering out whitelist advertising from this peer untill it become general discoverable. However it is vicious way.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bond deletion notification</title><link>https://devzone.nordicsemi.com/thread/35099?ContentTypeID=1</link><pubDate>Fri, 02 Oct 2015 09:24:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36d9f71b-f851-49bf-a351-c2b27519459f</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Very strange.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bond deletion notification</title><link>https://devzone.nordicsemi.com/thread/35098?ContentTypeID=1</link><pubDate>Fri, 02 Oct 2015 08:40:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c0f03f8-d40f-4bb2-a347-0c6013674d6c</guid><dc:creator>Valer_I</dc:creator><description>&lt;p&gt;Nope, I use BLE dongle with my desktop. After deleting bond I replugged the dongle and didn&amp;#39;t see the device advertisements. Than I rebonded and repeted experiment without deleting bonding. It works. So Windows works with whitelist correctly I think.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bond deletion notification</title><link>https://devzone.nordicsemi.com/thread/35093?ContentTypeID=1</link><pubDate>Fri, 02 Oct 2015 07:33:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:605ae856-8d99-43ee-9453-1ffd0b5680b4</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Is Win 8.1 able to discover the device if you restart Bluetooth on it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bond deletion notification</title><link>https://devzone.nordicsemi.com/thread/35105?ContentTypeID=1</link><pubDate>Thu, 01 Oct 2015 12:51:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57607a49-cf13-4b86-928a-961ec2d794af</guid><dc:creator>Valer_I</dc:creator><description>&lt;p&gt;Ow, in Core 4.2 [Vol 2, Part D], 2.19 REMOTE USER TERMINATED CONNECTION (0x13) &amp;quot;The Remote User Terminated Connection error code indicates that the user on the remote device terminated the connection.&amp;quot; This is &amp;quot;very&amp;quot; strict description when remote user allowed to post this message at disconnection.)))&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bond deletion notification</title><link>https://devzone.nordicsemi.com/thread/35104?ContentTypeID=1</link><pubDate>Thu, 01 Oct 2015 12:44:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a8ec4c4-e06a-487d-a7af-7092c1dd9aee</guid><dc:creator>Valer_I</dc:creator><description>&lt;p&gt;I afraid that BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION disconnection reason could be a trigger for this particular Nexus7 with particular Android version but not for all or even majority of devices.
At present time i made application layer command for device to kill bond after disconnection but it vainly for Windows as it do not have API for bonding management.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bond deletion notification</title><link>https://devzone.nordicsemi.com/thread/35097?ContentTypeID=1</link><pubDate>Thu, 01 Oct 2015 12:37:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f42e218-8832-4f88-8799-0455b0441360</guid><dc:creator>Valer_I</dc:creator><description>&lt;p&gt;SD110 v8.0.0. My idea is to delete bonding on device once it deleted on central. Since bond deleted, whitelist becomes empty and there are no need to do advertising. To connect/bond new device I use button pressing event in my app. But now after I deleted bond on central, device become disconnected and restart whitelist advertisement with address of last bonded central(i.e. that one that delete bond). The satrange behaviour demonstrates Win8.1 desktop,after bond deletion it do not show this device in scan list even if device do whitelist adverticement with address of desktop. But do it for advertisement without whitelist.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bond deletion notification</title><link>https://devzone.nordicsemi.com/thread/35096?ContentTypeID=1</link><pubDate>Thu, 01 Oct 2015 10:42:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe5071f3-4d0d-4ca5-8ba1-3b54b8adf78b</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Are you advertising with a whitelist on disconnect? What SoftDevice version are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bond deletion notification</title><link>https://devzone.nordicsemi.com/thread/35103?ContentTypeID=1</link><pubDate>Thu, 01 Oct 2015 10:42:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:187cb286-d25e-469f-a935-c6d2632ceb75</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I don&amp;#39;t think there is any built in procedure in the Bluetooth specification for doing this. Yes, you could trigger a bond deletion when you get the BLE_GAP_EVT_DISCONNECTED with BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION, but this doesn&amp;#39;t really tell you if the bond on the central side is deleted or not.&lt;/p&gt;
&lt;p&gt;If this is a feature you need I think you need to build it into the application space and make the central use GATT to tell the peripheral that it should delete the bond.&lt;/p&gt;
&lt;p&gt;Edit 02.10.2015: I gave this some more thought. There are ways of checking if the central has deleted the bond, but then you need to reconnect first.&lt;/p&gt;
&lt;p&gt;Then you have two scenarioes.&lt;/p&gt;
&lt;p&gt;That the central initiates the procedures. The central can do this whenever it wants, or when it does service discovery and tries to read an characteristic value or descriptor that requires encryption. If the central has a bond it will send an encryption request, and the peripheral applicaiton will receive the BLE_GAP_EVT_SEC_INFO_REQUEST event, see &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v1.0.0/group___b_l_e___g_a_p___p_e_r_i_p_h___e_n_c___m_s_c.html?cp=2_7_2_1_0_2_1_0_10"&gt;this&lt;/a&gt; for more information. If the central doesn&amp;#39;t have a bond it will send an pairing request, and the peripheral application will receive the BLE_GAP_EVT_SEC_PARAMS_REQUEST event, see &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v1.0.0/group___b_l_e___g_a_p___p_e_r_i_p_h___p_a_i_r_i_n_g___j_w___m_s_c.html?cp=2_7_2_1_0_2_1_0_5"&gt;this&lt;/a&gt; for more information. If BLE_GAP_EVT_SEC_PARAMS_REQUEST is received the peripheral can check its list of bonded devices and delete the appropriate bond.&lt;/p&gt;
&lt;p&gt;The second is that the peripheral initiates the procedures. It can call sd_ble_gap_authenticate() and then you get into the same situation as above, and then you can take the appropriate action depending if you receive BLE_GAP_EVT_SEC_INFO_REQUEST or BLE_GAP_EVT_SEC_PARAMS_REQUEST.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bond deletion notification</title><link>https://devzone.nordicsemi.com/thread/35092?ContentTypeID=1</link><pubDate>Wed, 30 Sep 2015 13:20:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3174bbf-e2cb-47ab-8670-4fca8d587450</guid><dc:creator>Valer_I</dc:creator><description>&lt;p&gt;The second one, I need to know whether peer central deleted bond info on it&amp;#39;s side at disconnection or not to trigger deletion of the correspondent bond info on the peripheral side.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bond deletion notification</title><link>https://devzone.nordicsemi.com/thread/35091?ContentTypeID=1</link><pubDate>Wed, 30 Sep 2015 12:43:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3d9639b-6991-47ff-8a44-ee54c3392e56</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure I understand what your question is. Are you asking how you can delete a bond? Or are you asking how to trigger a deletion of a bond?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>