<?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>Scanning of Advertisements - channel and scan settings</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62828/scanning-of-advertisements---channel-and-scan-settings</link><description>With iOS and Android smartphones we are advertising some ble frames. 
 With our own code on the nrf 52840 we get around 2-4 advertisements each seconds on the nrf 52840 chip. As SCAN_INTERVAL and SCAN_WINDOW we use 0x00A0 in order to switch the channels</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Jun 2020 14:23:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62828/scanning-of-advertisements---channel-and-scan-settings" /><item><title>RE: Scanning of Advertisements - channel and scan settings</title><link>https://devzone.nordicsemi.com/thread/256239?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2020 14:23:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91f8ed1b-682f-453a-b344-04e3f34ff5db</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;So you get about 3 advertisements in your application, and about 9 in the nRF Sniffer. Are these 9 on all the channels? That is, is it 3 advertisements, but on all 3 channels (3*3)?&lt;/p&gt;
&lt;p&gt;When you scan using the softdevice, it will only change advertising channel on each scan interval. It is not possible to change this. This is because there is no point in scanning the same advertisement on all channels.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The reason you see fewer advertisements when you decrease the scan interval is that it takes time to scan an advertising packet. You can see how long an advertising packet takes here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/power"&gt;https://devzone.nordicsemi.com/nordic/power&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;With 31 bytes, it takes about 0.37ms. If you set a very low scan interval then the chances of picking up half a packet increases. Perhaps that is what you are seeing.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you for some reason need to scan all advertisements (on all channels) you can&amp;#39;t use the softdevice. You must use the radio directly. Whenever you pick up an advertisement on channel 37, you must start scanning on channel 38, and then 39. We don&amp;#39;t have anything that does this except for the sniffer itself, but that is not open source, unfortunately.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>