<?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>BLE  Pairing and security</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86836/ble-pairing-and-security</link><description>Hi, 
 
 We would like to impelement Pairing and security features in our device. Our device will act as server in peripheral mode. The cleint device should ask for 1 passkey which is ideependet for each of our device. 
 Could you please suggest which</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Apr 2022 13:43:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86836/ble-pairing-and-security" /><item><title>RE: BLE  Pairing and security</title><link>https://devzone.nordicsemi.com/thread/364981?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2022 13:43:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d6f6f5a-2329-4a48-a096-9c485a08907d</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes, the link will be encrypted after you have received the PM_EVT_CONN_SEC_SUCCEEDED event from the peer manager. For more information on how the security works BLE I recommend you take a look at this guide here: &lt;a href="https://www.bluetooth.com/bluetooth-resources/le-security-study-guide/"&gt;https://www.bluetooth.com/bluetooth-resources/le-security-study-guide/&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE  Pairing and security</title><link>https://devzone.nordicsemi.com/thread/364836?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2022 07:33:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e74aee28-ab9d-4a11-bf54-55ba1e636b56</guid><dc:creator>Swapnil Karkare</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the response.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you please confirm that after Pairing and connection in &amp;quot;Just Works&amp;quot;, BLE provide encrypted and secure communication?&lt;/p&gt;
&lt;p&gt;Also, Could you please provide documents which will refere above statement?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE  Pairing and security</title><link>https://devzone.nordicsemi.com/thread/362818?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2022 11:11:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d44a3800-862e-46e8-bc83-0b681ce0af92</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I suggest you take a look at the &lt;span&gt;&lt;a title="Glucose Application" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/ble_sdk_app_gls.html?cp=8_1_4_2_2_11"&gt;Glucose Application&lt;/a&gt;&lt;/span&gt;. It supports LESC passkey pairing. You can use this implementation as a reference if you want to enable the same for another application.&lt;/p&gt;
&lt;p&gt;Also, you can add this to gap_init() if you want to set a static passkey:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    ble_opt_t ble_opt;
    uint8_t passkey[] = &amp;quot;123456&amp;quot;;

    ble_opt.gap_opt.passkey.p_passkey = passkey;
    err_code = sd_ble_opt_set(BLE_GAP_OPT_PASSKEY, &amp;amp;ble_opt);
    APP_ERROR_CHECK(err_code);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>