<?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>Master emulator pairing, passkey and bonding issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39923/master-emulator-pairing-passkey-and-bonding-issue</link><description>Hi Sir/ Miss: 
 
 I use master emulator to develop software testing device that dll version is 2.1.13.14. 
 It&amp;#39;s developed on using C#. 
 And, I use nrf51 dongle (PCA10031) to develop software. 
 
 I have two questions about pairing, entering passkey</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Nov 2018 10:27:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39923/master-emulator-pairing-passkey-and-bonding-issue" /><item><title>RE: Master emulator pairing, passkey and bonding issue</title><link>https://devzone.nordicsemi.com/thread/157910?ContentTypeID=1</link><pubDate>Mon, 19 Nov 2018 10:27:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a12faba2-0e92-4d11-80f0-bf8fb2765d88</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Some more details and clarifications from the developers:&lt;/p&gt;
&lt;p&gt;It is always the Central that has to initiate pairing, i.e, call Bond() in master emulator. The Central can either initiate pairing on own initiative, or wait for Peripheral to send a Security Request. Either way Bond() must be called. SecurityParameters that is sent in SequrityRequestEvent is information about the Peripheral&amp;#39;s parameters. The Central&amp;#39;s parameters must be set in the Bond()-call. If no parameters are set in then Bond()-call, default SecurityParameters will be used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Master emulator pairing, passkey and bonding issue</title><link>https://devzone.nordicsemi.com/thread/156994?ContentTypeID=1</link><pubDate>Tue, 13 Nov 2018 07:37:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7dfac387-7f17-442e-b2fb-6f0e6e8d5a2e</guid><dc:creator>Ben</dc:creator><description>&lt;p&gt;I&amp;#39;ve set iocapability to keyboardonly or keyboarddisplay.&lt;/p&gt;
&lt;p&gt;When I want to get DIS, it still displays&amp;nbsp;&lt;span style="background-color:transparent;color:#000000;float:none;font-family:Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:18px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;ATT error insufficient authentication&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;I think it should be got event to notify me to enter passkey.&lt;/p&gt;
&lt;p&gt;May I ask whether is it having this event?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Master emulator pairing, passkey and bonding issue</title><link>https://devzone.nordicsemi.com/thread/156784?ContentTypeID=1</link><pubDate>Sun, 11 Nov 2018 18:49:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76c32bfe-7ec0-4958-9caa-4cbcd796d4f7</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;It is correct that you should set the passkey in the&lt;span&gt;&amp;nbsp;OnPasskeyRequest event, when it is being requested.&amp;nbsp;I see you have set iocapabilities&amp;nbsp;to displayonly. This should be set to keyboardonly or keyboarddisplay in order to get a&amp;nbsp;passkey request.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Master emulator pairing, passkey and bonding issue</title><link>https://devzone.nordicsemi.com/thread/156565?ContentTypeID=1</link><pubDate>Fri, 09 Nov 2018 03:59:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:176e025e-168e-4c2e-807e-1f49e827f996</guid><dc:creator>Ben</dc:creator><description>&lt;p&gt;I try to create below function.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;        void OnSecurityRequest(object sender, SecurityRequestEventArgs arguments)
        {
            SecurityRequestEventArgs securityRequestEventArgs = new SecurityRequestEventArgs(true, true);
            securityParameters.IoCapabilities = IoCapabilitiesEnum.DisplayOnly;
            securityParameters.MaximumEncryptionKeySize = 16;
            securityParameters.OobAvailability = OobAvailibilityEnum.OobNotAvailable;

        }

        void OnPasskeyRequest(object sender, PasskeyRequestEventArgs eventArgs)
        {
            
            passkeyRequestEventArgs.Passkey = 123456;
        }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And, these functions add in&amp;nbsp;RegisterEventHandlers()&lt;/p&gt;
&lt;div&gt;But, I can&amp;#39;t check whether the setup is working?&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Or, are these setting wrong?&lt;/div&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Master emulator pairing, passkey and bonding issue</title><link>https://devzone.nordicsemi.com/thread/156005?ContentTypeID=1</link><pubDate>Mon, 05 Nov 2018 15:20:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1f785b9-52ce-430b-acee-93a35ddcd108</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;You should be able to set the&amp;nbsp;IoCapabilities in&amp;nbsp;SecurityParameters Class and pass this as argument to&amp;nbsp;MasterEmulator.Bond Method.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Master emulator pairing, passkey and bonding issue</title><link>https://devzone.nordicsemi.com/thread/155031?ContentTypeID=1</link><pubDate>Tue, 30 Oct 2018 09:01:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0314d866-9121-4f80-b24a-1d4d30912976</guid><dc:creator>Ben</dc:creator><description>&lt;p style="background-color:transparent;color:#000000;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;margin-top:0px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p style="background-color:transparent;color:#000000;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;For Q1:&lt;/p&gt;
&lt;p style="background-color:transparent;color:#000000;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;I&amp;#39;m writing central GUI application by using MCP firmware &amp;quot;MEFW_nRF51822_0.10.0_firmware_1M.hex&amp;quot;.&lt;/p&gt;
&lt;p style="background-color:transparent;color:#000000;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;I&amp;#39;m basing on nRF UART of master emulator.&lt;/p&gt;
&lt;p style="background-color:transparent;color:#000000;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;I read blog on SIG. It mentions that SMP should define I/O capability and SC on pairing feature exchange for&lt;span style="background-color:transparent;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt; entering to entry passkey of LE legacy pairing&lt;/span&gt;. I found Enumeration name &amp;quot;IoCapabilitiesEnum&amp;quot; on API document, but I couldn&amp;#39;t find to associated &lt;span style="background-color:transparent;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;IoCapabilitiesEnum&lt;/span&gt; with method (like PipeStore associate with SetupAddService). And, I also can not&amp;nbsp; find the SC function on API document.&lt;/p&gt;
&lt;p style="background-color:transparent;color:#000000;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;In peripheral device notify central (BLE_GAP_EVT_AUTH_KEY_REQUEST) to enter passkey situations, do I follow the API document to create PasskeyRequestEventArgs? And, when I enter passkey on GUI, the API document depicts set a property &amp;quot;public in Passkey { set;}&amp;quot;. Doesn&amp;#39;t it require to use any API functions to transmit value to central device?&lt;/p&gt;
&lt;p style="background-color:transparent;color:#000000;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;&lt;/p&gt;
&lt;p style="background-color:transparent;color:#000000;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;For Q2:&lt;/p&gt;
&lt;p style="background-color:transparent;color:#000000;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;&lt;span style="background-color:transparent;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;This blog is really to let me know it better.&lt;/span&gt; Thank you for your information and reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Master emulator pairing, passkey and bonding issue</title><link>https://devzone.nordicsemi.com/thread/154878?ContentTypeID=1</link><pubDate>Mon, 29 Oct 2018 13:20:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eeaa3def-3b3f-466d-a48b-7a660359a91d</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Q1: Are you writing a Peripheral or Central application? Which example are you basing your application on? The passkey is normally generated and displayed on the Peripheral side (display, terminal, etc.) and then entered on the Central. Please have a look at the Message Sequence Charts in softdevice documentation:&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v2.0.1/group___b_l_e___g_a_p___p_e_r_i_p_h___s_e_c___m_s_c.html"&gt;Peripheral Security Procedures&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v2.0.1/group___b_l_e___g_a_p___c_e_n_t_r_a_l___s_e_c___m_s_c.html"&gt;Central Security Procedures&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Q2: I would recommend that you read the &lt;a href="https://blog.bluetooth.com/bluetooth-pairing-part-1-pairing-feature-exchange"&gt;4 blog posts&lt;/a&gt; on Bluetooth SIG that described Pairing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>