<?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>How to calculate advertising interval please?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92635/how-to-calculate-advertising-interval-please</link><description>Dear Support 
 I am developing a central application, scan and send out scanned packets via UART to host MCU, where I am thinking of calculate the advertising interval by simply comparing arriving time difference between two advertising packets. But I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Oct 2022 09:04:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92635/how-to-calculate-advertising-interval-please" /><item><title>RE: How to calculate advertising interval please?</title><link>https://devzone.nordicsemi.com/thread/389957?ContentTypeID=1</link><pubDate>Mon, 10 Oct 2022 09:04:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1db00ab6-4ab8-43b7-8044-433c241eb18f</guid><dc:creator>PingISTL</dc:creator><description>&lt;p&gt;Thank you, Kenneth&lt;/p&gt;
&lt;p&gt;Another question about the periodic advertising, what is the difference between&amp;nbsp;it and normal advertising? They all specify a minimum and maximum interval and can be scanned for an interval. not sure the periodic means here.&lt;/p&gt;
&lt;p&gt;Sorry to bother you.&lt;/p&gt;
&lt;p&gt;Ping&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to calculate advertising interval please?</title><link>https://devzone.nordicsemi.com/thread/389909?ContentTypeID=1</link><pubDate>Sun, 09 Oct 2022 16:52:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a5bdf25-a5b9-416a-b0de-95403d8cac56</guid><dc:creator>Kenneth</dc:creator><description>[quote user="PingISTL"]I set scan interval and window same, so it always scans. Not sure this&amp;nbsp;is the only way to get interval roughly right?[/quote]
&lt;p&gt;You will be scanning continously now, so unless there is interference or collisions you&amp;nbsp;have the highest possible&amp;nbsp;chance of getting all advertisment packets.&lt;/p&gt;
[quote user="PingISTL"]and&amp;nbsp;I wonder what kind of scan interval and scan window it uses in nRF Connect App.[/quote]
&lt;p&gt;Don&amp;#39;t know.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to calculate advertising interval please?</title><link>https://devzone.nordicsemi.com/thread/389760?ContentTypeID=1</link><pubDate>Fri, 07 Oct 2022 07:51:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:986a874c-ac7b-4b5b-afc0-e3a2e3c5de80</guid><dc:creator>PingISTL</dc:creator><description>&lt;p&gt;Hi, Kenneth&lt;/p&gt;
&lt;p&gt;Thanks for reminder, I changed scan interval and window, and the scanned interval seems to be reasonable now. I set scan interval and window same, so it always scans. Not sure this&amp;nbsp;is the only way to get interval roughly right?&amp;nbsp; and&amp;nbsp;I wonder what kind of scan interval and scan window it uses in nRF Connect App.&lt;/p&gt;
&lt;p&gt;Regards!&lt;/p&gt;
&lt;p&gt;Ping&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to calculate advertising interval please?</title><link>https://devzone.nordicsemi.com/thread/389686?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2022 16:37:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:928ab1c6-f537-467b-9e6a-c99ac57b57e5</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;May I ask what you have set the scan window and interval to?&lt;/p&gt;
&lt;p&gt;What do you measure and what do you expect?&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to calculate advertising interval please?</title><link>https://devzone.nordicsemi.com/thread/389623?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2022 12:27:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6ed9e21-7e17-41e8-b4bb-ca11e8f7d864</guid><dc:creator>PingISTL</dc:creator><description>&lt;p&gt;Thanks, Kenneth&lt;/p&gt;
&lt;p&gt;I understand the random delay, but not sure why peripherals change intervals after programmed,&amp;nbsp; do you mean changes between&amp;nbsp;minimum and maximum specified ?&amp;nbsp; or Do you mean there is no point to measure the interval then?&lt;/p&gt;
&lt;p&gt;I would like to do a roughly measurement like nRF Connect App shows. is this possible?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Ping&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to calculate advertising interval please?</title><link>https://devzone.nordicsemi.com/thread/389610?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2022 12:01:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1604b410-6a08-4a42-953f-d9750876a624</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Yes and no. Have in mind though the peripheral can change the interval.&lt;/p&gt;
&lt;p&gt;edit: and that the measurement might be influenced by a up to 10ms random delay.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to calculate advertising interval please?</title><link>https://devzone.nordicsemi.com/thread/389581?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2022 10:46:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb30cf67-fa3c-493b-b9d8-e35e391490a8</guid><dc:creator>PingISTL</dc:creator><description>&lt;p&gt;Thank you, Kenneth&lt;/p&gt;
&lt;p&gt;So,&amp;nbsp;for a particular peripheral, does this mean I am not be able to measure its advertising interval by scanning two packets and calculate the time interval in between?&lt;/p&gt;
&lt;p&gt;Regards!&lt;/p&gt;
&lt;p&gt;Ping&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to calculate advertising interval please?</title><link>https://devzone.nordicsemi.com/thread/389577?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2022 10:37:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e27a245e-5ebd-4aca-ade3-b4bbdbef89da</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;A peripheral device can advertise any interval between few ms to several seconds, there is no information in the advertisement packet about how frequently it does the advertismenet. As a central device you can only set a scan window and scan interval and hope for the best.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to calculate advertising interval please?</title><link>https://devzone.nordicsemi.com/thread/389571?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2022 10:15:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bfebcaa-5497-45b3-b061-c999c99e3f38</guid><dc:creator>PingISTL</dc:creator><description>&lt;p&gt;Hello, Kenneth&lt;/p&gt;
&lt;p&gt;Thank you for reply!&lt;/p&gt;
&lt;p&gt;I am not developing peripherals to do periodic advertising, just simply want to scan any&amp;nbsp;peripherals doing&amp;nbsp;advertising, Am I able to follow them if they are not doing periodic&amp;nbsp;advertising? I don&amp;#39;t mind random delay of 0-10ms,&amp;nbsp;the&amp;nbsp;interval between packets on UART receiving line is much big than that, so I wonder whether the original interval is lost over the transmission.&lt;/p&gt;
&lt;p&gt;For normal peripherals which not doing periodic adverting,&amp;nbsp; there is a minimum and maximum interval specified, does this mean their intervals is random between the specified ?&lt;/p&gt;
&lt;p&gt;Regards!&lt;/p&gt;
&lt;p&gt;Ping&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to calculate advertising interval please?</title><link>https://devzone.nordicsemi.com/thread/389566?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2022 09:58:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:191fcfb5-bf30-41cb-a477-6481cc12a476</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The intention is to use periodic advertisement feature for this functionality:&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/bluetooth/periodic_adv/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/bluetooth/periodic_adv/README.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you want to &amp;quot;follow&amp;quot; legacy advertisment packets, have in mind that in BLE there is a 0-10ms random delay between each advertisment packet as specified by BT core spec.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>