<?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 know which Pheripheral typev is connected in BLE_GAP_EVT_CONNECTED event
Manage two different peripheral type on one central //</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40480/how-to-know-which-pheripheral-typev-is-connected-in-ble_gap_evt_connected-event-manage-two-different-peripheral-type-on-one-central</link><description>Hello, 
 I have use the BLE Multi-link Example as a central. For the priripheral I have use BLE Blinky Application and UART/Serial Port Emulation over BLE ( &amp;lt;InstallFolder&amp;gt;\examples\ble_peripheral\ble_app_uart). 
 The need is to have the possibility for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Nov 2018 13:35:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40480/how-to-know-which-pheripheral-typev-is-connected-in-ble_gap_evt_connected-event-manage-two-different-peripheral-type-on-one-central" /><item><title>RE: How to know which Pheripheral typev is connected in BLE_GAP_EVT_CONNECTED event
Manage two different peripheral type on one central //</title><link>https://devzone.nordicsemi.com/thread/158430?ContentTypeID=1</link><pubDate>Wed, 21 Nov 2018 13:35:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:090ec8b4-83cf-44b3-be8c-f40d79b9dcfa</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;1. Have you done any pairing or similar? any chance you could have a whitelist?&lt;/p&gt;
&lt;p&gt;2. I would recommend scanning first, then connect. Regardless you should check the information in the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.1.0/structble__gap__evt__connected__t.html"&gt;struct returned by the connected event&lt;/a&gt;. And the struct returned by the scan function &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.1.0/structble__gap__evt__adv__report__t.html"&gt;ble_gap_evt_adv_t&lt;/a&gt; to see what options you have to identify the devices.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to know which Pheripheral typev is connected in BLE_GAP_EVT_CONNECTED event
Manage two different peripheral type on one central //</title><link>https://devzone.nordicsemi.com/thread/157548?ContentTypeID=1</link><pubDate>Thu, 15 Nov 2018 14:29:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:150e565e-2ece-4fb8-8263-850f36de834f</guid><dc:creator>Stephane</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Question 1.&lt;/strong&gt; I use what is define by nordic :&lt;/p&gt;
&lt;p&gt;For peripheral, in &amp;nbsp;BLE_NUS.C (line 64)&amp;nbsp;:&lt;/p&gt;
&lt;p&gt;#define NUS_BASE_UUID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {{0x9E, 0xCA, 0xDC, 0x24, 0x0E, 0xE5, 0xA9, 0xE0, 0x93, 0xF3, 0xA3, 0xB5, 0x00, 0x00, 0x40, 0x6E}} /**&amp;lt; Used vendor specific UUID. */&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For Central, in ble_nus_c.h (line 101)&lt;/p&gt;
&lt;p&gt;#define NUS_BASE_UUID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {{0x9E, 0xCA, 0xDC, 0x24, 0x0E, 0xE5, 0xA9, 0xE0, 0x93, 0xF3, 0xA3, 0xB5, 0x00, 0x00, 0x40, 0x6E}} /**&amp;lt; Used vendor specific UUID. */&lt;/p&gt;
&lt;p&gt;A other idea ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Question 2 :&lt;/p&gt;
&lt;p&gt;No I don&amp;#39;t scan for a device first. One type of device or the other could be power supply first!!&lt;/p&gt;
&lt;p&gt;if I use the sd_ble_gap_connect() fonction to scan :&lt;/p&gt;
&lt;p&gt;- this fonction is not call today in the main&lt;/p&gt;
&lt;p&gt;- I have to replace the &amp;nbsp;scan_start() with this function ?&lt;/p&gt;
&lt;p&gt;- you speak about the &amp;#39;addresse of the device&amp;#39; : How can I know the address?&lt;/p&gt;
&lt;p&gt;In the ble_evt_handler() called with the event BLE_GAP_EVT_CONNECTED, the only information to know the device is also the peer_addr.addr ?&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;Stephane&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to know which Pheripheral typev is connected in BLE_GAP_EVT_CONNECTED event
Manage two different peripheral type on one central //</title><link>https://devzone.nordicsemi.com/thread/157491?ContentTypeID=1</link><pubDate>Thu, 15 Nov 2018 12:23:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78092827-2f36-456e-a124-6bf240136b28</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;1. Are you sure the filter matches the UUID advertised by the peripheral?&lt;/p&gt;
&lt;p&gt;2. I assume you scan for a device first. Then you call sd_ble_gap_connect and provide the address of the device you want to connect to. So at this stage you have already decided which device you should connect to. And you can check this address against the address returned in the BLE_GAP_EVT_CONNECTED event. You can also do a service discovery to see what services the device has. and also check the adv data returned in the connected event.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>