<?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 information issue when only one side the bonding is delete</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22132/bonding-information-issue-when-only-one-side-the-bonding-is-delete</link><description>Hi, 
 sometimes not always, the function peer_id_is_allocated return false and this causes an ASSERT of device, because a NRF_ERROR_INVALID_PARAM is returned by pdb_write_buf_get. And Peer_Manager return an assert. 
 Someone can help to me, why this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Jul 2017 07:59:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22132/bonding-information-issue-when-only-one-side-the-bonding-is-delete" /><item><title>RE: Bonding information issue when only one side the bonding is delete</title><link>https://devzone.nordicsemi.com/thread/86950?ContentTypeID=1</link><pubDate>Wed, 12 Jul 2017 07:59:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0d09c1c-909b-47bd-884d-110a9894b283</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;Hi Petter, i can share in private. I update the question. Thank you, Anna&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding information issue when only one side the bonding is delete</title><link>https://devzone.nordicsemi.com/thread/86951?ContentTypeID=1</link><pubDate>Wed, 12 Jul 2017 07:21:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6479854-c409-4ac8-a87e-3d10210d72d8</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Can you please edit your question and upload your complete project so I can test it here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding information issue when only one side the bonding is delete</title><link>https://devzone.nordicsemi.com/thread/86952?ContentTypeID=1</link><pubDate>Tue, 11 Jul 2017 15:55:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20aaf3ee-f284-4592-9c1b-92156ed91d6d</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;Hi Petter,&lt;/p&gt;
&lt;p&gt;now i can reproduce the assert sistematically. I try to explain the flow:&lt;/p&gt;
&lt;p&gt;I need to have a bonding one to one (every device can bonding with one phone) so i have added a whitelist. After i have needed to delete the bonding information if the user lose your phone for example and need to bonding with an other phone&lt;/p&gt;
&lt;p&gt;I have three scenario now, that i need to consider:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;User delete bonding information on both side ( APP and phone) ALL WORKS OK&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;User delete bonding on device side and forgot to delete on phone side, the device disconnect as long as the user don&amp;#39;t delete the bonding information, also on phone side. ALL WORKS OK&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;User delete bonding information on phone side and forgot on device side. In this case i have need to change in the peer menager the case:&lt;/p&gt;
&lt;p&gt;case PM_EVT_CONN_SEC_CONFIG_REQ:
{
// Allow pairing request from an already bonded peer.
pm_conn_sec_config_t conn_sec_config = {.allow_repairing = true};
// pm_conn_sec_config_t conn_sec_config = {.allow_repairing = false};
pm_conn_sec_config_reply(p_evt-&amp;gt;conn_handle, &amp;amp;conn_sec_config);
}
break;//PM_EVT_CONN_SEC_CONFIG_REQ&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;because if i don&amp;#39;t change it the nrf52 cotinue to reject the pairing, also if i delete the bonding information. So i have set the allow_pairing= true; Note that this think it was necessary only after i have add to whitelist on mi FW design. Before add whitelist, i can bonding with a device already bondend, ( do you see any reason?)&lt;/p&gt;
&lt;p&gt;Meanwhile, the step that reset my device is:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Bonding parinig first times&lt;/li&gt;
&lt;li&gt;Delete bonding only on phone side, set the allow_pairing = true, i can pairing and bonding again without a problem&lt;/li&gt;
&lt;li&gt;Delete bonding and pairing on both side cause a reset.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Have you any idea, about this strange bahaviour?&lt;/p&gt;
&lt;p&gt;regards,
Anna&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding information issue when only one side the bonding is delete</title><link>https://devzone.nordicsemi.com/thread/86942?ContentTypeID=1</link><pubDate>Mon, 19 Jun 2017 16:23:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f813ec3-bb42-409a-83a0-10e36f9791e1</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;If there is no peer data in flash no event is sent, see the documentation for pm_peers_delete():&lt;/p&gt;
&lt;p&gt;** @note No event is sent when there is no peer data in flash.*&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding information issue when only one side the bonding is delete</title><link>https://devzone.nordicsemi.com/thread/86944?ContentTypeID=1</link><pubDate>Mon, 19 Jun 2017 16:05:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fde8b08-bc43-416d-8462-e2e15a6982c2</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;Yes, it returns NRF_SUCCESS. One question, what happens if i delete the bonding information if i don&amp;#39;t have a peer id memorize?
Before the first bonding and connection i call the pm_peers_delete(), can be it a problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding information issue when only one side the bonding is delete</title><link>https://devzone.nordicsemi.com/thread/86966?ContentTypeID=1</link><pubDate>Mon, 19 Jun 2017 15:48:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99234326-d298-4d55-b7c1-cdaaac471b81</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Is pm_peers_delete(); called successfully? Does it return 0x00000000 (NRF_SUCCESS)?&lt;/p&gt;
&lt;p&gt;I can test your project, but then you need to upload the project that actually exhibits the behavior.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding information issue when only one side the bonding is delete</title><link>https://devzone.nordicsemi.com/thread/86965?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2017 11:51:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2ca5977-76b5-4495-816a-a9a00b2ea37f</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;i&amp;#39;ll try with the flow:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;err_code = pm_peers_delete();&lt;/li&gt;
&lt;li&gt;wait the event PM_EVT_PEERS_DELETE_SUCCEEDED;&lt;/li&gt;
&lt;li&gt;after delete bonding information&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;the problem is not resolved :(&lt;/p&gt;
&lt;p&gt;someone can be tell me what means  &amp;quot;peer_id is free, or the module is not initialized.&amp;quot;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding information issue when only one side the bonding is delete</title><link>https://devzone.nordicsemi.com/thread/86963?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2017 11:31:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39845fec-da01-4bb8-9f25-03f0e4a37920</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;The only question that i have is:&lt;/p&gt;
&lt;p&gt;/*note no event is sent when there is no peer data in flash.&lt;/p&gt;
&lt;p&gt;So in the case the advertising not starting?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding information issue when only one side the bonding is delete</title><link>https://devzone.nordicsemi.com/thread/86964?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2017 08:23:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85a19cce-19d1-4a25-a5b1-0c022df5d8f4</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;Ok, i&amp;#39;ll try.
Thanks a lot&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding information issue when only one side the bonding is delete</title><link>https://devzone.nordicsemi.com/thread/86943?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2017 08:06:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5452aaf-472d-44b9-9223-e384582c5ae6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@annapalu: You should not start advertising when there is flash operation in progress. My suggestion is, delete bond information, wait for PM_EVT_PEERS_DELETE_SUCCEEDED then disconnect, and when you disconnected (wait for the event) you can start advertising.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding information issue when only one side the bonding is delete</title><link>https://devzone.nordicsemi.com/thread/86959?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2017 08:59:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2bcc359-f439-45e2-aab4-645328fc90bd</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;Hi Petter,&lt;/p&gt;
&lt;p&gt;yes i have commented it. Sorry maybe in the project i have forget to commit it. But in my  project it is commented and the error occurs. My question is: can be a problem delete the bonding information and after disconnect the device, without waiting for the PM_EVT_SUCCESS?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding information issue when only one side the bonding is delete</title><link>https://devzone.nordicsemi.com/thread/86960?ContentTypeID=1</link><pubDate>Thu, 08 Jun 2017 08:44:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2c5dfb9-ff4d-4bae-a4da-9101fe7dc5eb</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;So you removed it? It is there in the project you sent me:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    case PM_EVT_PEERS_DELETE_SUCCEEDED:
        advertising_start();
        break;
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding information issue when only one side the bonding is delete</title><link>https://devzone.nordicsemi.com/thread/86961?ContentTypeID=1</link><pubDate>Wed, 07 Jun 2017 15:25:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ef5c939-b4ef-4f8d-8b34-56072e4ac20d</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;i don&amp;#39;t have advertising start with the DELETE_SUCCEDED.&lt;/p&gt;
&lt;p&gt;this is my case:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;  case  (PM_EVT_PEERS_DELETE_SUCCEEDED):
        break;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Complete below:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    static void PR_MGR_EventHandler(pm_evt_t const * p_evt)
{
   ret_code_t err_code;
   switch(p_evt-&amp;gt;evt_id)
   {
      case PM_EVT_BONDED_PEER_CONNECTED:
      {
         APP_LOG(&amp;quot;Connected to previously bonded device\r\n&amp;quot;);                      
         err_code=TIMER_Start(TIMER_REQUEST,SECURITY_REQUEST_DELAY,NULL);
         APP_ERROR_CHECK(err_code);
         
         err_code = pm_peer_rank_highest(p_evt-&amp;gt;peer_id);
         if (err_code != NRF_ERROR_BUSY)
         {
                 APP_ERROR_CHECK(err_code);
         }
      }
      break;//PM_EVT_BONDED_PEER_CONNECTED

      case PM_EVT_CONN_SEC_START:
         break;//PM_EVT_CONN_SEC_START

      case PM_EVT_CONN_SEC_SUCCEEDED:
         {
            pm_conn_sec_status_t conn_sec_status;
            err_code = pm_conn_sec_status_get(p_evt-&amp;gt;conn_handle, &amp;amp;conn_sec_status);
            APP_ERROR_CHECK(err_code);
            err_code = pm_peer_rank_highest(p_evt-&amp;gt;peer_id);
            APP_ERROR_CHECK(err_code);
          }
         
         break;//PM_EVT_CONN_SEC_SUCCEEDED

      case PM_EVT_CONN_SEC_FAILED:
         {
         /** In some cases, when securing fails, it can be restarted directly. Sometimes it can
          *  be restarted, but only after changing some Security Parameters. Sometimes, it cannot
          *  be restarted until the link is disconnected and reconnected. Sometimes it is
          *  impossible, to secure the link, or the peer device does not support it. How to
          *  handle this error is highly application dependent. */
          
         switch (p_evt-&amp;gt;params.conn_sec_failed.error)
         {
            case PM_CONN_SEC_ERROR_DISCONNECT :
            NRF_LOG_PRINTF_DEBUG(&amp;quot;error: PM_CONN_SEC_ERROR_DISCONNECT &amp;quot;);
            break;//PM_CONN_SEC_ERROR_DISCONNECT

            case PM_CONN_SEC_ERROR_SMP_TIMEOUT:
            NRF_LOG_PRINTF_DEBUG(&amp;quot;error: PM_CONN_SEC_ERROR_SMP_TIMEOUT&amp;quot;);
            break;//PM_CONN_SEC_ERROR_SMP_TIMEOUT
            
            case PM_CONN_SEC_ERROR_PIN_OR_KEY_MISSING:
               // Rebond if one party has lost its keys.
               err_code = pm_conn_secure(p_evt-&amp;gt;conn_handle, true);
               if (err_code != NRF_ERROR_INVALID_STATE)
               {
               APP_ERROR_CHECK(err_code);
               }
               break;
           
            default:
            NRF_LOG_PRINTF_DEBUG(&amp;quot;unknown error&amp;quot;);
            break;
         }
            err_code = CNT_MGR_Disconnect();
            APP_ERROR_CHECK(err_code);
            lPeerMsg.msg = QUEUE_PEER_FAILED;
            QUEUE_Put(lPeerMsg );  
            CNT_MGR_SetConnStatus(BLE_CONN_HANDLE_INVALID);
         }
         break;//PM_EVT_CONN_SEC_FAILED

      case PM_EVT_CONN_SEC_CONFIG_REQ:
         {
         // Allow pairing request from an already bonded peer.
            pm_conn_sec_config_t conn_sec_config = {.allow_repairing = true};
            pm_conn_sec_config_reply(p_evt-&amp;gt;conn_handle, &amp;amp;conn_sec_config);
         }
         break;//PM_EVT_CONN_SEC_CONFIG_REQ

         case PM_EVT_STORAGE_FULL:
         {
         // Run garbage collection on the flash.
         err_code = fds_gc();
         if (err_code == FDS_ERR_BUSY || err_code == FDS_ERR_NO_SPACE_IN_QUEUES)
         {
             // Retry.
         }
         else
         {
             APP_ERROR_CHECK(err_code);
         }
         }
         break;//PM_EVT_STORAGE_FULL

      case PM_EVT_ERROR_UNEXPECTED:
         // Assert.
         APP_ERROR_CHECK(p_evt-&amp;gt;params.error_unexpected.error);
         break;//PM_EVT_ERROR_UNEXPECTED


      case PM_EVT_PEER_DATA_UPDATE_FAILED:
         // Assert.
         APP_ERROR_CHECK_BOOL(false);
         break;//PM_EVT_PEER_DATA_UPDATE_FAILED


      case PM_EVT_PEER_DELETE_FAILED:
         // Assert.
         APP_ERROR_CHECK(p_evt-&amp;gt;params.peer_delete_failed.error);
         break;//PM_EVT_PEER_DELETE_FAILED

      case  (PM_EVT_PEERS_DELETE_SUCCEEDED):
            break;
     
      case PM_EVT_PEERS_DELETE_FAILED:
         // Assert.
         APP_ERROR_CHECK(p_evt-&amp;gt;params.peers_delete_failed_evt.error);
         break;//PM_EVT_PEERS_DELETE_FAILED


  /*    case PM_EVT_LOCAL_DB_CACHE_APPLY_FAILED:
         // The local database has likely changed, send service changed indications.
         pm_local_database_has_changed();
         break;//PM_EVT_LOCAL_DB_CACHE_APPLY_FAILED*/

      default:
         // No implementation needed.
         break;
   }
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding information issue when only one side the bonding is delete</title><link>https://devzone.nordicsemi.com/thread/86962?ContentTypeID=1</link><pubDate>Wed, 07 Jun 2017 15:21:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a03e623d-8e9c-4528-b865-18e4f61a6728</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;After you have called pm_peers_delete() you will get the PM_EVT_PEERS_DELETE_SUCCEEDED event, which will trigger advertising_start(). If you are in a connection this will probably lead to an error and a reset. Does it help if you uncomment advertising_start()?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding information issue when only one side the bonding is delete</title><link>https://devzone.nordicsemi.com/thread/86967?ContentTypeID=1</link><pubDate>Wed, 07 Jun 2017 13:13:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:659adc5a-7a97-4196-95f4-1a325445cae0</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;Hi Petter,
sorry for the delete.&lt;/p&gt;
&lt;p&gt;I delete the bonding information with  err_code = pm_peers_delete();&lt;/p&gt;
&lt;p&gt;maybe can be the problem that i delete the bonding information when i am connected? i after the delete peer call the&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;  uint32_t err_code;
      
err_code = sd_ble_gap_disconnect(m_conn_handle, BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION);
  return err_code;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Thanks,
Anna&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding information issue when only one side the bonding is delete</title><link>https://devzone.nordicsemi.com/thread/86958?ContentTypeID=1</link><pubDate>Mon, 29 May 2017 13:10:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd3edeb6-4d5d-4e3c-815b-ca5a44d4bbf5</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;How are you deleting the bonding on the nordic board?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding information issue when only one side the bonding is delete</title><link>https://devzone.nordicsemi.com/thread/86957?ContentTypeID=1</link><pubDate>Mon, 29 May 2017 09:56:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35f0c2dc-8141-4092-87db-61a0b29950f1</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;I have understood that have this problem when the  m_pi.active_peer_ids is all 0. This can help you to understood the problems?  To me &amp;quot;No&amp;quot; :(&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding information issue when only one side the bonding is delete</title><link>https://devzone.nordicsemi.com/thread/86956?ContentTypeID=1</link><pubDate>Mon, 29 May 2017 08:12:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78c0be00-9d14-423d-b521-a3d7ef406e79</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;Any suggestions?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding information issue when only one side the bonding is delete</title><link>https://devzone.nordicsemi.com/thread/86955?ContentTypeID=1</link><pubDate>Fri, 26 May 2017 12:50:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:937200a1-7778-4f16-93be-6b2038471fcf</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_gls.7z"&gt;ble_app_gls.7z&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding information issue when only one side the bonding is delete</title><link>https://devzone.nordicsemi.com/thread/86954?ContentTypeID=1</link><pubDate>Fri, 26 May 2017 12:49:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f84155a1-4879-46cb-acfc-861121580646</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;Yes i do. i have understood that the problem there is when i have add the whitelist.
I load the gls_example modify with the withelist and you can reproduce the issue. Load the project, do pairing and bonding. After if delete before the bonding information on phone side before and after on nordic board, i have a reset.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding information issue when only one side the bonding is delete</title><link>https://devzone.nordicsemi.com/thread/86949?ContentTypeID=1</link><pubDate>Tue, 23 May 2017 13:36:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:070a083f-86fe-4b4e-b9a7-83238ddd7622</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Ok. Can you please edit your question and include your complete project or a project that reproduces this behavior so I can test it here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding information issue when only one side the bonding is delete</title><link>https://devzone.nordicsemi.com/thread/86948?ContentTypeID=1</link><pubDate>Mon, 22 May 2017 13:54:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:018dd72b-b6a5-4fba-85e2-c501cb728b04</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;The problem is here:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ret_code_t pdb_write_buf_get(pm_peer_id_t       peer_id,
                             pm_peer_data_id_t  data_id,
                             uint32_t           n_bufs,
                             pm_peer_data_t   * p_peer_data)
{
    VERIFY_MODULE_INITIALIZED();
    VERIFY_PARAM_NOT_NULL(p_peer_data);
    VERIFY_DATA_ID_WRITE_BUF(data_id);
    if (   (n_bufs == 0)
        || (n_bufs &amp;gt; N_WRITE_BUFFERS)
        || !pds_peer_id_is_allocated(peer_id))
    {
        return NRF_ERROR_INVALID_PARAM;
    }
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;the function pds_peer_id_is_allocated(peer_id) return false. But this happens after i delete the bonding information.&lt;/p&gt;
&lt;p&gt;If i read the comment says:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/**@brief Function for finding out whether a peer ID is in use.
 *
 * @param[in]  peer_id  The peer ID to inquire about.
 *
 * @retval  true   peer_id is in use.
 * @retval  false  peer_id is free, or the module is not initialized.
 */
bool pds_peer_id_is_allocated(pm_peer_id_t peer_id);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding information issue when only one side the bonding is delete</title><link>https://devzone.nordicsemi.com/thread/86947?ContentTypeID=1</link><pubDate>Mon, 22 May 2017 09:22:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a314ff6c-a1d2-4225-a5f4-18b9addb058b</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;No, it doesn&amp;#39;t. This happens when i delete bonding information first from phone side, and after on nordic evaluation board. But not always, only sometimes. But this cause the reset of device so can be a problem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding information issue when only one side the bonding is delete</title><link>https://devzone.nordicsemi.com/thread/86946?ContentTypeID=1</link><pubDate>Sun, 21 May 2017 18:52:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee378af8-b18d-4600-881f-cde762bec221</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;If pdb_write_buf_get() returns NRF_ERROR_INVALID_PARAM this should be the reason:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; * @retval NRF_ERROR_INVALID_PARAM  Data ID or Peer ID was invalid or unallocated, or n_bufs was 0
 *                                  or more than the total available buffers.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Does this give you any useful hints to why you get this error? If not I think you need to include some more code, or maybe even your complete project, so I can try to reproduce.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding information issue when only one side the bonding is delete</title><link>https://devzone.nordicsemi.com/thread/86945?ContentTypeID=1</link><pubDate>Thu, 18 May 2017 14:32:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:721219b0-4812-497e-9333-76cc2fd34ca4</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;Hi petter, sdk 11&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>