<?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 does implement advDelay in nRF52832? (repost)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80670/how-does-implement-advdelay-in-nrf52832-repost</link><description>I posted this theme, but the post is locked before fixed. I don&amp;#39;t know the reason so repost. I&amp;#39;m sorry about this case. 
 ------------------------- 
 Question: 
 I consider the radio collision of advertising packet, in the case there are several 10 BLE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 Oct 2021 08:02:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80670/how-does-implement-advdelay-in-nrf52832-repost" /><item><title>RE: How does implement advDelay in nRF52832? (repost)</title><link>https://devzone.nordicsemi.com/thread/334501?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 08:02:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1ebfc3a-afac-4012-8cb0-e02054076341</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;No problem at all, gaku-ueno - I am happy to help!&lt;br /&gt;&lt;br /&gt;Please do not hesitate to open another ticket if you should encounter any issues or questions in the future.&lt;br /&gt;&lt;br /&gt;Good luck with your development!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How does implement advDelay in nRF52832? (repost)</title><link>https://devzone.nordicsemi.com/thread/334461?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 01:47:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7101e247-294d-4861-9b15-b6341055f9ae</guid><dc:creator>Gaku Ueno</dc:creator><description>&lt;p&gt;Thank you, &lt;span class="user-name"&gt;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/karl-ylvisaker"&gt;Karl Ylvisake&lt;/a&gt;! &lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&lt;span class="host-address points"&gt;I got the information and the reason that the advDlay will not be synchronized. &lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span class="host-address points"&gt;I appreciate your help. And I&amp;#39;ll concern the environmental influence.&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How does implement advDelay in nRF52832? (repost)</title><link>https://devzone.nordicsemi.com/thread/334376?ContentTypeID=1</link><pubDate>Fri, 15 Oct 2021 13:24:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce7848e0-4bb6-413d-b093-c2b61f9aca95</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="Gaku Ueno"]I think it is important the affection of the Radio Frequency environment, too. So install place condition should be concerned.[/quote]
&lt;p&gt;Yes, if you are able to influence this it could greatly decrease the chance of packet corruption.&lt;/p&gt;
[quote user="Gaku Ueno"] the BLE module cannot detect the collision, so the collision is repeated.&amp;nbsp;It would be great if&amp;nbsp;you&amp;nbsp;could&amp;nbsp;teach me the concrete reason about &amp;quot;&lt;span&gt;If an advertisement actually does collide the advDelay will ensure that the collision is not repeated.&lt;/span&gt;&amp;quot;.&amp;nbsp;[/quote][quote user="Gaku Ueno"]And I think the advDelay random value is made from same seed at start-up, so the value is same among the devices that start at the same time. I would be appreciate if you could tell about it.&amp;nbsp;[/quote]
&lt;p&gt;The BLE module could indeed not detect such a collision, but since the advDelay is based on a number from the random number generator they will not be synchronized even though they start advertising at the same time.&amp;nbsp;You can read more about &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Frng.html&amp;amp;anchor=concept_h35_c1l_cs"&gt;the Random Number Generator here&lt;/a&gt;.&lt;br /&gt;You could visualize this as well with the Sniffer tool - have two devices start advertising at the same time, and observe that their added 0 - 10 ms delay will differ at every advertisement.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How does implement advDelay in nRF52832? (repost)</title><link>https://devzone.nordicsemi.com/thread/334249?ContentTypeID=1</link><pubDate>Fri, 15 Oct 2021 02:36:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:355b27ee-dad3-4d7b-896f-854b44e0775e</guid><dc:creator>Gaku Ueno</dc:creator><description>&lt;p&gt;Thank you!&lt;/p&gt;
&lt;p&gt;I think it is important the affection of the Radio Frequency environment, too. So install place condition should be concerned.&lt;/p&gt;
&lt;p&gt;And then, I should design the BLE communication timing. I read&amp;nbsp;the advDelay algorithm is not defined in the BLE Specification 5.0, Vol 6 Low Energy Controller volume. I think if the advertising packet collide, the BLE module cannot detect the collision, so the collision is repeated.&amp;nbsp;It would be great if&amp;nbsp;you&amp;nbsp;could&amp;nbsp;teach me the concrete reason about &amp;quot;&lt;span&gt;If an advertisement actually does collide the advDelay will ensure that the collision is not repeated.&lt;/span&gt;&amp;quot;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And I think the advDelay random value is made from same seed at start-up, so the value is same among the devices that start at the same time. I would be appreciate if you could tell about it.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How does implement advDelay in nRF52832? (repost)</title><link>https://devzone.nordicsemi.com/thread/334130?ContentTypeID=1</link><pubDate>Thu, 14 Oct 2021 11:50:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c4f2498-2345-451c-93c3-0f6cd96868f9</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again, gaku-ueno&lt;/p&gt;
[quote user=""]I posted this theme, but the post is locked before fixed. I don&amp;#39;t know the reason so repost. I&amp;#39;m sorry about this case.[/quote]
&lt;p&gt;No worries - the tickets get locked if an answer is&amp;nbsp;&lt;em&gt;verified&lt;/em&gt;, since this is used to indicate that the issue raised in the ticket is resolved.&lt;br /&gt;No need to apologize, it happens sometime. For completeness, &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/80645/how-does-implement-advdelay-in-nrf52832"&gt;this was the other ticket&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user=""]Thank you for reply,&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/karl-ylvisaker"&gt;Karl Ylvisaker&lt;/a&gt;![/quote]
&lt;p&gt;No problem at all, I am happy to help!&lt;/p&gt;
[quote user=""]I fear if the nRF52832 devices are powered on same time, the SoftDevices generates same pseudo random delay. And I’m considering methods to avoid the collision. So I want to know the implemented advDelay algorithm, and calculate collision probability.[/quote]
&lt;p&gt;It makes no difference if the devices are powered on at the same time, since the delay between 0 and 10 ms is added to each and every advertisement. The 0 - 10 ms delay changes with each advertising packet sent, so there should be no issue at all with packet collision between advertising BLE devices. Since advertisements happens so seldom already, and since their duration is so short, the chance of colliding BLE advertisements is neglectable. If an advertisement actually does collide the advDelay will ensure that the collision is not repeated.&lt;br /&gt;&lt;br /&gt;A much larger concern is the potential other devices in the Radio Frequency environment the BLE devices are operating in - for example if there exists some devices that constantly broadcasts, like a WiFi modem or similar. This will have a much bigger impact on the BLE advertisements than any other BLE advertisements will have.&lt;br /&gt;This is also why the three primary advertising channels are spaced out on the 2.4 GHz spectrum - so that if one or two of the channels are partly or completely overlapped by a WiFi (or similar) network the BLE device can still be found on the third advertising channel.&lt;br /&gt;&lt;br /&gt;If you want to read more in-depth about&amp;nbsp;this&amp;nbsp;you could take a look at &lt;a href="https://www.bluetooth.com/specifications/bluetooth-core-specification/"&gt;the BLE Specification&lt;/a&gt;. Please take a look at &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/39174/i-do-not-want-use-advertising-random-delay-0ms-to-10ms/151645#151645"&gt;the answer by my colleague in this ticket for further information about the advDelay&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>