<?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>Modifying BLE_APP_UART central example (pair certain address/device name)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46037/modifying-ble_app_uart-central-example-pair-certain-address-device-name</link><description>Hi, I&amp;#39;m using the nRF52 SDK 15.3.0&amp;#39;s BLE_APP_UART central/peripheral examples with my PCA10040 boards. 
 Can I ask about the central example, please? 
 0. Currently, I think the central example pairs with the nearby peripheral if it was scanned. 
 What</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Apr 2019 09:23:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46037/modifying-ble_app_uart-central-example-pair-certain-address-device-name" /><item><title>RE: Modifying BLE_APP_UART central example (pair certain address/device name)</title><link>https://devzone.nordicsemi.com/thread/182552?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2019 09:23:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2e13363-7d6c-4add-9b88-7e655d5e415c</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Should be possible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modifying BLE_APP_UART central example (pair certain address/device name)</title><link>https://devzone.nordicsemi.com/thread/181925?ContentTypeID=1</link><pubDate>Sat, 13 Apr 2019 05:29:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b82ef7b-de8a-45ca-a599-6169b7fc3276</guid><dc:creator>Matthew K</dc:creator><description>&lt;p&gt;Wow, can I ask&amp;nbsp;one last thing before closing?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.1.1/msc_inline_mscgraph_12.png" /&gt;&lt;/p&gt;
&lt;p&gt;Is it possible to send/receive NUS data without pairing/bonding? Only the connection is required, without extra steps (BLE_PARAM_REQUEST, security settings, etc)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modifying BLE_APP_UART central example (pair certain address/device name)</title><link>https://devzone.nordicsemi.com/thread/181864?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2019 13:19:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79b5d975-fdad-48c2-9ab6-e785ce2f6a95</guid><dc:creator>Hakon</dc:creator><description>[quote user="MatthewKYEO"]the central requests a connection[/quote]
&lt;p&gt;&amp;nbsp;Yes, and that&amp;#39;s all. There is no pairing or bonding in the NUS example. Pairing and bonding is handled by the peer manager module, and it isn&amp;#39;t included in the NUS examples.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="MatthewKYEO"]This thread explains and gives an example of what you&amp;#39;ve mentioned right?[/quote]
&lt;p&gt;&amp;nbsp;Yes, definitely looks like it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modifying BLE_APP_UART central example (pair certain address/device name)</title><link>https://devzone.nordicsemi.com/thread/181746?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2019 05:53:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2316a84-e4bb-4ed9-a8d9-440a0db9ac56</guid><dc:creator>Matthew K</dc:creator><description>&lt;p&gt;Thanks, Hakon.&lt;/p&gt;
&lt;p&gt;0. May I ask about&lt;/p&gt;
[quote userid="73166" url="~/f/nordic-q-a/46037/modifying-ble_app_uart-central-example-pair-certain-address-device-name/181602"]&amp;nbsp;The ble_app_uart_central example doesn&amp;#39;t support pairing by default.[/quote]
&lt;p&gt;As far as I understood from the NUS central example, the central requests a connection to the scanned nearby peripheral which is advertising an NUS&amp;nbsp;UUID, right? After that, I thought the NUS peripheral gets either paired/bonded to the central, isn&amp;#39;t it?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1. Thanks for mentioning&lt;/p&gt;
[quote userid="73166" url="~/f/nordic-q-a/46037/modifying-ble_app_uart-central-example-pair-certain-address-device-name/181602"]you can use &lt;a title="Function for enabling filtering." href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/group__nrf__ble__scan.html#ga03a7e546b8c853dcca70a2dc259904d7"&gt;nrf_ble_scan_filters_enable&lt;/a&gt;() and set the filter with nrf_ble_scan_filter_set() with &lt;em&gt;SCAN_ADDR_FILTER&lt;/em&gt; as type and the appropriate address as p_data.[/quote]
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/40686/where-to-change-name-for-the-scanning-peripheral-name-in-the-uart-central-code"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/40686/where-to-change-name-for-the-scanning-peripheral-name-in-the-uart-central-code&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This thread explains and gives an example of what you&amp;#39;ve mentioned right? I&amp;#39;ll try after I hear your words. Thanks!&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: Modifying BLE_APP_UART central example (pair certain address/device name)</title><link>https://devzone.nordicsemi.com/thread/181602?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2019 12:41:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:180f64e1-d387-4150-8088-f10eaafaf814</guid><dc:creator>Hakon</dc:creator><description>[quote user=""]What is the condition to get paired?&amp;nbsp; The peripheral advertising the NUS(Nordic UART Service) in the ADV packet? Or the device name?[/quote]
&lt;p&gt;&amp;nbsp;The ble_app_uart_central example doesn&amp;#39;t support pairing by default.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]I can get the Bluetooth address (MAC address) of my PCA10040 peripheral, right? Which SoftDevice 132 function can give me the address?[/quote]
&lt;p&gt;&amp;nbsp;sd_ble_gap_addr_get()&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]If I know the address, can I set my central to pair with that address, only?[/quote]
&lt;p&gt;&amp;nbsp;Yes, you can use &lt;a title="Function for enabling filtering." href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/group__nrf__ble__scan.html#ga03a7e546b8c853dcca70a2dc259904d7"&gt;nrf_ble_scan_filters_enable&lt;/a&gt;() and set the filter with nrf_ble_scan_filter_set() with &lt;em&gt;SCAN_ADDR_FILTER&lt;/em&gt; as type and the appropriate address as p_data.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Also, can I change the central example to pair with the device name that has &amp;quot;MY_UART&amp;quot;, or something else?[/quote]
&lt;p&gt;&amp;nbsp;Yes, I believe you need to use &lt;em&gt;SCAN_NAME_FILTER&lt;/em&gt;&amp;nbsp; then, otherwise same as above.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>