<?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 reconnection problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20768/hid-reconnection-problem</link><description>I&amp;#39;m trying to save power on my HID keyboard application by disconnecting the Bluetooth link after some time of inactivity. As soon as there are keystrokes to send, the device advertises again and sends the pending values. 
 Generally I have 8 chars to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 25 Aug 2017 07:48:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20768/hid-reconnection-problem" /><item><title>RE: HID reconnection problem</title><link>https://devzone.nordicsemi.com/thread/81094?ContentTypeID=1</link><pubDate>Fri, 25 Aug 2017 07:48:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7752a5cb-d353-477f-b641-3ec432644450</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;This looks like a limitation with the Android device. It should accept notifications as soon as you have encrypted the link again. Have you teste this with other masters? e.g. do you see the same behavior if you test with iOS?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID reconnection problem</title><link>https://devzone.nordicsemi.com/thread/81092?ContentTypeID=1</link><pubDate>Fri, 16 Jun 2017 14:32:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cb1775c-a7de-462a-aae8-4858251655c2</guid><dc:creator>David</dc:creator><description>&lt;p&gt;Yes, the LL_START_ENC_RSP (line in blue) is sent before my first indication. My first indication is sent about 0.57s later, the last indication (black lines) even more than 1.2s after the encryption message but they are still ignored by the master device.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/hid_2D00_iOS_2D00_reconnection_2D00_after_2D00_BT_2D00_off.png" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;In this case the nRF8001 generates three identical pipe status events. Any notification sent before the third one seems to be ignored by the master device. Unfortunately sometimes there is only one pipe status event...&lt;/p&gt;
&lt;p&gt;OK, waiting for about five seconds after the first pipe status event works fine, but this is definitely too long! Any idea how to make sure all the indications are received correctly?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID reconnection problem</title><link>https://devzone.nordicsemi.com/thread/81096?ContentTypeID=1</link><pubDate>Fri, 09 Jun 2017 14:21:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b22d608e-f5ef-48d0-a9ec-1e16355adc25</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Did you check with a sniffer that the LL_START_ENC_RSP was sent before the notifications? Maybe you could try adding a small delay before you start sending notifications . or for testing use a long one, and see if that helps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID reconnection problem</title><link>https://devzone.nordicsemi.com/thread/81095?ContentTypeID=1</link><pubDate>Tue, 23 May 2017 10:46:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9af08017-a304-458b-84df-f16d2b5df44c</guid><dc:creator>David</dc:creator><description>&lt;p&gt;OK, thank you for the information.&lt;/p&gt;
&lt;p&gt;But how can I know that the encryption process has been successfully completed? The nRF8001 does not generate any events...&lt;/p&gt;
&lt;p&gt;Edit: In another thread (&lt;a href="https://devzone.nordicsemi.com/question/6057/security-feature-in-bluetooth-protocol-of-nrf-8001/)"&gt;devzone.nordicsemi.com/.../)&lt;/a&gt;, I found that the nRF8001 generates a pipe status event after finishing encryption. Waiting for this event works for some devices, but not all. Specially iOS devices seem to ignore the first couple of notifications. What do I need to do to assure a reliable data transmission after HID reconnection?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID reconnection problem</title><link>https://devzone.nordicsemi.com/thread/81093?ContentTypeID=1</link><pubDate>Thu, 06 Apr 2017 09:22:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4500f0d9-10c1-499a-8863-3560136d7f49</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;You need to encrypt to re-establish the bond before you can start sending notifications. The Master doesn&amp;#39;t recognise the peer until the LTK is verified, i.e. it doesn&amp;#39;t know that this is a bonded peer and that notifications are enabled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID reconnection problem</title><link>https://devzone.nordicsemi.com/thread/81090?ContentTypeID=1</link><pubDate>Fri, 31 Mar 2017 14:40:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6c4f3d1-b88e-4036-84cd-e517a5b973f2</guid><dc:creator>David</dc:creator><description>&lt;p&gt;Finally I managed to get a trace with the sniffer. Had to downgrade the Segger firmware on the PCA10000 dongle as described here: &lt;a href="https://devzone.nordicsemi.com/question/77477/sniffer-not-working-pca10000-pca10001/"&gt;Sniffer not working PCA10000&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6644.ws.png" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;As you can see, the connection is initiated at frame no 1965. The first notification is sent in frame 1969, but the master is still requesting some information. In this case the first 11 notification packets were not handled (characters not displayed) by the master. Is it allowed to ignore these first notifications? What should I do to be sure all my keystrokes are handled correctly?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID reconnection problem</title><link>https://devzone.nordicsemi.com/thread/81089?ContentTypeID=1</link><pubDate>Fri, 31 Mar 2017 14:35:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fb68447-7220-48c5-84db-37a2c88f1eb2</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;You should use version 1.10.x of wireshark for the sniffer. I&amp;#39;m sorry it&amp;#39;s not more up to date.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID reconnection problem</title><link>https://devzone.nordicsemi.com/thread/81091?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2017 13:16:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd9ab30b-db8e-48e3-ab91-e1f306b28e8e</guid><dc:creator>David</dc:creator><description>&lt;p&gt;Yes, I use a bonded connection. The first pipe status event shows that all previously opened pipes are still available. When sending keystrokes directly after the connected event, there are even more devices that do not display all of them. An iPad mini with iOS8.1 misses my first 2 or 3 characters, the Nexus 5X even up to 5 chars...&lt;/p&gt;
&lt;p&gt;For information: All the tests are done with the Nordic ble_HID_keyboard_template.&lt;/p&gt;
&lt;p&gt;I have an nRF51822 dongle (PCA10000) that should work as a sniffer, but I can&amp;#39;t get it to work. Is there an updated version that would work with the actual version of wireshark (2.2.5)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID reconnection problem</title><link>https://devzone.nordicsemi.com/thread/81088?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2017 11:11:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1dfa55ad-f1b9-40bc-b85a-8735d7072f6d</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Are you bonding to the peer? In this case you should be able to send notifications immediately after reconnecting.&lt;/p&gt;
&lt;p&gt;If you are not bonded, you have to wait until the cccd&amp;#39;s are enabled by the peer. However, you should get a PipeErrorEvent response from the nRF8001 if you try to send notifications when they are disabled. And I assume you see that the credits are used. Might be some issue with Android, so you have to wait for some time before sending the notifications. Do you have a sniffer trace that shows what is happening on air?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>