<?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>multilink uart peripheral  - how to choose which to connect</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66432/multilink-uart-peripheral---how-to-choose-which-to-connect</link><description>I am using an example from Nordic that enables a central to connect to several peripherals via UART. The connection is automatic (the key is if they all share the same NRF_UART UUID). There is an indication of which peripheral was connected, but there</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 02 Oct 2020 13:28:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66432/multilink-uart-peripheral---how-to-choose-which-to-connect" /><item><title>RE: multilink uart peripheral  - how to choose which to connect</title><link>https://devzone.nordicsemi.com/thread/272751?ContentTypeID=1</link><pubDate>Fri, 02 Oct 2020 13:28:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5bb6543-1f32-43ff-a256-3fd931b560a8</guid><dc:creator>Jared</dc:creator><description>[quote user="Avi"]Regarding sending the messages via UART: currently the LOG output is via UART and I can get the output if I connect it to external MCU[/quote]
&lt;p&gt;&amp;nbsp;Yes, you can use&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/group__nrf__log.html#ga4a97416f7949911587dceaae3284491f"&gt;NRF_LOG_RAW_HEXDUMP_INFO&lt;/a&gt;&amp;nbsp;to only send the raw data.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multilink uart peripheral  - how to choose which to connect</title><link>https://devzone.nordicsemi.com/thread/272464?ContentTypeID=1</link><pubDate>Thu, 01 Oct 2020 09:33:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f50d38f-741e-4552-bf2c-082e78cd6daf</guid><dc:creator>Avi</dc:creator><description>&lt;p&gt;Regarding sending the messages via UART: currently the LOG output is via UART and I can get the output if I connect it to external MCU. Is it the same as adding UART entity into the code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multilink uart peripheral  - how to choose which to connect</title><link>https://devzone.nordicsemi.com/thread/272177?ContentTypeID=1</link><pubDate>Wed, 30 Sep 2020 07:02:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edb42295-d9c7-4ea0-9b37-9e438b505eb8</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, this is possible just set &lt;a href="https://github.com/NordicPlayground/nrf52-ble-app-uart-c-multilink/blob/f71243931503f85fcc55eaed31a9767b1aae431e/main.c#L186"&gt;this line&lt;/a&gt; to false, and use the SD API function call &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.2.0/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html?cp=4_7_3_1_2_1_3_14#gacca0e56084c7b3ed832b1bfa3911b7fe"&gt;sd_ble_gap_connect()&lt;/a&gt;&amp;nbsp;to connect to the peer.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multilink uart peripheral  - how to choose which to connect</title><link>https://devzone.nordicsemi.com/thread/272129?ContentTypeID=1</link><pubDate>Tue, 29 Sep 2020 16:42:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a633e84-0744-4762-9942-aee965de64ca</guid><dc:creator>Avi</dc:creator><description>&lt;p&gt;Thanks - the disconnection indication is working&lt;/p&gt;
&lt;p&gt;Instead of the automatic connection after scan, is it possible to connect &amp;quot;manually&amp;quot; with one of the MACID that was detected? (i.e. suppose I have a list of MACIDs which I write to the device via UART)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multilink uart peripheral  - how to choose which to connect</title><link>https://devzone.nordicsemi.com/thread/272060?ContentTypeID=1</link><pubDate>Tue, 29 Sep 2020 12:30:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:773300c9-bd87-4485-b7d6-ad3caf8c58e3</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This &lt;a href="https://github.com/NordicPlayground/nrf52-ble-app-uart-c-multilink/blob/master/main.c"&gt;example &lt;/a&gt;already use the logger with the UART as backend and &lt;a href="https://github.com/NordicPlayground/nrf52-ble-app-uart-c-multilink/blob/f71243931503f85fcc55eaed31a9767b1aae431e/main.c#L419"&gt;prints out what peripheral(connection handle) that disconnected and what reason&lt;/a&gt;. If you want to use the UART peripheral to send this information instead for example to a external MCU etc then you would&amp;nbsp; have to first disable the logging over UART, and then add the UART peripheral and driver to the project by for example merging the UART example.&amp;nbsp;&lt;/p&gt;
[quote user="Avi"]And prevent any peripheral to connect unless it is within the white list of the central[/quote]
&lt;p&gt;&amp;nbsp;Only a Central can send connection requests, not a peripheral. Which means that the Central decides which peripheral it wants to connect to. See &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/45034/scan-with-whitelist-vs-scan-filtering"&gt;this post&lt;/a&gt; regarding whitelist.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note that all examples on the Nordic-playground repository are un-supported and provided as is.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multilink uart peripheral  - how to choose which to connect</title><link>https://devzone.nordicsemi.com/thread/271826?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 13:57:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87e2a680-7789-4ef8-ab8a-9f1c6c0649d6</guid><dc:creator>Avi</dc:creator><description>&lt;p&gt;No, I am using&amp;nbsp;nrf52-ble-app-uart-c-multilink-master&lt;/p&gt;
&lt;p&gt;This example is in Github and not within the SDK.&lt;/p&gt;
&lt;p&gt;I am interested in getting information (via UART), which peripheral has been disconnected&lt;/p&gt;
&lt;p&gt;And prevent any peripheral to connect unless it is within the white list of the central&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multilink uart peripheral  - how to choose which to connect</title><link>https://devzone.nordicsemi.com/thread/271815?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 13:48:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:699d2618-2844-47f5-a26e-0bf3e4c0a774</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re referring to the ble_app_multilink_central example then it does write what links that is disconnected. It does this at during the DISCONNECTED event here:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;case BLE_GAP_EVT_DISCONNECTED:
        {
            NRF_LOG_INFO(&amp;quot;LBS central link 0x%x disconnected (reason: 0x%x)&amp;quot;,
                         p_gap_evt-&amp;gt;conn_handle,
                         p_gap_evt-&amp;gt;params.disconnected.reason);

            if (ble_conn_state_central_conn_count() == 0)
            {
                err_code = app_button_disable();
                APP_ERROR_CHECK(err_code);

                // Turn off the LED that indicates the connection.
                bsp_board_led_off(CENTRAL_CONNECTED_LED);
            }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;div&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6545.pastedimage1601300421731v2.png" alt=" " /&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;p&gt;The central will scan the area and list all the peripherals&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The central will have a white list (MACID) and connect to each peripheral that is within that list&lt;/p&gt;[/quote]
&lt;p&gt;&amp;nbsp;There is many threads on these topics on the forum, I suggest that you use the search function and see similar threads.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>