<?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>(BLE or BT5) Measure latency between device (PI) and nrf52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59643/ble-or-bt5-measure-latency-between-device-pi-and-nrf52840</link><description>Due to the covid-19 virus, my school project changed a lot. The new project is the following: &amp;quot;Study the latency between sending and receiving data from a device generating random CanBus data (e.g. Android phone) and a PC (with the Nordic nRF52840 development</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 01 Apr 2020 11:25:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59643/ble-or-bt5-measure-latency-between-device-pi-and-nrf52840" /><item><title>RE: (BLE or BT5) Measure latency between device (PI) and nrf52840</title><link>https://devzone.nordicsemi.com/thread/242925?ContentTypeID=1</link><pubDate>Wed, 01 Apr 2020 11:25:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46baed52-3501-4319-bfc9-b86f2ba32b1b</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;For BLE the minimum connection interval is specified by the &lt;a href="https://www.bluetooth.com/specifications/bluetooth-core-specification/"&gt;Bluetooth Core Specification&lt;/a&gt; to be 7.5 ms, so for BLE the latency would be minimum 7.5 ms if you send one packet per connection interval. Please take a look at this old Devzone case for more information:&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/24013/minimum-connection-interval"&gt; https://devzone.nordicsemi.com/f/nordic-q-a/24013/minimum-connection-interval?ReplySortBy=CreatedDate&amp;amp;ReplySortOrder=Ascending&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The radio in the nRF5 series chips can achieve much lower latency than 7.5ms, but you will need to use the radio in a propiertary protocol.&lt;/p&gt;
&lt;div&gt;For your question about measurement latency, I think it will depend on how you define latency. I.e. are you measuring to/from application layer, transport-layer, PHY layer, etc.&lt;br /&gt; When using timestamps you are also adding the time it takes to process the packet into the latency calculation, and the timestamps itself could also add some overhead to the calculation.&lt;br /&gt; Another way to measure latency (on the PHY layer) will be to use a sniffer to track when the send and response packets are sent.&lt;/div&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>