<?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 client, synchroizing ble packages</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59666/ble-client-synchroizing-ble-packages</link><description>Situation: I&amp;#39;m using a nrf52840 with the nordic sdk 15.2 acting as a Gateway ( Ble Client). On the other side I have four nrf52832 (sdk 15.2) acting as servers. My software is based on nordics UART example (sdk 15.2). Each server is sending sensor data</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 31 Mar 2020 07:13:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59666/ble-client-synchroizing-ble-packages" /><item><title>RE: Ble client, synchroizing ble packages</title><link>https://devzone.nordicsemi.com/thread/242591?ContentTypeID=1</link><pubDate>Tue, 31 Mar 2020 07:13:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efd19397-7547-4983-ba29-6eecf3f3d603</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Arthur&lt;/p&gt;
&lt;p&gt;You are always guaranteed to receive the packets from each client in the same order as they were sent, so using multiple ringbuffers is definitely a solution.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As soon as all the ringbuffers contain at least one packet you can pop one packet from each of the buffers and process them in parallel.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble client, synchroizing ble packages</title><link>https://devzone.nordicsemi.com/thread/242572?ContentTypeID=1</link><pubDate>Tue, 31 Mar 2020 04:47:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f8c2e6f-181f-405a-b9a8-40f35c31b8b8</guid><dc:creator>stackGreen</dc:creator><description>&lt;p&gt;Thank you Torbj&amp;oslash;rn!&lt;/p&gt;
&lt;p&gt;Do you have some best practice to synchronize these packages afterwards? My first thought is to use Ringbuffers ...&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Arthur&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble client, synchroizing ble packages</title><link>https://devzone.nordicsemi.com/thread/242410?ContentTypeID=1</link><pubDate>Mon, 30 Mar 2020 12:39:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2905fd7b-e323-4386-a9a9-d4f5e72151a0</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The notifications are forwarded as they are received, you don&amp;#39;t have any control over this unfortunately.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;First off if you are sending a lot of data you will typically receive multiple packets pr connection event, which is why you are seeing groups of notifications from the same server.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Secondly, if there is any packet loss between one server and the client this will delay the packet transmission, and the server will have to &amp;quot;catch up&amp;quot; on following connection events, leading to a varying number of packets being sent on each event.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>