<?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>some question about bonding and pairing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24851/some-question-about-bonding-and-pairing</link><description>SDK： nRF5_SDK_11.0.0
Softdevice： s132_nrf52_2.0.0_softdevice
project：examples\ble_peripheral\ble_app_hids_mouse\pca10040\s132\arm4 
 I have some questions about bonding。 
 (1)What&amp;#39;s the difference between BLE_GAP_EVT_SEC_INFO_REQUEST and BLE_GAP_EVT_SEC_PARAMS_REQUEST</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 01 Sep 2017 13:53:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24851/some-question-about-bonding-and-pairing" /><item><title>RE: some question about bonding and pairing</title><link>https://devzone.nordicsemi.com/thread/97869?ContentTypeID=1</link><pubDate>Fri, 01 Sep 2017 13:53:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:963c3d21-e776-4691-9e0c-534dabe0eeb9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi HDU,&lt;/p&gt;
&lt;p&gt;If you have a look &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v2.0.0/group___b_l_e___g_a_p___p_e_r_i_p_h___b_o_n_d_i_n_g___j_w___m_s_c.html?cp=3_7_2_1_1_2_1_3_8_7_0"&gt;here&lt;/a&gt; and &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v2.0.0/group___b_l_e___g_a_p___p_e_r_i_p_h___e_n_c___m_s_c.html?cp=3_7_2_1_1_2_1_3_8_5"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You will find the difference between the 2 events. One is to get the parameter for pairing, one is to get the bond information to re-establish encryption using stored case (reconnect after bond).&lt;/p&gt;
&lt;p&gt;2.For your purpose, when you receive BLE_GAP_EVT_SEC_PARAMS_REQUEST, in your application you can delay and wait for the button to be pressed before you send sd_gap_sec_params_reply(). If after 30 seconds the button is not pressed, there will be a timeout.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>