<?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>Differentiating BLE connection types</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59091/differentiating-ble-connection-types</link><description>Hi, I am trying to implement an example that support multiple peripherals (HRS &amp;amp; UART). When I get a connection (from either) I get the BLE_GAP_EVT_CONNECTED. How can I differentiate who I am getting connected to ? (HRS or UART). I can see the address</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 16 Mar 2020 12:46:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59091/differentiating-ble-connection-types" /><item><title>RE: Differentiating BLE connection types</title><link>https://devzone.nordicsemi.com/thread/240001?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2020 12:46:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c29e830-41ea-4ccc-b8ef-767074d7ac0e</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Okay, thank you for clarifying. It is possible to have multiple services like you&amp;#39;re describing. Either to have both services available all the time, but in that case, both central devices will have access to both services.&lt;/p&gt;
&lt;p&gt;Alternatively, if you only want Machine A to be able to use UART and Machine B only should be able to use the HRS service, you can change the service UUIDs that you put into the advertising packet between disconnections.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Differentiating BLE connection types</title><link>https://devzone.nordicsemi.com/thread/239932?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2020 10:05:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f05f02b7-6703-4ab4-971e-306d6ea9674b</guid><dc:creator>marcag</dc:creator><description>&lt;p&gt;Thanks Simon.&lt;/p&gt;
&lt;p&gt;I will not be doing UART and HRS on the same connection. Machine A will make a connection to my peripheral using UART and send/receive data in both directions. Machine B will make a connection to my peripheral and receive HR measurements. So my app can&amp;#39;t tell what connections to send HR measurements and which is used for UART communications.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Differentiating BLE connection types</title><link>https://devzone.nordicsemi.com/thread/239918?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2020 09:27:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:852b76fe-be06-4d07-aab9-134dc4489ad4</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The HRS and UART are services that can be implemented to be in the same connection. Do you really want to make your peripheral device connect to a central with only one of the services enabled at a time, or do you want the HRS and UART to be enabled in the same connection?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please take a look at our&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-services-a-beginners-tutorial"&gt; BLE service tutorial&lt;/a&gt;&amp;nbsp;to see how to implement services in your application, as I assume that you want to use the UART to print the values from HRS to a GUI (graphical user interface) to be able to see the HRS values.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Differentiating BLE connection types</title><link>https://devzone.nordicsemi.com/thread/239852?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2020 00:01:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:889500ca-3797-4923-81e3-b2b813982f72</guid><dc:creator>marcag</dc:creator><description>&lt;p&gt;I have experimented with all kinds of discovery with the connection handle using Gatt Client functions. They all &amp;quot;work&amp;quot; but I am still not figuring what to use to differentiate connections.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>