<?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>Multilink + NUS data reception problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54960/multilink-nus-data-reception-problem</link><description>Hi everyone, 
 I&amp;#39;m working on a project where I need to send sensor data from multiple sources to a PC. So, I&amp;#39;m using multiple SparkFun Pro nRF52840 Mini board (Peripherals) to acquire data from the sensor and send them over BLE. I have a nRF52840 Dongle</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 03 Dec 2019 22:35:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54960/multilink-nus-data-reception-problem" /><item><title>RE: Multilink + NUS data reception problem</title><link>https://devzone.nordicsemi.com/thread/223441?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2019 22:35:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0d4a6ea-6194-491b-8d7c-1612856b6552</guid><dc:creator>JeanG.</dc:creator><description>&lt;p&gt;Thanks! I tried to reduce the connection interval to the minimum (7.5 ms) and&amp;nbsp;&lt;span&gt;NRF_SDH_BLE_GAP_EVENT_LENGTH to 1.25 ms but it&amp;#39;s still not fast enough.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m going to see if I can find something else, but I think that I&amp;#39;m at the limit here...&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multilink + NUS data reception problem</title><link>https://devzone.nordicsemi.com/thread/223154?ContentTypeID=1</link><pubDate>Mon, 02 Dec 2019 17:46:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:232870da-b0e7-410a-b582-efd9c8b1e0b3</guid><dc:creator>H&amp;#229;kon</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Good, it works OK when transmitting more seldom.&lt;/p&gt;
&lt;p&gt;I am not sure how you do things in your code.&lt;br /&gt;However, a few things worth mentioning after discussing with my colleagues.&lt;/p&gt;
&lt;p&gt;The minimum connection interval in BLE is 7.5 ms, per link.&lt;/p&gt;
&lt;p&gt;It is possible to to decide how must time is set aside for each link on each connection interval &lt;br /&gt;NRF_SDH_BLE_GAP_EVENT_LENGTH -&amp;nbsp;&lt;em&gt;The&amp;nbsp;time&amp;nbsp;set&amp;nbsp;aside&amp;nbsp;for&amp;nbsp;this&amp;nbsp;connection&amp;nbsp;on&amp;nbsp;every&amp;nbsp;connection&amp;nbsp;interval&amp;nbsp;in&amp;nbsp;1.25&amp;nbsp;ms&amp;nbsp;units.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;It is possible to use the Enhanced Shockburst protocol in applications where shorted connection intervals are needed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multilink + NUS data reception problem</title><link>https://devzone.nordicsemi.com/thread/222875?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2019 22:10:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:388dfe23-79ca-4feb-b668-051673665ef1</guid><dc:creator>JeanG.</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for your answer! If I try to send data every 100ms, it works, I only receive one data set from each peripheral at a time. But I need to send the data faster.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m printing the data with the Dongle using the &lt;strong&gt;app_usbd_cdc_acm_write() &lt;/strong&gt;function&amp;nbsp;when the &lt;strong&gt;BLE_NUS_C_EVT_NUS_TX_EVT&lt;/strong&gt; is called.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;quot;Otherwise you can print your data only when you have at least one data set from each peripheral device, e.g. using only the latest data.&amp;quot;&lt;br /&gt;&lt;/em&gt;Do you have an idea on how I can implement that in my program?&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;quot;It could look like you are printing all of the data you have available for a giving peripheral device&amp;quot;&lt;br /&gt;&lt;/em&gt;Yes, maybe that&amp;#39;s what is happening!&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Jean&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multilink + NUS data reception problem</title><link>https://devzone.nordicsemi.com/thread/222641?ContentTypeID=1</link><pubDate>Thu, 28 Nov 2019 14:54:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:037d4af4-2ef8-4083-a456-ff23bf1b14c1</guid><dc:creator>H&amp;#229;kon</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am not sure what you use case is, hence I am not sure if my proposals are valid or suited for you.&lt;/p&gt;
&lt;p&gt;Can you try to send your data not this often, e.g. every 100ms and see if this solves your issue?&lt;br /&gt;Otherwise you can print your data only when you have at least one data set from each peripheral device, e.g. using only the latest data.&lt;/p&gt;
&lt;p&gt;Another item, printing every packet you receive will en up in a massive amount printing when you are receiving 3 packets each ms.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I am wondering about how are you printing.&lt;br /&gt;It could look like you are printing all of the data you have available for a giving peripheral device, before checking if there are available data for another device instead of only printing when you receive a new data set.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>