<?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>How can the Peripheral connect with Central only by using directed Broadcast</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63909/how-can-the-peripheral-connect-with-central-only-by-using-directed-broadcast</link><description>Hi 
 I&amp;#39;m using SKD16.0.0 and S132, and I want to realize that peripherals can only connect to a center with a known MAC address through directed advertising. How should I implement this? 
 
 
 Where the central MAC address is known. 
 The peripheral address</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Aug 2020 01:05:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63909/how-can-the-peripheral-connect-with-central-only-by-using-directed-broadcast" /><item><title>RE: How can the Peripheral connect with Central only by using directed Broadcast</title><link>https://devzone.nordicsemi.com/thread/263323?ContentTypeID=1</link><pubDate>Thu, 06 Aug 2020 01:05:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c13ac828-b1e9-4ec3-8ab5-02d462d04509</guid><dc:creator>Xphiting</dc:creator><description>&lt;p&gt;Thank you very much for your time and reply.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have found the direcetd advertising packet in the BLE_GAP_EVT_ADV_REPORT and have established the connection.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you again.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can the Peripheral connect with Central only by using directed Broadcast</title><link>https://devzone.nordicsemi.com/thread/263290?ContentTypeID=1</link><pubDate>Wed, 05 Aug 2020 15:26:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d10988bd-bf6e-4622-b299-719e48ca1bd6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Could post the code where you do scanning and connecting ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please try testing by doing this :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1. Just do normal advertising and check if your scanning parameter works. Meaning you can scan for the advertising packet when the advertising in normal advertising mode.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. Just do only scanning, not connecting, and check which advertising packets you receive.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;There is a chance that the address you input into the scan parameter was not correct (wrong endianess for example)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can the Peripheral connect with Central only by using directed Broadcast</title><link>https://devzone.nordicsemi.com/thread/263095?ContentTypeID=1</link><pubDate>Wed, 05 Aug 2020 03:12:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e8a4371-ea2a-4673-8b42-4d4aadde00f5</guid><dc:creator>Xphiting</dc:creator><description>&lt;p&gt;Hi&amp;nbsp; Hung Bui&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As shown in my sniffer, directed advertising&amp;nbsp;has already begun.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1596596787347v1.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Advertising Address and Initator Address are both correct.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But, no connection was established while using a normal scan on the central via using the NRF_BLE_SCAN_ADDR_FILTER.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can the Peripheral connect with Central only by using directed Broadcast</title><link>https://devzone.nordicsemi.com/thread/263005?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2020 12:47:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61fbd46d-f4fd-4a3a-a09f-1c096846b3d8</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Xft,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry for late response.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can just do scanning normally. Directed advertising packet is similar to normal connectable advertising packet with only 1 bit difference and the interval is shorter. Have look here:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/41407/nrf51-scan-for-directed-advertising"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/41407/nrf51-scan-for-directed-advertising&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can the Peripheral connect with Central only by using directed Broadcast</title><link>https://devzone.nordicsemi.com/thread/262084?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2020 03:21:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62d50b3c-3b9b-4c13-83b6-541e8c57bfd5</guid><dc:creator>Xphiting</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have configured the peripheral to broadcast directionally. How do I configure scanning in the&amp;nbsp;central?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can the Peripheral connect with Central only by using directed Broadcast</title><link>https://devzone.nordicsemi.com/thread/261202?ContentTypeID=1</link><pubDate>Wed, 22 Jul 2020 13:07:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f59ac2d-9a14-4865-8118-e4a6612dfc94</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Please study the ble_app_mouse example and get familiar with our APIs.&amp;nbsp;&lt;br /&gt;I wouldn&amp;#39;t suggest you to go straight into advanced feature without basic knowledge about the softdevice and the libraries.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can the Peripheral connect with Central only by using directed Broadcast</title><link>https://devzone.nordicsemi.com/thread/261099?ContentTypeID=1</link><pubDate>Wed, 22 Jul 2020 03:01:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e87afa0a-948b-47ae-bb40-1f2120718ffb</guid><dc:creator>Xphiting</dc:creator><description>&lt;p&gt;&lt;span&gt;&amp;nbsp;I am a newbie in BLE.Could you please provide a more detailed procedure for configuring directed advertising.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can the Peripheral connect with Central only by using directed Broadcast</title><link>https://devzone.nordicsemi.com/thread/261012?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 13:48:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95ae14bc-c937-4362-8cbb-640ab32fb267</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;If you already have the address, you can fill that in the&amp;nbsp;p_peer_addr field in&amp;nbsp;ble_gap_adv_params_t struct. And then start directed advertising. Please study the ble_advertising.c library we have.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can the Peripheral connect with Central only by using directed Broadcast</title><link>https://devzone.nordicsemi.com/thread/260899?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 01:18:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:141e9cb5-ad43-4bbb-805d-077973f81117</guid><dc:creator>Xphiting</dc:creator><description>&lt;p&gt;&lt;span class="transSent"&gt;Hi Hung Bui,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="transSent"&gt;Thank you for your answer, but it does not fulfill my idea.&lt;/span&gt;&lt;span class="transSent"&gt;Because I already knew the MAC address of the central in advance, I wanted to communicate with the specified central from the beginning via directed advertising, rather than using directed advertising after the disconnect.&lt;/span&gt;&lt;span class="transSent"&gt;Can you provide a solution to this idea?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can the Peripheral connect with Central only by using directed Broadcast</title><link>https://devzone.nordicsemi.com/thread/260850?ContentTypeID=1</link><pubDate>Mon, 20 Jul 2020 15:00:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e566e6a-bb01-4e2b-903d-cd2cc959b9db</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi XFT,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- You can get the MAC address of a central device when you connect to the central device (BLE_GAP_EVT_CONNECTED event). This only applied for central device that use static address.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- Please have a look at our ble_app_mouse example. In the example we use directed advertising after a disconnection. In the example we use bonding but you can think of skipping that if you don&amp;#39;t plan to use bonding. When configuring the advertising set, you need to select the&amp;nbsp;adv_params.properties.type =&amp;nbsp;BLE_GAP_ADV_TYPE_CONNECTABLE_NONSCANNABLE_DIRECTED or&amp;nbsp;BLE_GAP_ADV_TYPE_CONNECTABLE_NONSCANNABLE_DIRECTED_HIGH_DUTY_CYCLE&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>