<?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/989/how-to-implement-the-static-pin-type-pairing</link><description>Hi,
How to implement the static PIN type pairing, when the server device doesn&amp;#39;t have keyboard or display? Our requirement is, Master will initiate the pairing process and device should ask for the PIN (6 digit static), when master enters the correct</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Jul 2014 13:33:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/989/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/4686?ContentTypeID=1</link><pubDate>Thu, 03 Jul 2014 13:33:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f36e7462-83e9-4e44-94ba-2237bb934401</guid><dc:creator>P&amp;#229;l H&amp;#229;land</dc:creator><description>&lt;p&gt;You would only be able to use passkey if the peer support keyboard, and one of the devices set MITM to 1&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/4685?ContentTypeID=1</link><pubDate>Thu, 03 Jul 2014 12:37:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2ee9243-d1d9-4510-9b15-f824df13dfb5</guid><dc:creator>OPQ</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry to trouble you again , I paste your code to project nrf6310\s110\ble_app_hrs,I found that it can connected without passkey. IO capability using  BLE_GAP_IO_CAPS_DISPLAY_ONLY.Are there any specific withdrawal issues to be aware of?&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/4684?ContentTypeID=1</link><pubDate>Thu, 03 Jul 2014 12:13:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33c388f6-005f-47fb-98ca-c2d2ad926268</guid><dc:creator>OPQ</dc:creator><description>&lt;p&gt;Thank you so much for your patient.&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/4683?ContentTypeID=1</link><pubDate>Thu, 03 Jul 2014 10:57:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:767e133c-7658-4576-973c-1fef18f9bb88</guid><dc:creator>P&amp;#229;l H&amp;#229;land</dc:creator><description>&lt;p&gt;Sorry about that, I had some problems in my code, I wrote it from the top of my head, without testing it. Updated in response&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/4688?ContentTypeID=1</link><pubDate>Thu, 03 Jul 2014 10:09:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:184674c6-ef1b-4769-8ce6-0dd826fa0611</guid><dc:creator>OPQ</dc:creator><description>&lt;p&gt;Yes I had already downloaded s110 7.0.0, and using sdk6.0.0.Now, the propblem is when I using your Sample code it can&amp;#39;t compile sucess.&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/4682?ContentTypeID=1</link><pubDate>Thu, 03 Jul 2014 10:01:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5cfa89e-06a8-4c42-b484-a1962057d78b</guid><dc:creator>P&amp;#229;l H&amp;#229;land</dc:creator><description>&lt;p&gt;Have you downloaded the S110 7.0.0 production files?&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/4681?ContentTypeID=1</link><pubDate>Thu, 03 Jul 2014 08:50:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c26d7c5-f307-4aae-8da3-8a4709eeb154</guid><dc:creator>OPQ</dc:creator><description>&lt;p&gt;Hi Pal,&lt;/p&gt;
&lt;p&gt;Thank you for your suggestion.
I tested the sample code,it can&amp;#39;t compile.The compile error
is the ble_opt_passkey_t undefine.&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/4687?ContentTypeID=1</link><pubDate>Thu, 03 Jul 2014 06:36:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d536fc79-bbf5-4c99-a5b1-322c8b818a7f</guid><dc:creator>balaji</dc:creator><description>&lt;p&gt;Thank you Pal,
Very useful for our current products.&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/4680?ContentTypeID=1</link><pubDate>Wed, 02 Jul 2014 10:22:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a442893-2be5-4520-801a-35fe01712276</guid><dc:creator>balaji</dc:creator><description>&lt;p&gt;Thanks for the suggestion Pal,
What is option ID?  where can i get this? any sample code regarding this? a simple code snippet will help me a lot.&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/4679?ContentTypeID=1</link><pubDate>Wed, 02 Jul 2014 08:13:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c23fb82-4fd7-47d7-97bc-2c16ed4a7c56</guid><dc:creator>P&amp;#229;l H&amp;#229;land</dc:creator><description>&lt;p&gt;With the latest softdevice &lt;a href="http://www.nordicsemi.com/eng/Products/S110-SoftDevice-v7.0"&gt;www.nordicsemi.com/.../S110-SoftDevice-v7.0&lt;/a&gt; you will be able to set a static passkey.&lt;/p&gt;
&lt;p&gt;By using the API call sd_ble_opt_set() with the structure ble_gap_opt_passkey_t, then the passkey display event will come with the passkey you set.&lt;/p&gt;
&lt;p&gt;Code Sample:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint8_t passkey[] = &amp;quot;123456&amp;quot;;
ble_opt_t ble_opt;
ble_opt.gap.passkey.p_passkey = &amp;amp;passkey[0];
(void) sd_ble_opt_set(BLE_GAP_OPT_PASSKEY, &amp;amp;ble_opt);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Use IO capability display in the sec params request.&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/4677?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2013 16:05:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f722b1d8-091b-4c99-9f27-b5ea4b8162e1</guid><dc:creator>balaji</dc:creator><description>&lt;p&gt;Thanks for the reply Morten,
Now i can implement pairing as below,
IO capability for both the end is set to keyboard only, then in the server side i hard-coded the passkey value to 123456, and added the below case in on_ble_evt,&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;case BLE_GAP_EVT_AUTH_KEY_REQUEST:
sd_ble_gap_auth_key_reply(m_conn_handle,BLE_GAP_AUTH_KEY_TYPE_PASSKEY, passkey);
break;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;when i click bond in the master control panel it will ask for the passkey, and the passkey i need to enter is 123456. And also checked it is working fine.&lt;/p&gt;
&lt;p&gt;But when i enter wrong key (121212) it is giving receiver link loss as i expected, but, in device info it is showing that &lt;strong&gt;Bonded: True&lt;/strong&gt; and when i press bond button i am getting bond already exists with xxxxxxxx(device address). Please suggest me to overcome this.&lt;/p&gt;
&lt;p&gt;Regards,
Balaji&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/4678?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2013 14:16:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72a0e8c5-552d-400d-859d-087a5c08b174</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;We don&amp;#39;t have any sample applications for this, but the sequence of events and function calls needed are given here:
&lt;a target="_blank" href="https://devzone.nordicsemi.com/documentation/nrf51/4.4.2/html/group___b_l_e___g_a_p___b_o_n_d_i_n_g___p_k___c_e_n_t_r_a_l___o_o_b___m_s_c.html" rel="nofollow"&gt;Central OOB MSC&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Beware however, that I&amp;#39;m not aware of any Central allowing the kind of low-level control you need to do this.&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/4676?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2013 13:23:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ba6e7c3-7d9c-4cb9-abf9-2ec05400ba5c</guid><dc:creator>balaji</dc:creator><description>&lt;p&gt;Thanks for the reply Morten,
As you said, we can go for Numeric Comparison method, but i don&amp;#39;t see any sample application with keyboard only IO capabilities, it will be more helpful for us, if we get sample application related to this.&lt;/p&gt;
&lt;p&gt;Regards,
Balaji&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/4675?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2013 12:18:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af2308a7-c6d8-46f8-bb69-a074f4f87570</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;See &lt;a href="https://devzone.nordicsemi.com/index.php/pincode#reply-1168"&gt;this answer&lt;/a&gt;, and possibly also the other ones in that thread.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>