<?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>Advertising interval time test</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46115/advertising-interval-time-test</link><description>Hi Sir/Miss, 
 
 We want to test advertising interval time of peripheral device to follow APPLE accessory guideline. 
 We found some topic on forum, it mentions that uses sniffer is better than nrf connect APP. 
 https://devzone.nordicsemi.com/f/nordic</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Aug 2019 12:34:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46115/advertising-interval-time-test" /><item><title>RE: Advertising interval time test</title><link>https://devzone.nordicsemi.com/thread/206381?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2019 12:34:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4853c328-c337-43e1-9f14-f79886f45e50</guid><dc:creator>Ron</dc:creator><description>&lt;p&gt;Hey Einar,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am using the nRF sniffer (based on NRF51422 DK and wireshark) to sniff my DFU adv packets which are set to 25ms interval, So I am expecting to catch 40 packets x 3 (for 37,38,39), so 120, what I am actually seniffing seeing is about 100 packets,does this make sense? because of the 0-10ms delay&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising interval time test</title><link>https://devzone.nordicsemi.com/thread/181983?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2019 06:38:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bc3f3d2-1455-4c5b-aa9a-bb1fa287b323</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Countach"]May I ask how much number of average delta is between received advertisement packet?[/quote]
&lt;p&gt;You can refer to&amp;nbsp;BLUETOOTH SPECIFICATION Version 5.0 | Vol 6, Part B section 4.4.2.2.1 (page 2610-2611) if you want to know the details. In a nutshell the time between two advertising packets is the advertising interval + random delay, where the advertising interval is whatever you have configured, and the random delay is somewhere between 0 and 10 ms. This figure from the spec shows it well:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/ad_5F00_rand_5F00_delay.PNG" /&gt;&lt;/p&gt;
[quote user="Countach"]And, does it have any test(method, equipment) and calculate rule to be correspond of APPLE advertising interval?[/quote]
&lt;p&gt;&lt;span&gt;You should configure the advertising interval to match Apple&amp;#39;s recommendations. So for instance say you want to use 152.5 ms in the ble_app_uart example in SDK 15.2, you set&amp;nbsp;APP_ADV_INTERVAL to 244, since it is in units of&amp;nbsp;0.625 ms. This configures the advertising interval at exactly that, and essentially that is all you need to think about. Looking at the details, this is not exactly the same as the time between the advertising packets since it does not include the random delay, but that is not relevant with regard to Apple&amp;#39;s recommendations.&lt;/span&gt;&lt;/p&gt;
[quote user="Countach"]And, does it have any test(method, equipment) and calculate rule to be correspond of APPLE advertising interval?[/quote]
&lt;p&gt;I am not aware of any such test equipment that calculates the advertising interval for you. You can do this manually by averaging the delay over many advertising packets. If you get enough samples, you should measure a average time between advertising packets which is about 5 ms longer than the configured advertising interval (since this is the average of the added delay).&lt;/p&gt;
&lt;p&gt;The SoftDevice is well tested and qualified. As long as you configure the advertising interval correctly you can be confident that it will be correct. So in that case I would say looking at the advertising packets in a sniffer trace and seeing that the interval is roughly correct should be enough in practice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising interval time test</title><link>https://devzone.nordicsemi.com/thread/181974?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2019 04:17:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75203959-9387-44ee-9230-f488d9528bcd</guid><dc:creator>Ben</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for your reply.&lt;/p&gt;
&lt;p&gt;I still confuse about it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;May I ask how much number of average delta is between received advertisement packet?&lt;/p&gt;
&lt;p&gt;I calculate 400 data(0~8 sec) that result is 0.017462 sec, maximum delta and minimum advertising interval is 0.027288 sec and 0.013253 sec.&lt;/p&gt;
&lt;p&gt;Or, I must calculate all of data between 0 and 30 sec.&lt;/p&gt;
&lt;p&gt;But, it doesn&amp;#39;t have any criteria about advertising interval (e.g. 20 ms, + 1 and -1 ms).&lt;/p&gt;
&lt;p&gt;And, does it have any test(method, equipment) and calculate rule to be correspond of APPLE advertising interval?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/APPLE-advertising-interval-guidekines.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising interval time test</title><link>https://devzone.nordicsemi.com/thread/181827?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2019 11:23:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a897be38-db10-4e92-83ee-68789ebbe2cd</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There is a random 0-10 ms delay added to each advertising event, which makes it difficult to find the exact advertising interval like this. However, you should be able to get a good idea, and you can get a quite accurate number if you measure for some time and calculates the average delta between the received advertisement packets.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>