<?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 use one static passkey in the central and peripherical devices</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17844/how-to-use-one-static-passkey-in-the-central-and-peripherical-devices</link><description>Hi, 
 I&amp;#39;ve read a lot of question on the forum, but I&amp;#39;m a lit bit confused about what I have to do to use one static passkey on the central and peripherical device. In my first tests I&amp;#39;ll use two PCA10040 with S132, so i dont have keyboard or display</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Nov 2016 14:29:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17844/how-to-use-one-static-passkey-in-the-central-and-peripherical-devices" /><item><title>RE: How to use one static passkey in the central and peripherical devices</title><link>https://devzone.nordicsemi.com/thread/68783?ContentTypeID=1</link><pubDate>Tue, 22 Nov 2016 14:29:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81a51852-81b6-4f23-a355-c82a68dd5f1a</guid><dc:creator>rcfr</dc:creator><description>&lt;p&gt;Thanks for the fast response, Petter. I&amp;#39;ll fallow your tips and try to implement.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use one static passkey in the central and peripherical devices</title><link>https://devzone.nordicsemi.com/thread/68782?ContentTypeID=1</link><pubDate>Mon, 21 Nov 2016 11:31:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a64d297-59f4-4351-9df9-47f376b168c0</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;ol&gt;
&lt;li&gt;Yes&lt;/li&gt;
&lt;li&gt;On the peripheral you can set the static passkey with sd_ble_opt_set() right. See &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v3.0.0/group___b_l_e___g_a_p___p_e_r_i_p_h___b_o_n_d_i_n_g___s_t_a_t_i_c___p_k___m_s_c.html?cp=2_3_0_1_0_2_1_3_8_7_1"&gt;this&lt;/a&gt;. Then you should set that you have a display.&lt;/li&gt;
&lt;li&gt;On the central you should then set that you have keyboard. You should receive the BLE_GAP_EVT_AUTH_KEY_REQUEST event when you pair, and reply with the static passkey with sd_ble_gap_auth_key_reply(). See &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v3.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_0_1_0_2_1_3_5_2_2"&gt;this&lt;/a&gt; for more information.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If you want to use static passkey with a smart phone you will have to enter the static passkey on the smart phone during pairing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>