<?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>Occasionally large latency</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47209/occasionally-large-latency</link><description>I have run many tests using the light_switch demo. I have noticed that occasionally the latency is much larger. The latency jump is between sends, i.e. it will send 20 times with avg latency of 100ms then the 21st time it will be 1000ms, then resume to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 May 2019 15:00:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47209/occasionally-large-latency" /><item><title>RE: Occasionally large latency</title><link>https://devzone.nordicsemi.com/thread/187325?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 15:00:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50c0de80-b719-45ca-b00d-1f50c2163207</guid><dc:creator>jonappleseed</dc:creator><description>&lt;p&gt;The responses are 9 bytes so should be unsegmented. I&amp;#39;ll have to look into using an oscilloscope.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Occasionally large latency</title><link>https://devzone.nordicsemi.com/thread/187297?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 13:46:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61f87c07-beb5-42c2-a221-6ab949ae6d02</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;We are suspecting the responses from the servers&amp;nbsp;has been collided. Are the response in one packet or they are also segmented message ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We would need to check which direction introduce the large latency. If possible could you toggle an GPIO pin on the client and on the servers when you send and receive respectively. So that we can measure the latency of the single direction from client to servers.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can use an oscilloscope or a digital analyzer to record the latency between the GPIOs toggle.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also please make sure the testing environment is not&amp;nbsp;congested with other RF&amp;nbsp;communication (wifi, other mesh , etc).&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Occasionally large latency</title><link>https://devzone.nordicsemi.com/thread/187166?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 09:05:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b23671b-e3cf-4997-9e6e-d98061b16dd2</guid><dc:creator>jonappleseed</dc:creator><description>&lt;p&gt;14 bytes incl. opcode. This is all single hop. I am almost certain this is a result of the segmentation process. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Occasionally large latency</title><link>https://devzone.nordicsemi.com/thread/187138?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 07:24:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4513aa96-5ccb-49d8-961f-4efd44ac778b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Jon,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you provide more info of the statistic? How many hops ? what was the payload size ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Occasionally large latency</title><link>https://devzone.nordicsemi.com/thread/187066?ContentTypeID=1</link><pubDate>Tue, 14 May 2019 16:28:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c6f890f-fa20-4250-8dbe-6e648ad8547a</guid><dc:creator>jonappleseed</dc:creator><description>&lt;p&gt;4 servers latency (this takes the min for each one)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;14/05/2019 17:18:24	1	0x0105	0x0104	0x0106	0x0103	
14/05/2019 17:18:24	1	534	541	546	583	
14/05/2019 17:18:30	2	46	61	50	54	
14/05/2019 17:18:35	3	57	47	46	55	
14/05/2019 17:18:40	4	54	45	56	49	
14/05/2019 17:18:45	5	52	61	59	57	
14/05/2019 17:18:50	6	52	44	56	51	
14/05/2019 17:18:55	7	42	43	58	44	
14/05/2019 17:19:00	8	27	41	32	131	
14/05/2019 17:19:05	9	42	47	38	98	
14/05/2019 17:19:10	10	533	538	534	532	
14/05/2019 17:19:15	11	41	38	50	31	
14/05/2019 17:19:21	12	47	60	62	45	
14/05/2019 17:19:26	13	89	74	100	61	
14/05/2019 17:19:31	14	41	28	45	40	
14/05/2019 17:19:36	15	70	61	30	105	
14/05/2019 17:19:41	16	37	30	41	85	
14/05/2019 17:19:46	17	43	27	38	33	
14/05/2019 17:19:51	18	44	56	40	37	
14/05/2019 17:19:56	19	58	39	49	45	
14/05/2019 17:20:01	20	36	47	41	32	
14/05/2019 17:20:06	21	543	540	556	543	
14/05/2019 17:20:12	22	50	49	43	56	
14/05/2019 17:20:17	23	50	63	102	58	
14/05/2019 17:20:22	24	62	61	57	53	
14/05/2019 17:20:27	25	68	55	51	57	
14/05/2019 17:20:32	26	56	110	57	66	
14/05/2019 17:20:37	27	51	78	107	51	
14/05/2019 17:20:42	28	46	92	42	41	
14/05/2019 17:20:47	29	40	42	52	51	
14/05/2019 17:20:52	30	49	44	50	60	
14/05/2019 17:20:57	31	92	55	59	45	
14/05/2019 17:21:03	32	45	45	55	55	
14/05/2019 17:21:08	33	97	56	102	51	
14/05/2019 17:21:13	34	46	70	59	45	
14/05/2019 17:21:18	35	520	528	525	510	
14/05/2019 17:21:23	36	105	42	61	52	
14/05/2019 17:21:28	37	70	53	99	60	
14/05/2019 17:21:33	38	43	45	37	43	
14/05/2019 17:21:38	39	84	50	112	33	
14/05/2019 17:21:43	40	47	35	42	46	
14/05/2019 17:21:48	41	58	68	60	54	
14/05/2019 17:21:53	42	54	50	43	51	
14/05/2019 17:21:59	43	43	54	102	56	
14/05/2019 17:22:04	44	41	51	52	56	
14/05/2019 17:22:09	45	51	57	98	52	
14/05/2019 17:22:14	46	32	37	42	36	
14/05/2019 17:22:19	47	69	66	49	48	
14/05/2019 17:22:24	48	45	36	34	47	
14/05/2019 17:22:29	49	51	41	38	40	
14/05/2019 17:22:34	50	103	51	46	39	
14/05/2019 17:22:39	51	100	98	54	54	
14/05/2019 17:22:44	52	52	99	53	51	
14/05/2019 17:22:50	53	39	98	40	55	
14/05/2019 17:22:55	54	48	40	54	49	
14/05/2019 17:23:00	55	45	43	34	40	
14/05/2019 17:23:05	56	104	47	52	57	
14/05/2019 17:23:10	57	91	52	128	51	
14/05/2019 17:23:15	58	53	59	55	95	
14/05/2019 17:23:20	59	96	93	50	82	
14/05/2019 17:23:25	60	43	48	36	42	
14/05/2019 17:23:30	61	205	46	48	46	
14/05/2019 17:23:35	62	60	61	60	59	
14/05/2019 17:23:41	63	40	93	92	41	
14/05/2019 17:23:46	64	66	50	50	62	
14/05/2019 17:23:51	65	42	43	39	50	
14/05/2019 17:23:56	66	37	54	39	42	
14/05/2019 17:24:01	67	45	57	54	51	
14/05/2019 17:24:06	68	537	582	591	529	
14/05/2019 17:24:11	69	64	60	72	114	
14/05/2019 17:24:16	70	105	54	111	63	
14/05/2019 17:24:21	71	46	92	44	93	
14/05/2019 17:24:26	72	57	59	60	56	
14/05/2019 17:24:32	73	48	60	42	43	
14/05/2019 17:24:37	74	40	49	42	40	
14/05/2019 17:24:42	75	59	45	102	46	
14/05/2019 17:24:47	76	49	155	41	54	
14/05/2019 17:24:52	77	45	97	57	93	
14/05/2019 17:24:57	78	56	53	58	53	
14/05/2019 17:25:02	79	103	57	110	57	
14/05/2019 17:25:07	80	97	88	30	32	
14/05/2019 17:25:12	81	107	53	53	42	
14/05/2019 17:25:17	82	36	43	38	52	
14/05/2019 17:25:23	83	79	32	41	24	
14/05/2019 17:25:28	84	30	43	40	35	
14/05/2019 17:25:33	85	52	43	47	58	
14/05/2019 17:25:38	86	47	38	31	32	
14/05/2019 17:25:43	87	530	573	526	522	
14/05/2019 17:25:48	88	63	34	35	50	
14/05/2019 17:25:53	89	77	53	66	62	
14/05/2019 17:25:58	90	55	41	39	44	
14/05/2019 17:26:03	91	44	53	52	42	
14/05/2019 17:26:08	92	51	55	57	110	
14/05/2019 17:26:14	93	49	42	45	58	
14/05/2019 17:26:19	94	104	65	62	100	
14/05/2019 17:26:24	95	97	53	106	102	
14/05/2019 17:26:29	96	45	42	47	92	
14/05/2019 17:26:34	97	56	51	48	59	
14/05/2019 17:26:39	98	57	42	43	55	
14/05/2019 17:26:44	99	51	48	41	55	
14/05/2019 17:26:49	100	1014	1065	1017	1066	
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Occasionally large latency</title><link>https://devzone.nordicsemi.com/thread/187062?ContentTypeID=1</link><pubDate>Tue, 14 May 2019 16:12:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13ae36fc-95ab-4c55-91e6-01cfcbf9f03a</guid><dc:creator>jonappleseed</dc:creator><description>&lt;p&gt;This happens as soon as the messages are segmented (&amp;gt;11 bytes at the app layer). Still the average is low, just the occasional high latency. Do know if this a Bluetooth mesh problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Occasionally large latency</title><link>https://devzone.nordicsemi.com/thread/187011?ContentTypeID=1</link><pubDate>Tue, 14 May 2019 14:02:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae5fd16c-3d06-47d9-be87-0d0e24c02349</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Could you try to reduce the number of node to the minimum that you can reproduce the issue ? Or you can start with 2 nodes and check if you can see the issue ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This would help us to reduce the issue here.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The latency of 10s doesn&amp;#39;t make much sense, how many retries you have with your set command&amp;nbsp; ?&lt;/p&gt;
&lt;p&gt;Please test with as little modification to the example code as possible.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How big is your packet ? Please try to minimize the payload to one single packet.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Our latency test here showing with 4 hops the average latency was about 230ms with peak to 332ms. (20ms advertising interval)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Occasionally large latency</title><link>https://devzone.nordicsemi.com/thread/186986?ContentTypeID=1</link><pubDate>Tue, 14 May 2019 13:07:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c1aa67d-8319-4beb-b01e-2bc82fa00a20</guid><dc:creator>jonappleseed</dc:creator><description>&lt;p&gt;It happens regardless of tx power, I&amp;#39;ve tried 0, 4 and 8 dBm. app_generic_onoff_client_status_cb() is called whenever a status message is received. For each response:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;__LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;reply for 0x%04x from 0x%04x in %lu ms | ttl: %u | rssi: %d | %u -&amp;gt; %u \r\n&amp;quot;,
                  p_in-&amp;gt;src,
                  p_meta-&amp;gt;src.value,
                  rtt,
                  p_meta-&amp;gt;ttl,
                  p_meta-&amp;gt;p_core_metadata-&amp;gt;params.scanner.rssi,
                  p_in-&amp;gt;present_on_off,
                  p_in-&amp;gt;target_on_off);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Yes, they are configured as relays. It also happens when I run a many-to-many case in which nodes are sending to subsets of the testbed. The testbed has a few nodes on a lower floor and the two floors are about 50mx20m. Multi-hop is roughly 2-3 hops, some are single hop.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Occasionally large latency</title><link>https://devzone.nordicsemi.com/thread/186957?ContentTypeID=1</link><pubDate>Tue, 14 May 2019 12:04:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10186f44-7772-48ae-b4fc-0f00321c0c2d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Could you give some more information about the number of hops ? How is your 15 nodes distributed, the distance between them, Txpower ? Are all of them configured as relay node?&lt;/p&gt;
&lt;p&gt;When you sending the message to a group address, how do you handle multiple responses ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Occasionally large latency</title><link>https://devzone.nordicsemi.com/thread/186932?ContentTypeID=1</link><pubDate>Tue, 14 May 2019 11:16:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7feec68d-ff4f-4b8e-8466-9a05bebbc6bc</guid><dc:creator>jonappleseed</dc:creator><description>&lt;p&gt;I have a script which uses RTT to do this. It will send 0 to the board every 5 seconds. 21st and 1000 ms were just examples. I run my tests 100 times and large latencies occur maybe 3-5 times. 15 node network. Disabling the proxy feature seemed to have no effect. It even occasionally goes up to 10,000 ms!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Occasionally large latency</title><link>https://devzone.nordicsemi.com/thread/186882?ContentTypeID=1</link><pubDate>Tue, 14 May 2019 09:10:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1f70f7f-54b4-48a6-b66e-0ee54e6dd2f9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you let me know how do you trigger sending on your client board ? Is it by pressing the button ? And it&amp;#39;s always on the 21st time it will have 1000ms delay ?&lt;/p&gt;
&lt;p&gt;How long is between each press ? (between each 21st time where you see 1000ms delay )&lt;/p&gt;
&lt;p&gt;Could you try disable proxy feature and check if you still see the issue ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How many nodes in your network ? Could you try to send to a unicast address , not to a group address ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1000ms delay is quite long and I don&amp;#39;t see any reason why it would take that long to get the ACK.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>