<?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>slow BLE button repeat rate nRF52840 to Android and Windows</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75272/slow-ble-button-repeat-rate-nrf52840-to-android-and-windows</link><description>Hi, 
 I am new to the Nordic Semi world, having recently purchased a nRF52840 DK board and a nRF52840 dongle. 
 
 I have programmed an Arduino Nano 33 IoT over BLE and when I repeatedly press a button, set as Notify, the change in button states appear</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 Jun 2021 20:00:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75272/slow-ble-button-repeat-rate-nrf52840-to-android-and-windows" /><item><title>RE: slow BLE button repeat rate nRF52840 to Android and Windows</title><link>https://devzone.nordicsemi.com/thread/315241?ContentTypeID=1</link><pubDate>Mon, 14 Jun 2021 20:00:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6679159f-597f-44ad-9959-1608c4f9fc5e</guid><dc:creator>Gary Doherty</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I can confirm that I was wrong and both the DK and Dongle do send correctly at speed :-)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I added a counter to &lt;span&gt;ble_app_blinky and a counter&amp;nbsp;&lt;/span&gt;and timer in my Win10 BLE receiver program and saw all the button presses come through, no matter how fast I pressed the buttons.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Interestingly, the way/timing the DK/dongle send must be different from the Nano IoT as the response of&amp;nbsp;&lt;span&gt;nRF Connect is different, i.e. I still can&amp;#39;t see all the button presses in&amp;nbsp;nRF Connect from the DK/dongle.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Thanks for your help and pointers.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m happy to close this query&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: slow BLE button repeat rate nRF52840 to Android and Windows</title><link>https://devzone.nordicsemi.com/thread/311235?ContentTypeID=1</link><pubDate>Mon, 24 May 2021 10:45:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d17389a0-6e3b-4146-933f-75d3814bd526</guid><dc:creator>Gary Doherty</dc:creator><description>&lt;p&gt;Thanks - I&amp;#39;ll give the sniffer a try out&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve also connected the Nano, DK &amp;amp; Dongle to Win10 in a central role. I get the same results as with Android, so I don&amp;#39;t think the problem is at the receiver end.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll post the sniffer results as so as I get a chance to run it&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: slow BLE button repeat rate nRF52840 to Android and Windows</title><link>https://devzone.nordicsemi.com/thread/310932?ContentTypeID=1</link><pubDate>Fri, 21 May 2021 07:45:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d9ee481-dd5a-4a97-a6c1-d477555d1910</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I discussed this with a colleague, and we see no reason that if both devices use notifications to transmit these events, and that the button_event_handler() is also trigged that the NANO and DK shouldn&amp;#39;t behave similarly.&lt;/p&gt;
&lt;p&gt;On my end it seems to work fine and that the events are sent and received as intended as long as I don&amp;#39;t press faster than the detection delay.&lt;/p&gt;
&lt;p&gt;Can you&amp;nbsp;provide a sniffer trace of the DK where the notifications are not received, and one of the NANO where the events are received, so we can confirm whether the notifications are actually transmitted, as they seem to be on our end at least. You can use the&lt;a href="https://infocenter.nordicsemi.com/topic/ug_sniffer_ble/UG/sniffer_ble/intro.html"&gt; nRFSniffer&lt;/a&gt;&amp;nbsp;to take this sniffer trace with Wireshark seeing as you have both a Dongle and a DK.&lt;/p&gt;
&lt;p&gt;If they are transmitted, but not received correctly, it might be relevant what Android device you&amp;#39;re using as the BLE scanner as well. Have you tried more than one Android device for scanning/central role? What device is this?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: slow BLE button repeat rate nRF52840 to Android and Windows</title><link>https://devzone.nordicsemi.com/thread/310315?ContentTypeID=1</link><pubDate>Wed, 19 May 2021 07:51:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e246129c-575f-4a96-9cd7-0eb4333dd41c</guid><dc:creator>Gary Doherty</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for looking at this for me.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m trying to create a BLE game controller, ultimately using the nRF52840 dongle, so very fast button presses will be the norm :-)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried various values of&amp;nbsp;&lt;span&gt;BUTTON_DETECTION_DELAY (50, 30,20,10, 5, 2, 1) on a clean copy of ble_app_blinky in SES and it doesn&amp;#39;t improve the state change rate shown on&amp;nbsp;nRF Connect/BLE Scanner.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I can manually press the button on the nRF52840 DK at about 3 Hz. At this rate I get maybe 50% of the transitions shown in&amp;nbsp;&amp;nbsp;nRF Connect. On the Nano 33 IoT, I get everything.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As a test, I set&amp;nbsp;BUTTON_DETECTION_DELAY to 500; that slowed the response considerably, evidently by&amp;nbsp;slowing the call to button_event_handler(). &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;With&amp;nbsp;BUTTON_DETECTION_DELAY at 50,&amp;nbsp;button_event_handler() sees every button press, no matter how quickly I press it, so I think the problem is elsewhere, i.e.&amp;nbsp;ble_lbs_on_button_change() and deeper&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks again&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Gary&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: slow BLE button repeat rate nRF52840 to Android and Windows</title><link>https://devzone.nordicsemi.com/thread/310296?ContentTypeID=1</link><pubDate>Wed, 19 May 2021 06:17:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8716d8a9-2d79-4096-bb0e-780b9db41331</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Gary&lt;/p&gt;
&lt;p&gt;I tested here on my end on an nRF52840 DK and were only able to reproduce it if I really tried to press it quickly. What I think you&amp;#39;re seeing is the BUTTON_DETECTION_DELAY in action, which is set as a delay of 50 APP_TIMER_TICKS&amp;nbsp; from a GPIOTE event until a button is reported as pushed. If a signal is triggered for less than the BUTTON_DETECTION_DELAY it will not be considered a button press. You can try decreasing this to see if that lets you detect quicker button presses.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>