<?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>BLE_HCI_CONN_TERMINATED_DUE_TO_MIC_FAILURE with nRF Connect Desktop on PCA10056</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39500/ble_hci_conn_terminated_due_to_mic_failure-with-nrf-connect-desktop-on-pca10056</link><description>I have been successfully using nRF Connect v2.5.0 on Windows with a PCA10056 v0.9.2 to communicate with our target device, a nRF52840 using S140 v6.0.0, nRF5 SDK 15.0.0. We&amp;#39;re using bonded connection with passcode entry (without LE Secure Connections</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 21 Oct 2018 22:40:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39500/ble_hci_conn_terminated_due_to_mic_failure-with-nrf-connect-desktop-on-pca10056" /><item><title>RE: BLE_HCI_CONN_TERMINATED_DUE_TO_MIC_FAILURE with nRF Connect Desktop on PCA10056</title><link>https://devzone.nordicsemi.com/thread/153736?ContentTypeID=1</link><pubDate>Sun, 21 Oct 2018 22:40:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30e78d4f-08f3-40d5-ace9-a4586bf04735</guid><dc:creator>Austin</dc:creator><description>&lt;p&gt;Hi Marjeris&lt;/p&gt;
&lt;p&gt;Thanks for your thorough investigation.&amp;nbsp; It&amp;#39;s good to know that this error doesn&amp;#39;t occur on newer hardware.&amp;nbsp; I have been through the errata lists multiple times as the project has progressed but it&amp;#39;s not always easy to determine the impact of a single errata.&amp;nbsp; I agree that we should move to newer PCA10056 dev kits.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m still interested in any comments your developers may have regarding the SoftDevice version used for connectivity firmware on PCA10056 so when you have an update, please post here.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;Austin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_HCI_CONN_TERMINATED_DUE_TO_MIC_FAILURE with nRF Connect Desktop on PCA10056</title><link>https://devzone.nordicsemi.com/thread/153593?ContentTypeID=1</link><pubDate>Fri, 19 Oct 2018 09:02:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64937607-aeff-4618-bbbd-b3ec5b61158c</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi Austin,&lt;/p&gt;
&lt;p&gt;Thank you for your really detailed step by step guide in how to reproduce your issue, it was really helpful. I implemented the patch and had zero problems reproducing the BLE_HCI_CONN_TERMINATED_DUE_TO_MIC_FAILURE error and trying to debug it. I tested different versions of the nRF52840 DK and can verify that this error message is only showing in version v0.9.2.&lt;/p&gt;
&lt;p&gt;Version 0.9.2 is an engineering A board, meaning that it is a preview, and a lot of fixes were implemented in engineering revision B, and then in C and now we are in version 1 &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52%2Fdita%2Fnrf52%2Ferrata52840.html&amp;amp;cp=2_0_1"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52%2Fdita%2Fnrf52%2Ferrata52840.html&amp;amp;cp=2_0_1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The extended list about the fixed anomalies from revision A to revision B is here &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52840.EngB.errata%2Fdita%2Ferrata%2FnRF52840%2FEngineeringB%2Flatest%2Ferr_840_fixed.html&amp;amp;cp=2_0_1_2_2"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52840.EngB.errata%2Fdita%2Ferrata%2FnRF52840%2FEngineeringB%2Flatest%2Ferr_840_fixed.html&amp;amp;cp=2_0_1_2_2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And as you can see the list is pretty long, so it is a little bit difficult to know exactly what was causing the error after bonding, it could be a timing issue or something else. However this problem does not occur in Engineering version B so it must be something related to the fixed anomalies I linked above.&lt;/p&gt;
&lt;p&gt;So the short answer to this problem is getting a newer version of our nRF52840 DK since Engineering version A is deprecated. We always recommend getting the newest release of the hardware since engineering versions are previews that are meant to show a preview of the features in a product but as you can see there are several bug fixes between Engineering A and the final Version 1.&lt;/p&gt;
&lt;p&gt;But you can of course continue using the DK you have, just bear in mind that it can have some bugs as for instance it does here.&lt;/p&gt;
&lt;p&gt;A funny thing is that I didn&amp;#39;t have any error if I read the &amp;quot;UART over BLE&amp;quot; characteristic before performing the bonding (so just on connect with my device), and then bond and read the characteristic again. So you can try and see if this is a possible &amp;quot;fix&amp;quot; for you.&lt;/p&gt;
&lt;p&gt;I hope this explanaition helps and that you now can continue working on your project. I am sorry if this issue have bother you, but at least now we know where it is coming from &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_HCI_CONN_TERMINATED_DUE_TO_MIC_FAILURE with nRF Connect Desktop on PCA10056</title><link>https://devzone.nordicsemi.com/thread/153350?ContentTypeID=1</link><pubDate>Thu, 18 Oct 2018 01:37:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0da0fed6-e8b7-49f1-9454-98205296207f</guid><dc:creator>Austin</dc:creator><description>&lt;p&gt;Hi Marjeris,&lt;/p&gt;
&lt;p&gt;Thanks for taking a look at this issue.&amp;nbsp; My project is too big to share but I&amp;#39;ve been able to reproduce this issue with some alterations to the ble_app_proximity example app.&amp;nbsp; I modified the sdk_config.h to match the configuration used by our device, then added the BLE NUS service to the project as well as this is also used by our device.&amp;nbsp; With this combination of changes I receive a BLE_HCI_CONN_TERMINATED_DUE_TO_MIC_FAILURE.&lt;/p&gt;
&lt;p&gt;Here is my method to reproduce the issue:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Apply the attached patch to a fresh nRF5 SDK 15.0.0 source tree.&amp;nbsp; The patch modifies the ble_app_proximity project as described above.&lt;/li&gt;
&lt;li&gt;Compile and download ble_app_proximity to a PCA10056 with S140 6.0.0 loaded.&amp;nbsp; I&amp;#39;m using the gcc compiler.&lt;/li&gt;
&lt;li&gt;Use nRF Connect for Windows with a second PCA10056 to communicate via BLE with the target using the following sequence.&lt;/li&gt;
&lt;li&gt;Start ble_app_proximity on first PCA10056, holding down button 2 to erase bonds on startup.&lt;/li&gt;
&lt;li&gt;Scan for Nordic_Prox device using second PCA10056 and press Connect.&lt;/li&gt;
&lt;li&gt;Choose Gear Icon &amp;gt; Pair, select Perform bonding (only) and then Pair.&amp;nbsp; Once pairing complete close pairing window.&lt;/li&gt;
&lt;li&gt;Services from ble_app_proximity will have now been discovered and shown in list, last service is &amp;#39;UART over BLE&amp;#39;.&lt;/li&gt;
&lt;li&gt;Click on &amp;#39;UART over BLE&amp;#39; and the fault will be generated with &amp;#39;Device disconnected&amp;#39; dialog and message in log similar to the following. &amp;#39;&lt;span&gt;Disconnected from device D7:E7:E8:1D:8F:2D, reason: BLE_HCI_CONN_TERMINATED_DUE_TO_MIC_FAILURE&amp;#39;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;I have tried the same test with a PCA10040 connected to nRF Desktop and no error occurs.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Austin&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_hci_5F00_conn_5F00_terminated_5F00_due_5F00_to_5F00_mic_5F00_failure.patch"&gt;devzone.nordicsemi.com/.../ble_5F00_hci_5F00_conn_5F00_terminated_5F00_due_5F00_to_5F00_mic_5F00_failure.patch&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_HCI_CONN_TERMINATED_DUE_TO_MIC_FAILURE with nRF Connect Desktop on PCA10056</title><link>https://devzone.nordicsemi.com/thread/153179?ContentTypeID=1</link><pubDate>Wed, 17 Oct 2018 09:39:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5cb3995-e356-40b8-b4db-b8cfbebb6744</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi Austin,&lt;/p&gt;
&lt;p&gt;It is hard to say what the issue could be here. You will get a MIC failure when using incorrect encryption keys when you try to encrypt the link with a bonded device. The only think I can think of if you haven&amp;#39;t try before is to delete the bond information on both the sides and try bonding again and see if that helps. &lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Maybe you can attach your code here so I can try to reproduce your issue? Or just attached the code for the peer manager, pm_evt_handler and the security parameters, so I can test the ble_app_hrs example with the same security setup you have and see if that works on my side.&lt;/p&gt;
&lt;p&gt;I also did a read back of the connectivity firmware install by nRF Connect the PCA10056 boards I have (I have quite a few versions on my desk) and was also suprise to see that the softdevice detected was indeed S123 v3.1.0, I will ask the nRF Connect team about that, but I am not sure if this have something to do with the problem.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>