<?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>Measure Latency on nRF52 DK (nRF52832)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58552/measure-latency-on-nrf52-dk-nrf52832</link><description>Hi everyone, 
 Recently, I have bought two nRf52 DK, and I want to test the latency between central and peripheral in 2Mbps. 
 Can someone give me some suggestions about where I can start? or which example I can refer to? Thanks a lot~</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 03 Mar 2020 13:55:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58552/measure-latency-on-nrf52-dk-nrf52832" /><item><title>RE: Measure Latency on nRF52 DK (nRF52832)</title><link>https://devzone.nordicsemi.com/thread/237790?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 13:55:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67e3da2e-38b1-43db-96ef-23bbf73842f4</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;When a user press a button it can be by accident or debounce (ripple) may occur on the button press, to avoid that this cause multiple button presses to be logged, the application is setup with a BUTTON_DETECTION_DELAY to ensure a correct button press. This is by default 50ms. If you are interested in the actual wireless delay you should measure the time from&amp;nbsp;ble_lbs_on_button_change() is called in main() on the peripheral to the LED toggled on the central.&lt;/p&gt;
&lt;p&gt;However in this case you will also notice that&amp;nbsp;MIN_CONN_INTERVAL is by default set to 100ms, this will of course not be ideal if you are concerned about latency, so&amp;nbsp;make sure it is 7.5ms on both central and peripheral.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Measure Latency on nRF52 DK (nRF52832)</title><link>https://devzone.nordicsemi.com/thread/237583?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 02:41:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc7f1c69-e05c-48e2-be85-06f1935c298e</guid><dc:creator>OscarTW0410</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;I used SDK16.XXX/examples/ble_central/ble_app_blinky_c/hex on Central board, and .../ble_peripheral/ble_app_blinky/hex on Peripheral board.&lt;/p&gt;
&lt;p&gt;I triggered button 1 GPIO by using Signal-Generator at the same time and measured the LED 3 signal. The result I got is that the delay is about 80ms. Is it correct? Or where I missed?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;OscarTW0410&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Measure Latency on nRF52 DK (nRF52832)</title><link>https://devzone.nordicsemi.com/thread/237536?ContentTypeID=1</link><pubDate>Mon, 02 Mar 2020 16:34:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4aa0c350-d8b3-4ee2-a874-4bcfd51775f4</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Then the latency will be up to the connection interval, e.g. BLE can support down to 7.5ms. Though due to possible interference and packet loss it&amp;#39;s not possible to guarantee a maximum latency, so it can potentially be N * 7.5ms in noisy environment or when you are close to the maximum range.&lt;/p&gt;
&lt;p&gt;If you want to measure latency you would basically need to toggle a GPIO when writing a notification on the peripheral side, and then toggle a GPIO on the central side when the notification is received. E.g. use the BLE blinky central and peripheral example as basis, and measure on an oscillscope the distance between the two edges.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Measure Latency on nRF52 DK (nRF52832)</title><link>https://devzone.nordicsemi.com/thread/237460?ContentTypeID=1</link><pubDate>Mon, 02 Mar 2020 13:32:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f94f8e6d-d6b4-4e6c-bebf-5b0287921be6</guid><dc:creator>OscarTW0410</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;It is BLE.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;OscarTW0410&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Measure Latency on nRF52 DK (nRF52832)</title><link>https://devzone.nordicsemi.com/thread/237453?ContentTypeID=1</link><pubDate>Mon, 02 Mar 2020 13:19:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e0a9ac2-ae9e-41b2-80a4-d6729f9ce37b</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;What radio protocol do you plan to use? BLE, ANT, Zigbee, ESB, Gazell?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>