<?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>Bonding sequence not finalized in first connection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40814/bonding-sequence-not-finalized-in-first-connection</link><description>Hi 
 I have tried to enable bonding on a application based on the Running Speed and Cadence example (Both peripheral and central). (I could not find an example with bonding enabled) 
 But it seems that the bonding sequence is interrupted, and after disconnection</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Jan 2019 14:24:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40814/bonding-sequence-not-finalized-in-first-connection" /><item><title>RE: Bonding sequence not finalized in first connection</title><link>https://devzone.nordicsemi.com/thread/165782?ContentTypeID=1</link><pubDate>Tue, 15 Jan 2019 14:24:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:446c1f80-5d39-4a9f-b2b9-c1fcbbdd4cee</guid><dc:creator>Kasper Leonhardt</dc:creator><description>&lt;p&gt;Perfect. It solved it. Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding sequence not finalized in first connection</title><link>https://devzone.nordicsemi.com/thread/165141?ContentTypeID=1</link><pubDate>Fri, 11 Jan 2019 12:15:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6735c1b8-4311-4494-957f-c41be7714655</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Ok. I thought it was the disconnect itself that was the problem . According to the log the bond procedure is actually being completed on the first connection (this:&amp;nbsp;[00:00:10.922,851] &amp;lt;info&amp;gt; peer_manager_handler: Connection secured: role: Central, conn_handle: 0, procedure: Bonding).&lt;/p&gt;
&lt;p&gt;I guess the problem is that notification is not being enabled on the first connection then?&amp;nbsp; The central must wait for the&amp;nbsp;PM_EVT_CONN_SEC_SUCCEEDED event before enabling the notification since you&amp;#39;ve changed the CCCD write access to &amp;quot;Just works&amp;quot;.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding sequence not finalized in first connection</title><link>https://devzone.nordicsemi.com/thread/165086?ContentTypeID=1</link><pubDate>Fri, 11 Jan 2019 09:23:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea268992-d122-41b9-aabc-17f2e89c1f0c</guid><dc:creator>Kasper Leonhardt</dc:creator><description>&lt;p&gt;I know. But it disconnects 10 seconds after the last BLE event. It seems never to finalize before disconnection and re-connection.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding sequence not finalized in first connection</title><link>https://devzone.nordicsemi.com/thread/165074?ContentTypeID=1</link><pubDate>Fri, 11 Jan 2019 08:33:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e2f5fbd-a1e6-49cd-929a-cf01b492f703</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The disconnect appears to be caused your &amp;quot;disconnect&amp;quot; timer, see app.c-&amp;gt;AppDisconnectHandler().&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding sequence not finalized in first connection</title><link>https://devzone.nordicsemi.com/thread/164198?ContentTypeID=1</link><pubDate>Mon, 07 Jan 2019 10:01:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3f3ae1f-f042-4db8-a874-17db74f4170f</guid><dc:creator>Kasper Leonhardt</dc:creator><description>&lt;p&gt;By the way. I have also posted another issue on this project. Can also be visualized with this project.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/40751/various-notification-delays"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/40751/various-notification-delays&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And I forgot to write that connection is established when pressing the button 3 and 4, and the two buttons are mapped to LED 3 and 4 on the central. when holding the buttons the state is notified every 200 ms. When Idle for some time the connection is terminated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding sequence not finalized in first connection</title><link>https://devzone.nordicsemi.com/thread/164187?ContentTypeID=1</link><pubDate>Mon, 07 Jan 2019 09:53:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e44bd95b-5b22-4043-93fe-e0a5d40fc6b7</guid><dc:creator>Kasper Leonhardt</dc:creator><description>&lt;p&gt;Hi Vidar&lt;/p&gt;
&lt;p&gt;Sorry for the delay, I have been off project for a while.&lt;/p&gt;
&lt;p&gt;I have uploaded the two projects, both peripheral and central to my FTP server. You can download via following link:&amp;nbsp;&lt;a href="http://leonhardt.dk/footpedal.zip"&gt;http://leonhardt.dk/footpedal.zip&lt;/a&gt;. You can find the Keil project files in the folders &amp;quot;foot pedal controller&amp;quot; and &amp;quot;foot pedal receiver&amp;quot;.&lt;/p&gt;
&lt;p&gt;Happy new year :-)&lt;/p&gt;
&lt;p&gt;Kasper&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding sequence not finalized in first connection</title><link>https://devzone.nordicsemi.com/thread/158861?ContentTypeID=1</link><pubDate>Fri, 23 Nov 2018 14:32:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab851dd0-f318-445e-b2f9-81077a51d7bd</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes there&amp;#39;s something wrong,&amp;nbsp; you should be able to perform bonding without losing the link.&amp;nbsp;Could you upload the project so I can try to&amp;nbsp; debug it here? I have not seen that disconnect reason before (0x15 ==&amp;nbsp;BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION). All examples that include the Peer manager support bonding.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;EDIT:&amp;nbsp;&amp;nbsp;&lt;/strong&gt;0x15&amp;nbsp;corresponds to&amp;nbsp;BLE_HCI_REMOTE_DEV_TERMINATION_DUE_TO_POWER_OFF, and not&amp;nbsp;&lt;span&gt;BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION which is a common status code.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding sequence not finalized in first connection</title><link>https://devzone.nordicsemi.com/thread/158624?ContentTypeID=1</link><pubDate>Thu, 22 Nov 2018 12:31:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22396e33-7303-4331-83cb-857951eae4cc</guid><dc:creator>Kasper Leonhardt</dc:creator><description>&lt;p&gt;Forgot to write that&amp;nbsp;&lt;span&gt;I have a system with two PCA10040 boards both running with SD version&amp;nbsp;s132_nrf52_6.1.0. The application is build with SDK version 15.2.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>