<?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>Is it possible to nRF52 to direct advertise without bonding?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91641/is-it-possible-to-nrf52-to-direct-advertise-without-bonding</link><description>Hi guys. I read this thread answered by Einar Thorsrud. devzone.nordicsemi.com/.../direct-advertising-example 
 &amp;quot;HID mouse example uses direct advertising, but only when it is bonded. In a normal use case, direct advertising only makes sense when bonded</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Nov 2022 07:58:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91641/is-it-possible-to-nrf52-to-direct-advertise-without-bonding" /><item><title>RE: Is it possible to nRF52 to direct advertise without bonding?</title><link>https://devzone.nordicsemi.com/thread/396123?ContentTypeID=1</link><pubDate>Thu, 17 Nov 2022 07:58:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3d925a3-325d-480c-b712-102840b5a13c</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Please &lt;a href="https://devzone.nordicsemi.com/support/add"&gt;make a new&amp;nbsp;thread&lt;/a&gt;&amp;nbsp;about this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to nRF52 to direct advertise without bonding?</title><link>https://devzone.nordicsemi.com/thread/395941?ContentTypeID=1</link><pubDate>Wed, 16 Nov 2022 10:28:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:127c9834-e76b-4427-889f-ca56246e4b54</guid><dc:creator>Anna6666</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/eith"&gt;Einar Thorsrud&lt;/a&gt;&amp;nbsp; I am using RF52840 as peripheral and central, and the peripheral do direct advertising, I can connect the peripheral with windows app Bluetooth LE Explorer successfully.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;But I can&amp;#39;t connect the peripheral (do direct advertising) with RF52840 central using correct target addr, passive scanning, any specail setting for my central?&lt;/p&gt;
&lt;p&gt;I am using the zephyr 3.1.99,&amp;nbsp;&lt;span&gt;RF52840&amp;nbsp;with the example central, and change the central to use public bt addr with updating the controller code.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks in advance!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to nRF52 to direct advertise without bonding?</title><link>https://devzone.nordicsemi.com/thread/385022?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2022 11:57:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a671b4a8-0719-420f-9448-04e70b69c163</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="MatthewKYEO"]&lt;p&gt;&lt;span&gt;I want to force the nRF52840 to direct advertise several minutes for experimental reasons (like capture more ADV_DIRECT_IND packets from the sniffer)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Will this be possible?&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Yes, you can do slow directed advertising indefinitely.&lt;/p&gt;
[quote user="MatthewKYEO"]&lt;blockquote&gt;&lt;div&gt;[Q] When the nRF52 Central is using the public address, is whitelist feature not needed because the nRF52 Peripheral doesn&amp;#39;t need to resolve the address?&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;/div&gt;
&lt;p&gt;&lt;span&gt;I want to check when whitelisting is mandatory for bonding and direct advertising.&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Whitelisting is never mandatory, but it is a method that prevents other centrals than those in the whitelist to connect. It is technically not relevant when using directed advertising, as in that case you advertise only to a specific peer.&lt;/p&gt;
&lt;p&gt;Note that in other cases, whitelisting cab be equally useful when using a resolvable random (privacy) address as other address types. The technical details are a bit different, as when using privacy, the IRK is what is used in the whitelist, and in other cases the address is whitelisted directly. But the result is the same (only whitelisted peers are allowed to connect).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to nRF52 to direct advertise without bonding?</title><link>https://devzone.nordicsemi.com/thread/384992?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2022 10:53:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb6cea55-4113-46b7-90dc-ff04b0d535ae</guid><dc:creator>Matthew K</dc:creator><description>&lt;p&gt;&lt;span&gt;Thank you so much! About my previous point:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I want to force the nRF52840 to direct advertise several minutes for experimental reasons (like capture more ADV_DIRECT_IND packets from the sniffer)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Will this be possible?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also, my whitelist question wasn&amp;#39;t answered:&lt;/span&gt;&lt;/p&gt;
[quote userid="26837" url="~/f/nordic-q-a/91641/is-it-possible-to-nrf52-to-direct-advertise-without-bonding/384847"][Q] When the nRF52 Central is using the public address, is whitelist feature not needed because the nRF52 Peripheral doesn&amp;#39;t need to resolve the address?[/quote]
&lt;p&gt;&lt;span&gt;I want to check when whitelisting is mandatory for bonding and direct advertising.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;After these, let&amp;#39;s close this ticket. Thank you!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to nRF52 to direct advertise without bonding?</title><link>https://devzone.nordicsemi.com/thread/384928?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2022 07:01:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc73b660-ff00-4438-a5a4-2f96575b2d42</guid><dc:creator>Einar Thorsrud</dc:creator><description>[quote user="MatthewKYEO"]Does this mean nRF52&amp;#39;s SoftDevice makes the direct advertising stop after 1.28 seconds?&lt;br /&gt;Or is this the user firmware&amp;#39;s job to stop it using the APP TIMER?[/quote]
&lt;p&gt;Both. The application specified the timeout, but the SoftDevice checks if the parameters are valid. If you try to use&amp;nbsp;high duty cycle directed advertising with a timeout larger than 1.28 seconds (BLE_GAP_ADV_TIMEOUT_HIGH_DUTY_MAX),&amp;nbsp;you will get an&amp;nbsp;NRF_ERROR_INVALID_PARAM error from the SoftDevice.&lt;/p&gt;
[quote user="MatthewKYEO"]Then how about two nRF52840 devices where both using public addresses?&lt;br /&gt;In this case, can the Peripheral nRF52840 do a direct advertising to the Central nRF52840, even though both devices never bonded?[/quote]
&lt;p&gt;Yes, in this case that will work without any problems.&lt;/p&gt;
[quote user="MatthewKYEO"][Q] When the nRF52 peripheral is doing the direct advertisng to the nRF52 Central, can other nearby central devices request connection to the nRF52 peripheral?&lt;br /&gt;In other words, can other central devices scan this nRF52 peripheral?[/quote]
&lt;p&gt;Other BLE devices shall ignore directed advertising packets that are not meant for themselves. They are sent on air though, so a sniffer or malicious device or similar will still be able to pick up the advertising, but it cannot connect.&lt;/p&gt;
[quote user="MatthewKYEO"][Q] Suppose both nRF52 Peripheral anc Central used their public address during bonding.&lt;br /&gt;If either nRF52 device starts advertising with a resolvable Bluetooth address, is the previous bonded data not usable since the address has changed?[/quote]
&lt;p&gt;The bond is still useful, as long as the devices exchanged IRKs during bonding. With this, the addresses can be resolved. You can see a simple explanation under&amp;nbsp;Privacy in BLE &lt;a href="https://novelbits.io/bluetooth-address-privacy-ble/"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to nRF52 to direct advertise without bonding?</title><link>https://devzone.nordicsemi.com/thread/384847?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2022 16:11:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1e5026a-2fa5-41fb-a7cc-da2344e90839</guid><dc:creator>Matthew K</dc:creator><description>&lt;p&gt;Thanks Einar!&lt;/p&gt;
[quote userid="7377" url="~/f/nordic-q-a/91641/is-it-possible-to-nrf52-to-direct-advertise-without-bonding/384565"]The specification dictates that this can be used for a maximum of 1.28 seconds (see page 2464 in the Bluetooth 5.3 core specification).[/quote]
&lt;p&gt;Does this mean nRF52&amp;#39;s SoftDevice makes the direct advertising stop after 1.28 seconds?&lt;br /&gt;Or is this the user firmware&amp;#39;s job to stop it using the APP TIMER?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m asking this so I want to force the nRF52840 to direct advertise several minutes for experimental reasons (like capture more ADV_DIRECT_IND packets from the sniffer)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="7377" url="~/f/nordic-q-a/91641/is-it-possible-to-nrf52-to-direct-advertise-without-bonding/384565"]If the central does &lt;em&gt;not&lt;/em&gt; use privacy / resolvable random address, then you can advertise directly to the device even without being bonded.[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Then how about two nRF52840 devices where both using public addresses?&lt;br /&gt;In this case, can the Peripheral nRF52840 do a direct advertising to the Central nRF52840, even though both devices never bonded?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;About the example using two nRF52840 boards, may I ask some follow-up questions:&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;[Q] When the nRF52 peripheral is doing the direct advertisng to the nRF52 Central, can other nearby central devices request connection to the nRF52 peripheral?&lt;br /&gt;In other words, can other central devices scan this nRF52 peripheral?&lt;/p&gt;
&lt;p&gt;I want the nRF52 Peripheral reject other devices&amp;#39; connection request, except the specific nRF52 Central, during the direct advertising.&lt;/p&gt;
&lt;p&gt;[Q] When the nRF52 Central is using the public address, is whitelist feature not needed because the nRF52 Peripheral doesn&amp;#39;t need to resolve the address?&lt;/p&gt;
&lt;p&gt;[Q] Suppose both nRF52 Peripheral anc Central used their public address during bonding.&lt;br /&gt;If either nRF52 device starts advertising with a resolvable Bluetooth address, is the previous bonded data not usable since the address has changed?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you so much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to nRF52 to direct advertise without bonding?</title><link>https://devzone.nordicsemi.com/thread/384565?ContentTypeID=1</link><pubDate>Mon, 05 Sep 2022 11:57:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f84993e3-f9e7-4442-ae60-5cb1ca518ab2</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]&lt;p&gt;Suppose I have an iOS/Android/nRF52 Central device and a nRF52840 board running the ble_app_hid_mouse example.&lt;br /&gt;Let&amp;#39;s assume the nRF52840 mouse knows the Central device&amp;#39;s public address that wasn&amp;#39;t bonded before.&lt;/p&gt;
&lt;p&gt;(EX: I checked from iOS/Android system settings and the value is DC:37:14:36:6C:7A)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;[Q] In this case, can I make the nRF52840 mouse directly advertise to DC:37:14:36:6C:7A, even though it hasn&amp;#39;t bonded previously?&lt;/p&gt;
&lt;p&gt;Or is this not possible to direct advertise with the nRF52 mouse since it hasn&amp;#39;t bonded/used the whitelist, which is against the Bluetooth 5 Spec?&lt;/p&gt;[/quote]
&lt;p&gt;If the central does &lt;em&gt;not&lt;/em&gt; use privacy / resolvable random address, then you can advertise directly to the device even without being bonded. However, both iOS and Android always use privacy, so in this case it will not work. The only way you can get the identity resolution key (IRK) that you need for this, is by bonding. Also, note that &lt;a href="https://developer.apple.com/accessories/Accessory-Design-Guidelines.pdf"&gt;Apple&amp;#39;s Accessory Design Guidelines&lt;/a&gt; explicitly states that:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;ADV_DIRECT_IND should not be used. See the Bluetooth 4.0 specification, Volume 6, Part B, Section&amp;nbsp;&lt;/em&gt;&lt;em&gt;2.3.1.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;See more about advertising types that are recommended under&amp;nbsp;41.3 Advertising PDU on page 186 in the&amp;nbsp;R18 release (currently the latest).&lt;/p&gt;
[quote user=""][Q] I heard directed advertising usually comes with high duty cycle with interval fix at 3.75ms. &lt;br /&gt;Also, I heard directed advertising shouldn&amp;#39;t be going more than a minute to comply with the Bluetooth SIG.&lt;br /&gt;Is this true? Which side of the Bluetooth Core Spec defines these items?[/quote]
&lt;p&gt;It is possible to advertise both which high and low duty cycle, and the definition of high duty cycle is &amp;lt;=&amp;nbsp;3.75 ms (see page 2450 in the Bluetooth 5.3 core specification). The specification dictates that this can be used for a maximum of 1.28 seconds (see page 2464 in the Bluetooth 5.3 core specification).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>