<?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>NRF52 central connect to peripheral by MAC address</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87532/nrf52-central-connect-to-peripheral-by-mac-address</link><description>Hi, 
 is it possible for a central device to connect to a peripheral device directly (without using nrf_ble_scan_init( ), nrf_ble_scan_filter_set( ), nrf_ble_scan_filters_enable( ), whitelist, etc) if the MAC address of the peripheral is known in advance</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 May 2022 11:51:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87532/nrf52-central-connect-to-peripheral-by-mac-address" /><item><title>RE: NRF52 central connect to peripheral by MAC address</title><link>https://devzone.nordicsemi.com/thread/366216?ContentTypeID=1</link><pubDate>Wed, 04 May 2022 11:51:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de8785a7-fb95-4170-95c9-3d194e4d4b7c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Lubomir,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;You can use &lt;span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/bluetooth/connection_mgmt.html#c.bt_conn_le_create"&gt;bt_conn_le_create&lt;/a&gt;() to establish connection if you don&amp;#39;t want to scan&amp;nbsp; then connect&lt;/span&gt;, I have a blog that briefly talk about that &lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/building-a-ble-application-on-ncs-sdk---contrasting-to-softdevice-based-ble-applications---part-2-central-role#mcetoc_1f4ua7m2t0"&gt;here.&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 central connect to peripheral by MAC address</title><link>https://devzone.nordicsemi.com/thread/366045?ContentTypeID=1</link><pubDate>Tue, 03 May 2022 15:24:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed6a8cf4-5f52-46cc-9dba-0c0f5a007c89</guid><dc:creator>L.B.</dc:creator><description>&lt;p&gt;Yes, I could also do that, but my question is more like - &amp;quot;is there an API function that does that&amp;quot;. Currently I have to scan before I can connect, but I want to try ONLY to connect, IF possible ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 central connect to peripheral by MAC address</title><link>https://devzone.nordicsemi.com/thread/366028?ContentTypeID=1</link><pubDate>Tue, 03 May 2022 14:32:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd9d2732-b11e-4540-a935-5ee6f88cde95</guid><dc:creator>Juliusc</dc:creator><description>&lt;p&gt;I have done this by putting the MAC address into the manuf_data struct and let my mobile device search for this specific parameter.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;  ble_gap_addr_t ble_addr;
  sd_ble_gap_addr_get(&amp;amp;ble_addr);
  
    ble_advdata_manuf_data_t                  manuf_data; //Variable to hold manufacturer specific data
  uint8_t data[]                            = {NRF_FICR-&amp;gt;DEVICEADDR[0]&amp;gt;&amp;gt;8, NRF_FICR-&amp;gt;DEVICEADDR[0]}; //data to advertise (put as much of the MAC address as you want)
  manuf_data.company_identifier             = 0x0000; //Nordics company ID
  manuf_data.data.p_data                    = data;
  manuf_data.data.size                      = sizeof(uint16_t);
  init.srdata.p_manuf_specific_data = &amp;amp;manuf_data;
 &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I can in turn find this data e.g. in the LightBlue App by connecting to the device and opening the ade data tab.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>