<?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>Connection security failed: role: Central in ble_app_rscs_c</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42384/connection-security-failed-role-central-in-ble_app_rscs_c</link><description>Hello, 
 I am working on nRF52840 DK with nRF5_SDK_15.2.0_9412b96 and I used the example ble_app_rscs_c with absolutely no changes. I first erased the flash and then burned the Softdevice and app to erase any bonding. I used LightBlue on my iPhone to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Jan 2020 14:40:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42384/connection-security-failed-role-central-in-ble_app_rscs_c" /><item><title>RE: Connection security failed: role: Central in ble_app_rscs_c</title><link>https://devzone.nordicsemi.com/thread/229659?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2020 14:40:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d87141cb-0b9c-4fae-a55d-8867e87c6829</guid><dc:creator>nvelozsavino</dc:creator><description>&lt;p&gt;I&amp;#39;ve created it ere:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/56689/central-device-claims-to-have-connected-but-no-connection-event-is-fired-on-the-peripheral"&gt;devzone.nordicsemi.com/.../central-device-claims-to-have-connected-but-no-connection-event-is-fired-on-the-peripheral&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection security failed: role: Central in ble_app_rscs_c</title><link>https://devzone.nordicsemi.com/thread/229637?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2020 13:56:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bf84c46-9de0-4696-b12f-3c4efbd41c66</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This thread is over a year old, I suggest you open a new ticket for your case and this issue will be handled there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection security failed: role: Central in ble_app_rscs_c</title><link>https://devzone.nordicsemi.com/thread/229621?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2020 13:26:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ecbac27-c283-4499-9e2b-fb415770069d</guid><dc:creator>nvelozsavino</dc:creator><description>&lt;p&gt;I&amp;#39;m also having this issue, in my case, the application is based on the multirole example. When acting as a central, it scans and found a peripheral that was&amp;nbsp;already&amp;nbsp;bonded&amp;nbsp;before. The central says that it connected, I&amp;#39;m receiving the PM_EVT_BONDED_PEER_CONNECTED event, and the BLE_GAP_EVT_CONNECTED. I&amp;#39;ve tested with and without the pm_handler_secure_on_connection call when receiving the PM_EVT_BONDED_PEER_CONNECTED which it will start the Secure connection, when used it doesn&amp;#39;t show the PM_EVT_CONN_SEC_START, PM_EVT_CONN_SEC_SUCCEEDED nor PM_EVT_CONN_SEC_CONFIG_REQ.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know if the problem is related to the primary service discovery which is showing me the following logs:&lt;br /&gt;[16:17:34:791] &amp;lt;debug&amp;gt; ble_db_disc: Starting discovery of service with UUID 0xFF80 on connection handle 0x0.&lt;br /&gt;[16:17:34:791] &amp;lt;debug&amp;gt; nrf_ble_gq: Adding item to the request queue&lt;br /&gt;[16:17:34:796] &amp;lt;debug&amp;gt; nrf_ble_gq: GATTC Primary Services Discovery Request&lt;br /&gt;[16:17:34:796] &amp;lt;debug&amp;gt; nrf_ble_gq: SD is currently busy. The GATT request procedure will be attempted again later.&lt;br /&gt;[16:17:34:802] &amp;lt;debug&amp;gt; nrf_ble_gq: Processing the request queue...&lt;br /&gt;[16:17:34:802] &amp;lt;debug&amp;gt; nrf_ble_gq: GATTC Primary Service Discovery Request&lt;br /&gt;[16:17:34:802] &amp;lt;debug&amp;gt; nrf_ble_gq: SD is currently busy. The GATT request procedure will be attempted again later.&lt;/p&gt;
&lt;p&gt;It disconnects before completing the primary service discovery request&lt;/p&gt;
&lt;p&gt;Even if I&amp;#39;m not securing the connection I see this log:&lt;br /&gt;&amp;lt;info&amp;gt; peer_manager_handler: Connection security failed: role: Central, conn_handle: 0x0, procedure: Encryption, error: 4352&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tracked the event up to sm_ble_evt_handler of the security manager, however this event is fired by the Softdevice when calling the ble_evt_handler registered by the peer_manager&lt;/p&gt;
&lt;p&gt;Another thing I&amp;#39;ve noticed is that when debugging the peripheral side I can&amp;#39;t see any event of BLE_GAP_EVT_CONNECTED nor PM_EVT_BONDED_PEER_CONNECTED even when the central device is showing me those events. It&amp;#39;s like the Central device is receiving false BLE_GAP_EVT_CONNECTED events from the softdevice and it&amp;#39;s not sending any actual connection packets to the peripheral&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried with both scan_parameter.extended =1 and =0 and it&amp;#39;s the same, no BLE_GAP_EVT_CONNECTED event on the peripheral&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I&amp;#39;m using nrf52832, SDK 16.0.0, Softdevice s132 7.0.1&lt;/p&gt;
&lt;p&gt;It&amp;#39;s important to note that after a mass erase on the central, the peripheral connects perfectly (after deleting bonds on the peripheral) but after several successful connection, the problem starts and it never connect again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection security failed: role: Central in ble_app_rscs_c</title><link>https://devzone.nordicsemi.com/thread/174654?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2019 18:35:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fc4fc02-36d2-43ea-8970-ea990cdd6d35</guid><dc:creator>HSh</dc:creator><description>&lt;p&gt;Hi, I did so and the problem is still there.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection security failed: role: Central in ble_app_rscs_c</title><link>https://devzone.nordicsemi.com/thread/174408?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2019 02:05:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25ee440c-96c0-456d-952e-25a52e4e19bc</guid><dc:creator>BendaEng</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I was&amp;nbsp;having this same issue. I was able to mitigate this through connecting to the Target (in SES with a development board Target -&amp;gt; Connect J-Link) and Erasing the board and re-flashing (Target -&amp;gt; Erase All). Then I re-flashed and ran my applications. My best guess is&amp;nbsp;their is some corruption that occurs in RAM where the SoftDevice is located. Maybe this solution will work for you too.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection security failed: role: Central in ble_app_rscs_c</title><link>https://devzone.nordicsemi.com/thread/171977?ContentTypeID=1</link><pubDate>Tue, 19 Feb 2019 19:50:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4defb7f-dcce-4056-90da-4e413215f907</guid><dc:creator>HSh</dc:creator><description>&lt;p&gt;Yes, it&amp;#39;s almost the same with another iPhone. Although it eventually succeeds, but I need to quickly establish a connection when the user comes to the office and before he/she arrives to the desk. This issue sometimes imposes a long delay and I am not able to reach the design goal.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;would appreciate to let me know whenever there&amp;#39;s an update.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection security failed: role: Central in ble_app_rscs_c</title><link>https://devzone.nordicsemi.com/thread/171698?ContentTypeID=1</link><pubDate>Mon, 18 Feb 2019 15:43:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:525e9b8c-8cbb-4a8e-9d7b-77c73ad8313a</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;I don&amp;#39;t have any update on this matter for now, but in your case have you tried testing with other iphones to see if it makes any difference? I do manage to reproduce it but it isn&amp;#39;t often like you see it. Also, it is working despite the error message,&amp;nbsp;the security will retry until it succeed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection security failed: role: Central in ble_app_rscs_c</title><link>https://devzone.nordicsemi.com/thread/170472?ContentTypeID=1</link><pubDate>Mon, 11 Feb 2019 23:45:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:179b18d5-841b-426a-84f1-7e8055cf01dd</guid><dc:creator>HSh</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;span&gt;Mttrinh, I was wondering if you have any update for me.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection security failed: role: Central in ble_app_rscs_c</title><link>https://devzone.nordicsemi.com/thread/167937?ContentTypeID=1</link><pubDate>Fri, 25 Jan 2019 13:25:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ba66706-e3dc-4705-a30a-ab1c006ad5a7</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I managed to reproduce the issue and have reported this internally. I will update this case when we find the cause of this issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection security failed: role: Central in ble_app_rscs_c</title><link>https://devzone.nordicsemi.com/thread/166816?ContentTypeID=1</link><pubDate>Mon, 21 Jan 2019 11:52:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4dd0002-e296-4de4-a502-7e3da7e66797</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I will try to reproduce this issue and update you as soon as possible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection security failed: role: Central in ble_app_rscs_c</title><link>https://devzone.nordicsemi.com/thread/166593?ContentTypeID=1</link><pubDate>Fri, 18 Jan 2019 19:00:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8cd6e9e-690a-414f-a9ce-fa0947f29d9e</guid><dc:creator>HSh</dc:creator><description>&lt;p&gt;This looks similar to my problem. Let&amp;#39;s wait for &lt;span&gt;Mttrinh help.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection security failed: role: Central in ble_app_rscs_c</title><link>https://devzone.nordicsemi.com/thread/165908?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 10:15:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49b608a5-5048-4099-8ec4-47ca21ae4f12</guid><dc:creator>Jan Van Moer</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have a similar issue, I&amp;#39;m using the&amp;nbsp;ble_app_multirole_lesc example for&amp;nbsp;nRF5_SDK_15.2.0_9412b96.&lt;br /&gt;I have erased 2 dev kits and placed the example on both.&lt;/p&gt;
&lt;p&gt;When they try to connect I end up with this error:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;&amp;lt;info&amp;gt; app: CENTRAL: Already connected to this device as PERIPHERAL (handle: 0), disconnecting.&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;&amp;lt;info&amp;gt; peer_manager_handler: Connection security failed: role: Central, conn_handle: 0x0, procedure: Encryption, error: 4352&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;&amp;lt;warning&amp;gt; peer_manager_handler: Disconnecting conn_handle 0.&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;&amp;lt;info&amp;gt; app: CENTRAL: Disconnected, handle: 0, reason: 0x16&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;And the other one:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;&amp;lt;info&amp;gt; app: PERIPHERAL: Already connected to this device as CENTRAL (handle: 1), disconnecting.&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;&amp;lt;info&amp;gt; app: PERIPHERAL: Disconnected, handle 1, reason 0x13.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not able to have a connection and receive heart rate data. Any clue what can go wrong ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection security failed: role: Central in ble_app_rscs_c</title><link>https://devzone.nordicsemi.com/thread/165251?ContentTypeID=1</link><pubDate>Fri, 11 Jan 2019 18:25:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2741b866-1cee-489c-b1eb-55d3adfdd6c9</guid><dc:creator>HSh</dc:creator><description>&lt;p&gt;Hi Mttrinh,&lt;/p&gt;
&lt;p&gt;Yes, I have used a fresh copy of the SDK. I just compiled the template using IAR with no changes.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When I keep the iPhone close to the DK, sometimes, I don&amp;#39;t see the error. But if I keep the iPhone 50 cm away, I see the error quiet often. Steps to re-produce:&lt;/p&gt;
&lt;p&gt;1. Make sure iPhone is not paired.&lt;/p&gt;
&lt;p&gt;2. Erase the flash, burn the softdevice and app.&lt;/p&gt;
&lt;p&gt;3. Using LighBlue, advertise&amp;nbsp;&lt;span&gt;BLE_UUID_RUNNING_SPEED_AND_CADENCE&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;4. Connect and pair (you&amp;#39;ll see the pairing request on iPhone).&lt;/p&gt;
&lt;p&gt;5. Turn the DK off/on and you will see the error several times before it succeeds.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection security failed: role: Central in ble_app_rscs_c</title><link>https://devzone.nordicsemi.com/thread/165178?ContentTypeID=1</link><pubDate>Fri, 11 Jan 2019 13:26:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d01f8fa-b32f-43cb-9d60-986a6430ee6c</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I tested the example on my side and aren&amp;#39;t able to reproduce the issue. Could you give me a detailed step-by-step procedure on how I can reproduce this?&lt;/p&gt;
&lt;p&gt;Have you tried to download a fresh copy of the SDK from our website?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>