<?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>Secondary channel index in extended advertising using nRF Connect SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/88783/secondary-channel-index-in-extended-advertising-using-nrf-connect-sdk</link><description>Hello!! 
 I have explored extended advertising using both nRF5 SDK and nRF Connect SDK. Using nRF5 SDK, it is not possible to advertise 1650 bytes in an extended advertising event, hence it only uses one AUX_IND_PDU and one AUX_CHAIN_PDU to advertise</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Jun 2022 18:20:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/88783/secondary-channel-index-in-extended-advertising-using-nrf-connect-sdk" /><item><title>RE: Secondary channel index in extended advertising using nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/372667?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2022 18:20:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aeb326ea-15d3-49a8-8219-03d730c714cb</guid><dc:creator>Sukriti </dc:creator><description>&lt;p&gt;Thanks a lot for looking into this Simon! Shall wait for the update in the next version..&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secondary channel index in extended advertising using nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/372509?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2022 08:58:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:668890e2-4772-4b1f-bad6-2fe94c54c825</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Okay, so it does indeed seem you&amp;#39;re right. For the nRF Connect SDK we changed the implementation when adding support for periodic advertising to use a channel selection algorithm, but we didn&amp;#39;t consider that this would make the channel selection deterministic. We will change this for future releases. Unfortunately, this is not something you can change from your end as the channel selection is done in the SoftDevice controller.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;UPDATE:&amp;nbsp;&lt;/strong&gt;A fix has been implemented, reviewed and merged, and we expect it to be available in the next NCS version.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secondary channel index in extended advertising using nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/372144?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2022 12:37:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa6e48c4-fbc4-4aa5-962e-7f95d1e482b9</guid><dc:creator>Sukriti </dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;I have attached the trace. Are you able to access it? Or should I post screenshots instead?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Wireshark-Trace.zip"&gt;devzone.nordicsemi.com/.../Wireshark-Trace.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secondary channel index in extended advertising using nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/372118?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2022 11:36:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05e9a5ee-11f4-487b-8a76-a435db46996d</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Oh, I see. Yes, we can see this behavior on our side as well. Thank you for specifying your issue. This is a channel mapping done in the link layer, so it&amp;#39;s not configurable I&amp;#39;m afraid, but I agree that this sounds like an issue as they shouldn&amp;#39;t always have the same pattern. I have asked the developers internally now, and I&amp;#39;m currently waiting for a response from them. I&amp;#39;ll keep you updated.&lt;/p&gt;
&lt;p&gt;Can you upload the full sniffer trace of the &amp;quot;only channel 25&amp;quot; advertisements for us as well?&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: Secondary channel index in extended advertising using nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/371956?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2022 19:10:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85b6848f-9abb-4e60-b36b-e9e9f6ca95ee</guid><dc:creator>Sukriti </dc:creator><description>&lt;p&gt;Hi Simon!&lt;/p&gt;
&lt;p&gt;Thank you so much for attaching the screenshot. This just made things a lot clearer to me and made me realize that I did not provide you the full background.&lt;/p&gt;
&lt;p&gt;So basically, I am advertising data that changes dynamically with time. For this, I set the number of events in the advertising data set to 1. For advertising each extended advertising event with updated data, this advertising data set gets re-configured, allowing exactly one event to take place. This ensures that any unique data does not get advertised more than once.&lt;/p&gt;
&lt;p&gt;With the number of advertising events inside the advertising set restricted to 1, this is the sniffer screenshot:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/1-copy.png" /&gt;&lt;/p&gt;
&lt;p&gt;As you can see, the Auxiliary PDUs are always transmitted on the same channel, indexed 25.&lt;/p&gt;
&lt;p&gt;Looking at your results with Hung&amp;#39;s code, I increased the number of events in my code from 1 to 3. This is what I obtained at the sniffer then..&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2_2D00_1-copy.png" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2_2D00_2-copy.png" /&gt;&lt;/p&gt;
&lt;p&gt;Now, here, I observed a pattern. The Auxiliary chain channel index changed from 25 to 20 and then to 6 in the first three extended advertising events. After this, the advertising data set got re-configured, and the next three extended advertising events also&amp;nbsp;followed exactly the same pattern of secondary channels 25 -&amp;gt; 20 -&amp;gt; 6.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Next, I also checked the secondary channels with Hung&amp;#39;s code, and this was the output:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/3_2D00_1-copy.png" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/3_2D00_2-copy.png" /&gt;&lt;/p&gt;
&lt;p&gt;Here, the advertising data set got configured only once, in the beginning, and all the events were advertised without the set getting re-configured. Clearly, upon set configuration, the first extended advertising event uses the secondary channel 25, the next one uses 20, next uses 6 and so on.. Exactly the same sequence of secondary channels.&lt;/p&gt;
&lt;p&gt;Now as far as I understood, whenever I&amp;#39;ll configure an advertising set, the secondary channels are going to change for every extended advertising event following this specific pattern that I showed in the previous two examples. I was re-configuring the advertising data set for sending out each extended advertising event and this is why the entire Auxiliary chain always used channel index 25.&lt;/p&gt;
&lt;p&gt;But, in nRF5 SDK also, I had used the exactly same approach of setting the number of events in an advertising set to 1 and then re-configuring the advertising set for each extended advertising event.&amp;nbsp;But as you can see in the figure attached below, there is no fixed pattern and in fact, the packets within the Auxiliary segment are also advertised on different channels, unlike nRF Connect SDK where the entire auxiliary chain uses the same secondary channel.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/nRF5-OSOE-copy.png" /&gt;&amp;#39;&lt;/p&gt;
&lt;p&gt;Is there a way to achieve this type of randomization in nRF Connect SDK? If not, is it at least possible to not have a fixed pattern of secondary channels inside the advertising data set? I would definitely not want to advertise the entire data on the same channel.&lt;/p&gt;
&lt;p&gt;I hope I conveyed everything clearly. Waiting for your response!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sukriti&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secondary channel index in extended advertising using nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/371800?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2022 08:40:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3aca4525-5f6a-4d5d-984c-41fa4f21a7e8</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;After a quick test on our side, we did not see this issue. Every different chained advertisement changes the channel, and there shouldn&amp;#39;t be a configuration to set a specific channel AFAIK. This test was done with the project Hung uploaded in your last ticket.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1654849747884v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;To me it sounds like you get channel 25 as the auxiliary channel no matter what you do, is that correct? If so, can you upload the full sniffer trace here so we can take a look? If it&amp;#39;s the case that you&amp;#39;re just worried that one channel is used for the entire chained advertisement, then that is expected, as each chained advertisement will &amp;quot;choose&amp;quot; a channel to send the entire chain on, and then it should choose another channel for the next chained advertisement.&lt;/p&gt;
&lt;p&gt;Also, what nRF Connect SDK version are you using for your project? We tested in v1.9.1.&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></channel></rss>