<?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>Multiperipheral and bonding</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36067/multiperipheral-and-bonding</link><description>Hi, 
 
 I try to activate the bonding with the &amp;quot;ble_app_multiperipheral&amp;quot; exemple project I have modified. 
 It is very strange because I can bond as wanted but only if I set, in the &amp;quot;peer_manager_init&amp;quot; function &amp;quot;sec_param.bond&amp;quot; value to false. 
 Normally</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Jul 2018 14:05:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36067/multiperipheral-and-bonding" /><item><title>RE: Multiperipheral and bonding</title><link>https://devzone.nordicsemi.com/thread/139280?ContentTypeID=1</link><pubDate>Fri, 06 Jul 2018 14:05:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78600872-3242-432e-9656-247f7144ba34</guid><dc:creator>Fabien Duay</dc:creator><description>&lt;p&gt;ok,&amp;nbsp;I&amp;#39;ve found the blocking point.&lt;/p&gt;
&lt;p&gt;The first time I bonded my device and then unbonded on Android.&lt;/p&gt;
&lt;p&gt;In the nrf chipset, the bonding informations were&amp;#39;nt deleted... and the repairing wasn&amp;#39;t allowed, it is why I get disconnected every time...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiperipheral and bonding</title><link>https://devzone.nordicsemi.com/thread/139105?ContentTypeID=1</link><pubDate>Thu, 05 Jul 2018 12:06:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8237f79c-8e23-423a-acf8-9eb8a120a727</guid><dc:creator>Fabien Duay</dc:creator><description>&lt;p&gt;I have top stop for today my tests, a summary :&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1. I haven&amp;#39;t anymore the Fatal Error&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2. I can bond only when, in the&amp;nbsp;&lt;span&gt;&amp;quot;peer_manager_init&amp;quot; func, I set the parameters as :&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;sec_param.bond = 0;&lt;br /&gt; sec_param.kdist_own.enc = 0;&lt;br /&gt; sec_param.kdist_own.id = 0;&lt;br /&gt; sec_param.kdist_peer.enc = 0;&lt;br /&gt; sec_param.kdist_peer.id = 0;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3. I cannot bond when, in the&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;quot;peer_manager_init&amp;quot; func, I set the parameters as :&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;sec_param.bond = 1;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;sec_param.kdist_own.enc = 1;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;sec_param.kdist_own.id = 1;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;sec_param.kdist_peer.enc = 1;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;sec_param.kdist_peer.id = 1;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I uploaded&amp;nbsp;a simplified&amp;nbsp;version of the project I&amp;#39;m using.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This version&amp;nbsp;allow&amp;nbsp;the bonding, change the sec_param as said before and you won&amp;#39;t be able to bond anymore.&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/bond_5F00_tests.zip"&gt;devzone.nordicsemi.com/.../bond_5F00_tests.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiperipheral and bonding</title><link>https://devzone.nordicsemi.com/thread/139097?ContentTypeID=1</link><pubDate>Thu, 05 Jul 2018 11:42:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ef9b281-b929-4626-a7b4-e4e4801fcb35</guid><dc:creator>Fabien Duay</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;After some tests without results, I tried to recompile your exemple project, upload it to my DK board (with a previsous erase all) and I cannont bond anymore..&lt;/p&gt;
&lt;p&gt;I have the same problem as with my own project..&lt;/p&gt;
&lt;p&gt;I wrote some&amp;nbsp;NRF_LOG in the &amp;quot;ble_evt_handler&amp;quot; function and here what&amp;nbsp;I received :&amp;nbsp;(The number is the event id (p_ble_evt-&amp;gt;header.evt_id))&lt;/p&gt;
&lt;p&gt;&amp;lt;info&amp;gt; app: ble_evt_handler : 19 -&amp;gt;&amp;nbsp;BLE_GAP_EVT_SEC_PARAMS_REQUEST&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler &lt;span&gt;:&amp;nbsp;&lt;/span&gt;25 -&amp;gt;&amp;nbsp;BLE_GAP_EVT_AUTH_STATUS&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler &lt;span&gt;:&amp;nbsp;&lt;/span&gt;18 -&amp;gt;&amp;nbsp;BLE_GAP_EVT_CONN_PARAM_UPDATE&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler &lt;span&gt;:&amp;nbsp;&lt;/span&gt;18 -&amp;gt;&amp;nbsp;BLE_GAP_EVT_CONN_PARAM_UPDATE&lt;br /&gt;&amp;lt;info&amp;gt; app: ble_evt_handler &lt;span&gt;:&amp;nbsp;&lt;/span&gt;17 -&amp;gt;&amp;nbsp;BLE_GAP_EVT_DISCONNECTED&lt;br /&gt;&amp;lt;info&amp;gt; app: BLE_GAP_EVT_DISCONNECTED&lt;br /&gt;&amp;lt;info&amp;gt; app: Connection 0x0 has been disconnected. Reason: 0x13&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For information, I tried to bond with nRF Connect Android app.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiperipheral and bonding</title><link>https://devzone.nordicsemi.com/thread/139069?ContentTypeID=1</link><pubDate>Thu, 05 Jul 2018 08:25:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e040f46-1b71-4c53-9e4e-649de6b3f851</guid><dc:creator>Fabien Duay</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Your exemple seem to work fine with bonding.&lt;/p&gt;
&lt;p&gt;After a short comparison, I&amp;#39;ve seen that I call the &amp;quot;peer_manager_init&amp;quot; function too early. I deplaced the function call as you did,&amp;nbsp;just before the &amp;quot;advertising_start&amp;quot; func.&lt;/p&gt;
&lt;p&gt;The fatal error&amp;nbsp;is no more&amp;nbsp;displayed. One good point.&lt;/p&gt;
&lt;p&gt;But.. the bonding isn&amp;#39;t functionnal, when I try to bond, I&amp;#39;m simply disconnected from the peripheral.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiperipheral and bonding</title><link>https://devzone.nordicsemi.com/thread/139051?ContentTypeID=1</link><pubDate>Thu, 05 Jul 2018 06:57:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:daa0bbd2-3e1c-4934-9362-83d0bba34076</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Handling of BLE_GATTS_EVT_SYS_ATTR_MISSING should be removed from&amp;nbsp;ble_evt_handler() as it is being handled by the PM. However, not sure it is related to the error you got. You can add &amp;quot;DEBUG&amp;quot; to the list of pre-processor definitions to get a more detailed error message (file name, line number, and error code).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I did try to add bonding to the multi-peripheral in SDK 15 to see if I could reproduce the problem as well. Here is the project if you want to compare:&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-a7cc16e87e6944eb82aa11792f329f8d/ble_5F00_app_5F00_multiperipheral_5F00_w_5F00_bond.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_multiperipheral_5F00_w_5F00_bond.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>