<?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>set static passkey between two nrf52840 and nrf52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47833/set-static-passkey-between-two-nrf52840-and-nrf52832</link><description>nrf52840 is ble central ,nrf52832 is ble peripheral, 
 nrf52832 is modify finish. 
 but i do not know how assign ble central . 
 now i use the example(ble_app_uart_c) to implete my project , please tell me how to modify it to set static passkey 
 
 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Jun 2019 14:59:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47833/set-static-passkey-between-two-nrf52840-and-nrf52832" /><item><title>RE: set static passkey between two nrf52840 and nrf52832</title><link>https://devzone.nordicsemi.com/thread/190581?ContentTypeID=1</link><pubDate>Mon, 03 Jun 2019 14:59:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b3f7a73-e563-4f8a-8d5b-d016325c0229</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Please post your full code. Including where you call the function and what exact &amp;quot;STATIC_PASSKEY&amp;quot; you have.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: set static passkey between two nrf52840 and nrf52832</title><link>https://devzone.nordicsemi.com/thread/190002?ContentTypeID=1</link><pubDate>Thu, 30 May 2019 01:23:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71bc55ca-af83-465a-a048-dd1b7a482a43</guid><dc:creator>syc776</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1559179404172v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: set static passkey between two nrf52840 and nrf52832</title><link>https://devzone.nordicsemi.com/thread/189941?ContentTypeID=1</link><pubDate>Wed, 29 May 2019 14:48:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b54c2695-1e06-46b3-8e43-cace418b9a5a</guid><dc:creator>syc776</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1559141227847v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;return err_code is 7(invalid parameters)!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: set static passkey between two nrf52840 and nrf52832</title><link>https://devzone.nordicsemi.com/thread/189938?ContentTypeID=1</link><pubDate>Wed, 29 May 2019 14:42:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32ebf318-c7de-470e-94c8-bd4409bc4c7e</guid><dc:creator>syc776</dc:creator><description>&lt;p&gt;yes. I do like this ,but call sd_ble_opt_set() return invalid parameters&lt;/p&gt;
&lt;p&gt;so maybe have some mistakes ;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: set static passkey between two nrf52840 and nrf52832</title><link>https://devzone.nordicsemi.com/thread/189921?ContentTypeID=1</link><pubDate>Wed, 29 May 2019 14:12:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24f958ad-5a3a-4f47-bd96-49e2a8fb7040</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Please clarify that you can set a certain passkey (static passkey) when pairing. So that you always have the same 6 digits number when you pair.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After you have that, if you want to change the static passkey, as far as i know you just need to call&amp;nbsp;&lt;span&gt;sd_ble_opt_set() with&amp;nbsp;BLE_GAP_OPT_PASSKEY and the new passkey that you want. Similar to what you have in your original post.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: set static passkey between two nrf52840 and nrf52832</title><link>https://devzone.nordicsemi.com/thread/189811?ContentTypeID=1</link><pubDate>Wed, 29 May 2019 09:10:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b7f4a60-7868-4bbb-a637-afae8f2bdc35</guid><dc:creator>syc776</dc:creator><description>&lt;p&gt;thanks your answer&amp;nbsp; !&lt;/p&gt;
&lt;p&gt;now i resolve the problem but i meet a new problem&amp;nbsp; .&lt;/p&gt;
&lt;p&gt;ble peripheral&amp;nbsp; :&lt;/p&gt;
&lt;p&gt;I want to modify the static passkey when the device is connect with ble central .&lt;/p&gt;
&lt;p&gt;I kown that restart the device ,the passkey can be changed;&lt;/p&gt;
&lt;p&gt;but I want no need to power down the device ,I can modify the ble peripheral static passkey .&lt;/p&gt;
&lt;p&gt;Please give me some advice!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: set static passkey between two nrf52840 and nrf52832</title><link>https://devzone.nordicsemi.com/thread/189800?ContentTypeID=1</link><pubDate>Wed, 29 May 2019 08:51:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:698ee09d-29d4-4a7a-939f-7939510ab190</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I don&amp;#39;t have a working example here. But what you need to do is to get familiar with the code inside GLS example, use nRFConnect on the phone or PC to test passkey with it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then you implement the same in ble_app_uart so that when you pair there will passkey pairing. (Follow what I suggested earlier)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can follow this Message Sequence Chart to know how it works on the peripheral side:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.0.0/group___b_l_e___g_a_p___p_e_r_i_p_h___l_e_s_c___b_o_n_d_i_n_g___p_k_e___p_d___m_s_c.html?cp=3_4_1_3_2_1_3_10_6_2"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.0.0/group___b_l_e___g_a_p___p_e_r_i_p_h___l_e_s_c___b_o_n_d_i_n_g___p_k_e___p_d___m_s_c.html?cp=3_4_1_3_2_1_3_10_6_2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;On the central side, it should be verify similar, you should follow this chart to implement:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.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=3_4_1_3_2_1_3_5_2_2"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.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=3_4_1_3_2_1_3_5_2_2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This support case discusses similar topic to yours:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/14062/ble_app_uart_c-dongle-with-passkey"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/14062/ble_app_uart_c-dongle-with-passkey&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: set static passkey between two nrf52840 and nrf52832</title><link>https://devzone.nordicsemi.com/thread/189737?ContentTypeID=1</link><pubDate>Wed, 29 May 2019 01:16:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbf3b77b-5ae3-4526-9e83-80467ab6f621</guid><dc:creator>syc776</dc:creator><description>&lt;p&gt;thanks your answer！&lt;/p&gt;
&lt;p&gt;ble_central can not find ble_app_gls example!&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1559092448101v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;ble peripheral&lt;/p&gt;
&lt;p&gt;i can find the example !&lt;/p&gt;
&lt;p&gt;but i want to konw how to assign static passkey ble central!&lt;/p&gt;
&lt;p&gt;please help me !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: set static passkey between two nrf52840 and nrf52832</title><link>https://devzone.nordicsemi.com/thread/189619?ContentTypeID=1</link><pubDate>Tue, 28 May 2019 11:58:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a383c878-6dd6-40b5-8b57-52f72e2832ee</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Syc,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Before testing with static passkey, it&amp;#39;s better to verify that passkey works first.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would suggest you to try&amp;nbsp;ble_app_gls example where we have passkey implemented.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note that to be able to get passkey working, you would need to configure the&amp;nbsp;SEC_PARAM_IO_CAPABILITIES to have at least&amp;nbsp;BLE_GAP_IO_CAPS_DISPLAY_ONLY (when you want to display the passkey) and&amp;nbsp;BLE_GAP_IO_CAPS_KEYBOARD_ONLY on the other side where the passkey to be entered.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And SEC_PARAM_MITM should be set to 1.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>