<?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>Connect without advertising to a previously paired device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32110/connect-without-advertising-to-a-previously-paired-device</link><description>Hi, 
 We&amp;#39;d like to implement a feature that allows changing a BLE connection from [central device #1 -&amp;gt; peripheral] to [central device #2 -&amp;gt; same peripheral] (similar to Apple&amp;#39;s Airpods). 
 Currently, trying to reconnect to a peripheral that is already</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Mar 2018 13:43:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32110/connect-without-advertising-to-a-previously-paired-device" /><item><title>RE: Connect without advertising to a previously paired device</title><link>https://devzone.nordicsemi.com/thread/125561?ContentTypeID=1</link><pubDate>Thu, 22 Mar 2018 13:43:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7901f0f4-acc6-49f6-88d8-ee5f8c667129</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;No, there is no way to tell the central to stop it to re-connect (and then reject the connect request).&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t want any devices at all to be able to connect to your device, your device can advertise with the &amp;#39;non-connectable&amp;#39; flag set. When you want your device to be connectable again, just change that flag.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect without advertising to a previously paired device</title><link>https://devzone.nordicsemi.com/thread/125213?ContentTypeID=1</link><pubDate>Tue, 20 Mar 2018 16:06:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:907cf2e5-ee7f-4b95-bd62-255a8f2a96eb</guid><dc:creator>ohtap</dc:creator><description>&lt;p&gt;Unfortunately we have no control over the central (phone/desktop computer/tablet), only the peripheral.&lt;/p&gt;
&lt;p&gt;Is there a way to send a disconnection signal from the peripheral to the central to stop it from reconnecting automatically? meaning still in the &amp;quot;paired&amp;quot; devices list, but not &amp;quot;connected&amp;quot;, so the user has to manually press &amp;quot;connect&amp;quot; on the central&amp;#39;s Bluetooth menu, as if he disconnected manually.&lt;/p&gt;
&lt;p&gt;Right now we send&amp;nbsp;sd_ble_gap_disconnect(conn_handle, BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION);&amp;nbsp; but the central just reconnects when we start advertising.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect without advertising to a previously paired device</title><link>https://devzone.nordicsemi.com/thread/125186?ContentTypeID=1</link><pubDate>Tue, 20 Mar 2018 14:13:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30b9b9b7-23b3-440b-9271-0f9faad6adc0</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;If the central automatically re-connects, it means that the central is scanning and that the peripheral is advertising. If you want the central to scan, but not connect, you can for example use a flag to tell the application if it is allowed to send connect request or not, upon a advertising report&amp;nbsp; (BLE_GAP_EVT_ADV_REPORT). The flag can be controlled manually.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;if(allowed_to_connect == true)
{ 
     err_code = sd_ble_gap_connect(..);
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect without advertising to a previously paired device</title><link>https://devzone.nordicsemi.com/thread/124955?ContentTypeID=1</link><pubDate>Mon, 19 Mar 2018 10:48:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e59ca94-4816-460d-ae4f-9837b314f582</guid><dc:creator>ohtap</dc:creator><description>&lt;p&gt;We managed to disconnect 1 device while still being connected to the 2nd using directed advertising. We now face another issue - the disconnected device reconnects automatically.&lt;/p&gt;
&lt;p&gt;Is there a way to only allow &amp;quot;manual&amp;quot; connection from a central device? meaning, only a manual press on &amp;quot;connect&amp;quot; will attempt to reconnect. It&amp;#39;s not clear if there&amp;#39;s a difference from the peripheral&amp;#39;s side between automatic and manual connection.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect without advertising to a previously paired device</title><link>https://devzone.nordicsemi.com/thread/124876?ContentTypeID=1</link><pubDate>Sun, 18 Mar 2018 09:27:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae6bff06-cdc9-48d8-ae26-1a1723ddff2f</guid><dc:creator>ohtap</dc:creator><description>&lt;p&gt;Thanks. We reactivate advertising manually, similar the example. But we&amp;#39;d also like to disconnect (without unpairing) the previous central device from the peripheral.&lt;/p&gt;
&lt;p&gt;After the 2nd central connects, we use sd_ble_gap_disconnect()&amp;nbsp;to disconnect&amp;nbsp;the 1st central device, but the&amp;nbsp;2nd central device also stops communicating even though it displays as &amp;quot;Connected&amp;quot; on the Bluetooth menu.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s probably because a&amp;nbsp;BLE_GAP_EVT_DISCONNECTED is sent after the disconnection. Is there a way to disconnect a device without harming the connection with the new device?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect without advertising to a previously paired device</title><link>https://devzone.nordicsemi.com/thread/124558?ContentTypeID=1</link><pubDate>Thu, 15 Mar 2018 11:23:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec0606a3-be3b-4d1b-8008-1c26d23992d6</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;The &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v14.2.0%2Fble_sdk_app_multiperipheral.html&amp;amp;cp=4_0_0_4_2_2_23"&gt;BLE Multiperipheral example&lt;/a&gt; in the SDK shows how to connect on peripheral to several centrals (SKD 14.2.0). I would recommend you to take a look at that example.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Connecting without advertising is not possible. However, for bonded devices, it is possible to use directed advertising.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>