<?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>nRF Sniffer shows advertising interval too small</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66408/nrf-sniffer-shows-advertising-interval-too-small</link><description>Hi, 
 According to below thread, the advertising interval has a random 0 - 10 msec delta, so if the adv interval is 20 mses, if run it for long enough, will the result be close to 20 msec? or will be anywhere between 10 - 30 msec? 
 https://devzone.nordicsemi</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Oct 2020 09:36:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66408/nrf-sniffer-shows-advertising-interval-too-small" /><item><title>RE: nRF Sniffer shows advertising interval too small</title><link>https://devzone.nordicsemi.com/thread/272465?ContentTypeID=1</link><pubDate>Thu, 01 Oct 2020 09:36:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ece3d5a-f450-4bad-9d37-25ab49f50683</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Yes, this is always the case I believe, as the radio advertises in a &amp;quot;sweeping&amp;quot; fashion starting at channel 37 (2402MHz), going to 38 (2426MHz), and then channel 39 (2480MHz).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Sniffer shows advertising interval too small</title><link>https://devzone.nordicsemi.com/thread/272385?ContentTypeID=1</link><pubDate>Wed, 30 Sep 2020 17:33:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:985de67b-ba39-4546-9669-fd314e8c5cf0</guid><dc:creator>jshen</dc:creator><description>&lt;p&gt;Thank you very much, it makes sense now. The advertising interval actuualy is the time sending the same adv packet on all three advertising channels (37, 38 and 39).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I did a few more new test, it seems always the longest delta time occurs on channel 37, then two short ones on channel 38 and 39. I am curious is that always the case?&lt;/p&gt;
&lt;p&gt;Many thanks,&lt;br /&gt;Job&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Sniffer shows advertising interval too small</title><link>https://devzone.nordicsemi.com/thread/272280?ContentTypeID=1</link><pubDate>Wed, 30 Sep 2020 11:56:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:938a5314-8025-4e83-b4ac-5d93620c987f</guid><dc:creator>Simonr</dc:creator><description>[quote user="jshen"]I visually inspected other delta time[/quote]
&lt;p&gt;&amp;nbsp;What you&amp;#39;re seeing is the advertisement on each of the advertising channels (37, 38, and 39), the full time of one complete advertising event would be the first &amp;quot;long&amp;quot; one, and the two next &amp;quot;short&amp;quot; packets. So to calculate correctly you would have to do the following:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;((44554 + 498 + 498) + (44571 + 498 + 498) + (46346 + 498 + 498)) / 3 = 46 153 µs (46,15 msec)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The random 0-10 msec will be what is added to this &amp;quot;long&amp;quot; packet you&amp;#39;re seeing, and you should see that all these are different between 40 000 to 50 000 µs.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Sniffer shows advertising interval too small</title><link>https://devzone.nordicsemi.com/thread/272155?ContentTypeID=1</link><pubDate>Wed, 30 Sep 2020 00:01:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03ea98a6-17b5-4431-bc6d-0b0fd9d9604a</guid><dc:creator>jshen</dc:creator><description>&lt;p&gt;Thank you Simonr for help.&lt;/p&gt;
&lt;p&gt;I recaptured at least 100,000 adv packets and look at the delta time as you suggested. To be fair i picked 10 packets from 10,001 (see screen shot), add the delta time for all 10 packets and i got&amp;nbsp;&lt;br /&gt;&lt;br /&gt;770 + 44843 + 770 + 770 + 46618 + 770 + 770 + 41227 + 770 + 770 = 138,078 usec,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;that&amp;#39;s for 10 packets, so the average adv interval is around 13.8 msec&lt;/p&gt;
&lt;p&gt;my donlge was running ble_app_blinky from ble_peripheral,&amp;nbsp;APP_ADV_INTERVAL is defined to 64, which is 40 msec.&lt;/p&gt;
&lt;p&gt;#define APP_ADV_INTERVAL 64 /**&amp;lt; The advertising interval (in units of 0.625 ms; this value corresponds to 40 ms). */&lt;/p&gt;
&lt;p&gt;I visually inspected other delta time, they are look similar, a big value &amp;gt; 40000 followed by 2 small values &amp;lt; 1000, so i expect even calculate the whole 100,000 packets, the adv interval still would be near 13.8 msec.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/960x720/__key/communityserver-discussions-components-files/4/pastedimage1601424083614v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Sniffer shows advertising interval too small</title><link>https://devzone.nordicsemi.com/thread/271706?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 08:52:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07a44db4-cc2e-44d8-bc0e-99ad7a3b7160</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;First off, this &amp;quot;Time&amp;quot; column is dated at the point which the nRFSniffer reports the events to the computer, and will not always be an accurate representation of the time between BLE events. If you right-click the column section in Wireshark you can add a column called &amp;quot;Delta time (µs end to start)&amp;quot; which will show how many µs each event lasts.&lt;/p&gt;
&lt;p&gt;The random 10ms delay will add 0-10 ms to each advertising interval, so if you set it to 20ms, each advertising will be 20-30ms apart.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Sniffer shows advertising interval too small</title><link>https://devzone.nordicsemi.com/thread/271618?ContentTypeID=1</link><pubDate>Sat, 26 Sep 2020 01:02:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9bdb5db-e77d-421d-9d50-6bf4ec771c77</guid><dc:creator>jshen</dc:creator><description>&lt;p&gt;Also the connection interval is smaller than i had expected, it is between 4 - 7 msec. I used the Bluetooth Low Energy app from the nRF Connect tool, which i had expected 100 msec connection interval.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/960x720/__key/communityserver-discussions-components-files/4/pastedimage1601082161776v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>