<?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 and central BLE missing keyboard presses</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53692/hid-keyboard-and-central-ble-missing-keyboard-presses</link><description>Hi support team, 
 I&amp;#39;ve been developing a project that uses a cycling cadence sensor and interacts with my nRF52840 DK which is the central device. I merged the rscs central example with the HID composite example and changed the rscs example to work for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 30 Oct 2019 08:24:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53692/hid-keyboard-and-central-ble-missing-keyboard-presses" /><item><title>RE: HID keyboard and central BLE missing keyboard presses</title><link>https://devzone.nordicsemi.com/thread/217450?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2019 08:24:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:366da466-a44b-44db-968f-9053c680d756</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Glad to hear that you found a way around the issue!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID keyboard and central BLE missing keyboard presses</title><link>https://devzone.nordicsemi.com/thread/217411?ContentTypeID=1</link><pubDate>Tue, 29 Oct 2019 23:30:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:510122b7-cc3c-4f5a-ab05-a81bb637c38f</guid><dc:creator>canaengintern</dc:creator><description>&lt;p&gt;After some trouble shooting and testing I was able to use two single shot timers to space out the time between when &amp;quot;&lt;span&gt;app_usbd_hid_kbd_key_control&amp;quot; gets called in my repeated timer handler. After changing the timing of my single shot timers I was able to use 1ms as the perfect response and one of the fastest times it could execute. I also tried it with 0.5ms but it was to fast and &amp;quot;app_usbd_hid_kbd_key_control&amp;quot; was not ready to receive&amp;nbsp;a keyboard press.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I should also say that the main.c code I posted above has changed a lot as I am no longer using the scheduler.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you&amp;nbsp;H&amp;aring;kon for the help and pointing me in the right direction. I would consider this case closed.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID keyboard and central BLE missing keyboard presses</title><link>https://devzone.nordicsemi.com/thread/217398?ContentTypeID=1</link><pubDate>Tue, 29 Oct 2019 18:23:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b61b0cd4-e981-43f9-a179-c08505f46065</guid><dc:creator>canaengintern</dc:creator><description>&lt;p&gt;Yeah when I was first trying to diagnose this issue it was I thought it might have something to do with nRF_LOG lagging.&lt;/p&gt;
&lt;p&gt;Anyways, I&amp;#39;m not exactly sure how to check for NRF_SUCCESS but using VERIFY_SUCCESS(err_code) no errors were returned.&lt;/p&gt;
&lt;p&gt;It would make sense that&amp;nbsp;&lt;span&gt;&amp;quot;app_usbd_hid_kbd_key_control&amp;quot; would not be ready to receive a key press if it was busy. So if 4 keyboard presses were to be recorded quickly and since I&amp;#39;m using a for loop to do this i could see it missing a press or too due to&amp;nbsp;&amp;quot;app_usbd_hid_kbd_key_control&amp;quot; not being ready to receive press and the for loop iterating to fast.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am going to try to work with single shot timers to take some relief off of&amp;nbsp;&amp;quot;app_usbd_hid_kbd_key_control&amp;quot; and only send a keyboard press when it is ready.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID keyboard and central BLE missing keyboard presses</title><link>https://devzone.nordicsemi.com/thread/217335?ContentTypeID=1</link><pubDate>Tue, 29 Oct 2019 13:01:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89904071-0a48-4f06-8ebc-58aa28e473c4</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;The throughput over usb is fairly low compared to what it technically can handle (which is why I thought the LOG and CLI took too much time), but it would be interesting to see if your calls to &amp;quot;app_usbd_hid_kbd_key_control&amp;quot; return NRF_SUCCESS, or if they return anything else. Could you check this?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID keyboard and central BLE missing keyboard presses</title><link>https://devzone.nordicsemi.com/thread/217188?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2019 17:20:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b7e4f82-612f-43f7-9387-dd9d0e59ec9a</guid><dc:creator>canaengintern</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi H&amp;aring;kon,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for getting back to me. It does seem like the USBD is being saturated.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have disabled nrf_cli and nrf_log in my sdk_config file and commented out any reference&amp;nbsp;to them in main. It still seems as though the USBD is still being saturated. I also have abandon the scheduler.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I set a repeated timer up previously to check to see if a keyboard press would need to be sent in hopes the USBD wouldn&amp;#39;t be saturated and I could control how much data was being sent. But, no success.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you have any other suggestions that would be great.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID keyboard and central BLE missing keyboard presses</title><link>https://devzone.nordicsemi.com/thread/217149?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2019 14:41:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddedff30-611d-459d-8979-14cfed400dc0</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If I understand the scenario correct, it is that if you receive data quickly over BTLE, it will saturate the USBD.&lt;/p&gt;
&lt;p&gt;I see that your main loop consists of nrf_cli and nrf_log handling as well as the scheduler. Are you using NRF_LOG, with serial as the backend? If yes, try to disable it and see if this helps the processing.&lt;/p&gt;
&lt;p&gt;Same goes for nrf_cli; if you&amp;#39;re not using it, try disabling it to see if this has an impact on your overall performance.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>