<?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>Scan using bt_le_scan_start</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107321/scan-using-bt_le_scan_start</link><description>Hi all, 
 
 I am using an nRF52840 dongle as a BLE central. I have familiarized myself with the process of scanning devices and establishing a connection with one of them. It is my understanding that the function bt_le_scan_start() performs continuous</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Jan 2024 22:00:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107321/scan-using-bt_le_scan_start" /><item><title>RE: Scan using bt_le_scan_start</title><link>https://devzone.nordicsemi.com/thread/464483?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2024 22:00:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef20d2d8-b7f7-4130-b168-9d9301194409</guid><dc:creator>kfci-eng</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;J&amp;oslash;rgen,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you so much for your answer, it helped me. What I will do is scan for the duration of two maximum intervals and stop scanning after that. I have tested this and it scans all the devices I intend to scan within that period of time. Thanks!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kevin&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;div class="content full threaded-reply-content user-defined-markup" data-replyid="464014" data-userid="14926" data-permalink="~/f/nordic-q-a/107321/scan-using-bt_le_scan_start/464014"&gt;
&lt;div class="content"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan using bt_le_scan_start</title><link>https://devzone.nordicsemi.com/thread/464014?ContentTypeID=1</link><pubDate>Fri, 12 Jan 2024 15:18:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c92562d0-1506-42aa-892d-e3a2ddc9ebd2</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It is not possible to &amp;quot;&lt;span&gt;scanning all the peripherals that are around&amp;quot;, since the scanner have no knowledge of what peripherals are available and their advertising parameters. Bluetooth advertisers have different advertising interval and normally transmit packets on 3 different channels. The scanner typically scan on one channel only and switch between the 3 advertising channels&amp;nbsp;each scan interval (see &lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/bluetooth-low-energy/posts/bluetooth-smart-and-the-nordics-softdevices-part-1"&gt;this blog post&lt;/a&gt;). You could scan for the duration of the maximum advertising interval (10.24s) and then stop scanning, but you are not guaranteed to receive the advertising packets from all devices at first try (might have on-air collisions&amp;nbsp;with other packets, interference, etc.). To have highest chance of receiving all advertisements, you need to set the scan window equal to the scan interval (to avoid long periods where scanning is disabled). During the scan duration, you will also receive multiple advertising packets from fast advertisers, not just one.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Jørgen&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>