<?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>How to set static passkey between two nrf52832 ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28738/how-to-set-static-passkey-between-two-nrf52832</link><description>hello,ereryone!One nrf52832 as ble_central,and another nrf52832 as ble_peripheral.
and the ble_peripheral (nrf52832 )set static passkey: 
 #define SEC_PARAM_BOND 1
#define SEC_PARAM_MITM 1
#define SEC_PARAM_IO_CAPABILITIES BLE_GAP_IO_CAPS_DISPLAY_ONLY</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Jan 2018 11:27:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28738/how-to-set-static-passkey-between-two-nrf52832" /><item><title>RE: How to set static passkey between two nrf52832 ?</title><link>https://devzone.nordicsemi.com/thread/113874?ContentTypeID=1</link><pubDate>Tue, 02 Jan 2018 11:27:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5544cce6-6c3f-4a55-ab54-365d54cff0b4</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You don&amp;#39;t need a physical keyboard and display when using static passkey, but you still have to use BLE_GAP_IO_CAPS_KEYBOARD_ONLY or BLE_GAP_IO_CAPS_KEYBOARD_DISPLAY. Then when you get the BLE_GAP_EVT_AUTH_KEY_REQUEST event just reply with the static passkey. See &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v5.0.0/group___b_l_e___g_a_p___c_e_n_t_r_a_l___b_o_n_d_i_n_g___p_k___p_e_r_i_p_h___o_o_b___m_s_c.html?cp=2_3_1_1_0_2_1_3_5_2_2"&gt;this&lt;/a&gt; MSC for more information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set static passkey between two nrf52832 ?</title><link>https://devzone.nordicsemi.com/thread/113875?ContentTypeID=1</link><pubDate>Tue, 26 Dec 2017 03:26:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0883946-1394-484a-bc21-386eb8afb730</guid><dc:creator>jenkey.zhu</dc:creator><description>&lt;p&gt;Thanks Petter,but in fact the central has no keyboard and display,how the central get the static key?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set static passkey between two nrf52832 ?</title><link>https://devzone.nordicsemi.com/thread/113873?ContentTypeID=1</link><pubDate>Fri, 22 Dec 2017 09:54:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:734311a9-60fa-44e6-9fa5-6473781a0f13</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;The central must use BLE_GAP_IO_CAPS_KEYBOARD_ONLY or BLE_GAP_IO_CAPS_KEYBOARD_DISPLAY.&lt;/p&gt;
&lt;p&gt;Other than that nothing special. The central doesn&amp;#39;t know that the passkey is static.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>