<?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>Communication between master and slave</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27409/communication-between-master-and-slave</link><description>Hi,
i have the below queries: 
 In our project we are using multiple masters and multiple slaves, in that each slave is dedicated to a single master. 
 for ex: we are having 4 masters(M1,M2,M3,M4) and 4 slaves(S1,S2,S3,S4), in that S1 will be dedicated</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Nov 2017 19:09:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27409/communication-between-master-and-slave" /><item><title>RE: Communication between master and slave</title><link>https://devzone.nordicsemi.com/thread/108253?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2017 19:09:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42b50aaf-474e-46a3-a9ea-f54ed03d6f45</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Then the master will look at the device name in the advertisement from the slave, recognize it, and send a connection request to it. Yes, you need to make changes, as I said currently it looks for the NUS UUID, not a device name. See how BLE_GAP_EVT_ADV_REPORT is handled inside on_ble_evt().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication between master and slave</title><link>https://devzone.nordicsemi.com/thread/108252?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2017 15:03:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e4a0b71-c9f1-4e27-af4f-f98744963835</guid><dc:creator>pavan</dc:creator><description>&lt;p&gt;Hi thanks for the information. well lets say if change the Device name of the slave then how will Master detects the particular slave and connect it. do i need to make any changes in the master program?&lt;/p&gt;
&lt;p&gt;How and where to change in master program? . like if master detects  particular name the only pair otherwise dont connect how to configure that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication between master and slave</title><link>https://devzone.nordicsemi.com/thread/108251?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2017 11:25:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60e0dee1-06a6-40dd-a5fd-34329e246c49</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;The unmodified central example will not connect to the nearest peripheral, it will try to connect to the device that sent out the first advertisement it received.&lt;/p&gt;
&lt;p&gt;If you want M1 to only connect to S1 you need to configure M1 (and S1) so that it can recognize S1 advertisement. Unmodified the example only looks for the NUS UUID in the advertisement. See how BLE_GAP_EVT_ADV_REPORT is handled inside on_ble_evt(). The Bluetooth address of the slave is one way of doing it. Or use different UUIDs. Or add a device name, or some manufacturer specific data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>