<?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_APP_TEMPLATE connection ecryption error in SDK 15.1</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38262/ble_app_template-connection-ecryption-error-in-sdk-15-1</link><description>Hello. I&amp;#39;ve migrated my application from SDK 14.2 to 15.1 and I obtain this strange message from peer_manager_handler in my log: I obtain this message only when I connect with nRF_Connect app on Iphone. When I connect with Android everything is fine.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Oct 2020 02:03:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38262/ble_app_template-connection-ecryption-error-in-sdk-15-1" /><item><title>RE: BLE_APP_TEMPLATE connection ecryption error in SDK 15.1</title><link>https://devzone.nordicsemi.com/thread/277697?ContentTypeID=1</link><pubDate>Fri, 30 Oct 2020 02:03:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f32a575c-7eba-45b7-b287-6289937c6ed9</guid><dc:creator>shiyu</dc:creator><description>&lt;p&gt;I also encountered the same problem. I kept getting error code 4102 when I connected a heart rate bracelet. How did you solve it? Thank you very much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_APP_TEMPLATE connection ecryption error in SDK 15.1</title><link>https://devzone.nordicsemi.com/thread/158911?ContentTypeID=1</link><pubDate>Sat, 24 Nov 2018 14:47:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c5a22b5-b6ea-48a9-a1d4-baf6f5f35c83</guid><dc:creator>Bugo</dc:creator><description>&lt;p&gt;To give further instructions about this since this helped me with my iPhone, &amp;quot;removing the bond&amp;quot; in my case meant going to Settings =&amp;gt; Bluetooth, and looking for my nRF Device. Then go to &amp;quot;Forget this device&amp;quot;. I also turned off Bluetooth afterwards just in case and re-enabled it. That Connection Security Failed message went away. Maybe just &amp;quot;Forgetting the device&amp;quot; is enough, haven&amp;#39;t tried it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_APP_TEMPLATE connection ecryption error in SDK 15.1</title><link>https://devzone.nordicsemi.com/thread/154574?ContentTypeID=1</link><pubDate>Thu, 25 Oct 2018 19:50:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dac3d5b0-d275-4df9-a727-51eb804c12e1</guid><dc:creator>Peter B</dc:creator><description>&lt;p&gt;I have the same error message running the Heart Rate Sensor example &amp;quot;ble_app_hrs&amp;quot; on the nRF52840 using the nRF5_SDK_15.2.0_9412b96. As a newbie I was playing with the YouTube tutorial from Nordic regarding debugging in Segger Embedded Studio.&lt;/p&gt;
&lt;p&gt;It occurs if I a connect the the nRF52840 using my iPhone (iOS 12.0.1) with a BLE app like nRF Connect or BLE Scanner:&lt;/p&gt;
&lt;p&gt;peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Encryption, error: 4102&lt;br /&gt;app: GATT ATT MTU on connection 0x0 changed to 185.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But I get no errors with the same 2 apps on Android smartphone when I connect, also the MTU value is different then with the iPhone.&lt;/p&gt;
&lt;p&gt;Connected.&lt;br /&gt;app: GATT ATT MTU on connection 0x0 changed to 247.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_APP_TEMPLATE connection ecryption error in SDK 15.1</title><link>https://devzone.nordicsemi.com/thread/148172?ContentTypeID=1</link><pubDate>Tue, 11 Sep 2018 10:56:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3058b2d-cf2b-4eaa-89f6-32833b7e31bd</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/spirit1"&gt;Spirit&lt;/a&gt;: Can you create a new question so that we can continue there? It is cleaner to keep unrelated issues in separate threads. In that question, can you upload any additional information you have (logs, sniffer traces, code etc.)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_APP_TEMPLATE connection ecryption error in SDK 15.1</title><link>https://devzone.nordicsemi.com/thread/148163?ContentTypeID=1</link><pubDate>Tue, 11 Sep 2018 09:58:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0836fddc-78a0-4952-9fdb-351e671d36a9</guid><dc:creator>Ars Morozov</dc:creator><description>&lt;p&gt;Thank you very much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_APP_TEMPLATE connection ecryption error in SDK 15.1</title><link>https://devzone.nordicsemi.com/thread/148156?ContentTypeID=1</link><pubDate>Tue, 11 Sep 2018 09:14:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67eb2acf-3204-4ee0-9c4e-a265e7c2ac33</guid><dc:creator>Spirit</dc:creator><description>&lt;p&gt;Einar,&lt;/p&gt;
&lt;p&gt;Yes, I saw the API.&lt;br /&gt;I&amp;#39;m not using any template. I only migrate my project to the new SDK15.1. On SDK15 I do not have this problem.&lt;br /&gt;Therefore, &amp;quot;nothing&amp;quot; is new, &amp;quot;only&amp;quot; the SDK &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;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_APP_TEMPLATE connection ecryption error in SDK 15.1</title><link>https://devzone.nordicsemi.com/thread/148155?ContentTypeID=1</link><pubDate>Tue, 11 Sep 2018 09:09:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c101be3-be87-4865-88ab-531377969f1c</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/spirit1"&gt;Spirit&lt;/a&gt;:&amp;nbsp;It does not look like you are seeing the same issue as&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/morozovoars"&gt;Ars Morozov&lt;/a&gt;. According to the&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v6.1.0/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html?cp=2_3_2_1_0_2_1_2_36#ga9015143d731193672dc306f6e4aff684"&gt;API documentation for&amp;nbsp;&amp;nbsp;sd_ble_gap_sec_info_reply()&lt;/a&gt;&amp;nbsp;you get&amp;nbsp;NRF_ERROR_INVALID_STATE in the following situations:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;No link has been established.&lt;/li&gt;
&lt;li&gt;No&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v6.1.0/group___b_l_e___g_a_p___e_n_u_m_e_r_a_t_i_o_n_s.html#ggada486dd3c0cce897b23a887bed284fefa902037e30402a6dcacc8ed07830948b3"&gt;BLE_GAP_EVT_SEC_REQUEST&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;pending.&lt;/li&gt;
&lt;li&gt;LE long term key requested command not allowed.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Are you also using a modified template application? Can you upload the full log leading up to this error? Any other information?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_APP_TEMPLATE connection ecryption error in SDK 15.1</title><link>https://devzone.nordicsemi.com/thread/148153?ContentTypeID=1</link><pubDate>Tue, 11 Sep 2018 08:57:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57967961-5762-413f-96db-6d0c8855551c</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;In your case, this might be simply that you have deleted the bonding information on the&amp;nbsp;nRF side but not on the phone side? The error message indicate so (4102 = 0x1006 = PM_CONN_SEC_ERROR_PIN_OR_KEY_MISSING). This issue should be fixed by simply removing the bond on the phone as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_APP_TEMPLATE connection ecryption error in SDK 15.1</title><link>https://devzone.nordicsemi.com/thread/148097?ContentTypeID=1</link><pubDate>Mon, 10 Sep 2018 20:09:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2be93930-6f61-4fb2-9de5-65b4bf4530e6</guid><dc:creator>Spirit</dc:creator><description>&lt;p&gt;@Einar Thorsrud&lt;br /&gt;5 times in 4 days. And in my case it is not related to the brand of the phone.&lt;br /&gt;No, I don&amp;#39;t &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt; It is completly random so why I can&amp;#39;t debug it &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_APP_TEMPLATE connection ecryption error in SDK 15.1</title><link>https://devzone.nordicsemi.com/thread/148022?ContentTypeID=1</link><pubDate>Mon, 10 Sep 2018 12:42:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7da0513-1d9c-4e38-8866-aa07b121564d</guid><dc:creator>Ars Morozov</dc:creator><description>&lt;p&gt;Always when I connect through this device. I will try to connect from different iPhones and Androids to collect more statistic. I will write about it here..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_APP_TEMPLATE connection ecryption error in SDK 15.1</title><link>https://devzone.nordicsemi.com/thread/148020?ContentTypeID=1</link><pubDate>Mon, 10 Sep 2018 12:40:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1aff0032-3cff-4adb-81eb-49fc3af21b05</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;How often do you see this issue? Do you do anything particular to trigger it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_APP_TEMPLATE connection ecryption error in SDK 15.1</title><link>https://devzone.nordicsemi.com/thread/147895?ContentTypeID=1</link><pubDate>Sun, 09 Sep 2018 04:27:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8461833d-8245-4304-bef0-0432fc002cbd</guid><dc:creator>Ars Morozov</dc:creator><description>&lt;p&gt;It&amp;#39;s not completely random, because I try to do it many times it and this problem is occure with this conditions. Maybe it&amp;#39;s related with device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_APP_TEMPLATE connection ecryption error in SDK 15.1</title><link>https://devzone.nordicsemi.com/thread/147888?ContentTypeID=1</link><pubDate>Sat, 08 Sep 2018 18:33:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2266fb8-945c-41f1-bb5c-521f67bd4059</guid><dc:creator>Spirit</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/morozovoars"&gt;Ars Morozov&lt;/a&gt;&amp;nbsp;is not an Android or an Iphone related problem.&lt;br /&gt;It happens randomly without a specific procedure or rule, with both phones.&amp;nbsp;&lt;br /&gt;And that&amp;#39;s why it&amp;#39;s so hard to debug.&lt;br /&gt;&lt;br /&gt;As I said... I only migrate my project to new SDK. With the SDK15 I did not have these problems.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_APP_TEMPLATE connection ecryption error in SDK 15.1</title><link>https://devzone.nordicsemi.com/thread/147886?ContentTypeID=1</link><pubDate>Sat, 08 Sep 2018 15:20:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1570ad8c-226d-495b-8b08-3b4bdf5d1def</guid><dc:creator>Ars Morozov</dc:creator><description>&lt;p&gt;But anyway as I can see it work fine, at least I can discover services and characteristics. For now I have only READ characterisits, and I can succefully read it.&lt;br /&gt;&lt;br /&gt;Anyway I think we should find the source that cause this error message.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_APP_TEMPLATE connection ecryption error in SDK 15.1</title><link>https://devzone.nordicsemi.com/thread/147882?ContentTypeID=1</link><pubDate>Sat, 08 Sep 2018 12:38:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4e5f4f1-1e90-4f1e-8550-844c148cb924</guid><dc:creator>Ars Morozov</dc:creator><description>&lt;p&gt;I just upload template application on nRF52DK (pca10040) without any modifications of project and connect with nRF Connect 1.8.7 on iOS (iPhone 6).&amp;nbsp;&lt;br /&gt;When I connect with Android this message is disapear.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_APP_TEMPLATE connection ecryption error in SDK 15.1</title><link>https://devzone.nordicsemi.com/thread/147807?ContentTypeID=1</link><pubDate>Fri, 07 Sep 2018 12:40:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da2195a8-be94-4cf3-b951-a045b8c03297</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have not been able to reproduce this on my side using an unmodified&amp;nbsp;Template Application from SDK 15.1 and nRF Connect 1.8.7 on iOS. Can you elaborate on how you were able to trigger his issue, and describe any modifications you have done to the&amp;nbsp;&lt;span&gt;Template Application?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_APP_TEMPLATE connection ecryption error in SDK 15.1</title><link>https://devzone.nordicsemi.com/thread/147679?ContentTypeID=1</link><pubDate>Thu, 06 Sep 2018 19:11:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92666905-e71b-4006-aa66-53dc3c237e85</guid><dc:creator>Spirit</dc:creator><description>&lt;p&gt;Yes! I have something similar. It appeared to me just today :(&lt;br /&gt;&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/4382.err.png" /&gt;&lt;br /&gt;&lt;br /&gt;I migrated to SDK15.1 from SDK15.0 where I did not have such a problem.&lt;br /&gt;Nordic guys... why?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>