<?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>Unusually high BLE connection latency</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119571/unusually-high-ble-connection-latency</link><description>Hi, we&amp;#39;re creating a BLE mouse. We&amp;#39;ve setup the HID service- clicking button 1 on the nrf52832DK sends left mouse button click- nothing else is being sent. The problem: even though the connection interval is 6 * 1.25 ms (I&amp;#39;ve verified that the host device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Jul 2025 09:08:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119571/unusually-high-ble-connection-latency" /><item><title>RE: Unusually high BLE connection latency</title><link>https://devzone.nordicsemi.com/thread/543697?ContentTypeID=1</link><pubDate>Mon, 28 Jul 2025 09:08:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcf363aa-adfc-4a5a-9a4a-c50a53f7fa0a</guid><dc:creator>Ziyao Zhou</dc:creator><description>&lt;p&gt;&amp;nbsp;Thank you so much for your kind reply! Wish you all the best!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unusually high BLE connection latency</title><link>https://devzone.nordicsemi.com/thread/543666?ContentTypeID=1</link><pubDate>Sun, 27 Jul 2025 10:04:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9744eac5-8620-441a-bf42-89640e568932</guid><dc:creator>blitz0145</dc:creator><description>&lt;p&gt;Hi!&lt;br /&gt;You may use Wireshark USBPCap (&lt;a id="" href="https://wiki.wireshark.org/CaptureSetup/USB)"&gt;https://wiki.wireshark.org/CaptureSetup/USB)&lt;/a&gt;&lt;br /&gt;Once you connect a BLE device (let&amp;#39;s say a mouse); the BLE packet will show up.&lt;br /&gt;&lt;br /&gt;BLE HID Mouse. You can see that a packet is received every 7.5ms approx. Cheers :)&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1753610502541v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unusually high BLE connection latency</title><link>https://devzone.nordicsemi.com/thread/543659?ContentTypeID=1</link><pubDate>Sat, 26 Jul 2025 08:25:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:059d1825-c19b-4b85-979b-4efe7277e066</guid><dc:creator>Ziyao Zhou</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you so much for your suggestion, could you kindly advise how to measure the latency after connection using wireshark:)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unusually high BLE connection latency</title><link>https://devzone.nordicsemi.com/thread/526442?ContentTypeID=1</link><pubDate>Sat, 08 Mar 2025 15:26:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5b8379c-8b67-4613-b682-12e5802f9239</guid><dc:creator>blitz0145</dc:creator><description>&lt;p&gt;This has been resolved.&lt;br /&gt;&lt;br /&gt;My method of measuring latency was a high speed camera. I was comparing the time between DK LED lighting up and a screen flash on Windows 11 through an app I programmed.&lt;br /&gt;&lt;br /&gt;Turns out that this massive latency is a result of how Windows handles HID over BLE. Nothing to do with the actual BLE connection interval.&lt;br /&gt;&lt;br /&gt;Similar &lt;span&gt;behaviour was observed with a high end gaming mouse that supports BLE.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;To everyone who comes across this post. Please measure connection related parameters with a Bluetooth sniffer- the nrf52840 dongle can be easily programmed to work like a sniffer. Other methods will never be as accurate.&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unusually high BLE connection latency</title><link>https://devzone.nordicsemi.com/thread/526414?ContentTypeID=1</link><pubDate>Fri, 07 Mar 2025 17:54:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0266e9d-9851-4407-b4a6-21bdb0ff9ec2</guid><dc:creator>blitz0145</dc:creator><description>&lt;p&gt;One possible theory could be that some part of my code is starving the Soft Device Controller.&lt;br /&gt;&lt;br /&gt;But that is not the case either- reason being that in later tests- I decided to make the device run as a BLE HID Peripheral and a BT Central at the same time.&lt;br /&gt;The central code just responds to another DK&amp;#39;s latency service messages- the tested latency was a blazing fast 1.5 ms&amp;nbsp; average (LLPM enabled)&lt;br /&gt;&lt;br /&gt;While the BT Peripheral continued to give the same average high latency functioning the same way as mentioned in my previous message.&amp;nbsp; (Note: the peripheral connects to a Windows 11 host)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This definitely means that my code is not starving out the SDC- since central works perfectly fine.&lt;br /&gt;&lt;br /&gt;Any ideas why peripheral has such a huge latency?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unusually high BLE connection latency</title><link>https://devzone.nordicsemi.com/thread/526410?ContentTypeID=1</link><pubDate>Fri, 07 Mar 2025 17:33:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62053df9-d492-41bc-8440-453f545def58</guid><dc:creator>blitz0145</dc:creator><description>&lt;p&gt;Hello!&lt;br /&gt;&lt;br /&gt;Yes, the performance critical modules such as mouse sensor input, HID service etc. are all based on nRF Desktop.&lt;br /&gt;&lt;br /&gt;I measured internal latencies- the delay between a button getting clicked and right before&amp;nbsp;bt_hids_inp_rep_send() is called is negligible.&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:233px;max-width:518px;" height="233" src="https://devzone.nordicsemi.com/resized-image/__size/1036x466/__key/communityserver-discussions-components-files/4/pastedimage1741371003710v1.png" width="518" alt=" " /&gt;&lt;br /&gt; &lt;br /&gt;I know that internally&amp;nbsp;bt_hids_inp_rep_send() calls&amp;nbsp;bt_gatt_notify_cb()&lt;br /&gt;&lt;br /&gt;&amp;nbsp;a GATT notification is sent at the next connection event- so this must mean that the connection is somehow just not able to maintain 7.5 ms and the fact that connection drops when the timeout is set to 100ms means that latency is definitely spiking to 100ms +&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unusually high BLE connection latency</title><link>https://devzone.nordicsemi.com/thread/526353?ContentTypeID=1</link><pubDate>Fri, 07 Mar 2025 13:05:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4baf894-c389-4b85-8759-d90068ee21d6</guid><dc:creator>Lorenzo Amicucci</dc:creator><description>&lt;p&gt;Is this based on nRF Desktop? or you started from scratch?&amp;nbsp;&lt;br /&gt;&lt;a id="" href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/applications/nrf_desktop/README.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/applications/nrf_desktop/README.html&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;you can easily build a BLE mouse using nRF Desktop on the nRF52832DK and compare with your results: simply create a configuration folder for your DK here&lt;br /&gt;&lt;a id="" href="https://github.com/nrfconnect/sdk-nrf/tree/main/applications/nrf_desktop/configuration"&gt;https://github.com/nrfconnect/sdk-nrf/tree/main/applications/nrf_desktop/configuration&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>