<?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>S130 Adv/Scan Scheduling</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4789/s130-adv-scan-scheduling</link><description>Can someone from Nordic (or anyone who knows) comment on what happens when scanning and advertising simultaneously with S130. For example: 
 Scan Interval 100ms
Scan Window 98ms
Adv Interval 50ms 
 What does the schedule look like in terms of radio</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Dec 2014 15:29:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4789/s130-adv-scan-scheduling" /><item><title>RE: S130 Adv/Scan Scheduling</title><link>https://devzone.nordicsemi.com/thread/16965?ContentTypeID=1</link><pubDate>Thu, 11 Dec 2014 15:29:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84daf62c-7df2-4bdf-902a-1e59eb495f6d</guid><dc:creator>Konstantin K</dc:creator><description>&lt;p&gt;Thanks again.  Power is not an issue for us as we&amp;#39;re running off main power. I&amp;#39;ll try shortening the intervals.  Would also like to hear if anyone has had any experience with this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 Adv/Scan Scheduling</title><link>https://devzone.nordicsemi.com/thread/16964?ContentTypeID=1</link><pubDate>Thu, 11 Dec 2014 15:20:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67635432-3f65-4228-8794-f87a79d6b545</guid><dc:creator>Ulrich Myhre</dc:creator><description>&lt;p&gt;This is where I&amp;#39;m personally a bit uncertain. I think the earliest versions of the S130 have some identified problems regarding scanning with window~=interval and advertising, so your mileage may vary. But decreasing the scan window and shortening the advertising intervals will make the distribution in time a bit more fair. Alas, it will naturally also increase power consumption.&lt;/p&gt;
&lt;p&gt;Hoping someone can chime in with some experiences here, if not I recommend you to do some quick testing or raise a new question :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 Adv/Scan Scheduling</title><link>https://devzone.nordicsemi.com/thread/16963?ContentTypeID=1</link><pubDate>Thu, 11 Dec 2014 15:11:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6430ede-e92e-4c3f-a86b-dd0b0f0aea9e</guid><dc:creator>Konstantin K</dc:creator><description>&lt;p&gt;Thanks.  Any suggestions on how to maximize scanning while also advertising?  The goal is to have bi-directional communication using advertising packets.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 Adv/Scan Scheduling</title><link>https://devzone.nordicsemi.com/thread/16962?ContentTypeID=1</link><pubDate>Thu, 11 Dec 2014 15:08:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e4fde96-77e4-4143-9a96-dc3da8102016</guid><dc:creator>Ulrich Myhre</dc:creator><description>&lt;p&gt;No, there is a random (spec-required) delay before the start of each advertisement of up to 10ms, so this will not work either. This means that advertisers will drift in time compared to the scanner that will always try to scan at the same timings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 Adv/Scan Scheduling</title><link>https://devzone.nordicsemi.com/thread/16961?ContentTypeID=1</link><pubDate>Thu, 11 Dec 2014 14:23:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd32f888-943c-481c-ad29-a26ba0ea29d8</guid><dc:creator>Konstantin K</dc:creator><description>&lt;p&gt;My incorrect assumption was that the scan is going to start and be briefly interrupted for each advertising transmit.  I&amp;#39;m not sure how long each advertisement radio event is but I imagine it&amp;#39;s very short.&lt;/p&gt;
&lt;p&gt;Would it be better to schedule adv interval at 100ms so that it can fit in the 2ms dead slot in the scan?  Is the scheduler smart enough to figure that out?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 Adv/Scan Scheduling</title><link>https://devzone.nordicsemi.com/thread/16960?ContentTypeID=1</link><pubDate>Thu, 11 Dec 2014 14:04:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:899d2e5d-afa2-4e5b-95a3-e04caa3b7876</guid><dc:creator>Ulrich Myhre</dc:creator><description>&lt;p&gt;Hi, this might be subject to change, but I will give this a go.&lt;/p&gt;
&lt;p&gt;This is an unfair arrangement of parameters to begin with, so there is not enough time to actually do both of these operations - and one of them will be blocked. When an operation has been blocked N times in a row, it will get its priority raised.  This means that if e.g. the advertiser is running every 50ms, it will always collide with a scanner that wants to scan for 98ms. After N blocked attempts, the scanner will cancel out the planned advertisement and start up. The advertiser will then try to reschedule 50ms into the future instead, and will probably succeed doing so.&lt;/p&gt;
&lt;p&gt;For the current S130, I think N is 10. In future versions we hope to make this behavior a bit easier to determine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>