<?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 - Problems After Disconneting and Downloading</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5575/hid-keyboard---problems-after-disconneting-and-downloading</link><description>Environment : 
 
 
 Custom Board with MCU NordicSemi nRF51822-QFAA 
 
 
 Softdevice S110 7.1 
 
 
 IAR for ARM 7.1 
 
 
 SDK 7.2 using HID keyboard example + testing with iPhone 5S, 6 and iPad air (iOS 8.1.3) 
 
 
 / Nexus 5 and Galaxy</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 25 Feb 2015 05:43:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5575/hid-keyboard---problems-after-disconneting-and-downloading" /><item><title>RE: HID Keyboard - Problems After Disconneting and Downloading</title><link>https://devzone.nordicsemi.com/thread/19542?ContentTypeID=1</link><pubDate>Wed, 25 Feb 2015 05:43:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd6b14f0-0c25-4df7-9940-4f7ffadde6da</guid><dc:creator>MANGO</dc:creator><description>&lt;p&gt;Thank you for noticing me about the disconnection reason. Both &amp;quot;forget the device&amp;quot; and Bluetooth off&lt;/p&gt;
&lt;p&gt;gives reason number 0x13 (timeout reason). Looks like there&amp;#39;s no way to tell which one is which&lt;/p&gt;
&lt;p&gt;when they both fall into BLE_GAP_EVT_DISCONNECTED.&lt;/p&gt;
&lt;p&gt;Thank you for reminding me Petter.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID Keyboard - Problems After Disconneting and Downloading</title><link>https://devzone.nordicsemi.com/thread/19541?ContentTypeID=1</link><pubDate>Fri, 20 Feb 2015 23:03:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58509c21-608a-4c84-a34c-ed0e706c950b</guid><dc:creator>MANGO</dc:creator><description>&lt;p&gt;When I test with Nexus 5 (4.4.2), it is fine.&lt;/p&gt;
&lt;p&gt;However when I test with Galaxy Note 3  (4.4.2), it sometimes doesn&amp;#39;t work properly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID Keyboard - Problems After Disconneting and Downloading</title><link>https://devzone.nordicsemi.com/thread/19540?ContentTypeID=1</link><pubDate>Fri, 20 Feb 2015 15:24:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:386f8c51-96ff-4452-9ef1-912e5f4e18ce</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;On Android as well? I didn&amp;#39;t catch that. I tested it on my Samsung Galaxy Note 4 (4.4.4) and Samsung Galaxy Note 2 (4.4.2), and it works. Can you please test again?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID Keyboard - Problems After Disconneting and Downloading</title><link>https://devzone.nordicsemi.com/thread/19539?ContentTypeID=1</link><pubDate>Fri, 20 Feb 2015 09:19:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:998eb2ab-202c-4565-968c-cd616492e95d</guid><dc:creator>MANGO</dc:creator><description>&lt;p&gt;One more thing, without using this,&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;err_code = bsp_button_is_pressed(BOND_DELETE_BUTTON_ID,&amp;amp;(init_data.clear_persistent_data));
APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;how can I delete it regardless of the button press?&lt;/p&gt;
&lt;p&gt;What other function do I have to call?&lt;/p&gt;
&lt;p&gt;Edited : I see. Although the same problem seems to appear when I test with Android devices,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll ask to th Apple dev page. Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID Keyboard - Problems After Disconneting and Downloading</title><link>https://devzone.nordicsemi.com/thread/19538?ContentTypeID=1</link><pubDate>Thu, 19 Feb 2015 11:16:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d36b1ead-20d6-4404-a412-1befc88faa09</guid><dc:creator>MANGO</dc:creator><description>&lt;p&gt;Thank you for checking the Bluetooth mark.&lt;/p&gt;
&lt;p&gt;The not working situation cannot be explained yet?&lt;/p&gt;
&lt;p&gt;Also, whether I select &amp;quot;Forget the device&amp;quot; or Bluetooth off,&lt;/p&gt;
&lt;p&gt;the HID peripheral falls into disconnect event.&lt;/p&gt;
&lt;p&gt;However there is no way that the peripheral to tell which was selected(forget device/bluetooth off)&lt;/p&gt;
&lt;p&gt;from the phone?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID Keyboard - Problems After Disconneting and Downloading</title><link>https://devzone.nordicsemi.com/thread/19537?ContentTypeID=1</link><pubDate>Wed, 18 Feb 2015 11:39:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f5016be-0793-417a-8552-f05aa06d2f9c</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;The ble_app_hids_keyboard application can handle 7 bonds (&lt;code&gt;DEVICE_MANAGER_MAX_BONDS 7&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;When you press &amp;quot;Forget This Device&amp;quot; you will erase the bonding information on the phone, but it will still be on the peripheral. If you don&amp;#39;t delete it on the peripheral I&amp;#39;m not entirely sure what will happen, either will add a new bond and work, or it will believe it is already bonded and not work.&lt;/p&gt;
&lt;p&gt;Downloading the code will not erase the bonding information, so after 7 or 8 downloads you will have 7 or 8 bonds stored (if you bond every time), since 7 is max I think this is when you get the issue.&lt;/p&gt;
&lt;p&gt;The bonding information can be erased by checking &amp;quot;Erase Full Chip&amp;quot; in Options for Target-&amp;gt;Utilities-&amp;gt;Settings-&amp;gt;Flash Download or by pressing a certain button on startup:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// Clear all bonded centrals if the &amp;quot;delete all bonds&amp;quot; button is pushed.
err_code = bsp_button_is_pressed(BOND_DELETE_BUTTON_ID,&amp;amp;(init_data.clear_persistent_data));
APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Edit 19.02: Removed a Bluetooth symbol mistake.&lt;/p&gt;
&lt;p&gt;Edit 20.02: I have been able to reproduce this; I think it is an iOS bug. The peripheral actually adds a new bond, and it is sending key presses, but iOS is not responding to them. We will investigate further, but you should report this to Apple. I will edit this answer if there are any updates from our side.&lt;/p&gt;
&lt;p&gt;There is a reason that comes with the BLE_EVT_DISCONNECT event, but it is the same reason if you turn off Bluetooth or press Forget this device, so you can&amp;#39;t separate them.&lt;/p&gt;
&lt;p&gt;If you always delete the bonding information there is really no reason to store it persistently, anyways, you should look into dm_init(). Please add this as a new question if anything is unclear.&lt;/p&gt;
&lt;p&gt;One more thing, you shouldn&amp;#39;t use directed advertising with iOS since it is changing it&amp;#39;s address every 15 minutes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>