<?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>HID keyboard example and whitelist</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/31321/hid-keyboard-example-and-whitelist</link><description>After disconnecting from chip I can not connect it with the same phone .And the chip will restart when we try to reconnet with the same phone (the phone have been deleted the pairing messages). what may be the problem?Why this will happen ?Could you explain</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 24 Mar 2018 09:31:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/31321/hid-keyboard-example-and-whitelist" /><item><title>RE: HID keyboard example and whitelist</title><link>https://devzone.nordicsemi.com/thread/125840?ContentTypeID=1</link><pubDate>Sat, 24 Mar 2018 09:31:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01f76b47-796d-48c5-a595-974488aa69d1</guid><dc:creator>anna</dc:creator><description>&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;Thank you very much .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID keyboard example and whitelist</title><link>https://devzone.nordicsemi.com/thread/125712?ContentTypeID=1</link><pubDate>Fri, 23 Mar 2018 11:28:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b338619-1a09-489c-8746-5b560b59fb1c</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Note that you have to erase the bond information both on the phone and the device before trying to reconnect. &lt;br /&gt;But I&amp;#39;m not absolutely sure that is what is causing your error.&lt;/p&gt;
&lt;p&gt;You can look at the list of error codes here: &lt;br /&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v1.0.0/group__nrf__error.html?cp=3_7_2_1_2_2_0_7" target="_blank" rel="noopener noreferrer"&gt;Softdevice Global Error Codes&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hard to say exactly what is causing this. Are you able to trace back exactly where the error is returned from?&lt;br /&gt;You can find some additional information about the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk51.v10.0.0/group__ble__sdk__lib__advertising.html#ga944db395f3667276eb62a8bf3d0583ad" target="_blank" rel="noopener noreferrer"&gt;ble_advertising_start() &lt;/a&gt;function here.&lt;/p&gt;
&lt;p&gt;Maybe you could upload your main.c file, so that I can take a look at it?&lt;/p&gt;
&lt;p&gt;Cheers.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID keyboard example and whitelist</title><link>https://devzone.nordicsemi.com/thread/125626?ContentTypeID=1</link><pubDate>Fri, 23 Mar 2018 02:08:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a57d81c-0fd0-4634-8267-24ad1e4f82cc</guid><dc:creator>anna</dc:creator><description>&lt;p&gt;Hi,&lt;span&gt;Joakim&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; I want to know the reason of the error I asked before .If I just erased the e&lt;span&gt;ncryption keys from my phone ,and I still use the same phone to scan the device ,then&amp;nbsp;the error would hanppen?Am I right?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1521770737885v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you very much!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Anna.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID keyboard example and whitelist</title><link>https://devzone.nordicsemi.com/thread/125496?ContentTypeID=1</link><pubDate>Thu, 22 Mar 2018 10:19:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9fbc02b-16eb-40b5-b236-e06c46181ef5</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi!&lt;br /&gt;&lt;br /&gt;You could use &lt;a href="http://www.nordicsemi.com/eng/Products/2.4GHz-RF/nRFgo-Studio/(language)/eng-GB" target="_blank" rel="noopener noreferrer"&gt;nRFgo Studio&lt;/a&gt; to erase your board, and reflash the application. This will erase the bond information.&lt;br /&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.tools/dita/tools/nrf5x_command_line_tools/nrf5x_nrfjprogexe.html" target="_blank" rel="noopener noreferrer"&gt;Nrfjprog&lt;/a&gt; can be used to acheive the same.&lt;br /&gt;&lt;br /&gt;If you want to add it as a functionality to your code, you can take a look at the ble_app_proximity and see how it is handled there (waking up the chip by pressing button 2 erases the bond information).&lt;br /&gt;&lt;br /&gt;You can also use the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk51.v10.0.0/group__dm__cntxt__mgmt__api.html#ga677524b3230bd620c91a83e4f68e3e01" target="_blank" rel="noopener noreferrer"&gt;dm_device_delete_all()&lt;/a&gt; function to delete the bond information. &lt;br /&gt;&lt;br /&gt;Let me know if you have further questions. &lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Joakim.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID keyboard example and whitelist</title><link>https://devzone.nordicsemi.com/thread/125240?ContentTypeID=1</link><pubDate>Wed, 21 Mar 2018 01:10:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad7f4db7-c85d-4be4-b8a3-197890745094</guid><dc:creator>anna</dc:creator><description>&lt;p&gt;Hi ,&lt;span&gt;Joakim&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;The SDK version is 10.0 and the example is&amp;nbsp;ble_app_hids_keyboard .And I didn&amp;#39;t make any modification.And I want to know how to erase the encryption keys from the device .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID keyboard example and whitelist</title><link>https://devzone.nordicsemi.com/thread/124930?ContentTypeID=1</link><pubDate>Mon, 19 Mar 2018 09:23:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9223ad2-a9a1-4536-8802-3ced493c7a21</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi again!&lt;/p&gt;
&lt;p&gt;Normally, if you erase the encryption keys from your phone, you will have to erase the encryption keys from the device you are trying to connect to as well.&lt;/p&gt;
&lt;p&gt;But if you have an error somewhere in your code, that should be fixed first.&lt;/p&gt;
&lt;p&gt;Could you please tell me which example and which SDK you are working with?&lt;br /&gt;It&amp;#39;s hard to tell what exactly caused the error, but I can see that it is an error code 7 (NRF_ERROR_INVALID_PARAM) and that suggests that there is an invalid parameter in there somewhere. &lt;br /&gt;Did you use one of the examples from one of our SDK&amp;#39;s and make any modifications to it?&lt;/p&gt;
&lt;p&gt;Best regards, &lt;br /&gt;Joakim.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID keyboard example and whitelist</title><link>https://devzone.nordicsemi.com/thread/124674?ContentTypeID=1</link><pubDate>Fri, 16 Mar 2018 03:00:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90081f8b-a8bc-4158-8ed0-64425dcfa267</guid><dc:creator>anna</dc:creator><description>&lt;p&gt;Hi,&lt;span&gt;Joakim&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;I opened the debug mode ,and there was an error &amp;nbsp;.&lt;img alt=" " height="223" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7510.01.png" width="286" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Why this would happen ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID keyboard example and whitelist</title><link>https://devzone.nordicsemi.com/thread/124672?ContentTypeID=1</link><pubDate>Fri, 16 Mar 2018 02:29:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a72efd8-04e6-445a-9754-92a77ed00025</guid><dc:creator>anna</dc:creator><description>&lt;p&gt;Hi ,&lt;span&gt;Joakim&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; Thank you very much for your reply .&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; If &amp;nbsp;I erased the encryption keys from the phone &amp;nbsp;, &amp;nbsp;I couldn&amp;#39;t discover the device which was adverting &amp;nbsp;.I just want to konw &amp;nbsp;if &amp;nbsp;I erased the encryption keys from the phone ,how can I &amp;nbsp;connet the same device again .I know if &amp;nbsp;I erased the encryption keys the device can&amp;#39;t reconnet&amp;nbsp;automatically .And the&amp;nbsp;problem is that is there a way to connet the phone by myself ?&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers ,&lt;/p&gt;
&lt;p&gt;Anna .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID keyboard example and whitelist</title><link>https://devzone.nordicsemi.com/thread/124182?ContentTypeID=1</link><pubDate>Tue, 13 Mar 2018 13:48:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43a4b891-6f90-4585-859e-43308825f946</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi!&lt;br /&gt;&lt;br /&gt;Quick information about Pairing/Bonding: &lt;br /&gt;Pairing: Devices that are initially connected can exchange encryption keys and encrypt the link. When they have,&lt;br /&gt;the link is secure and they are paired.&lt;br /&gt;&lt;br /&gt;Bonding: Paired devices can be bonded. This means that they store the keys that have already been exchanged when&lt;br /&gt;they paired and use those again the next time they connect.&lt;br /&gt;&lt;br /&gt;I believe your problem is related to the bond information on the phone being deleted.&lt;br /&gt;When you bond the devices, they store the encryption keys to use the next time they connect. When these keys are deleted &lt;br /&gt;from the phone, your device will try to reconnect to the phone using the old keys, they are no longer present on the phone, &lt;br /&gt;and the connection drops.&lt;br /&gt;&lt;br /&gt;You can try to connect your device and your phone, but when you disconnect, don&amp;#39;t erase the encryption keys from the phone. &lt;br /&gt;Then you should be able to reconnect. &lt;br /&gt;&lt;br /&gt;Please let me know if I misunderstood you in any way, or if you have additional questions.&lt;br /&gt;&lt;br /&gt;Cheers, &lt;br /&gt;Joakim.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>