<?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 to enforce connecting to a specific master when bonded to many.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19210/how-to-enforce-connecting-to-a-specific-master-when-bonded-to-many</link><description>Problem: 
 In our project we have one peripheral which can be bonded to many phones at the same time (of cause) while they are still close to it, thus connected via OS. 
 In that situation we need to selectively unblock the peripheral so that only one</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 30 Jan 2017 12:38:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19210/how-to-enforce-connecting-to-a-specific-master-when-bonded-to-many" /><item><title>RE: How to enforce connecting to a specific master when bonded to many.</title><link>https://devzone.nordicsemi.com/thread/74413?ContentTypeID=1</link><pubDate>Mon, 30 Jan 2017 12:38:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ba43d08-12b5-42de-b39f-0d7ea33dd344</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Correct. That is not possible with any of the SoftDevices for the nRF51, it is possible with the &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-low-energy/nRF52832/(language)/eng-GB#Downloads"&gt;S132 4.0.0-2.alpha&lt;/a&gt; SoftDevice available for the nRF52832.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enforce connecting to a specific master when bonded to many.</title><link>https://devzone.nordicsemi.com/thread/74414?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2017 10:37:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1b5ed45-efdc-4234-8916-3dd5bda68003</guid><dc:creator>Francesco</dc:creator><description>&lt;p&gt;Hey Petter. Sorry for missing that important detail. Your approach sounds very promising. I still wonder if we could build that fully automated. I.e. even disconnect the connected peripheral if another peripheral requests connection and is closer than the connected device at that time. That would require advertising and a connection being enabled a the same time. But that&amp;#39;s not possible, right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enforce connecting to a specific master when bonded to many.</title><link>https://devzone.nordicsemi.com/thread/74412?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2017 14:50:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab7aa512-d7e4-47c3-ae35-5eb0a6ff7820</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;The new device cannot connect, it is not possible. A peripheral can only be connected to &lt;strong&gt;one&lt;/strong&gt; central. So you always want to be connected to the closest central? You could have added that piece of information is the question ;)&lt;/p&gt;
&lt;p&gt;An idea is to first do scannable non-connectable advertising, then you will get a BLE_GAP_EVT_SCAN_REQ_REPORT event every time a central scans your advertising packet. With it you will get the RSSI and the peer address. Then you switch to connectable advertising, with the peer address of the best RSSI in the whitelist.&lt;/p&gt;
&lt;p&gt;After you have connected you can start doing scannable non-connectable advertising, and monitor continue the RSSI values to see if another central gets closer. If it does, disconnect from current connected central and do connectable advertising, with the peer address of the new central in the whitelist.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enforce connecting to a specific master when bonded to many.</title><link>https://devzone.nordicsemi.com/thread/74411?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2017 12:33:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:827d3fa5-8c43-4f69-b738-b7d9dc41622d</guid><dc:creator>Francesco</dc:creator><description>&lt;p&gt;I think I understood your approach, but I guess it only helps in a 2 centrals, one peripheral. You&amp;#39;d delete the currently connected device from the whitelist until the other device is connected. Then put the first device back to the whitelist. Right? With 3 centrals around, that doesn&amp;#39;t solve the problem (completely).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enforce connecting to a specific master when bonded to many.</title><link>https://devzone.nordicsemi.com/thread/74409?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2017 12:27:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5dc84f2f-c1d5-4564-ac40-f2699b7e6666</guid><dc:creator>Francesco</dc:creator><description>&lt;p&gt;2 suggestions: 1) disconnect from all devices and hope the closest will take over the connection. That&amp;#39;s very random I think. 2) Narrow down TX power on the peripheral for X seconds. But that may vary as well as we cannot influence the tx power of the centrals nearby. Both suggestions seem not very stable to me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enforce connecting to a specific master when bonded to many.</title><link>https://devzone.nordicsemi.com/thread/74408?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2017 12:27:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbbcf32c-afb3-40cf-8845-38400e1fc46a</guid><dc:creator>Francesco</dc:creator><description>&lt;p&gt;So you mean a whitelist for active connections (i.e. who would see the peripheral when it advertises itself)?! Still in my scenario the peripheral would already be connected to a central device. Now another NEW central should get priority and the ability to steel the connection. I think a whitelist  is not a solution here as we want to allow that new device to connect as well. Rather we need a solution to steel the connection from other connected centrals. The user which gets that priority is the one standing closest to the peripheral at that time. So we could identify that person via a hardware button he needs to press to take over the connection. Question though is what would be the appropriate technical solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enforce connecting to a specific master when bonded to many.</title><link>https://devzone.nordicsemi.com/thread/74410?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2017 10:13:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f0b151d-62e6-42b0-afa6-dd7c24a2c34b</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Why is that an issue? Just remove them from the whitelist. You can keep the bond to the other centrals even though they are not in the whitelist.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enforce connecting to a specific master when bonded to many.</title><link>https://devzone.nordicsemi.com/thread/74407?ContentTypeID=1</link><pubDate>Wed, 25 Jan 2017 17:31:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:baa5730b-de0f-4b6d-b0d4-4fdb7a107652</guid><dc:creator>Francesco</dc:creator><description>&lt;p&gt;Thanks for the quick response. The issue with that approach is that all the other centrals are basically on the whitelist. In the scenario I mentioned originally we need to disconnect other connected centrals to enable a specific central to connect with the peripheral. Kind of a temporary kill-switch for the BT connection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enforce connecting to a specific master when bonded to many.</title><link>https://devzone.nordicsemi.com/thread/74406?ContentTypeID=1</link><pubDate>Wed, 25 Jan 2017 13:50:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27055cbe-ef68-4297-8903-c78190159269</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;As a peripheral it can only be connected to one central at the time, if it is connected to a central it has to disconnect from that central before another central can connect.&lt;/p&gt;
&lt;p&gt;If you only want a specific central to connect you should advertise with a whitelist and put the address of the specific central into the whitelist.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>