<?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>Connect to the specified phone</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14558/connect-to-the-specified-phone</link><description>I already know the phone&amp;#39;s Bluetooth address, I want to write the address directly into the device, the device - directed broadcast, how do I put the address in the program?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 18 Jun 2016 03:04:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14558/connect-to-the-specified-phone" /><item><title>RE: Connect to the specified phone</title><link>https://devzone.nordicsemi.com/thread/55592?ContentTypeID=1</link><pubDate>Sat, 18 Jun 2016 03:04:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a23c2d37-4d42-4e74-8844-926ebb59838a</guid><dc:creator>Sriun</dc:creator><description>&lt;p&gt;Ok,thank you very much.
SmartRF shown on the Packet Sniffer is a directional broadcasting,However, the mobile phone to the device cannot be found.Address of the bluetooth settings are correct.Excuse me, Is this what causes it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to the specified phone</title><link>https://devzone.nordicsemi.com/thread/55591?ContentTypeID=1</link><pubDate>Fri, 17 Jun 2016 14:10:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73c0f7b1-93f1-4b1c-854d-0973d092b696</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;You have to enable the directed advertisement and set the interval and timeout for directed slow advertisement. Add this to &lt;code&gt;advertising_init()&lt;/code&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;options.ble_adv_directed_enabled = BLE_ADV_DIRECTED_ENABLED;

options.ble_adv_directed_slow_enabled = BLE_ADV_DIRECTED_SLOW_ENABLED;
options.ble_adv_directed_slow_interval = APP_ADV_DIRECTED_INTERVAL;
options.ble_adv_directed_slow_timeout = APP_ADV_DIRECTED_TIMEOUT_IN_SECONDS;
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to the specified phone</title><link>https://devzone.nordicsemi.com/thread/55590?ContentTypeID=1</link><pubDate>Fri, 17 Jun 2016 12:02:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dea28551-bcc5-459c-a087-19a8c56c4c5f</guid><dc:creator>Sriun</dc:creator><description>&lt;p&gt;I set up err_code = ble_advertising_peer_addr_reply ( &amp;amp;peer_address ) ; on_adv_evt ( ble_adv_evt_t ble_adv_evt ), but ,other phones can still be linked to devices, you can write a routine to help me?Thank you very much&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect to the specified phone</title><link>https://devzone.nordicsemi.com/thread/55589?ContentTypeID=1</link><pubDate>Fri, 17 Jun 2016 11:27:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdf69576-d467-443e-b161-f0811414a5a1</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;See &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/lib_ble_advertising.html?cp=5_0_0_3_1_1_3#ble_adv_msc"&gt;this&lt;/a&gt; message sequence chart.&lt;/p&gt;
&lt;p&gt;When you start directed advertisement you will get a BLE_ADV_EVT_PEER_ADDR_REQUEST event. There you will have to call &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk51.v9.0.0/group__ble__sdk__lib__advertising.html#gaebac038a287d71d9ddca0c161aa742ae"&gt;ble_advertising_peer_addr_reply(ble_gap_addr_t * p_peer_addr)&lt;/a&gt; with the peer address.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>