<?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>central encryption error (ble_app_hrs_c)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67344/central-encryption-error-ble_app_hrs_c</link><description>Hi, I&amp;#39;m using nRF52832 Software Development Kit, PCA10040, S132. 
 
 I&amp;#39;m getting this error while trying to connect with my device in the &amp;quot;ble_app_hrs_c&amp;quot;. 
 
 &amp;quot;Connection security failed: role: Central, conn_handle: 0x0, procedure: Encryption, error:</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Oct 2020 00:02:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67344/central-encryption-error-ble_app_hrs_c" /><item><title>RE: central encryption error (ble_app_hrs_c)</title><link>https://devzone.nordicsemi.com/thread/276319?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2020 00:02:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb8efcc3-013d-4f5b-ae3f-4177f23977e2</guid><dc:creator>lyrics</dc:creator><description>&lt;p&gt;yes, thank you for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central encryption error (ble_app_hrs_c)</title><link>https://devzone.nordicsemi.com/thread/276120?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 09:17:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2397f4b8-3089-44c6-aa89-cf8f4432f0da</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Ok, so it is working now?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central encryption error (ble_app_hrs_c)</title><link>https://devzone.nordicsemi.com/thread/276113?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 09:00:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b709352-c118-4963-a536-686ef558fe03</guid><dc:creator>lyrics</dc:creator><description>&lt;p&gt;&lt;span&gt;I corrected the ble_app_hrs_c. (nrf52, s132)&lt;/span&gt;&lt;br /&gt;&lt;span&gt;I thought there was a security-related code in peer_manager_init(), but I don&amp;#39;t know.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m sorry for the unhelpful reply.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central encryption error (ble_app_hrs_c)</title><link>https://devzone.nordicsemi.com/thread/276110?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 08:53:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22f26e84-c681-412a-aba9-1f67346c11e5</guid><dc:creator>Vidar Berg</dc:creator><description>[quote user="lyrics"]What is this mean?..&amp;nbsp;&lt;span&gt;Control of my device is not possible.&amp;nbsp;(I don&amp;#39;t know if this is the right answer)&lt;/span&gt;[/quote]
&lt;p&gt;&amp;nbsp;Since the peripheral appears to be loosing the bonding information after every connection, I was wondering if you had access to maybe fix that in the device&amp;#39;s FW. But it sounds like the answer to that is no. Is it an option to not enable security like in the ble_app_uart_c example?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central encryption error (ble_app_hrs_c)</title><link>https://devzone.nordicsemi.com/thread/276045?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 00:45:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43c2145d-c237-4a38-a1b4-a15285bdc018</guid><dc:creator>lyrics</dc:creator><description>&lt;p&gt;Central is nRF device, and peripheral is my own device, not nRF device.&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/67344/central-encryption-error-ble_app_hrs_c/275886#275886"] To you have control over that implemenation?[/quote]
&lt;p&gt;What is this mean?..&amp;nbsp;&lt;span&gt;Control of my device is not possible.&amp;nbsp;(I don&amp;#39;t know if this is the right answer)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central encryption error (ble_app_hrs_c)</title><link>https://devzone.nordicsemi.com/thread/275886?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 11:48:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac476e58-4f72-46c8-ab69-0797557aabb2</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I think you need to find out why the bonding information is not retained on the peripheral. To you have control over that implemenation? Is it a nRF device?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central encryption error (ble_app_hrs_c)</title><link>https://devzone.nordicsemi.com/thread/275733?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 01:01:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c19eef66-7df6-4094-8e9c-36340c496d50</guid><dc:creator>lyrics</dc:creator><description>&lt;p&gt;Thank you for your reply.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1603155701552v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I succeeded in connecting using delete_bonds() as you helped me.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void scanning_start(bool * p_erase_bonds)
{
    // Start scanning for peripherals and initiate connection
    // with devices that advertise GATT Service UUID.
    if (*p_erase_bonds == true)
    {
        // Scan is started by the PM_EVT_PEERS_DELETE_SUCCEEDED event.
        delete_bonds();
    }
    else
    {
        delete_bonds();
        //scan_start();
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But it seems like I have to call that function every time to connect correctly. What is the reason?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central encryption error (ble_app_hrs_c)</title><link>https://devzone.nordicsemi.com/thread/275630?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2020 12:45:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe69803a-82a0-4c6b-b4c1-164b13d6aa0f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The &amp;quot;&lt;span&gt;4102&lt;/span&gt;&amp;quot; error corresponds to PM_CONN_SEC_ERROR_PIN_OR_KEY_MISSING and it indictates that the bonding information is deleted on the peripheral, but not on the central side. Can you try deleteing the bonding information on the central as well?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>