<?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 pass key implementation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4315/static-pass-key-implementation</link><description>Hi, 
 I am using softdevice-7 and SDK 6.1 for our application. I want to implement static key pairing for serial port over ble application &amp;quot;ble_app_uart&amp;quot;. 
 I have implemented following changes for static key implementation. 
 1)changed I/o capabilities</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 24 Nov 2014 13:19:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4315/static-pass-key-implementation" /><item><title>RE: Static pass key implementation</title><link>https://devzone.nordicsemi.com/thread/15376?ContentTypeID=1</link><pubDate>Mon, 24 Nov 2014 13:19:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7432bee-ee14-4833-9e82-a834e226546e</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;We have an example on GitHub with static passkey, please see &lt;a href="https://github.com/NordicSemiconductor/nRF51-ble-app-uart-static-passkey"&gt;this&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://developer.nordicsemi.com/nRF51_SDK/doc/7.0.1/s110/html/a00861.html"&gt;This&lt;/a&gt; MSC from our SDK documentation might also be of help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Static pass key implementation</title><link>https://devzone.nordicsemi.com/thread/15375?ContentTypeID=1</link><pubDate>Wed, 12 Nov 2014 10:16:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:768395c3-2e77-4db2-92e2-37a429a59350</guid><dc:creator>raju</dc:creator><description>&lt;p&gt;Hi,
I am facing some problem in device manager initialization  for static passkey implementation.
I have added &amp;quot;device_manager_init()&amp;quot;,device_manager_evt_handler(),sec_req_timeout_handler() functions to implement device manager functionality.
device_manager_init() is just called after ble_stack_init() function in ble_evt_dispatch() function, I have added dm_ble_evt_handler()
in timers_init() new timer is created for  Security Request.&lt;/p&gt;
&lt;p&gt;dm_ble_evt_handler() is added ble_evt_dispatch() to take device manager functionality into account. in on_ble_evt() added BLE_GAP_EVT_PASSKEY_DISPLAY case,&lt;/p&gt;
&lt;p&gt;I have observed that sd_ble_gap_authenticate() , which is called dm_security_setup_req() is returning &amp;quot;NRF_ERROR_INVALID_STATE&amp;quot;. I have checked  all input arguments of dm_security_setup_req(), and proper. could someone help me to found , where I am doing mistake.&lt;/p&gt;
&lt;p&gt;Regards,
Raju&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Static pass key implementation</title><link>https://devzone.nordicsemi.com/thread/15374?ContentTypeID=1</link><pubDate>Wed, 05 Nov 2014 11:59:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d28030f4-7992-4e9e-982a-e521bab81381</guid><dc:creator>Balaji Srinivasan</dc:creator><description>&lt;p&gt;Hi Raju,&lt;/p&gt;
&lt;p&gt;It looks like the attachment is missing.&lt;/p&gt;
&lt;p&gt;But I understand you are trying to make the device manager module handle security. But have you registered with device manager with the right security parameters (using dm_register)? For your case, you will need to turn on mitm when you register with dm_register. But I dont see you doing this in step 5.&lt;/p&gt;
&lt;p&gt;If you do not want to use device manager, then undo what you did in step 3 (keep the case you added for BLE_GAP_EVT_PASSKEY_DISPLAY), step 4, step 5, and step 6. It should work as per your expectation.&lt;/p&gt;
&lt;p&gt;Cheers,
Balaji&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>