<?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>One master controls and collects data from slaves at the same time</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10862/one-master-controls-and-collects-data-from-slaves-at-the-same-time</link><description>Hello, 
 I would like to ask you guys whether it is possible that one Bluetooth master device (smartphone) can control and collect data from two Bluetooth slave device (some kinds of sensors) simultaneously. Here, Bluetooth chip is NRF51822. This is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Jan 2016 14:36:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10862/one-master-controls-and-collects-data-from-slaves-at-the-same-time" /><item><title>RE: One master controls and collects data from slaves at the same time</title><link>https://devzone.nordicsemi.com/thread/40651?ContentTypeID=1</link><pubDate>Wed, 06 Jan 2016 14:36:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:855c0467-c956-4f82-bf39-b7f634d264eb</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;See my updated answer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: One master controls and collects data from slaves at the same time</title><link>https://devzone.nordicsemi.com/thread/40650?ContentTypeID=1</link><pubDate>Wed, 30 Dec 2015 21:28:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13422f03-a1c0-4bbc-a261-6b056997fd37</guid><dc:creator>Ha</dc:creator><description>&lt;p&gt;Thanks for the great answer and here is the answer for your question:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Two sensors will have nRF51822, but I am not sure about the chip in my smartphone (Galaxy S6).&lt;/li&gt;
&lt;li&gt;The purpose is to measure pulse wave velocity. Sensor is simple pulse detecting and output needs ADC conversion, either internal or external one if needed. Two sensors should detect pulse wave velocity (i.e. how fast a pulse moved from one location to the other). If we assume that the pulse can get up to 10m/s generally and two sensors are placed about 1 meter apart, it means that 100ms will be the lowest time taken for a pulse to travel. So, delay and time synchronization should be well justified to meet the 100ms (so as sampling rate and data transmission)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I have read the thread you linked above and it is helpful. I will be look forward to have further advice based on the information I provided above. Thank you !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: One master controls and collects data from slaves at the same time</title><link>https://devzone.nordicsemi.com/thread/40649?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2015 09:51:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08c931dd-90f9-40d2-9ffb-bddf76fe3d7c</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;Hey.&lt;/p&gt;
&lt;p&gt;Connecting and communicating with two slave (peripheral in BLE) devices is no problem.
The communication can never be simultaneously though. You must expect at least about 10 ms between receiving data from the two sensors. Synchronizing the devices with regards to time will also be challenging. I would expect a about 10ms uncertainty here as well. See &lt;a href="https://devzone.nordicsemi.com/question/17987/synchronize-two-devices/"&gt;this&lt;/a&gt; thread about this.&lt;/p&gt;
&lt;p&gt;Before i can advice you further on firmware, please provide a bit more information about your project:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Will you use nRF51822 for all three
devices?&lt;/li&gt;
&lt;li&gt;Can you tell me a bit more
about what kind of sensors you will
use?&lt;/li&gt;
&lt;li&gt;How often will you need to send
sensor data?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Update 1.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If you are to accurately measure the time between two points wirelessly, i see two options.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Have accurately synchronized clocks on both measuring devices, and send the time to the master device.&lt;/li&gt;
&lt;li&gt;Have both devices send a packet immediately after detecting the pulse, and let the master calculate the time difference.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;For option 1, you must have mechanism for synchronizing the clock of the two devices. It is not enough to sync once, since the clocks will drift away from each other. (With a 30 ppm uncertainty on a clock, it can drift as much as 100 ms in one hour.) You must therefore develop some wireless synchronizing mechanism which is one regularly. If you wish to start developing this using BLE, you can start by reading the &amp;quot;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/nrf51_getting_started.html?cp=4_0_0_1"&gt;getting started&lt;/a&gt;&amp;quot; page and looking at some &lt;a href="https://devzone.nordicsemi.com/tutorials/"&gt;tutorials&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For option 2, BLE is not feasible. This is because packets are not sent immidiately, but on the next connection interval. You can use a proprietary 2.4 GHz protocol like Enhanced ShockBurst to send things immidately between the two sensors. You can then have one sensor send the result to a phone over BLE. Read about ESB &lt;a href="https://devzone.nordicsemi.com/documentation/nrf51/4.3.0/html/group__esb__users__guide.html"&gt;here&lt;/a&gt;, and see the example code &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/esb_examples_ptx_prx.html?cp=4_0_0_4_5_1_0"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>