<?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>Unbonded event to peripheral</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10208/unbonded-event-to-peripheral</link><description>Hello, 
 I am working on nRF51822 S110 softdevice 8.0 and SDK9.0. I am creating paired and unpaired states and the system will goto unpaired only if it is unpaired from the central. 
 I need to know, can softdevice give the unbonded event after disconnection</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Nov 2015 12:03:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10208/unbonded-event-to-peripheral" /><item><title>RE: Unbonded event to peripheral</title><link>https://devzone.nordicsemi.com/thread/37882?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2015 12:03:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d9bdd75-8db4-4653-a91b-6c39d211db99</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Maybe I&amp;#39;m misunderstanding you, but if the peripheral and central are disconnected, they are not connected, there is no commincation between them, so the central can&amp;#39;t tell the peripheral that it has deleted it&amp;#39;s bond.&lt;/p&gt;
&lt;p&gt;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 application 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: Unbonded event to peripheral</title><link>https://devzone.nordicsemi.com/thread/37881?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2015 10:58:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67e1161f-42a0-4e64-9c19-9796e4f6ff5f</guid><dc:creator>sowmya</dc:creator><description>&lt;p&gt;Hello Petter,
First the device will get connected, paired(bonded) and service enabled. Later if central disconnects, the stack will send disconnect event. But still the bonding will be existing in both peripheral and central. Now if central unpaires(unbond), will the stack sends any events to the application in peripheral?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unbonded event to peripheral</title><link>https://devzone.nordicsemi.com/thread/37880?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2015 10:25:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29f61c55-6e1f-460c-bd07-52a6c4cf8340</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;The BLE_BONDMNGR_EVT_CONN_TO_BONDED_CENTRAL event doesn&amp;#39;t exist is SDK 9.0.0. This is an event from the Bond Manager, which was replaced by the Device Manager some SDK versions ago. What do you mean by unpaired? Do you mean that you have been paired and then you unpair? Or that you simply haven&amp;#39;t paired? Bonding is handled by the application so the SoftDevice will not send such an event. Could you explain a bit more about your system?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>