<?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>Direct advertising to the host by its Bluetooth Device Address (Windows)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74162/direct-advertising-to-the-host-by-its-bluetooth-device-address-windows</link><description>Hi, 
 Just would like to know is it possible to proceed auto pairing by restore the MAC address of host? 
 The current idea is using direct advertising to speed up the pairing process with the BT address. 
 Meanwhile, the host would also restore the device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Apr 2021 08:44:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74162/direct-advertising-to-the-host-by-its-bluetooth-device-address-windows" /><item><title>RE: Direct advertising to the host by its Bluetooth Device Address (Windows)</title><link>https://devzone.nordicsemi.com/thread/306013?ContentTypeID=1</link><pubDate>Wed, 21 Apr 2021 08:44:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73b90e6f-ad1e-4403-9638-f06dad66d015</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Wedy,&lt;/p&gt;
[quote user="Wedy"]my question is whether the bonded info is must required for direct advertising?[/quote]
&lt;p&gt;In a normal use case, direct advertising only makes sense when bonded, since then you know which device you should&amp;nbsp;advertise directed to. Also, please note that directed advertising is only suitable for some special occasions, such as HID mouse and keyboards where you want very fast direct advertisement after a connection loss in order to seamlessly reconnect. You may not see so easily how this is done in the HID example since it uses the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_ble_advertising.html"&gt;advertising module&lt;/a&gt;. Essentially the advertising module starts with the most aggressive and most restrictive advertising mode and goes down the list, subsequently using each mode until it&amp;#39;s timeout as long as it is enabled. You can most easily see this by looking at the implementation of&amp;nbsp;adv_mode_next_avail_get() in&amp;nbsp;components\ble\ble_advertising\ble_advertising.c.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you don&amp;#39;t plan to bond but still want to have whitelist. You have to manage the whitelist manually.&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/blogs/782/bluetooth-smart-and-the-nordics-softdevices-part-1/"&gt;Here&lt;/a&gt;&lt;span&gt;&amp;nbsp;you can find an example of how to do it manually (this is for whitelist with advertising)&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Wedy"]are you saying that I just need to add the MAC address into my whitelist then it could proceed auto pairing to connect with the PC it never paired before.[/quote]
&lt;p&gt;&amp;nbsp;No, I don&amp;#39;t think so because the central device doesn&amp;#39;t have the pair info.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct advertising to the host by its Bluetooth Device Address (Windows)</title><link>https://devzone.nordicsemi.com/thread/305566?ContentTypeID=1</link><pubDate>Mon, 19 Apr 2021 13:32:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c19c105e-c59c-4e02-9e62-9f7152f1ee88</guid><dc:creator>CY</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;I understood your explain and indeed I also use the sample for development.&lt;/p&gt;
&lt;p&gt;However, my question is whether the bonded info is must required for direct advertising?&lt;/p&gt;
&lt;p&gt;And are you saying that I just need to add the MAC address into my whitelist then it could proceed auto pairing to connect with the PC it never paired before.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Wedy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct advertising to the host by its Bluetooth Device Address (Windows)</title><link>https://devzone.nordicsemi.com/thread/305527?ContentTypeID=1</link><pubDate>Mon, 19 Apr 2021 12:20:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc5a2de8-80b4-44e6-a249-6b3ea4d026ea</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Wedy,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You would need to use &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_pm_functionality.html?cp=7_1_3_2_7_1_2#lib_pm_functionality_whitelist"&gt;bonding and whitelisting&lt;/a&gt; so that the devices will&amp;nbsp;connect to the device which&amp;nbsp;&lt;span&gt;MAC address is in&amp;nbsp;&lt;/span&gt;the whitelist.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can refer to our example &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ble_sdk_app_hids_mouse.html"&gt;HID Mouse Application&lt;/a&gt; (or &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ble_sdk_app_hids_keyboard.html"&gt;HID Keyboard Application&lt;/a&gt;). In the example, after bonding we will do directed advertising and after that will do whitelisting advertising,&amp;nbsp; after the whitelist advertising timeout, it will advertise in normal mode.&amp;nbsp;&lt;br /&gt;To be able to make sure there will be no other device to connect to your device, you can disable the timeout to normal mode. Only advertise in whitelisting mode.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>