<?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 Ble Keyboard + LBS(button service) question</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13500/hid-ble-keyboard-lbs-button-service-question</link><description>Hi All, 
 I&amp;#39;m new in developing BLE 4.0 device, now have a project is adding LBS(led button service) to a standard ble HID keyboard application in SDK 9.0, the reason why I need HID service is this is only way that the iOS can discover my BLE device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 May 2016 13:42:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13500/hid-ble-keyboard-lbs-button-service-question" /><item><title>RE: HID Ble Keyboard + LBS(button service) question</title><link>https://devzone.nordicsemi.com/thread/51541?ContentTypeID=1</link><pubDate>Wed, 04 May 2016 13:42:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53e106d7-e49a-40bd-a7f2-50f4b1a0670b</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;The HID example uses a whitelist when it has devices in it&amp;#39;s device table. So other devices won&amp;#39;t be able to connect to it. So to connect to another device you need to either purge the device table or disable the whitelist.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID Ble Keyboard + LBS(button service) question</title><link>https://devzone.nordicsemi.com/thread/51540?ContentTypeID=1</link><pubDate>Thu, 28 Apr 2016 12:39:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:959fce4c-7c21-4e6e-ab54-fb5ec8fd6da2</guid><dc:creator>sam</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I did another test and I found as long as the device is not reset, the button will behave normal, but with SDK9.0, if iOS&amp;#39;s Bluetooth is turned off, the device will reset every few minutes, this will result my BLE device can&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;I search the forum and found this reset issues is fixed in SDK11.0 and I have a test with the HID_keyboard example, it doesn&amp;#39;t reset but SDK11.0 comes another problem, iOS7.0/9.0 can not find my BLE keyboard in Bluetooth, only iOS 8.4. is able to discover it, also SDK11.0 has only Softdevice 130, no 110, does the Softdevice version has to do with the discovery from iOS?  Any idea to help?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID Ble Keyboard + LBS(button service) question</title><link>https://devzone.nordicsemi.com/thread/51539?ContentTypeID=1</link><pubDate>Thu, 28 Apr 2016 06:38:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e47576a2-902b-42b5-86f0-056df6a9d060</guid><dc:creator>sam</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I use a clean hid keyboard example to do the test, and found the system goes to reset when the iPhone&amp;#39;s Bluetooth is turned off, so i think it is not my code which causes the reset.  If the system
is reset, then the gatt service context my be cleared, so even I call &lt;strong&gt;sd_ble_gatts_sys_attr_get&lt;/strong&gt; i get an error, actually i call dm_service_context_get and get x 0x8008 error, and when i press the button, i still get 0x3401, any help?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID Ble Keyboard + LBS(button service) question</title><link>https://devzone.nordicsemi.com/thread/51538?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2016 14:15:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5300b9e-d1b6-49b3-8b6a-fdddb722410e</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;It&amp;#39;s not. I assume you are getting an error message from a function call which is not handled and therefor defaulting to the app error handler.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID Ble Keyboard + LBS(button service) question</title><link>https://devzone.nordicsemi.com/thread/51537?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2016 14:12:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92bb45e3-fb7a-4a4b-9155-1c84a31abc78</guid><dc:creator>sam</dc:creator><description>&lt;p&gt;ok I will have a look and try, but i&amp;#39;m curious, I just turn off the Bluetooth of iOS, how come it will
cause my BLE device error and reset?  Shouldn&amp;#39;t it be just disconnected?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID Ble Keyboard + LBS(button service) question</title><link>https://devzone.nordicsemi.com/thread/51536?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2016 13:31:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd5de619-5d87-4e16-89ed-1f5af830245f</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;The default behavior of the app error handler is to reset your device if it is called. There is a function called device_context_store in the device manger you can use to store the data. This is usually called on the disconnected event and if there are changes to the context. You can take a look at the HID keyboard example to see how it is used there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID Ble Keyboard + LBS(button service) question</title><link>https://devzone.nordicsemi.com/thread/51535?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2016 09:33:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2dc21905-0aa6-45cb-8b61-e60029035192</guid><dc:creator>sam</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I found i need to call sd_ble_gatts_sys_attr_get to retrieve the attr which sd_ble_gatts_hvx needs, but I have no idea how to store the data and how to retrieve it, any help?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID Ble Keyboard + LBS(button service) question</title><link>https://devzone.nordicsemi.com/thread/51534?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2016 09:08:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a221f058-d1e6-4072-bd41-56bda52d86d1</guid><dc:creator>sam</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for your reply, I check the err_code of sd_ble_gatts_hvx and found when it is 0(no error), the button is working, and turn Bluetooth off and on again, sometime I found the whole device is reset because I output a string in main.c, and the sd_ble_gatts_hvx returns ox3401 after reset.  What does that mean and can you help?
the other problem is the reset, why BT turned off then on will cause my device reset?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID Ble Keyboard + LBS(button service) question</title><link>https://devzone.nordicsemi.com/thread/51533?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2016 06:58:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28fac1a7-5ae3-4393-9375-c1f45598c668</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Most likely iOS forgets the state of your CCCD&amp;#39;s when you turn bluetooth off/on, so i suggest you enable it from your iOS application again. If this doesn&amp;#39;t help please provide a sniffer trace showing the failing scenario, and also check for an error code when calling sd_ble_gatts_hvx (I would guess you are getting invalid state here).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>