<?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>How a central BLE device can read data from multiple BLE devices simultaneously?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52257/how-a-central-ble-device-can-read-data-from-multiple-ble-devices-simultaneously</link><description>Firstly, I am a very beginner in the BLE domain. I have very little knowledge of it. 
 I want to do a project where multiple BLE peripheral devices(nRF52) will communicate with a central BLE device(Andriod phone). Each peripheral device collecting data</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Sep 2019 14:15:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52257/how-a-central-ble-device-can-read-data-from-multiple-ble-devices-simultaneously" /><item><title>RE: How a central BLE device can read data from multiple BLE devices simultaneously?</title><link>https://devzone.nordicsemi.com/thread/210466?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2019 14:15:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:016a889c-4f32-4dd7-9927-d208c8e2a7ac</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Take a look at the&amp;nbsp;&lt;span&gt;multi-link example mentioned earlier.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How a central BLE device can read data from multiple BLE devices simultaneously?</title><link>https://devzone.nordicsemi.com/thread/210370?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2019 11:29:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de68e72f-557f-418a-b61a-bf76a3dfb601</guid><dc:creator>prayuktibid</dc:creator><description>&lt;p&gt;Thank you for your reply.&lt;/p&gt;
&lt;p&gt;Please give a brief idea about the possible firmware architecture for my case.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How a central BLE device can read data from multiple BLE devices simultaneously?</title><link>https://devzone.nordicsemi.com/thread/210299?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2019 07:57:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32e2185d-600f-48ff-b101-992cb5e7371d</guid><dc:creator>awneil</dc:creator><description>[quote userid="83461" url="~/f/nordic-q-a/52257/how-a-central-ble-device-can-read-data-from-multiple-ble-devices-simultaneously/210284"]Using&amp;nbsp; RTOS, threading we can achieve parallel processing[/quote]
&lt;p&gt;Not on a single core CPU, you can&amp;#39;t !&lt;/p&gt;
&lt;p&gt;You achieve the &lt;em&gt;&lt;strong&gt;illusion&lt;/strong&gt; &lt;/em&gt;of parallel processing by &lt;em&gt;switching&lt;/em&gt;&amp;nbsp;between tasks/threads - only one is actually active at a time.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="83461" url="~/f/nordic-q-a/52257/how-a-central-ble-device-can-read-data-from-multiple-ble-devices-simultaneously/210284"]data might lose cause when the central device switching from one peripherals device to another peripherals device if another sensor data will come on that instance[/quote]
&lt;p&gt;So you have to &lt;em&gt;&lt;strong&gt;buffer&lt;/strong&gt; &lt;/em&gt;the data while waiting to send it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;These are all basic concepts - not really specific to BLE or Nordic.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How a central BLE device can read data from multiple BLE devices simultaneously?</title><link>https://devzone.nordicsemi.com/thread/210284?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2019 07:16:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cc35c71-cf83-4cc7-a685-a6e7bd9664eb</guid><dc:creator>prayuktibid</dc:creator><description>[quote userid="6462" url="~/f/nordic-q-a/52257/how-a-central-ble-device-can-read-data-from-multiple-ble-devices-simultaneously/210239"]Do you have experience with microcontrollers in general?[/quote]
&lt;p&gt;Yes, I have.&lt;/p&gt;
[quote userid="6462" url="~/f/nordic-q-a/52257/how-a-central-ble-device-can-read-data-from-multiple-ble-devices-simultaneously/210239"]Unless the sensors need to be in different locations, why not connect all the sensors to one nRF52 ... ?[/quote]
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;Yes, each sensor is in a different location so I need on nRF52 for each sensor.&lt;/p&gt;
[quote userid="6462" url="~/f/nordic-q-a/52257/how-a-central-ble-device-can-read-data-from-multiple-ble-devices-simultaneously/210239"]Do they really need to be simultaneous?[/quote]
&lt;p&gt;Actually, in my case, each sensor&amp;#39;s data is important and the same priority.&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s assume in a case.. when the central device talking with an nRF52 in that time another nRF52 has to talk with central devices. In that case, either central device will stop talking with the first nRF52 and it will start talking with the second nRF52 or it will continue talk with the first one thereafter it will talk with the second one.&lt;/p&gt;
&lt;p&gt;But in both cases, data might lose cause when the central device switching from one peripherals device to another peripherals device if another sensor data will come on that instance then the current data will overwrite the previous data. If the number of peripherals device much then the probability of data loss is high.&amp;nbsp; I am thinking of worst-case scenarios.&lt;/p&gt;
&lt;p&gt;But in normal, sensor data will not come within a fraction of second or microsecond and if the central device&amp;#39;s throughput then it can be overcome.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Using&amp;nbsp; RTOS, threading we can achieve parallel processing.&amp;nbsp;I have asked the question in the wrong way, I am sorry for that.&amp;nbsp;&lt;/p&gt;
[quote userid="6462" url="~/f/nordic-q-a/52257/how-a-central-ble-device-can-read-data-from-multiple-ble-devices-simultaneously/210239"]The SoftDevice can support up to 20 simultaneous connections - how many do you need?[/quote]
&lt;p&gt;I need 8 device&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How a central BLE device can read data from multiple BLE devices simultaneously?</title><link>https://devzone.nordicsemi.com/thread/210240?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2019 21:05:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35da6353-2261-4fc6-8b5d-58a248941457</guid><dc:creator>awneil</dc:creator><description>[quote userid="6462" url="~/f/nordic-q-a/52257/how-a-central-ble-device-can-read-data-from-multiple-ble-devices-simultaneously/210239"]Any microcontroller can only do 1 thing at a time; but they can do things in quick succession - which is usually &amp;quot;close enough&amp;quot;[/quote]
&lt;p&gt;Which is just like the old fashioned way where the sensors would have dials on them, and you would take the readings manually - visiting each one in turn.&lt;/p&gt;
&lt;p&gt;Then you would say that those were the reading taken &amp;quot;at the same time&amp;quot; ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How a central BLE device can read data from multiple BLE devices simultaneously?</title><link>https://devzone.nordicsemi.com/thread/210239?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2019 21:03:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:def34921-2e25-4438-a3a8-c6c38c7bcae9</guid><dc:creator>awneil</dc:creator><description>[quote userid="83461" url="~/f/nordic-q-a/52257/how-a-central-ble-device-can-read-data-from-multiple-ble-devices-simultaneously"]I am a very beginner in the BLE domain[/quote]
&lt;p&gt;Do you have experience with microcontrollers in general?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="83461" url="~/f/nordic-q-a/52257/how-a-central-ble-device-can-read-data-from-multiple-ble-devices-simultaneously"]Each peripheral device collecting data from the different sensors[/quote]
&lt;p&gt;Unless the sensors need to be in different locations, why not connect all the sensors to one nRF52 ... ?&lt;/p&gt;
[quote userid="83461" url="~/f/nordic-q-a/52257/how-a-central-ble-device-can-read-data-from-multiple-ble-devices-simultaneously"]As much I know that I a central device can communicate with multiple devices but I can&amp;#39;t talk simultaneously.[/quote]
&lt;p&gt;Do they really need to be simultaneous?&lt;/p&gt;
&lt;p&gt;Any microcontroller can only do 1 thing at a time; but they can do things in quick succession - which is usually &amp;quot;close enough&amp;quot;.&lt;/p&gt;
[quote userid="83461" url="~/f/nordic-q-a/52257/how-a-central-ble-device-can-read-data-from-multiple-ble-devices-simultaneously"]How many peripherals devices can talk with a central device?[/quote]
&lt;p&gt;The SoftDevice can support up to 20 simultaneous connections - how many do you need?&lt;/p&gt;
&lt;p&gt;The SDK contains a multi-link example:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/ble_sdk_app_multilink.html"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/ble_sdk_app_multilink.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But, as a &amp;quot;&lt;span&gt;very beginner&amp;quot;, I would&amp;nbsp;suggest that you don&amp;#39;t jump straight into that - spend some time with the basic examples first to gain familiarity with BLE in general, and the Nordic product &amp;amp; tools in particular ...&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>