<?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>Mesh messages from phone ADK get lost</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56963/mesh-messages-from-phone-adk-get-lost</link><description>Hello 
 we are using the latest version of the Mesh SDK (4.0), and we are facing issues with the proxy. in some cases, we need to send, from a phone, 3 or more level_set messages to a node, in a row. and often, one or more messages get lost. 
 did someone</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Jan 2020 16:35:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56963/mesh-messages-from-phone-adk-get-lost" /><item><title>RE: Mesh messages from phone ADK get lost</title><link>https://devzone.nordicsemi.com/thread/231246?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2020 16:35:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a21e8096-bdd6-460f-8245-ad112789a6e9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Benjamin,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have the indepth understanding&amp;nbsp;how the buffer works on the proxy for now. That if it can handle multiple buffers or not. I had a look at the code and you are right , the rxbuffer size for a packet is&amp;nbsp;MESH_GATT_PACKET_MAX_SIZE = 65. But I don&amp;#39;t think the 3 packet is encapsulated into one GATT packet. If it&amp;#39;s the case, the whole 3 messages must be discarded.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please be aware that Mesh packet payload is only 11 bytes. Anything longer than that will be sent by segmented packets and it has some overhead. So&amp;nbsp;sending packet with large amount of bytes can take a long time. You also can&amp;#39;t send multiple different segmented packet a the same time to same destination.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;My suggestion is to wait for the acknowledgement before sending the next one.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh messages from phone ADK get lost</title><link>https://devzone.nordicsemi.com/thread/231083?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2020 10:58:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34a29a15-349d-4e9f-b02b-6f1b35be9724</guid><dc:creator>benjamin</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;When we retry, we get some random results that we can&amp;#39;t rely on.&lt;/p&gt;
&lt;p&gt;By this sentence, I mean that when a message leave the proxy layer, everything is fine, and the phone get the acknoledgment.&lt;/p&gt;
&lt;p&gt;The thing I noticed is, most of the time, the 2 firsts messages are well handled by the proxy, and the third fails very often. regarding this, I noticed that the MTU size is 69 bytes.&lt;/p&gt;
&lt;p&gt;the messages we try to send are 25 bytes sized. So I am maybe wrong, I maybe miss something in the SDK sources, but if I the 3 messages (75bytes) can&amp;#39;t go in the MTU, can it be a problem?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh messages from phone ADK get lost</title><link>https://devzone.nordicsemi.com/thread/231067?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2020 10:04:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16db0ca5-37f0-49c8-8024-68fa5c1d88ca</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Benjamin,&amp;nbsp;&lt;br /&gt;Could you try sending it as unacknowledged message and check if it&amp;#39;s still missing. As far as I know a model should send only one acknowledged message at a time. You should wait for the acknowledgment response before sending the next.&amp;nbsp;&lt;br /&gt;Could you elaborate a little bit more on this: &amp;quot;&lt;span&gt;and the phone receive as many acknowledgment than the stack forward the messages to the callbacks&amp;quot;&lt;br /&gt;When you retry the operation what&amp;nbsp;was the result ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh messages from phone ADK get lost</title><link>https://devzone.nordicsemi.com/thread/230908?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2020 15:09:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32bb4bf7-46b4-4a1d-a116-fc98105d938c</guid><dc:creator>benjamin</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Very pleased to read you again!&lt;/p&gt;
&lt;p&gt;as I see in the proxy logs, the packets seems to be received by the proxy. I can see 3 RX with a length, but often, one or more are not forwarded to the designated callbacks.&lt;/p&gt;
&lt;p&gt;the messages are sent as acknowlegded, and the phone receive as many acknowledgment than the stack forward the messages to the callbacks.&lt;/p&gt;
&lt;p&gt;and when we try to repeat the operation, the losts messages are not the same than the previous test.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh messages from phone ADK get lost</title><link>https://devzone.nordicsemi.com/thread/230897?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2020 14:23:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac420a3a-6439-4284-b8ef-d02c892d1799</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Benjamin,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you give some more information on:&lt;/p&gt;
&lt;p&gt;- The set message was sent as acknowledge message or unacknowledge message ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- We need to find where the message(s) was missing. Did it happen on the&amp;nbsp;write command from the phone to the proxy or it&amp;#39;s when the proxy forwards the message ? You can use a BLE sniffer to check if&amp;nbsp;3 packets&amp;nbsp;actually sent from the phone. If there are, please check on the proxy node if the message is forwarded on the proxy node or not.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>