<?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>Pairing unsuccessful with phone</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53663/pairing-unsuccessful-with-phone</link><description>I designed a reduced size PCB that used an nRF52832 and will act as a BLE HID device. 
 With the original nRF52DK evaluation board I was able to use the example ble_app_hids_mouse SDK V15 and pair it with Android and iPhones. 
 But when I used the new</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Nov 2019 08:41:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53663/pairing-unsuccessful-with-phone" /><item><title>RE: Pairing unsuccessful with phone</title><link>https://devzone.nordicsemi.com/thread/218447?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2019 08:41:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5b50f4b-f566-40c0-a426-5fcb6c1799a1</guid><dc:creator>vn2000</dc:creator><description>&lt;p&gt;Thank you for your assistance. The pairing issue was resolved!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing unsuccessful with phone</title><link>https://devzone.nordicsemi.com/thread/218288?ContentTypeID=1</link><pubDate>Mon, 04 Nov 2019 14:58:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8aa89a27-c016-400e-88c9-72a540f69a4e</guid><dc:creator>Hakon</dc:creator><description>[quote user="vn2000"]Should I open a new thread for the advertising time?[/quote]
&lt;p&gt;&amp;nbsp;Yes, please do. It will give you more dedicated support.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing unsuccessful with phone</title><link>https://devzone.nordicsemi.com/thread/218016?ContentTypeID=1</link><pubDate>Fri, 01 Nov 2019 17:05:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bcbc62c-6c4a-40f0-b66d-dde61c048306</guid><dc:creator>vn2000</dc:creator><description>&lt;p&gt;The pairing issue is working now according to your suggestion.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However if I changed&amp;nbsp;&lt;span&gt;both&amp;nbsp;&lt;/span&gt;&lt;span&gt;APP_ADV_FAST_DURATION and APP_ADV_SLOW_DURATION to be 0 in order to have continuous advertising, the device no longer advertised.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So the pairing problem was resolved. Now this is a new issue regarding the advertising time.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Should I open a new thread for the advertising time?&lt;/span&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: Pairing unsuccessful with phone</title><link>https://devzone.nordicsemi.com/thread/218005?ContentTypeID=1</link><pubDate>Fri, 01 Nov 2019 15:53:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe507cd3-9906-4248-bd19-9cbb116a88e5</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;What do you mean by &amp;quot;it no longer worked&amp;quot;. Also, you need to delete the bonds on the central as well, when you erase bonds on the peripheral.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing unsuccessful with phone</title><link>https://devzone.nordicsemi.com/thread/217862?ContentTypeID=1</link><pubDate>Fri, 01 Nov 2019 02:08:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6846872c-791f-4ad4-b312-89f11c49d0b7</guid><dc:creator>vn2000</dc:creator><description>&lt;p&gt;I only changed the the advertising time APP_ADV_FAST_DURATION and APP_ADV_SLOW_DURATION to be longer. So I changed it back to 3000 and 18000, now it works.&lt;/p&gt;
&lt;p&gt;The question I have now is that how do I make it continuously advertises. We have a product and we don&amp;#39;t want it to advertise only a few minutes then stop.&lt;/p&gt;
&lt;p&gt;I tried to change both&amp;nbsp;&lt;span&gt;APP_ADV_FAST_DURATION and APP_ADV_SLOW_DURATION to be 0 and it no longer worked.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing unsuccessful with phone</title><link>https://devzone.nordicsemi.com/thread/217755?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2019 12:22:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:273b8c72-e530-4b1e-b5ae-bd5c1e733bed</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;What changes have you done to the original sample code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing unsuccessful with phone</title><link>https://devzone.nordicsemi.com/thread/217732?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2019 11:15:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcaae4c3-6067-4d7e-a018-60b3440df6f3</guid><dc:creator>vn2000</dc:creator><description>&lt;p&gt;Yes I did erase and load the softdevice s132&amp;nbsp; and it has no effect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing unsuccessful with phone</title><link>https://devzone.nordicsemi.com/thread/217720?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2019 09:39:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09841bcf-383a-4a42-a560-a159b6ae1279</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Have you tried erasing the chip as I mentioned in a previous reply?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing unsuccessful with phone</title><link>https://devzone.nordicsemi.com/thread/217655?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2019 05:14:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:189589e0-7397-484b-ab18-e1e1bd348c60</guid><dc:creator>vn2000</dc:creator><description>&lt;p&gt;I do have these statements in&amp;nbsp;PM_EVT_CONN_SEC_CONFIG_REQ, even though it looks like:&lt;/p&gt;
&lt;p&gt;conn_sec_config.allow_repairing = true;&lt;br /&gt; pm_conn_sec_config_reply(p_evt-&amp;gt;conn_handle, &amp;amp;conn_sec_config);&lt;/p&gt;
&lt;p&gt;My PCB doesn&amp;#39;t have button 2. So I used&amp;nbsp;&lt;span&gt;advertising_start(1) at reset. But pairing is still unsuccessful.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Since I&amp;#39;m displaying serial debug messages, I was following up some variables and I noticed that when the pairing is successful, the value of&amp;nbsp;m_whitelist_peer_cnt&amp;nbsp; to be 2 or 3. When the pairing is unsuccessful,&amp;nbsp;m_whitelist_peer_cnt&amp;nbsp;&amp;nbsp; is always 1. This value is set by the function&amp;nbsp;pm_peer_id_list, called by&amp;nbsp;whitelist_set in advertising start.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m trying to trace further, but if you can give a suggestion that will help.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing unsuccessful with phone</title><link>https://devzone.nordicsemi.com/thread/217523?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2019 12:35:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:589b5fbf-626f-40cf-8315-e561d385aaa8</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;I think I know how to deal with the &amp;quot;Pairing Unsuccessful&amp;quot; problem now. What worked for me was adding&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;        case PM_EVT_CONN_SEC_CONFIG_REQ:
        {
            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;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;to pm_evt_handler().&lt;/p&gt;
&lt;p&gt;Also, every time you reset the device, press button 2, or if you don&amp;#39;t want to press the button every time you reset you can change to advertising_start(1) as described below.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing unsuccessful with phone</title><link>https://devzone.nordicsemi.com/thread/217487?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2019 10:22:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c42551b6-1f8b-493b-b7d6-75706dc9dba3</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Ok, try erasing the chip then reprogram (and remember to flash the soft device). Do this everytime you try reconnecting.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing unsuccessful with phone</title><link>https://devzone.nordicsemi.com/thread/217402?ContentTypeID=1</link><pubDate>Tue, 29 Oct 2019 20:40:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ead0aacd-7233-41a7-af6a-5220c4bd566a</guid><dc:creator>vn2000</dc:creator><description>&lt;p&gt;I changed to advertising_start(1) but still have the same issue: Pairing Unsuccessful.&lt;/p&gt;
&lt;p&gt;When I used this new compiled firmware, the original nRF52DK can&amp;#39;t pair either.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing unsuccessful with phone</title><link>https://devzone.nordicsemi.com/thread/217315?ContentTypeID=1</link><pubDate>Tue, 29 Oct 2019 12:16:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88bad8f6-50f6-4141-b3c5-41ecf677145e</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Change the line&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;advertising_start(erase_bonds);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;in main.c to&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;advertising_start(1);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and see if you are able to pair every time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing unsuccessful with phone</title><link>https://devzone.nordicsemi.com/thread/217189?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2019 17:26:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55c61027-3eb4-4f98-996c-dea41847576a</guid><dc:creator>vn2000</dc:creator><description>&lt;p&gt;Interestingly, the ble_app_hids_keyboard can be paired with the iPhone only once. After that the pairing was mostly unsuccessful, just like the ble_app_hids_mouse.&lt;/p&gt;
&lt;p&gt;The ble_app_hids_keyboard is not even seen by Android phone when I go to Settings-&amp;gt;Bluetooth. At least with ble_app_hids_mouse I can see it in both Android and iPhone, even though pairing was unsuccessful.&lt;/p&gt;
&lt;p&gt;What I can see here is that both ble_app_hids_mouse and ble_app_hids_keyboard were able to pair only once the first time the firmware was loaded into flash. Then after that the pairing was always unsuccessful. It looks like some variables were initialized correctly at first. Then after that they affected the subsequent pairing process that prevented it from being paired again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing unsuccessful with phone</title><link>https://devzone.nordicsemi.com/thread/217031?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2019 10:04:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7bdda05-113f-4efc-9a81-b798543d7ae4</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Does it also happen with the ble_app_hids_keyboard example?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing unsuccessful with phone</title><link>https://devzone.nordicsemi.com/thread/216911?ContentTypeID=1</link><pubDate>Fri, 25 Oct 2019 15:46:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6fcf5a3-15fe-48ee-902d-827bf19bb406</guid><dc:creator>vn2000</dc:creator><description>&lt;p&gt;Yes. First I want to see if the ble_app_hids_mouse example (unchanged) in sdk works on my PCB. I tried both V11 and V15. I also tried with a commercial unit, the Red Bear Nano BLE, and have the same problem. They don&amp;#39;t work neither with V11 nor V15 ble_app_hids_mouse. But they still work with other non-hid app that don&amp;#39;t require pairing.&lt;/p&gt;
&lt;p&gt;However, The nRF52DK eval board works with V15 but not V11 (ble_app_hids_mouse).&lt;/p&gt;
&lt;p&gt;We badly need Nordic nRF52 to work as a BLE HID device. That will be our main product.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing unsuccessful with phone</title><link>https://devzone.nordicsemi.com/thread/216869?ContentTypeID=1</link><pubDate>Fri, 25 Oct 2019 13:22:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7dfe45a0-f812-44eb-8118-c538014f15d5</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;are you trying to make the ble_app_hids_mouse example in sdk 11 work on your custom board?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>