<?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>Reset in nRF51 SDK v10 BLE Keyboard HIDS Example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11851/reset-in-nrf51-sdk-v10-ble-keyboard-hids-example</link><description>Hi, 
 We are using the BLE keyboard example as a basis for a design and notice strange behavior. 
 Only change was to create a custom_board.h header for a button press on my board to loop through the &amp;quot;hello&amp;quot; string and everything works great, until</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 03 May 2016 03:01:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11851/reset-in-nrf51-sdk-v10-ble-keyboard-hids-example" /><item><title>RE: Reset in nRF51 SDK v10 BLE Keyboard HIDS Example</title><link>https://devzone.nordicsemi.com/thread/44883?ContentTypeID=1</link><pubDate>Tue, 03 May 2016 03:01:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebdd5042-1de8-4e44-8cad-91438e41c440</guid><dc:creator>sam</dc:creator><description>&lt;p&gt;Hi Dgutierrez,&lt;/p&gt;
&lt;p&gt;I set the &amp;quot;erase_bonds&amp;quot; to false and the problem is solved, after hardware reset my BLE still can send notification to central, thanks very much..  If I have any questions I will let you know.&lt;/p&gt;
&lt;p&gt;Sam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset in nRF51 SDK v10 BLE Keyboard HIDS Example</title><link>https://devzone.nordicsemi.com/thread/44881?ContentTypeID=1</link><pubDate>Fri, 29 Apr 2016 16:02:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfd22888-faee-4974-9080-af3a28b971dd</guid><dc:creator>dgutierrez</dc:creator><description>&lt;p&gt;Sure thing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset in nRF51 SDK v10 BLE Keyboard HIDS Example</title><link>https://devzone.nordicsemi.com/thread/44880?ContentTypeID=1</link><pubDate>Fri, 29 Apr 2016 16:01:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ca7cba2-9b1c-426b-b184-4af211e27271</guid><dc:creator>sam</dc:creator><description>&lt;p&gt;let me try and let you know..thank very much..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset in nRF51 SDK v10 BLE Keyboard HIDS Example</title><link>https://devzone.nordicsemi.com/thread/44879?ContentTypeID=1</link><pubDate>Fri, 29 Apr 2016 15:59:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3804319a-9c92-4dab-af1b-0121c801ef4e</guid><dc:creator>dgutierrez</dc:creator><description>&lt;p&gt;Yep.  In my case it was uninitialized cause we have some custom code there but the symptoms were the same.  Since the struct only has the member&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;typedef struct
{
    bool clear_persistent_data; /**&amp;lt; Set to true in case the module should clear all persistent data. */
} dm_init_param_t;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;the example code takes care of that.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void device_manager_init(bool erase_bonds)
{
    uint32_t               err_code;
    dm_init_param_t        init_param = {.clear_persistent_data = erase_bonds};
    dm_application_param_t  register_param;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The behavior was then that bonds were being cleared when they shouldn&amp;#39;t have been.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset in nRF51 SDK v10 BLE Keyboard HIDS Example</title><link>https://devzone.nordicsemi.com/thread/44878?ContentTypeID=1</link><pubDate>Fri, 29 Apr 2016 15:56:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b380d4a0-2cc5-458b-825e-424fb756bb6b</guid><dc:creator>sam</dc:creator><description>&lt;p&gt;Hi Dgutierrez,&lt;/p&gt;
&lt;p&gt;in &amp;quot;device_manager_init() &amp;quot;, i need to initial both dm_init_param_t and dm_application_param_t structs to zero?&lt;/p&gt;
&lt;p&gt;Thanks,
Sam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset in nRF51 SDK v10 BLE Keyboard HIDS Example</title><link>https://devzone.nordicsemi.com/thread/44877?ContentTypeID=1</link><pubDate>Fri, 29 Apr 2016 15:52:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93e0ed6e-0a45-447c-9d38-c2da0e0f60d6</guid><dc:creator>dgutierrez</dc:creator><description>&lt;p&gt;The fix for not connecting after 15 minutes was that the nRF chip went to sleep and stopped advertising, so I just started advertising on a button press when idle and it worked again.  Another option is to reset on the button press which also started advertising again.  Note that the example code calls sd_power_system_off() when it has gone through all of the advertising stages without finding a central to connect to.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset in nRF51 SDK v10 BLE Keyboard HIDS Example</title><link>https://devzone.nordicsemi.com/thread/44876?ContentTypeID=1</link><pubDate>Fri, 29 Apr 2016 15:51:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44753202-9c6b-4fdc-909f-5a30b25b7e02</guid><dc:creator>sam</dc:creator><description>&lt;p&gt;Hi Dgutierrez,&lt;/p&gt;
&lt;p&gt;Thanks for that, I will try and see if works for me.&lt;/p&gt;
&lt;p&gt;Sam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset in nRF51 SDK v10 BLE Keyboard HIDS Example</title><link>https://devzone.nordicsemi.com/thread/44875?ContentTypeID=1</link><pubDate>Fri, 29 Apr 2016 15:48:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:491e0b99-cd8a-492d-baa5-3324925d5ff7</guid><dc:creator>sam</dc:creator><description>&lt;p&gt;Hi Dgutierrez,&lt;/p&gt;
&lt;p&gt;Thanks for that, does that setting fix your &amp;quot;&lt;strong&gt;if Bluetooth is turned off (same method) for about 15 minutes then enabled again, the peripheral connects but the HIDS doesn&amp;#39;t work&lt;/strong&gt;&amp;quot; problem?   I&amp;#39;ve tried many ways but all fails..&lt;/p&gt;
&lt;p&gt;Thanks,
Sam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset in nRF51 SDK v10 BLE Keyboard HIDS Example</title><link>https://devzone.nordicsemi.com/thread/44874?ContentTypeID=1</link><pubDate>Fri, 29 Apr 2016 15:47:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7e087bc-1ba0-4e4f-875d-277c4a3e2130</guid><dc:creator>dgutierrez</dc:creator><description>&lt;p&gt;Also had another bug where in device_manager_init() I was using the dm_init_param_t and dm_application_param_t structs uninitialized, that caused weird behavior with the same symptoms - board reset, connected to iOS but the HIDS wasn&amp;#39;t working.  Initializing those structs to 0 (struct = {0};) fixed that problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset in nRF51 SDK v10 BLE Keyboard HIDS Example</title><link>https://devzone.nordicsemi.com/thread/44873?ContentTypeID=1</link><pubDate>Fri, 29 Apr 2016 15:44:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ce893cf-c318-4317-b660-370583e5be45</guid><dc:creator>dgutierrez</dc:creator><description>&lt;p&gt;Try removing the whitelist.  That was causing problems for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset in nRF51 SDK v10 BLE Keyboard HIDS Example</title><link>https://devzone.nordicsemi.com/thread/44872?ContentTypeID=1</link><pubDate>Fri, 29 Apr 2016 15:43:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3f81467-e96e-40f1-964e-0c59b4f9060b</guid><dc:creator>dgutierrez</dc:creator><description>&lt;p&gt;There are straight from the HIDS keyboard example and work for me:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define MIN_CONN_INTERVAL                MSEC_TO_UNITS(7.5, UNIT_1_25_MS)               /**&amp;lt; Minimum connection interval (7.5 ms) */
#define MAX_CONN_INTERVAL                MSEC_TO_UNITS(30, UNIT_1_25_MS)                /**&amp;lt; Maximum connection interval (30 ms). */
#define SLAVE_LATENCY                    6                                              /**&amp;lt; Slave latency. */
#define CONN_SUP_TIMEOUT                 MSEC_TO_UNITS(430, UNIT_10_MS)                 /**&amp;lt; Connection supervisory timeout (430 ms). */

#define FIRST_CONN_PARAMS_UPDATE_DELAY   APP_TIMER_TICKS(5000, APP_TIMER_PRESCALER)     /**&amp;lt; Time from initiating event (connect or start of notification) to first time sd_ble_gap_conn_param_update is called (5 seconds). */
#define NEXT_CONN_PARAMS_UPDATE_DELAY    APP_TIMER_TICKS(30000, APP_TIMER_PRESCALER)    /**&amp;lt; Time between each call to sd_ble_gap_conn_param_update after the first call (30 seconds). */
#define MAX_CONN_PARAMS_UPDATE_COUNT     3                                              /**&amp;lt; Number of attempts before giving up the connection parameter negotiation. */
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset in nRF51 SDK v10 BLE Keyboard HIDS Example</title><link>https://devzone.nordicsemi.com/thread/44871?ContentTypeID=1</link><pubDate>Fri, 29 Apr 2016 15:21:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:810f1517-892c-4786-8a9f-1ea608a0c39d</guid><dc:creator>sam</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Any hint to change the connection parameter?  Actually i have another problem, I&amp;#39;m working on a HID keyboard plus BLS(button led service) project, if i hit the hardware reset button of the DK board, my device will connect back with iOS, but the button service is not working anymore, i search the forum and found i need to enable the &amp;quot;notification&amp;quot; service to my device, but have no idea how, any help?&lt;/p&gt;
&lt;p&gt;Thanks,
Sam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset in nRF51 SDK v10 BLE Keyboard HIDS Example</title><link>https://devzone.nordicsemi.com/thread/44870?ContentTypeID=1</link><pubDate>Fri, 29 Apr 2016 15:15:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61251b52-6ea2-4a20-9ba0-97ed9a57cd7b</guid><dc:creator>dgutierrez</dc:creator><description>&lt;p&gt;Sam,&lt;/p&gt;
&lt;p&gt;Did you try varying connection parameters at all?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset in nRF51 SDK v10 BLE Keyboard HIDS Example</title><link>https://devzone.nordicsemi.com/thread/44882?ContentTypeID=1</link><pubDate>Fri, 29 Apr 2016 02:07:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2eb687cd-bdc7-41e4-af17-d517c2990689</guid><dc:creator>sam</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have exact the same problem, I&amp;#39;m having SDK 9.0&amp;#39;s reset problem and according to this, the reset is fixed in SDK 11.0, so i changed to SDK11.0 and try again.  But here&amp;#39;s comes another problem, with SDK11.0, only iOS8.4 is able to discover the nordic_keyboard and paired, both iOS7.4 and iOS9.3.1 have problems, iOS7 can&amp;#39;t discover ti and iOS9.3 is able to discover but fail to paired with it.  Can anyone help?  Any help will be appreicated!!&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset in nRF51 SDK v10 BLE Keyboard HIDS Example</title><link>https://devzone.nordicsemi.com/thread/44869?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2016 16:05:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3ce88e3-c45a-47af-8d98-c43f2bf99301</guid><dc:creator>dgutierrez</dc:creator><description>&lt;p&gt;Thanks Petter.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset in nRF51 SDK v10 BLE Keyboard HIDS Example</title><link>https://devzone.nordicsemi.com/thread/44868?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2016 13:27:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19c350c5-0fab-44e8-ba2c-0fba21231cc1</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Good that you found the fix in SDK 11, I wasn&amp;#39;t aware of this bug. The function will return an error if the peer device uses random resolvable address, like iOS does.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;if Bluetooth is turned off (same
method) for about 15 minutes then
enabled again, the peripheral connects
but the HIDS doesn&amp;#39;t work&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I tried to reproduce this, but I couldn&amp;#39;t. I connected and bonded, then turned off Bluetooth on iOS. Then I waited for 17 minutes. Turned on Bluetooth on iOS, it connected, and the HID keyboard worked fine. Does this happen every time? Do you have access to a sniffer so we can see what is happening on air?&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;if the iPad forgets the peripheral and
then I try to connect to it using
another central device, it fails to
connect&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The unmodified example will limit the number of bonds to 1. See &lt;code&gt;#define DEVICE_MANAGER_MAX_APPLICATIONS 1&lt;/code&gt; in device_manager_cnfg.h. Even though you delete the bond on iOS it will still exist in the nRF51, so you need to either allow more devices to bond to the nRF51, or delete the bond before another central is allowed to bond.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset in nRF51 SDK v10 BLE Keyboard HIDS Example</title><link>https://devzone.nordicsemi.com/thread/44867?ContentTypeID=1</link><pubDate>Mon, 15 Feb 2016 20:44:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34cefff4-786a-48a1-a1b2-224b21cd911e</guid><dc:creator>dgutierrez</dc:creator><description>&lt;p&gt;Hi Petter, I edited the question with the additional information and files.  Looking forward to your response.  Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset in nRF51 SDK v10 BLE Keyboard HIDS Example</title><link>https://devzone.nordicsemi.com/thread/44866?ContentTypeID=1</link><pubDate>Mon, 15 Feb 2016 14:49:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6e10b75-3dcc-477f-a873-2434917b4378</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I can&amp;#39;t see how your changes would make this happen. It works fine with the unmodified example? Could you upload the complete project instead? It is a bit easier to test. You are using SDK 10.0.0 with SoftDevice S110 right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>