<?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 get past &amp;quot;link secure failed! error: PM_CONN_SEC_ERROR_DISCONNECT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12907/how-to-get-past-link-secure-failed-error-pm_conn_sec_error_disconnect</link><description>I was working with examples/ble_peripheral/ble_app_gls. In the SDK11alpha configuration, I paired the dev board with my Android phone running nRF Toolbox and was able to start to modify the example and do things with the glucose data. 
 I&amp;#39;ve worked my</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Apr 2016 22:17:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12907/how-to-get-past-link-secure-failed-error-pm_conn_sec_error_disconnect" /><item><title>RE: How to get past "link secure failed! error: PM_CONN_SEC_ERROR_DISCONNECT</title><link>https://devzone.nordicsemi.com/thread/49147?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2016 22:17:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e73b04c-e465-41f4-891d-de46ecd256af</guid><dc:creator>Pierre Landau</dc:creator><description>&lt;p&gt;With the help of your FAE (Audun), we were able to work around this by (a) changing SEC_PARAM_MITM to 0, SEC_PARAM_IO_CAPABILITIES to BLE_GAP_IO_CAPS_NONE, and then editing pm_evt_handler to remove the check for MITM.&lt;/p&gt;
&lt;p&gt;Nowhere near clear why this manifested in the way it did, but at least we can now move forward.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get past "link secure failed! error: PM_CONN_SEC_ERROR_DISCONNECT</title><link>https://devzone.nordicsemi.com/thread/49143?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2016 20:17:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ae22341-7fb4-41b0-9eda-a639841102bd</guid><dc:creator>Pierre Landau</dc:creator><description>&lt;p&gt;Several seconds after these, I see:
Rcvd Connection Parameter Update Request
Rcvd Connection Parameter Update Reesponse (Accepted)
but nothing relevant to pairing, and eventually the phone shows &amp;quot;not bonded&amp;quot; while RTT shows &amp;quot;link secure failed! error: PM_CONN_SEC_ERROR_DISCONNECT&amp;quot;, which is not particularly informative&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get past "link secure failed! error: PM_CONN_SEC_ERROR_DISCONNECT</title><link>https://devzone.nordicsemi.com/thread/49145?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2016 19:26:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6397c01-ce2d-4df0-be0f-d5b61191b4d9</guid><dc:creator>Pierre Landau</dc:creator><description>&lt;p&gt;I had previously deleted the bonding on the phone; this time I also deleted the bonding tables on the nRF51 before running the sniffing session.&lt;/p&gt;
&lt;p&gt;Unfortunately, I only see two apparently relevant packets:
Master--&amp;gt;Slave, SMP, Rcvd Pairing Request: Bonding, MITM, Initiator Key(s): LTK IRK CSRK, Responder Key(s): LTK IRK CSRK. and
Slave--&amp;gt;Master, Rcvd Pairing Response: Bonding, MITM, Initiator Key(s): LTK IRK, Responder Key(s) LTK IRK.&lt;/p&gt;
&lt;p&gt;This is followed by a minute or so of empty data PDU&amp;#39;s but no further packets that appear relevant to pairing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get past "link secure failed! error: PM_CONN_SEC_ERROR_DISCONNECT</title><link>https://devzone.nordicsemi.com/thread/49146?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2016 08:52:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e17aafde-23ed-4875-8082-6722e4d2fef5</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;The sniffer can catch the key exchange process. In order to do so, you have to make sure that the sniffer is present when the two devices exchange encryption keys, not just when the devices are re-connecting. You can upload the file in the original question, not in the comments.&lt;/p&gt;
&lt;p&gt;Could you delete the bonding information on both the phone and the nRF51/52 device before using sniffer to capture the bonding process?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get past "link secure failed! error: PM_CONN_SEC_ERROR_DISCONNECT</title><link>https://devzone.nordicsemi.com/thread/49144?ContentTypeID=1</link><pubDate>Sat, 02 Apr 2016 00:39:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15160221-1e25-468a-8880-e7f07d51a053</guid><dc:creator>Pierre Landau</dc:creator><description>&lt;p&gt;Sorry about that - apparently the pairing still did not succeed. I see &amp;quot;received pairing request (packet 1307). This shows:
AuthReq: Bonding, MITM
Max encryption size 16
Initiator key distribution: LTK IRK CSRK
Responder Key Distribution: LTK IRK CSRK&lt;/p&gt;
&lt;p&gt;Then Rcvd pairing response: Bonding, Initiator keys: LTK IRK, Responder keys LTK IRK (packet 1310) , followed by more than a minute of empty data PDUs until the remote disconnects.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get past "link secure failed! error: PM_CONN_SEC_ERROR_DISCONNECT</title><link>https://devzone.nordicsemi.com/thread/49142?ContentTypeID=1</link><pubDate>Fri, 01 Apr 2016 22:46:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89867eea-fcb1-4043-98a7-ab256a6465e4</guid><dc:creator>Pierre Landau</dc:creator><description>&lt;p&gt;So I got the sniffer set up. It basically didn&amp;#39;t catch much of anything in the repeated pairing attempts until the pairing magically worked and it started capturing lots of traffic.  No idea why the pairing was failing previously (in BT Classic you got to sniff the key exchange process but seemingly not so much here).  I also wonder whether one of the newer Wireshark versions (I used 1.10 per instructions) might actually be able to decode Glucose Profile or Battery Level packets?  I saved the file just in case it contains some hidden data on the pairing mess, but this page does not seem to have an easy &amp;quot;upload here&amp;quot; button.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get past "link secure failed! error: PM_CONN_SEC_ERROR_DISCONNECT</title><link>https://devzone.nordicsemi.com/thread/49141?ContentTypeID=1</link><pubDate>Fri, 01 Apr 2016 07:44:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:032c693c-9da5-46be-b10a-b9ee1fbc3a3e</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;It would be very useful to check what is being transferred over the air.
Do you have an extra nRF51-DK or a nRF51-Dongle? If so, could you use &lt;a href="https://www.nordicsemi.com/eng/nordic/download_resource/26386/14/65517724"&gt;the sniffer&lt;/a&gt; to track what is being transferred over the air?  And upload the sniffer trace here?&lt;/p&gt;
&lt;p&gt;The sniffer should be used with Wireshark, and it works best with version 1.10, not one of the newer versions. Wireshark can be downloaded here:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.wireshark.org/download/win32/all-versions/"&gt;www.wireshark.org/.../&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.wireshark.org/download/win64/"&gt;www.wireshark.org/.../&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>