<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>Periodic Advertising Issue</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/88553/periodic-advertising-issue</link><description>Hi Nordic Community 
 
 I have been building a thermometer device from which I would like to send temperature values via periodic advertising. 
 I have based the sender and receiver off the Zephyr &amp;quot;periodic adv&amp;quot; and &amp;quot;periodic sync&amp;quot; examples provided in</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Wed, 15 Jun 2022 14:17:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/88553/periodic-advertising-issue" /><item><title>RE: Periodic Advertising Issue</title><link>https://test-devzone.nordicsemi.com/thread/372611?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2022 14:17:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e215e7fb-b6a7-4890-806d-09b587b88018</guid><dc:creator>user116666</dc:creator><description>&lt;p&gt;Thanks for this description.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It did confuse me because if you are saying that the&amp;nbsp;&lt;span&gt;AUX_ADV_IND&amp;nbsp;event and the next AUX_SYNC_IND event must be within 2.5s of each other then, if I set both of them with an interval of 10s, aren&amp;#39;t they within 2.5s of each other? This is where I started my testing and this doesn&amp;#39;t work.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I dug a little deeper into the readings from the PPK attached to the peripheral and it appears that the AUX_SYNC_IND&amp;nbsp;transmits a tiny bit&amp;nbsp;&lt;span style="text-decoration:underline;"&gt;before&lt;/span&gt; the AUX_ADV_IND event (I can tell because the AUX_SYNC_IND uses a lot less power and also, if I set the AUX_SYNC_IND frequency lower than AUX_ADV_IND I can also check the timing between events). If this is true, can I assume the offset is ~9.9s rather than ~0.1s and hence won&amp;#39;t work because of your explanation above?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;By this logic, as far as I can tell, the only way to keep this working reliably is to transmit the&amp;nbsp;AUX_SYNC_IND every 2.5s or less and transmit the&amp;nbsp;AUX_ADV_IND at a frequency a multiple of the&amp;nbsp;&amp;nbsp;AUX_SYNC_IND interval. This uses a lot of power (17.6&amp;micro;A for my peripheral using&amp;nbsp;AUX_ADV_IND interval of 10s and&amp;nbsp;AUX_SYNC_IND interval of 2s).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As a suggestion, since the AUX_SYNC_IND depends on information provided in AUX_ADV_IND, doesn&amp;#39;t it make sense to transmit&amp;nbsp;AUX_SYNC_IND &lt;span style="text-decoration:underline;"&gt;after&lt;/span&gt;&amp;nbsp;AUX_ADV_IND? This would solve all the issues. I could then set both events with the same frequency and&amp;nbsp;AUX_SYNC_IND would always be within 2.5s of&amp;nbsp;AUX_ADV_IND. I could then set both to 10s and use a lot less power (11.3&amp;micro;A for my peripheral which means my battery would last 50% longer!)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I hope this makes sense.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Periodic Advertising Issue</title><link>https://test-devzone.nordicsemi.com/thread/372558?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2022 12:05:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a10f01dc-127d-49e2-ac86-6f58323f188c</guid><dc:creator>user6207</dc:creator><description>&lt;p&gt;The interval should have been set to non zero value, which is a small bug and will be fixed soon.&lt;/p&gt;
&lt;p&gt;Normally when the distance between the AUX_ADV_IND(with sync_info) and the AUX_SYNC_IND is greater than 2.5s, then the value of that distance offset cannot be represented in the interval field of the sync_info. That made us mistakenly clear the sync_info field in case the distance cannot be represented.&lt;/p&gt;
&lt;p&gt;But even after fixing this not to clear the interval field, the behavior would be same. If the AUX_ADV_IND and the next periodic AUX_SYNC_IND packets happen to be at the distance greater than 2.5s, then you will see a longer syncing time before the sync_info field can represent the interval.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do not chose the ADV_IND and AUX_SYNC_IND intervals where in worst case there distances are farther than 2.5S for multiple times in a row.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Periodic Advertising Issue</title><link>https://test-devzone.nordicsemi.com/thread/372547?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2022 11:42:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4417e3b0-3320-48d9-b7fa-0440224fd41a</guid><dc:creator>user6207</dc:creator><description>&lt;p&gt;I see the same, this should have been fixed, I will check with the dev team and come back to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Periodic Advertising Issue</title><link>https://test-devzone.nordicsemi.com/thread/372349?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2022 11:06:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44fdbe35-be60-4e06-a186-01b8bd4fcd2e</guid><dc:creator>user116666</dc:creator><description>&lt;p&gt;I have upgraded to nRF Connect SDK 2.0.0 (it took me some time to understand the new Pin Control settings).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Unfortunately, it doesn&amp;#39;t seem to have affected this issue. It is behaving the same as before.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Periodic Advertising Issue</title><link>https://test-devzone.nordicsemi.com/thread/372272?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2022 06:31:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1db0e80-8e2b-4301-86bb-080f68b5014a</guid><dc:creator>user6207</dc:creator><description>&lt;p&gt;This seems to be a bug that seems to have been fixed in &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/softdevice_controller/CHANGELOG.html"&gt;Nordic Connect SDKv2.0.0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;quot;Fixed an issue where the advertiser would incorrectly set Offset Adjust in 
the SyncInfo when the offset to the&amp;#160;AUX_SYNC_IND&amp;#160;is large (DRGN-16887).&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Can you please give it a try&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Periodic Advertising Issue</title><link>https://test-devzone.nordicsemi.com/thread/372261?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2022 06:17:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5d396d3-2451-4aa2-9781-ff97630b64e3</guid><dc:creator>user116666</dc:creator><description>&lt;p&gt;Many thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Periodic Advertising Issue</title><link>https://test-devzone.nordicsemi.com/thread/372256?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2022 05:11:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11f4d085-a7a3-433b-8747-0a8715143967</guid><dc:creator>user6207</dc:creator><description>&lt;p&gt;There clearly is some logic behind the optimal settings here and I cannot figure out what that is by looking at the documentation. I will have to reach to the BLE team to gain more knowledge. I will be back to you with more info soon.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Periodic Advertising Issue</title><link>https://test-devzone.nordicsemi.com/thread/372164?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2022 13:16:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:812054c3-0ef3-4376-a9e6-63c5f54c8955</guid><dc:creator>user116666</dc:creator><description>&lt;p&gt;Thanks Susheel&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In order to test this I have kept the&amp;nbsp;&lt;span&gt;ADV_EXT_IND interval at 10s and have varied the&amp;nbsp;AUX_SYNC_IND interval across 9s, 8s and 7s. It takes anywhere from 2 to 5 minutes for the receiver to synchronise. The peripheral/sender is still sending lots of events with no &amp;quot;interval&amp;quot; included even though the&amp;nbsp;ADV_EXT_IND and&amp;nbsp;AUX_SYNC_IND events are quite far apart.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have tested this using my phone (with the nRF Connect App) as well as an nRF52833DK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am still confused about why it works if I increase the interval frequency. If I set both intervals to 1s then the receiver synchronises almost immediately. The &amp;quot;interval&amp;quot; is included in the very first transmission.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Do you know the logic used to include the &amp;quot;interval&amp;quot; into the initial advertising message?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Periodic Advertising Issue</title><link>https://test-devzone.nordicsemi.com/thread/372124?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2022 11:46:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fa6abe9-56f1-45b0-884c-a51c8ca251c2</guid><dc:creator>user6207</dc:creator><description>&lt;p&gt;OK, I tested this and it seems that since the ADV_EXT_IND interval in&amp;nbsp;le_advertising_param and&amp;nbsp;AUX_SYNC_IND interval in&amp;nbsp;periodic_param might be causing some collisions in the timeslots most likely causing the adv ind to not transimit the interval sometimes. Try to select the intervals of ADV_EXT_IND and AUX_SYNC_IND not to be multiples of each. I understand that there should be some radion delay between adv events, but there seems to be a connection in how you select the adv_params and periodic_sync_interval parameter&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Periodic Advertising Issue</title><link>https://test-devzone.nordicsemi.com/thread/371941?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2022 14:35:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f237677-1891-4249-9563-a4e0bb675cce</guid><dc:creator>user116666</dc:creator><description>&lt;p&gt;Thanks Susheel.&lt;/p&gt;
&lt;p&gt;Looking forward to your feedback.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Periodic Advertising Issue</title><link>https://test-devzone.nordicsemi.com/thread/371775?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2022 06:49:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1110091-0f98-4014-aed0-8fbbb807fea4</guid><dc:creator>user6207</dc:creator><description>&lt;p&gt;&amp;nbsp;I could not test this this week. I will have to take a look at it Monday, I appreciate your patience and sorry for the delays.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Periodic Advertising Issue</title><link>https://test-devzone.nordicsemi.com/thread/371094?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2022 09:40:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d38060a7-9f51-44b0-99f0-0ba5f66e60b1</guid><dc:creator>user116666</dc:creator><description>&lt;p&gt;&lt;a href="https://test-devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf_5F00_test_2D00_periodic_5F00_demo.zip"&gt;test-devzone.nordicsemi.com/.../nrf_5F00_test_2D00_periodic_5F00_demo.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Hi Susheel&lt;/p&gt;
&lt;p&gt;I have attached the projects.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The &amp;quot;Adv&amp;quot; is for the peripheral and the &amp;quot;Sync&amp;quot; is for the scanner.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have set up the intervals on the Peripheral as 10s for the LE Advertisement and 5s for the Periodic Data.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Periodic Advertising Issue</title><link>https://test-devzone.nordicsemi.com/thread/371059?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2022 08:14:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04bf44c1-ad1f-4fb1-befb-8afa89228f2b</guid><dc:creator>user6207</dc:creator><description>&lt;p&gt;This is very interesting.&lt;br /&gt;I have not tested the periodic advertising my self, but the&amp;nbsp;output does look very interesting.&lt;br /&gt;I do not think that the advertising interval should have this effect. Is it possible for you to attach the adv and scanner project here so that I can do some testing here and give you more conclusive answer?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Periodic Advertising Issue</title><link>https://test-devzone.nordicsemi.com/thread/370857?ContentTypeID=1</link><pubDate>Fri, 03 Jun 2022 11:34:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3be99d55-7336-4b8e-a8b6-03096402d65d</guid><dc:creator>user6207</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;I did not manage to look at this today, will look into the details you provided next week. Thanks for your patience.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>