<?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 data sequence out of order</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64693/ble-data-sequence-out-of-order</link><description>Hi, 
 
 I have a device that throughout the uart data to ble,recently I find a problem that in the case of weak signals,the data sequence is out of order. 
 Here is the question: 
 The data sequence is 03-A7,03-A8 ...each packet add one,but as the picture</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Aug 2020 06:37:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64693/ble-data-sequence-out-of-order" /><item><title>RE: ble data sequence out of order</title><link>https://devzone.nordicsemi.com/thread/266621?ContentTypeID=1</link><pubDate>Thu, 27 Aug 2020 06:37:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6b53f1b-9099-4d27-9385-d782207e875a</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Thanks for letting us know. Glad you figured it out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble data sequence out of order</title><link>https://devzone.nordicsemi.com/thread/266602?ContentTypeID=1</link><pubDate>Thu, 27 Aug 2020 02:18:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:751fa250-06d1-4e2b-8ddb-88d1692b115c</guid><dc:creator>lemon</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have found the issues.&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble data sequence out of order</title><link>https://devzone.nordicsemi.com/thread/266341?ContentTypeID=1</link><pubDate>Wed, 26 Aug 2020 01:07:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:425611f3-ffb6-4c00-a233-815fcca438d2</guid><dc:creator>lemon</dc:creator><description>&lt;p&gt;Hi，&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Attach is the log which use the nrf_connect get,and is same as the sniffer log.&lt;/p&gt;
&lt;p&gt;The sniffer is nearby the salve device and the master (a phone) is in the pkace where the RSSI is between -95 to -100 dB.&lt;/p&gt;
&lt;p&gt;I will check the software if there is any problem.&lt;/p&gt;
&lt;p&gt;If there is any&amp;nbsp;&lt;span&gt;progress, I will inform you immediately.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7ba992c671b85b98d34780a19ce50dd3.txt"&gt;devzone.nordicsemi.com/.../7ba992c671b85b98d34780a19ce50dd3.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble data sequence out of order</title><link>https://devzone.nordicsemi.com/thread/266261?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2020 13:33:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eceec71f-c7cf-43fb-adb7-7ee3873c4c9b</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Seems the sniffer is not able to capture all the master packets. Did you place it inbetween the master and the slave?&lt;/p&gt;
&lt;p&gt;Regardless it seems that something goes wrong in the application sending the packets. How do you buffer these in the application? how do you empty the buffer? And how do you handle the error messages from sd_ble_gatts_hvx?&lt;/p&gt;
&lt;p&gt;The SD itself operates in a &amp;quot;first in, first out&amp;quot; manner, so the first packet that is placed in the tx buffer will be sent first on air.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble data sequence out of order</title><link>https://devzone.nordicsemi.com/thread/266146?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2020 09:01:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae4c8c85-7d9c-4fb2-86cf-68e21638e75d</guid><dc:creator>lemon</dc:creator><description>&lt;p&gt;Hi，run_ar，&lt;/p&gt;
&lt;p&gt;Attach is the sniffer log.&lt;/p&gt;
&lt;p&gt;Here we can see:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1598345512_2800_1_2900_.png" /&gt;&lt;/p&gt;
&lt;p&gt;The packet is 4C F0,4C F4,4C FF,and 4C F1,4C F2 and others are losed.&lt;/p&gt;
&lt;p&gt;Then we s&lt;span&gt;croll down to see the record:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1598345959_2800_1_2900_.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Here we can see the 4C F1 and 4C F2 and others after 4F05.&lt;/p&gt;
&lt;p&gt;If you need more information,you can ask me and I will send to you as soon as possible.&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;BRs,&lt;/p&gt;
&lt;p&gt;Lemon&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1021.btt"&gt;devzone.nordicsemi.com/.../1021.btt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble data sequence out of order</title><link>https://devzone.nordicsemi.com/thread/264140?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2020 01:10:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf37d951-da5a-4346-8efa-2b59a0412705</guid><dc:creator>lemon</dc:creator><description>&lt;p&gt;Hi，&lt;/p&gt;
&lt;p&gt;OK，I will capture a sniffer trace to&amp;nbsp;&lt;span&gt;analyse the reason.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble data sequence out of order</title><link>https://devzone.nordicsemi.com/thread/263952?ContentTypeID=1</link><pubDate>Tue, 11 Aug 2020 08:15:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c327acf-0f30-4127-800b-1151eac71438</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Assuming you are sending notifications, when a notification is queued, it will stay in the queue until it is sent to the peer. So if the order is wrong it is more likely they are not placed in the tx queue in the correct order or that the log is buffered, and not printed in the correct order.&lt;/p&gt;
&lt;p&gt;Could you capture a sniffer trace and check if the data is transmitted in the correct order? That would show us on which side the packet order is changed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>