<?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>Two connections between nRf52832 device and a single smartphone</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77870/two-connections-between-nrf52832-device-and-a-single-smartphone</link><description>Hi, 
 I have a question about the connection handling when we have two connections to a single smartphone. 
 The smartphone runs two Applications: 
 App 1: Acts as central/master, my device is peripheral 
 App 2: Acts as peripheral/slave, my device is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Jul 2021 13:18:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77870/two-connections-between-nrf52832-device-and-a-single-smartphone" /><item><title>RE: Two connections between nRf52832 device and a single smartphone</title><link>https://devzone.nordicsemi.com/thread/322064?ContentTypeID=1</link><pubDate>Tue, 27 Jul 2021 13:18:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6dbcd03-cd62-491b-903f-9b029d50f050</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Hello Erikk,&lt;/p&gt;
&lt;p&gt;Both Android and iOS support both multiple connections and can handle a bi-directional connection to a single device. You may, actually, try&amp;nbsp;it quickly using nRF Connect for Android. First, set up the GATT Server Configuration on the phone to match the configuration required by your device. Then connect to your device (I assume it&amp;#39;s advertising?). nRF Connect will connect to it and will receive connection request to the server. You will see all event in the log. From CLIENT tab you may send messages to the device, and from SERVER tab you may use the phone as peripheral (setting readable values, sending notifications, etc.). You may actually have it in 2 different applications. Or more. E.g. nRF Connect can be connected bi-directionally while you&amp;#39;re connected in both your apps. The &amp;quot;single physical connection&amp;quot; means, that the mobile phone is managing the connection and is sending any data that any app requests. Each app may have a single or even multiple BluetoothGatt object, which are seen as virtual connections.&lt;/p&gt;
&lt;p&gt;Such bi-directional communication is also supported in our &lt;a href="https://github.com/NordicSemiconductor/Android-BLE-Library"&gt;Android BLE Library&lt;/a&gt;&amp;nbsp;since version 2.2.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know how does it work from the peripheral side. Is the mobile visible with one MAC address, or two. There are samples of it both in NCS and nRF5 SDK, however on mobile side we currently don&amp;#39;t have any sample demonstrating bi-directional communication other than some documentation on above-mentioned library.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Two connections between nRf52832 device and a single smartphone</title><link>https://devzone.nordicsemi.com/thread/322001?ContentTypeID=1</link><pubDate>Tue, 27 Jul 2021 09:36:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58bc5c36-4588-4567-9aef-e7e3db62fad7</guid><dc:creator>pressure_sensor_nonconn_adv</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;Kenneth stated in the linked&amp;nbsp;post that: &amp;quot;&lt;span&gt;Apps can have multiple &amp;quot;virtual connections&amp;quot; to the same peripheral.&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Wouldn&amp;#39;t that mean that we can have two connections (just virtual ones)?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This would also correspond to what was observed. Namely that the phone uses two MAC addresses and two connection handles are given to the application by the softdevice S132.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your help and kind regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Two connections between nRf52832 device and a single smartphone</title><link>https://devzone.nordicsemi.com/thread/321944?ContentTypeID=1</link><pubDate>Tue, 27 Jul 2021 06:48:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:016078cb-ba32-4a6a-b14b-51a5f8933056</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;The link is fixed. Post again here&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/60845/nrf-connect-multiple-connections-to-same-peripheral/247558#247558"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/60845/nrf-connect-multiple-connections-to-same-peripheral/247558#247558&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Two connections between nRf52832 device and a single smartphone</title><link>https://devzone.nordicsemi.com/thread/321869?ContentTypeID=1</link><pubDate>Mon, 26 Jul 2021 14:33:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a85e7c3-e56f-4e64-b06b-b03115b697ec</guid><dc:creator>Erikk</dc:creator><description>&lt;p&gt;I think the link to the indicated post is broken...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Two connections between nRf52832 device and a single smartphone</title><link>https://devzone.nordicsemi.com/thread/321820?ContentTypeID=1</link><pubDate>Mon, 26 Jul 2021 12:44:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e2bd440-3faa-4931-a4e8-c97b27273e52</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;(Updated)&lt;/p&gt;
&lt;p&gt;After confirming with our apps expert, I corrected the answer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hi Erikk,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Q1. &lt;span&gt;It is possible.&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Q2.&amp;nbsp;You can refer to&amp;nbsp;&lt;span&gt;our&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/NordicSemiconductor/Android-BLE-Library"&gt;Android BLE Library&lt;/a&gt;&lt;span&gt;&amp;nbsp;which supports&amp;nbsp;bi-directional communication. For the device, you can refer to nRF5 SDK&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ble_sdk_app_multirole_lesc.html"&gt;LE Secure Connections Multirole Example&lt;/a&gt;&amp;nbsp;which&amp;nbsp;can act either as a Peripheral or as a Central.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Q3. Yes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>