<?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 parameter settings to get the most advertisements but also handle connections</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109512/scanning-parameter-settings-to-get-the-most-advertisements-but-also-handle-connections</link><description>Hi, 
 
 I&amp;#39;m struggling to fully understand the scan window and scan interval. According to the graph of the &amp;quot;Nordic Primary channel scanner timing&amp;quot; the scan window should always be smaller than the scan interval, so there is time to handle connections</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Apr 2024 06:46:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109512/scanning-parameter-settings-to-get-the-most-advertisements-but-also-handle-connections" /><item><title>RE: Scanning parameter settings to get the most advertisements but also handle connections</title><link>https://devzone.nordicsemi.com/thread/477011?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 06:46:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab12aa79-e9d2-4add-ad04-f23fd416fa89</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Manuel&lt;/p&gt;
&lt;p&gt;I discussed this with the developers, and they pointed out that when you set the scan interval and window to the same value the scheduler uses so called cooperative scanning to maximize scanning duty cycle, while letting other activities such as connections or advertisements occur in between.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is described in more detail &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/softdevice_controller/doc/scheduling.html#primary-channel-cooperative-scanning"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;In other words my earlier comment regarding scan interval and window is incorrect, sorry for the confusion.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;With this in mind it makes sense that you see better performance when using 50/50 compared to 200/150. You could try higher values also, like 100/100 or 200/200, but I wouldn&amp;#39;t expect a dramatic difference.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scanning parameter settings to get the most advertisements but also handle connections</title><link>https://devzone.nordicsemi.com/thread/476840?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 11:15:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6de93289-7bbb-43b8-bbf4-fb6efc63e817</guid><dc:creator>Phobios</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Torbj&amp;oslash;rn,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;ve tried your settings.&amp;nbsp;The peripherals&amp;nbsp;are currently sending periodic advertisements every second&lt;br /&gt;With the scanning to 200/150 I only get around 1/3 of the advertisements which are sent out, with greater distance even only about 1/6 - I have far better results with 50 /50...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What can I do to improve the receiving of the advertisements?&lt;br /&gt;&lt;/span&gt;&lt;span&gt;Is it better to send out advertisement bursts in a greater interval?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks and best Regards,&lt;br /&gt;&lt;/span&gt;&lt;span&gt;Manuel&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scanning parameter settings to get the most advertisements but also handle connections</title><link>https://devzone.nordicsemi.com/thread/476490?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 09:18:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c073f9c-8e5d-40c9-98af-c5292226605f</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Manuel&lt;/p&gt;
&lt;p&gt;Sorry for the slow response, it has been pretty hectic here around the Easter holidays.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Setting the scan interval and window to the same is not a good idea, then you will get a lot of scheduling conflicts between your connections and the scanning. Scanning has lower priority than connections and would typically be down prioritized, and you would see scanning duty cycle drop.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;By default the central connections should be scheduled 2.5ms apart, which means 20 connections should occupy 50ms every 200ms when using this connection interval.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try to set the scan interval to 200ms and the scan window somewhere in the 100-150ms range?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then the stack should be able to schedule scanning and connections without any conflict.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scanning parameter settings to get the most advertisements but also handle connections</title><link>https://devzone.nordicsemi.com/thread/475501?ContentTypeID=1</link><pubDate>Sun, 24 Mar 2024 14:05:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a195bab-7473-4952-b934-a436ee635f7f</guid><dc:creator>Tyta</dc:creator><description>[deleted]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>