<?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>connecting the peripherals using mac address by central</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54989/connecting-the-peripherals-using-mac-address-by-central</link><description>Hi.. i am using nRF52832 ... 15.2 sdk Version. i&amp;#39;m trying to communicate between a central device and a peripheral.so if multiple peripherals are present and all of their mac id is known.how can i select a particular peripheral to connect by using central</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Nov 2019 12:47:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54989/connecting-the-peripherals-using-mac-address-by-central" /><item><title>RE: connecting the peripherals using mac address by central</title><link>https://devzone.nordicsemi.com/thread/222813?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2019 12:47:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ba9d265-5785-479c-a671-508d5f3e8f8f</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Define &amp;quot;DEBUG&amp;quot; in your preprocessor defines. Then it should print what nrf_ble_scan_filter_set() returns if it doesn&amp;#39;t return NRF_SUCCESS. What does it return?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: connecting the peripherals using mac address by central</title><link>https://devzone.nordicsemi.com/thread/222805?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2019 12:39:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:079cd190-1943-482d-8182-ebfdac5bad84</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;&lt;span&gt;Thankyou even though i am getting fatal error .I checked by breakpoint ,in this line i am getting fatal error ,I&amp;nbsp; think i need to modify or configure&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;err_code = nrf_ble_scan_filter_set(&amp;amp;m_scan, SCAN_ADDR_FILTER, my_addr);&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: connecting the peripherals using mac address by central</title><link>https://devzone.nordicsemi.com/thread/222785?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2019 12:01:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25285392-347f-4840-9754-e7f09df277db</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Look at the description of &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v16.0.0%2Fgroup__nrf__ble__scan.html&amp;amp;anchor=ga56c5cf1561dcfbc3d9197c8b0941d3ad" rel="noopener noreferrer" target="_blank"&gt;nrf_ble_scan_filter_set()&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I believe you want to call:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;err_code = nrf_ble_scan_filter_set(&amp;amp;m_scan, SCAN_ADDR_FILTER, my_addr);
APP_ERROR_CHECK;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Where my_addr is:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;m_addr[6] = {0xDF, 0xEF, 0xCD, 0x56, 0x78, 0xFD};&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: connecting the peripherals using mac address by central</title><link>https://devzone.nordicsemi.com/thread/222780?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2019 11:50:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89a95c74-7e1e-4b41-b93a-faefccfcd251</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;I tried ... i changed .. but i want to add my bluetooth mac address&amp;nbsp; (&lt;span&gt;DF:EF:CE:56:78:FD) This is the address i need to pass where should pass ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;  err_code = nrf_ble_scan_filter_set(&amp;amp;m_scan,  SCAN_ADDR_FILTER, m_target_address);
    APP_ERROR_CHECK(err_code);

    err_code = nrf_ble_scan_filters_enable(&amp;amp;m_scan, NRF_BLE_SCAN_ADDR_FILTER , false);
    APP_ERROR_CHECK(err_code);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: connecting the peripherals using mac address by central</title><link>https://devzone.nordicsemi.com/thread/222770?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2019 11:29:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83a72df4-4dda-4554-b51c-461129462480</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Look at any of the central examples from the SDK. E.g. The ble_app_uart_c will filter on UUID in the advertising packets.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you look in sdk_config.h of this example, you can try to set&amp;nbsp;NRF_BLE_SCAN_UUID_CNT to 0, and set&amp;nbsp;NRF_BLE_SCAN_ADDRESS_CNT to 1.&lt;/p&gt;
&lt;p&gt;Then, in scan_init() in main.c, you need to change&amp;nbsp;&lt;/p&gt;
&lt;p&gt;nrf_ble_scan_filter_set(&amp;amp;m_scan, SCAN_UUID_FILTER, &amp;amp;m_nus_uuid);&lt;/p&gt;
&lt;p&gt;to use the address instead of the UUID.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>