<?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>Help with the nrf52 dev board, tag scan and channel frequency</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51548/help-with-the-nrf52-dev-board-tag-scan-and-channel-frequency</link><description>Hi everyone, 
 I have some questions / problems about the advertising report in the nrf52832 dev board. I&amp;#39;m using the example code from here : https://github.com/NordicSemiconductor/pc-ble-driver/blob/master/examples/heart_rate_collector/main.c . I check</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Aug 2019 13:55:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51548/help-with-the-nrf52-dev-board-tag-scan-and-channel-frequency" /><item><title>RE: Help with the nrf52 dev board, tag scan and channel frequency</title><link>https://devzone.nordicsemi.com/thread/206906?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2019 13:55:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd74a1e9-fd47-4898-ae5d-d0233b0d336c</guid><dc:creator>kaplacat</dc:creator><description>&lt;p&gt;Thanks for the explanation, I understand how it works.&amp;nbsp;&lt;br /&gt;I change the scan window (as you said) to equal the scan interval and it works perfectly. I can continue my tests thanks to you.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with the nrf52 dev board, tag scan and channel frequency</title><link>https://devzone.nordicsemi.com/thread/206893?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2019 13:25:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b699f1c-a4ff-4e66-b55f-35229851cad8</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The &amp;quot;radio break&amp;quot; happens because scan windows and advertising events are almost synchronized but slightly drifting relative to each other. Let me explain.&lt;/p&gt;
&lt;p&gt;The default scan parameters in that example, is SCAN_INTERVAL of 0xA0 and SCAN_WINDOW of 0x50, which means scan interval of 100 ms and scan window of 50 ms. That means the scan will happen like this:&lt;/p&gt;
&lt;p&gt;50 ms scanning on channel 37 (one scan window)&lt;br /&gt;50 ms no scanning (waiting for next scan event, new scan event each scan interval)&lt;br /&gt;50 ms scanning on channel 38&lt;br /&gt;50 ms no scanning&lt;br /&gt;50 ms scanning on channel 39&lt;br /&gt;50 ms no scanning&lt;br /&gt;repeat from top&lt;/p&gt;
&lt;p&gt;For advertising, in addition to the advertising interval, there is a random extra delay of 0 to 10 ms between advertising events. That means, on average, with advertising interval of 1 s, you get 1005 ms from one advertisement to the next. Each advertising event sends the advertising packet on all three advertising channels in rapid succession.&lt;/p&gt;
&lt;p&gt;The scan interval (100 ms) perfectly divides the advertising interval (1000 s), but then the 5 - 10 ms random delay comes on top of that. This means, relative to the scan window, an advertisement is sent 5 ms later each time, on average. After a few advertising intervals, it has drifted out of the scan window (and now advertisements are sent during the pauses between scan windows.) After having drifted 50 ms more, i.e. around ten advertisements (ten seconds) later, you should expect it to have drifted into a scan window again, and will receive advertisements until drifting out of the scan window.&lt;/p&gt;
&lt;p&gt;If you use half the advertising interval, you still get 5 ms average random addition to each interval, which means the drifting relative to the scan windows happens at double the speed.&lt;/p&gt;
&lt;p&gt;In order to detect most advertisements, you can change the scan window to equal the scan interval. Then you will scan at 100 % duty cycle (instead of 50 % duty cycle as you do now).&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>