<?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>Pairing issue | 0x3D MIC failure error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53914/pairing-issue-0x3d-mic-failure-error</link><description>Hello everyone, 
 I am using nrf52832 module with SDK v14.2 and SD v5.0.0 for my development. 
 Recently, i started facing the below issue: 
 Once i try to pair the module with the smartphone ( in this case, samsung), its paired fine. Problem happens</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Dec 2019 11:41:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53914/pairing-issue-0x3d-mic-failure-error" /><item><title>RE: Pairing issue | 0x3D MIC failure error</title><link>https://devzone.nordicsemi.com/thread/224143?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2019 11:41:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2e16f2d-4ccc-474a-b7fd-29d8b36d5263</guid><dc:creator>Sigurd</dc:creator><description>[quote user="Samarth"]I found the below link and it seemed to solve the issue.&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;Great!&lt;/p&gt;
[quote user="Samarth"]I wonder why though? Would you know anything in this regard?[/quote]
&lt;p&gt;Likely an issue with the phone, happening internally in the Bluetooth stack on the phone. &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Sniffer-for-Bluetooth-LE"&gt;A sniffer trace&lt;/a&gt; comparing 900ms vs 400ms delay timer might give us some clues, but since this is happening internally on the phone, it’s difficult to say exactly why it’s not able to handle the request at 400ms.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing issue | 0x3D MIC failure error</title><link>https://devzone.nordicsemi.com/thread/224100?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2019 09:24:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17880892-dc58-4aa0-9536-82e781bbacb9</guid><dc:creator>SK</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I found the below link and it seemed to solve the issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/40412/android-phone-loses-bonding-information-when-trying-to-read-characteristic"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/40412/android-phone-loses-bonding-information-when-trying-to-read-characteristic&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Changing the delay timer to 900 ms from 400 ms.&lt;/p&gt;
&lt;p&gt;I wonder why though? Would you know anything in this regard? Also, i migrated my SDK from 14.2 to 15.3. Thought that might resolve the issue. But it was the security delay timer.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing issue | 0x3D MIC failure error</title><link>https://devzone.nordicsemi.com/thread/221989?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2019 07:09:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84615463-9e12-4727-94cb-5d616d381809</guid><dc:creator>SK</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry i was not able to check on it before. Will do so and update you soonest.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing issue | 0x3D MIC failure error</title><link>https://devzone.nordicsemi.com/thread/219153?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2019 18:15:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9af7d8f-7e1a-4bf4-9ced-83d42247b6db</guid><dc:creator>Sigurd</dc:creator><description>[quote user="Samarth"]Would you say that i am using correct params here?[/quote]
&lt;p&gt;Yes, they seem to be fine. Could you check if you are able to reproduce the beahaior with the phone, using the&amp;nbsp;ble_app_gls example in the SDK ? (set SEC_PARAM_LESC to 0).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing issue | 0x3D MIC failure error</title><link>https://devzone.nordicsemi.com/thread/218700?ContentTypeID=1</link><pubDate>Wed, 06 Nov 2019 01:28:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55c1ede1-b6c7-45bc-9291-9eab3cc19263</guid><dc:creator>SK</dc:creator><description>&lt;p&gt;Also, i am using a static passkey feature for which&amp;nbsp;BLE_GAP_IO_CAPS_DISPLAY_ONLY has been used.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing issue | 0x3D MIC failure error</title><link>https://devzone.nordicsemi.com/thread/218698?ContentTypeID=1</link><pubDate>Wed, 06 Nov 2019 01:25:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6497a238-f90e-40d1-9638-677635698ef6</guid><dc:creator>SK</dc:creator><description>&lt;p&gt;Recently it started with S9+ actually. It was not happening before (4-5 months into development).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We are using a test phone provided by TP-Link (neffos C9A) which has given consistently same issue.&lt;/p&gt;
&lt;p&gt;Security parameters used are as follows:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    // Security parameters to be used for all security procedures.
    stSecParam.bond           = SEC_PARAM_BOND; //1
    stSecParam.mitm           = SEC_PARAM_MITM; //1
    stSecParam.lesc           = SEC_PARAM_LESC;  //0
    stSecParam.keypress       = SEC_PARAM_KEYPRESS; //0
    stSecParam.io_caps        = SEC_PARAM_IO_CAPABILITIES; //BLE_GAP_IO_CAPS_DISPLAY_ONLY
    stSecParam.oob            = SEC_PARAM_OOB; //0
    stSecParam.min_key_size   = SEC_PARAM_MIN_KEY_SIZE; //7
    stSecParam.max_key_size   = SEC_PARAM_MAX_KEY_SIZE; //16
    stSecParam.kdist_own.enc  = 1;
    stSecParam.kdist_own.id   = 1;
    stSecParam.kdist_peer.enc = 1;
    stSecParam.kdist_peer.id  = 1;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Would you say that i am using correct params here? I will check out the link also that you gave. thanks!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing issue | 0x3D MIC failure error</title><link>https://devzone.nordicsemi.com/thread/218586?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2019 13:30:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b32bbbab-a3e0-4fe0-9f56-8b553a4d2e12</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Are you seeing this issue on other phones also, or only the S9+ ?&lt;/p&gt;
&lt;p&gt;What security parameters are you using for the Peer Manager ? (See &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/lib_pm_usage.html?cp=5_5_3_3_2_6_2_1#lib_pm_usage_security"&gt;this link&lt;/a&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing issue | 0x3D MIC failure error</title><link>https://devzone.nordicsemi.com/thread/218460?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2019 09:25:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11cab68e-fce3-4576-9d25-52bce6c47a32</guid><dc:creator>SK</dc:creator><description>&lt;p&gt;1. I deleted the bond on the phone as well.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. Samsung galaxy s9+&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3. I did turn off and on again to test but problem persisted.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have not tried using a different soft device yet, though :/&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing issue | 0x3D MIC failure error</title><link>https://devzone.nordicsemi.com/thread/218457?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2019 09:21:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a56fe38c-d553-4a03-98ac-81e54d0b6d9b</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Did you delete the bond on the phone also ? What phone model is this? Could you try turning the phone off and on again ?&lt;/p&gt;
&lt;p&gt;Is there any difference in the behavior if you use &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Software/S132/Download#infotabs"&gt;S132 v5.1.0&lt;/a&gt;&amp;nbsp;instead?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing issue | 0x3D MIC failure error</title><link>https://devzone.nordicsemi.com/thread/218129?ContentTypeID=1</link><pubDate>Mon, 04 Nov 2019 05:07:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0aac660-b4b8-48ad-93f0-ef3dcb7a1298</guid><dc:creator>SK</dc:creator><description>&lt;p&gt;Thanks a lot. But i already have had that function modified to what is suggested in the post.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing issue | 0x3D MIC failure error</title><link>https://devzone.nordicsemi.com/thread/218128?ContentTypeID=1</link><pubDate>Mon, 04 Nov 2019 05:01:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9132ba8-703a-4b91-ad47-8a28f3308654</guid><dc:creator>skulkarni</dc:creator><description>&lt;p&gt;&lt;a title="Pairing issue" href="https://devzone.nordicsemi.com/f/nordic-q-a/52034/sdk-15-3-pairing-issue"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/52034/sdk-15-3-pairing-issue&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;See if it helps you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing issue | 0x3D MIC failure error</title><link>https://devzone.nordicsemi.com/thread/218092?ContentTypeID=1</link><pubDate>Mon, 04 Nov 2019 02:24:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e05fc87a-072e-4c24-a541-47e6d79a54b4</guid><dc:creator>SK</dc:creator><description>&lt;p&gt;UPDATE: I tried deleting the bonds with this function--&amp;gt; pm_peers_delete(), but problem still persists.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing issue | 0x3D MIC failure error</title><link>https://devzone.nordicsemi.com/thread/218090?ContentTypeID=1</link><pubDate>Mon, 04 Nov 2019 01:07:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c47cf254-d51e-45f9-b4b1-365e201524d0</guid><dc:creator>SK</dc:creator><description>&lt;p&gt;Also, if this works, it still looks like a temporary solution. What if it happens in the future when the products are out with customers? How to eradicate this permanently?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing issue | 0x3D MIC failure error</title><link>https://devzone.nordicsemi.com/thread/218089?ContentTypeID=1</link><pubDate>Mon, 04 Nov 2019 01:06:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29d92d98-505a-432e-b023-aa96f03f0125</guid><dc:creator>SK</dc:creator><description>&lt;p&gt;Hi, How do i remove the bond from the nRF? i tried erasing the chip assuming that will erase the bond as well from the nRF module.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing issue | 0x3D MIC failure error</title><link>https://devzone.nordicsemi.com/thread/218007?ContentTypeID=1</link><pubDate>Fri, 01 Nov 2019 15:58:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b04045b-835a-4e60-9887-fbe099cdd011</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;BLE_HCI_CONN_TERMINATED_DUE_TO_MIC_FAILURE could indicate that you are using&amp;nbsp;incorrect encryption keys when you try to encrypt the link with a bonded device. Maybe the bonds were accidentally deleted on the phone. Try to remove the bond on both the phone and the nRF, and bond again.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>