<?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>Consecutive messages latency problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75698/consecutive-messages-latency-problem</link><description>Hi, 
 I want to build a mesh network which includes least 12 server node an 1 client node. 
 I used light_switch example to send 12 byte message packets to client node from each server node and I ran into some problems. The first of these is the latency</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Jun 2021 10:14:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75698/consecutive-messages-latency-problem" /><item><title>RE: Consecutive messages latency problem</title><link>https://devzone.nordicsemi.com/thread/314421?ContentTypeID=1</link><pubDate>Wed, 09 Jun 2021 10:14:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18ba6b60-f34c-4c1c-b52e-3e852981964e</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Sorry about the delay.&lt;/p&gt;
&lt;p&gt;The &amp;quot;Mesh error 8&amp;quot; (NRF_ERROR_INVALID_STATE is occuring because there is only allowed to send one Segmented message at a time.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The message will be sent as a &lt;span&gt;segmented&lt;/span&gt; message and reassembled on the peer side if one of the following conditions are true:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The length of the message is greater than &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v5.0.0/group__MESH__DEFINES__API.html#ga93df2c7b9b0dbc2958f130b3f3ca7d0a"&gt;NRF_MESH_UNSEG_PAYLOAD_SIZE_MAX&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;&lt;span&gt;force_&lt;span&gt;segmented&lt;/span&gt;&lt;/span&gt;&lt;/code&gt; field of &lt;code&gt;p_message&lt;/code&gt; is true.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;transmic_size&lt;/code&gt; field of &lt;code&gt;p_message&lt;/code&gt; is &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v5.0.0/group__MESH__CORE__COMMON__TYPES.html#ggaca5284d096ab82171c9d0a18fbaf9623ae5c3c49aff45da1bbdd49f7fc5ea6e08"&gt;NRF_MESH_TRANSMIC_SIZE_LARGE&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;NRF_ERROR_INVALID_STATE returns when; &lt;br /&gt;There&amp;#39;s already a &lt;span&gt;segmented&lt;/span&gt; &lt;span&gt;packet&lt;/span&gt; that is being to sent to this destination. Wait for the transmission to finish before sending new &lt;span&gt;segmented&lt;/span&gt; &lt;span&gt;packet&lt;/span&gt;s. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;___&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You will either have to wait until you receive the NRF_MESH_EVT_TX_COMPLETE&amp;nbsp; event before sending again. &lt;br /&gt;Or you need to make sure that the requirements of the segmented message isn&amp;#39;t met. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Br, &lt;br /&gt;Joakim&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Consecutive messages latency problem</title><link>https://devzone.nordicsemi.com/thread/312923?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2021 14:13:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a031fc5-8bae-41d6-b2ce-b2e4960bec4c</guid><dc:creator>Atra</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/sensor_5F00_node-_2D00_-SEGGER-Embedded-Studio-for-ARM-V5.42a-_2D00_-Non_2D00_Commercial-License_5F00_009.png" /&gt;&amp;nbsp;I found the error source in transport.c. Why I get this error while sending 12B message? First time it sends without problem when checking status with ERROR_CHECK() function but second time it gives this error with &amp;quot;Mesh error at 8&amp;quot;&amp;nbsp;message. What is the relationship between this error and waiting 5-6 seconds? I have used RTTViewer to find exact&amp;nbsp; location of&amp;nbsp;error and got this code. What does this error mean? What I have to do to&amp;nbsp;get rid of error?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>