<?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  total time required to send  message from client to sever and server acknowledges that message to client using BLE MESH stack (2.0.1)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35770/measure-total-time-required-to-send-message-from-client-to-sever-and-server-acknowledges-that-message-to-client-using-ble-mesh-stack-2-0-1</link><description>Hi..., 
 i have measured round trip delay from client to server. 
 Now I want to measure total time required to send message from server to client and client acknowledges that message to server using BLE MESH stack (2.0.1) light-switch example demo. </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 01 Aug 2018 10:21:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35770/measure-total-time-required-to-send-message-from-client-to-sever-and-server-acknowledges-that-message-to-client-using-ble-mesh-stack-2-0-1" /><item><title>RE: measure  total time required to send  message from client to sever and server acknowledges that message to client using BLE MESH stack (2.0.1)</title><link>https://devzone.nordicsemi.com/thread/142347?ContentTypeID=1</link><pubDate>Wed, 01 Aug 2018 10:21:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a640aa7a-db2f-4ffd-9a27-bfb33dc6e894</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Sorry for the delayed response. &lt;a href="https://devzone.nordicsemi.com/b/blog/posts/introducing-nrf5-sdk-for-mesh"&gt;This mesh blog post&lt;/a&gt; says this about mesh latency:&lt;/p&gt;
&lt;p&gt;&amp;quot;The network latency and node power consumption depends on how much of the time is spent in scanning and advertising. The latency is on average 15ms per hop and the power consumption of the nodes is largely determined by the receive current (if everything is configured for minimum latency which means radio is on close to 100% of the time)&amp;quot;&lt;/p&gt;
&lt;p&gt;It makes sense that the unreliable communication you receive for 10 bytes of data sent is slightly quicker that the reliable messages since the sender does not get an acknowledgement back from the receiver. You are not using the proxy functionality, which is good, because this would split up the radio time between mesh &amp;amp; GATT proxy, leading to increased latency. Have you investigated why the round trip delay is up to 2 seconds sometimes, while other times it is as low as 0.1 seconds?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Remember that the client &amp;amp; server node will send health messages to the provisioner continuously. You might want to try to&amp;nbsp;limit how often the heartbeat messages are sent. Take a look at Section 3.6.7 of the Mesh Profile Spec for more information about this.&lt;/p&gt;
&lt;p&gt;Have you tried disabling the relay functionality to see if this affects the roundtrip delay? I am not sure this will have anything to say, as you only have one provisioner, one client &amp;amp; one server node.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: measure  total time required to send  message from client to sever and server acknowledges that message to client using BLE MESH stack (2.0.1)</title><link>https://devzone.nordicsemi.com/thread/141611?ContentTypeID=1</link><pubDate>Fri, 27 Jul 2018 07:41:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:593f74a6-51dd-4e11-ab06-650a9bd1ff38</guid><dc:creator>Nikunj Patel</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Please reply me ASAP.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: measure  total time required to send  message from client to sever and server acknowledges that message to client using BLE MESH stack (2.0.1)</title><link>https://devzone.nordicsemi.com/thread/141475?ContentTypeID=1</link><pubDate>Thu, 26 Jul 2018 08:45:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e29c0fca-f217-43de-99ae-7029a3e65771</guid><dc:creator>Nikunj Patel</dc:creator><description>&lt;p&gt;Hi Bjorn&lt;/p&gt;
&lt;div class="content-fragment-page forums-thread evolution-reflow-container" id="ctl02_ctl02_page"&gt;
&lt;div class="layout"&gt;
&lt;div class="layout-content content-left-sidebar-right" id="ctl02_ctl02_layout"&gt;
&lt;div class="layout-region content" id="ctl02_ctl02_content"&gt;
&lt;div class="layout-region-inner content"&gt;
&lt;div class="content-fragment threaded-thread no-wrapper with-spacing responsive-1" id="fragment-226"&gt;
&lt;div class="content-fragment-content"&gt;
&lt;div class="thread-start"&gt;
&lt;div class="content full" id="36855"&gt;
&lt;div class="content"&gt;
&lt;p&gt;I want to test latency using BLE MESH 2.0.1 Light Switch Example Code...I have modify simple on off Light Switch Example.&lt;/p&gt;
&lt;p&gt;Example test Using two Development kit 52832. One Device Configure as a&amp;nbsp;non-proxy client and another as a non-proxy server.no other node in mesh network i want to test latency between two device.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;i have attached&amp;nbsp;sheet of readings taken with 10,50,250 byte.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3162.BLE_5F00_Mesh_5F00_Message_5F00_Roundtrip_5F00_Calculation_5F00_NonProxyClient.xls"&gt;devzone.nordicsemi.com/.../3162.BLE_5F00_Mesh_5F00_Message_5F00_Roundtrip_5F00_Calculation_5F00_NonProxyClient.xls&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;50 and 250 byte round trip delay is higher.is it possible to reduce it or not..?&lt;/p&gt;
&lt;p&gt;Thank&amp;#39;s&lt;/p&gt;
&lt;p&gt;Nikunj&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: measure  total time required to send  message from client to sever and server acknowledges that message to client using BLE MESH stack (2.0.1)</title><link>https://devzone.nordicsemi.com/thread/138519?ContentTypeID=1</link><pubDate>Mon, 02 Jul 2018 13:07:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36a220e8-e561-40f5-b395-0d5b2af45cc5</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;What if you just send a message back from the client to the server? In the client_status_cb in the light switch client example, you receive the server_index of whichever server status you have received. If you add logging information to this variable &amp;amp; test the mesh with two server boards, whenever you press button 1 on the first provisioned server -&amp;gt; the server_index returns 0. When you press button 1 on the server provisioned in afterwards, the server_index returns 1.&lt;/p&gt;
&lt;p&gt;Therefore, I believe you should be able to find the roundtrip delay by sending a new message by calling&lt;/p&gt;
&lt;p&gt;simple_on_off_client_set(&amp;amp;m_clients[server_index], false)&amp;nbsp;in both these two cases:&amp;nbsp;SIMPLE_ON_OFF_STATUS_ON &amp;amp;&amp;nbsp;SIMPLE_ON_OFF_STATUS_OFF in the client example.&lt;/p&gt;
&lt;p&gt;You could then use the log_timestamp_get() function to get a timestamp when you press button 1 on&amp;nbsp;one of the servers &amp;amp; get a new timestamp when you get the set command in the on_off_server_set_cb in the light switch server.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: measure  total time required to send  message from client to sever and server acknowledges that message to client using BLE MESH stack (2.0.1)</title><link>https://devzone.nordicsemi.com/thread/138247?ContentTypeID=1</link><pubDate>Fri, 29 Jun 2018 10:30:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6440a940-e52d-4e00-bf00-d3edf8422791</guid><dc:creator>Nikunj Patel</dc:creator><description>&lt;p&gt;Hi&amp;nbsp; Bjorn Kvaale,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m waiting for reply from you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: measure  total time required to send  message from client to sever and server acknowledges that message to client using BLE MESH stack (2.0.1)</title><link>https://devzone.nordicsemi.com/thread/137826?ContentTypeID=1</link><pubDate>Wed, 27 Jun 2018 08:46:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a63694e1-84a1-4657-a005-22cbb751e7e4</guid><dc:creator>Nikunj Patel</dc:creator><description>&lt;p&gt;in onoff light switch demo example, server only send light status to client. in&amp;nbsp;that case, as i assume, client will not acknowledge to that message.so using that, i can not able to measure round trip delay.&lt;/p&gt;
&lt;p&gt;is there Any different way to measure roundtrip delay?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: measure  total time required to send  message from client to sever and server acknowledges that message to client using BLE MESH stack (2.0.1)</title><link>https://devzone.nordicsemi.com/thread/137820?ContentTypeID=1</link><pubDate>Wed, 27 Jun 2018 08:27:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:adb9d0ef-a98f-46f6-b336-fdce729e6a62</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;This should be possible. You can use the log_timestamp_get() function located in log.h to get a timestamp &amp;amp; then have logging enabled via RTT for example to see when the message gets sent from the server &amp;amp; when the server gets the ACK from the client. Then, you just compare the difference between both timestamps to figure out the total time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>