<?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>static passkey demo code for S110 stackV8.0/SDK10 of nrf51822</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15974/static-passkey-demo-code-for-s110-stackv8-0-sdk10-of-nrf51822</link><description>Dear all 
 I want to add the static pin to my project(s110 stackV8.0, based on SDK10), add the follow code to gap_params_init: 
 uint8_t passkey[] = STATIC_PASSKEY;
m_static_pin_option.gap_opt.passkey.p_passkey = passkey;
err_code = sd_ble_opt_set</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Sep 2016 14:53:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15974/static-passkey-demo-code-for-s110-stackv8-0-sdk10-of-nrf51822" /><item><title>RE: static passkey demo code for S110 stackV8.0/SDK10 of nrf51822</title><link>https://devzone.nordicsemi.com/thread/60940?ContentTypeID=1</link><pubDate>Mon, 12 Sep 2016 14:53:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:731a4023-6c9b-48ab-8f39-9bd5963e13c1</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Np :) Then I would appreciate if you would accept my answer by clicking the check mark next to it. Thx.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: static passkey demo code for S110 stackV8.0/SDK10 of nrf51822</title><link>https://devzone.nordicsemi.com/thread/60941?ContentTypeID=1</link><pubDate>Mon, 12 Sep 2016 03:46:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db342e17-6210-4aa4-bc64-be8002d16e3b</guid><dc:creator>Jenson</dc:creator><description>&lt;p&gt;Petter&lt;/p&gt;
&lt;p&gt;Thanks for your information, that helps.&lt;/p&gt;
&lt;p&gt;I solve this issue by followed steps：&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;set the fixed passkey in gap_params_init see in post 1 code.&lt;/li&gt;
&lt;li&gt;init the device manager which will set the IO capabilities and call the SDK&amp;#39;s device manager event process function.&lt;/li&gt;
&lt;li&gt;Set the characteristics&amp;#39; security level like:  BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM(&amp;amp;attr_md.read_perm);&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Regards
Jenson&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: static passkey demo code for S110 stackV8.0/SDK10 of nrf51822</title><link>https://devzone.nordicsemi.com/thread/60939?ContentTypeID=1</link><pubDate>Mon, 29 Aug 2016 12:11:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:632ff0f5-ccaa-4f11-a0ad-ef8d0ac85989</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;A peripheral will allow any central to connect to it, as long as it is not using a whitelist. You connect before you pair, you pair to increase the security level of the link so that you can access characteristic values or descriptors that require a certain security level.&lt;/p&gt;
&lt;p&gt;You can set the security requirement of the characteristic values and descriptors by using the GAP attribute security requirement setters, see for example in glucose_feature_char_add() where you need security level 2 (BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM(&amp;amp;attr_md.read_perm);) to read the characteristic value. &lt;a href="https://devzone.nordicsemi.com/question/84957/protecting-write-characteristic-best-option/"&gt;This&lt;/a&gt; question may also give some insight.&lt;/p&gt;
&lt;p&gt;The central device, here the smart phone, must send the pairing request. The smart phone will normally send this pairing request when it tries to access a peripheral that requires encryption without success.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: static passkey demo code for S110 stackV8.0/SDK10 of nrf51822</title><link>https://devzone.nordicsemi.com/thread/60938?ContentTypeID=1</link><pubDate>Sat, 27 Aug 2016 02:31:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17970c6d-e96a-40a0-8185-3dc5ed10679c</guid><dc:creator>Jenson</dc:creator><description>&lt;p&gt;Thanks for your remind. I will follow the rules.&lt;br /&gt;
But for my understanding, when we use the phone connect to the device, there should pop out an pair requirement to let phone type in passkey to complete the pair process.  Right? But how to achieve this?  Any demo can I refer to?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: static passkey demo code for S110 stackV8.0/SDK10 of nrf51822</title><link>https://devzone.nordicsemi.com/thread/60937?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2016 06:45:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e95337b1-0310-4dfb-98f2-674425c87924</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;First - please use the code buttons to format your message so it can be read - I just fixed it for you, you get a preview at the bottom of the screen so you can edit until it&amp;#39;s legible.&lt;/p&gt;
&lt;p&gt;Secondly - do you have any permissions on any of the characteristics? Anything can connect to you without requiring a passkey - it&amp;#39;s when you try to access characteristics which require pairing/bonding that the bonding process will occur.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>