<?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>Queries regarding APIs to be used</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76046/queries-regarding-apis-to-be-used</link><description>Hi, 
 We are developing our stack with soft device using nRF52840 as the Controller and have the below queries 
 
 1. How to configure a static random BDADDR which will remain constant every time the Controller/Stack is reset? 
 2. What is the max scan</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Jun 2021 13:34:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76046/queries-regarding-apis-to-be-used" /><item><title>RE: Queries regarding APIs to be used</title><link>https://devzone.nordicsemi.com/thread/313949?ContentTypeID=1</link><pubDate>Mon, 07 Jun 2021 13:34:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47f3a0e4-bcdb-442c-bb8f-caa9c3b07d69</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you using the full SoftDevice BLE stack (typically in nRF5 SDK context), or just the SoftDevice controller (typically in NCS context)? And if using the SoftDevice controller, are you using the Zephyr host or making your own (and if so - why?)?&lt;/p&gt;
[quote user=""]1. How to configure a static random BDADDR which will remain constant every time the Controller/Stack is reset?[/quote]
&lt;p&gt;The SoftDevice will always use the static random address from FICR by default. If you want to use another address (regardless of type), you need to set that every time the stack is initialized. Exactly how you do that depends on what you are using, which is not clear to me. If using a SoftDevice, you set it using &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s113.api.v7.2.0/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html?cp=4_7_1_1_2_1_3_1#gaef69dc212534adf4b78d211edce2267b"&gt;sd_ble_gap_addr_set()&lt;/a&gt;. If using NCS you use &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/bluetooth/gap.html?highlight=bt_set_id_addr#c.bt_set_id_addr"&gt;bt_set_id_addr()&lt;/a&gt;.&lt;/p&gt;
[quote user=""]2. What is the max scan capacity of the nRF52840 Controller? Assuming, there are inifinte advertising devices around, how many devices can be scanned at a time by the Scanner.[/quote]
&lt;p&gt;There is no maximum. With infinite advertising devices more and more advertisers will be scanned as time progresses (ignoring that advertainment packets would collide, preventing reception)&lt;/p&gt;
[quote user=""]3.&amp;nbsp;&lt;span&gt;What is the difference between configuring both scan interval &amp;amp; duration as 100ms and 500 ms respectively. Will scan happen continuously (without a break) in both instances ?&lt;/span&gt;[/quote]
&lt;p&gt;Scanning is continuous as long as the duration and interval has the same value. However, the channel the device listens to is changed every time a new window starts. So by using 100 ms the advertising channel being scanned is changed every 100 ms, and so on.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>