<?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>NRF51822 authentication</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/139/nrf51822-authentication</link><description>Hi guys, 
 can someone provide an example or tutorial how to do BLE connection with authentication key? 
 Regards,
Konstantin</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 21 Jul 2013 20:37:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/139/nrf51822-authentication" /><item><title>RE: NRF51822 authentication</title><link>https://devzone.nordicsemi.com/thread/761?ContentTypeID=1</link><pubDate>Sun, 21 Jul 2013 20:37:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2720e836-e214-4519-9d28-3d835245649f</guid><dc:creator>Mihail</dc:creator><description>&lt;p&gt;In bref:
Code is part of the example which I pointed to you. This is essential part, but not all (more in the example). It is kind of a starting point for you. I saw your device(on the web, the prototype) does not have screen or keyboard so it will work on your NRFGo board only:
//in security parameters init you will need
m_sec_params.io_caps = SEC_PARAM_IO_CAPABILITIES;
// SEC_PARAM_IO_CAPABILITIES = BLE_GAP_IO_CAPS_DISPLAY_ONLY&lt;/p&gt;
&lt;p&gt;//and the code which display the number to be entered:
case BLE_GAP_EVT_PASSKEY_DISPLAY:
if (m_is_display_available)
{
p_passkey = (char *)p_ble_evt-&amp;gt;evt.gap_evt.params.passkey_display.passkey;&lt;/p&gt;
&lt;p&gt;success = nrf6350_lcd_on();
APP_ERROR_CHECK_BOOL(success);&lt;/p&gt;
&lt;p&gt;success = nrf6350_lcd_write_string(PASSKEY_TXT, PASSKEY_TXT_LENGTH, LCD_UPPER_LINE, 0);
APP_ERROR_CHECK_BOOL(success);&lt;/p&gt;
&lt;p&gt;success = nrf6350_lcd_write_string(p_passkey, PASSKEY_LENGTH, LCD_LOWER_LINE, 0);
APP_ERROR_CHECK_BOOL(success);
}
break;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51822 authentication</title><link>https://devzone.nordicsemi.com/thread/759?ContentTypeID=1</link><pubDate>Sun, 21 Jul 2013 14:52:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd3a4a56-6e51-4e42-8fc7-9ec70efcc0ef</guid><dc:creator>Konstantin</dc:creator><description>&lt;p&gt;I develop Jomi band software and electronics:
&lt;a target="_blank" href="http://jomiinteractive.com/" rel="nofollow"&gt;http://jomiinteractive.com/&lt;/a&gt;
Device must pair with phones&amp;#39; application. I am using nrfGo and nrf51822 DK. Task is to make connection so, that phone would ask key.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51822 authentication</title><link>https://devzone.nordicsemi.com/thread/760?ContentTypeID=1</link><pubDate>Sun, 21 Jul 2013 14:42:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1ad59a5-08d5-42c7-a831-cb27ce0570d8</guid><dc:creator>Guest</dc:creator><description>&lt;p&gt;Give some more information what you want to build. Does your device has keyboard or display or ..? Which kit you are using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51822 authentication</title><link>https://devzone.nordicsemi.com/thread/758?ContentTypeID=1</link><pubDate>Sun, 21 Jul 2013 14:42:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5b57c3a-1776-4641-812b-88f4ed486731</guid><dc:creator>Bastiaan</dc:creator><description>&lt;p&gt;Give some more information what you want to build. Does your device has keyboard or display or ..? Which kit you are using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51822 authentication</title><link>https://devzone.nordicsemi.com/thread/757?ContentTypeID=1</link><pubDate>Sun, 21 Jul 2013 08:48:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:799a5d7b-2587-41b5-b532-b6b680dabdf5</guid><dc:creator>Konstantin</dc:creator><description>&lt;p&gt;Thank you, guys. I will check documentation and ble_app_gls project.
But maybe someone has an example from real product?&lt;/p&gt;
&lt;p&gt;Konstantin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51822 authentication</title><link>https://devzone.nordicsemi.com/thread/756?ContentTypeID=1</link><pubDate>Sat, 20 Jul 2013 15:25:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cdd9ef9-8f6a-4abb-a4a1-6f5e144ad26e</guid><dc:creator>Carles</dc:creator><description>&lt;p&gt;Hi Konstantin,&lt;/p&gt;
&lt;p&gt;The SoftDevice documentation comes with a set of Message Sequence Chars (MSCs) that depict the required sequence of API calls and events required to authenticate a link.&lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51822 authentication</title><link>https://devzone.nordicsemi.com/thread/755?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2013 22:26:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b05ecd7-cd45-48c9-a9c4-9e679d40c913</guid><dc:creator>Mihail</dc:creator><description>&lt;p&gt;Hi Konstantin,
check &amp;quot;Blood Glucose Application&amp;quot; example, at ..nrf51822\Board\nrf6310\ble\ble_app_gls.
I hope by authentication key you mean passkey and not OOB.&lt;/p&gt;
&lt;p&gt;Regards
Mihail&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>