<?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 fail and i don&amp;#39;t know why</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22060/bonding-fail-and-i-don-t-know-why</link><description>Hi All, 
 sometimes i have a problems with bonding: the Nordic APP said &amp;quot;Couldn&amp;#39;t pair with xxxxxx because of an incorrect PIN or passkey&amp;quot;. 
 Why i have this errors? What means? 
 i try to delete bonding information on both side (phone and nordic board</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Sep 2017 08:01:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22060/bonding-fail-and-i-don-t-know-why" /><item><title>RE: Bonding fail and i don't know why</title><link>https://devzone.nordicsemi.com/thread/86580?ContentTypeID=1</link><pubDate>Fri, 22 Sep 2017 08:01:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00e11480-ac2e-4cad-9949-4e4e967f87d2</guid><dc:creator>Hung Alan</dc:creator><description>&lt;p&gt;I set the .allow_repairing flag to true :&lt;/p&gt;
&lt;p&gt;static void pm_evt_handler(pm_evt_t const * p_evt) { case PM_EVT_CONN_SEC_CONFIG_REQ: { // Reject 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; .....
It is working now.But working in sdk14 error
&lt;a href="https://devzone.nordicsemi.com/question/169684/sdk14-hids_keyboard-error/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding fail and i don't know why</title><link>https://devzone.nordicsemi.com/thread/86591?ContentTypeID=1</link><pubDate>Wed, 23 Aug 2017 08:13:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efc2a65f-26e7-4c3a-baa6-167ac4db7267</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;Hung Alan, any news?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding fail and i don't know why</title><link>https://devzone.nordicsemi.com/thread/86589?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2017 15:13:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:023ae48c-472a-4b54-87be-841686f67d23</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;I don&amp;#39;t know if i have solved the problem, but for the moment it is never occurs. But i want do other test. What i can advice is erase_flash_id, clear_whitelist, stop advertising and start advertising again.&lt;/p&gt;
&lt;p&gt;If the device and phone are connected disconnect before and after delete bonding information.&lt;/p&gt;
&lt;p&gt;Let me know&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding fail and i don't know why</title><link>https://devzone.nordicsemi.com/thread/86590?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2017 02:46:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:341cbb00-0388-49b2-a9b4-a7c089d562da</guid><dc:creator>Hung Alan</dc:creator><description>&lt;p&gt;I tried but did not succeed. Do you have any success?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding fail and i don't know why</title><link>https://devzone.nordicsemi.com/thread/86586?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2017 16:00:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae598f0b-fd6c-4487-a794-2519ccbf93d6</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;Hi Hung, i had the same problems with sdk 11. What i do is delete the whitelist manually, because the function erase bonding, delete the peer id but don&amp;#39;t clear the whitelist. Maybe with sdk 12 you can find a function that can clear the whitelist somethingh like this (ret_val = pm_whitelist_set(NULL, 0);).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding fail and i don't know why</title><link>https://devzone.nordicsemi.com/thread/86579?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2017 08:55:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a97c060-30ca-4f7c-a3e4-a6afa79f6548</guid><dc:creator>Hung Alan</dc:creator><description>&lt;p&gt;I use phone with NRF52 bonding.phone said &amp;quot;Couldn&amp;#39;t pair with Nordic_Keyboard because of an incorrect PIN or passkey&amp;quot;. I use ble_app_hids_keyboard example (SDK12.2.0) .
I think the problem is whitelist.
options.ble_adv_whitelist_enabled      = false;
but invalid....
p.s My english is not good&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding fail and i don't know why</title><link>https://devzone.nordicsemi.com/thread/86583?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2017 08:24:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b828efac-cec4-430a-b6cc-22e1eef66188</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;Hi Hung what kind the problem you have? What sdk are you using? And you use a whitelist?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding fail and i don't know why</title><link>https://devzone.nordicsemi.com/thread/86582?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2017 08:22:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f695bfdf-fe0c-49a5-987f-327bcf590ad5</guid><dc:creator>Hung Alan</dc:creator><description>&lt;p&gt;I have this problem too.I use ble_app_hids_keyboard(SDK12.2.0)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding fail and i don't know why</title><link>https://devzone.nordicsemi.com/thread/86581?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2017 14:25:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28f1a4e5-ee36-4dea-b619-dbf350d295e4</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;You can use fstorage to &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v13.0.0/lib_fstorage.html?cp=4_0_0_3_44_2#lib_fstorage_store"&gt;erase pages&lt;/a&gt;. Multiple examples are available in &lt;a href="https://github.com/NordicSemiconductor/nRF5-flash-storage-examples"&gt;this GitHub repository&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding fail and i don't know why</title><link>https://devzone.nordicsemi.com/thread/86597?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2017 07:02:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb8cc3cc-d1b0-475b-acea-5b55be6766af</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;Hi jorgen i menage the error in this way&lt;/p&gt;
&lt;p&gt;case PM_EVT_ERROR_UNEXPECTED:
// Assert.
APP_ERROR_CHECK(p_evt-&amp;gt;params.error_unexpected.error);
break;//PM_EVT_ERROR_UNEXPECTED&lt;/p&gt;
&lt;p&gt;So with assert,
you suggestion me to clean the page in flash? How can i do that?
Thanks,
Anna&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding fail and i don't know why</title><link>https://devzone.nordicsemi.com/thread/86585?ContentTypeID=1</link><pubDate>Thu, 18 May 2017 13:10:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fe76100-550d-4ad2-a2ac-4043290df397</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;It sound like the bonding data is not deleted from one of the devices. Do the bonding error happen at the same time you see the &lt;code&gt;PM_EVT_ERROR_UNEXPECTED&lt;/code&gt; error? How are you handling this error? Are you &lt;a href="https://devzone.nordicsemi.com/question/116633/nrf52-pm_evt_error_unexpected-because-of-dirty-fds-pages/"&gt;providing clean pages to FDS&lt;/a&gt; used by Peer Manager?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding fail and i don't know why</title><link>https://devzone.nordicsemi.com/thread/86596?ContentTypeID=1</link><pubDate>Tue, 16 May 2017 12:21:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:859c04e2-c839-4a59-89f5-095fc95009ae</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;It&amp;#39;s possible have an application note or something that explain how menages all event to have a just works pairing and bonding with &amp;quot;Peer Manager ?&lt;/p&gt;
&lt;p&gt;Because sometimes when i delete bonding information, occurs also PM_EVT_ERROR_UNEXPECTED, and reset my device. So i would like to start with a clear projectthat allow to have just works procedure.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding fail and i don't know why</title><link>https://devzone.nordicsemi.com/thread/86595?ContentTypeID=1</link><pubDate>Tue, 16 May 2017 12:19:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bebc8d9a-b57a-43d3-b662-07f78f9263e3</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;Sdk11, the device is a nexsus 5x. I &amp;#39;m usind  nRF Connect APP&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding fail and i don't know why</title><link>https://devzone.nordicsemi.com/thread/86594?ContentTypeID=1</link><pubDate>Tue, 16 May 2017 12:13:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ccc1488-e1fe-42f7-98a5-3cfeefcdbff5</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Which SDK version are you using? What device is on &amp;quot;the other side&amp;quot;? Which app are you referring to with &amp;quot;Nordic APP&amp;quot;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding fail and i don't know why</title><link>https://devzone.nordicsemi.com/thread/86593?ContentTypeID=1</link><pubDate>Tue, 16 May 2017 12:11:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53e54580-abf9-442f-b70e-9f4649c1743a</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;yes, i am able to connect. But sometimes when i try to delete bonding information on both side to test this features, i have this problem. And, also, try again to delete the bonding information i have this issue. And it&amp;#39;s no possibility to connect with device. I have to delete softdevice and load again it. And it&amp;#39;s not a solution on our product.&lt;/p&gt;
&lt;p&gt;@Yes i use the set above!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding fail and i don't know why</title><link>https://devzone.nordicsemi.com/thread/86592?ContentTypeID=1</link><pubDate>Tue, 16 May 2017 11:28:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:733768b7-11d4-42b7-947a-a34f2c9d0c09</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;How often do you get the error? Are you able to connect sometimes?&lt;/p&gt;
&lt;p&gt;Is this the settings you have set in your application?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sec_param.bond = true;
sec_param.mitm = false;
sec_param.lesc = 0;
sec_param.keypress = 0;
sec_param.io_caps = BLE_GAP_IO_CAPS_NONE;
sec_param.oob = false;
sec_param.min_key_size = 7;
sec_param.max_key_size = 16;
sec_param.kdist_own.enc = 1;
sec_param.kdist_own.id = 1;
sec_param.kdist_peer.enc = 1;
sec_param.kdist_peer.id = 1;
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding fail and i don't know why</title><link>https://devzone.nordicsemi.com/thread/86588?ContentTypeID=1</link><pubDate>Tue, 16 May 2017 09:22:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5913f09-17ba-43fb-93ec-4419c7c86feb</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;Hi jorgen,&lt;/p&gt;
&lt;p&gt;i don&amp;#39;t have èasskey to insert. I want use only a just work pairinig and bonding procedure.
I have started with Gls_app SDK example and change the procedure of just works according this &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v11.0.0%2Flib_pm_usage.html&amp;amp;cp=4_0_3_3_1_11_2."&gt;infocenter.nordicsemi.com/index.jsp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But sometimes give me this error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding fail and i don't know why</title><link>https://devzone.nordicsemi.com/thread/86587?ContentTypeID=1</link><pubDate>Tue, 16 May 2017 09:17:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5174ba60-047f-4426-ab2e-2949e07e3c31</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Did you enter a PIN or passkey before receiving the error? Are you sure you entered the correct passkey? Which example are you using? Can you try the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v13.0.0/ble_sdk_app_gls.html?cp=4_0_0_4_1_2_7"&gt;Glucose Application&lt;/a&gt; from the SDK, which is setup to require bonding?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding fail and i don't know why</title><link>https://devzone.nordicsemi.com/thread/86584?ContentTypeID=1</link><pubDate>Mon, 15 May 2017 14:52:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64edbdda-b2d6-4d7a-88d0-a3b11b45ee19</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;Now i have load the softdevice new, and if i try to connect with phone give me an error Connection terminated peer ( status 19) and continue to disconnect. WHy this happend and how to menage this? I want a device just works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>