<?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 implement the static PIN type pairing?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/3802/how-to-implement-the-static-pin-type-pairing</link><description>Hi,
I am using SDK6.1 and SD7.0 for our application. I would like to know how to implement the static PIN type pairing?
I have searched Nordic&amp;#39;s developers zone and found some information.
 devzone.nordicsemi.com/.../ 
 I have implemented following</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Nov 2014 15:49:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/3802/how-to-implement-the-static-pin-type-pairing" /><item><title>RE: How to implement the static PIN type pairing?</title><link>https://devzone.nordicsemi.com/thread/13734?ContentTypeID=1</link><pubDate>Thu, 13 Nov 2014 15:49:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c384b29-7576-4c70-90db-15effc15999e</guid><dc:creator>MH</dc:creator><description>&lt;p&gt;Could you please share the source code here?
I tried to add the passkey but i failed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement the static PIN type pairing?</title><link>https://devzone.nordicsemi.com/thread/13733?ContentTypeID=1</link><pubDate>Mon, 15 Sep 2014 08:16:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01a22cda-9f7b-489f-9787-9255df9f34cf</guid><dc:creator>P&amp;#229;l H&amp;#229;land</dc:creator><description>&lt;p&gt;This also depends on what you set as the capabilities of the device.&lt;/p&gt;
&lt;p&gt;While pairing you would have to set the sec_params to:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sd_ble_gap_sec_params_t sec_params;
memset(&amp;amp;sec_params, 0, sizeof(sec_params));
sec_params.timeout = 30;
sec_params.bond = 1;
sec_params.mitm = 1;
sec_params.io_caps = BLE_GAP_IO_CAPS_DISPLAY_ONLY;
sec_params.min_key_size = 7;
sec_params.max_key_size = 16;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and use this sec_params in the sd_ble_gap_sec_params_reply&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>