<?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>UART Service Pairing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60894/uart-service-pairing</link><description>Hi there, 
 I&amp;#39;m planning and hoping to use the nRF52840 (in module form) for an upcoming medical device design. 
 This will need to interface to a PC/Mac/Linux to send specific medical data, as well as generic settings/battery percentage/other stuff,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 May 2020 00:11:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60894/uart-service-pairing" /><item><title>RE: UART Service Pairing</title><link>https://devzone.nordicsemi.com/thread/248568?ContentTypeID=1</link><pubDate>Thu, 07 May 2020 00:11:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea021f0f-816b-445a-a581-50afe842ec25</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Sorry about the delay here. And thank you for the kind words!&lt;/p&gt;
&lt;p&gt;1.&lt;/p&gt;
&lt;p&gt;Yes, you are correct. The ble_app_uart_c example scans for all nearby devices that are advertising, but will only connect to those with the NUS UUID.&lt;/p&gt;
&lt;p&gt;From the ble_app_uart_c example: &lt;br /&gt;Main.c - line:191&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; err_code = nrf_ble_scan_filter_set(&amp;amp;m_scan, SCAN_UUID_FILTER, &amp;amp;m_nus_uuid);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; APP_ERROR_CHECK(err_code);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; err_code = nrf_ble_scan_filters_enable(&amp;amp;m_scan, NRF_BLE_SCAN_UUID_FILTER, false);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;You can see that the app will set and enable the UUID filter.&lt;/p&gt;
&lt;p&gt;2.&lt;/p&gt;
&lt;p&gt;Yes, you can also connect using the address as a scan filter. &lt;br /&gt;You can change this by using the SCAN_ADDR_FILTER to filter for addresses instead.&lt;br /&gt;Note that you can also change the UUID to avoid the problem you describe, but make sure the UUID match in both the peripheral and the central.&lt;/p&gt;
&lt;p&gt;If you have any further questions, let me know! &lt;br /&gt;Best regards, &lt;br /&gt;Joakim Jakobsen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>