<?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>Question about identifying active antenna indices and IQ sample logging impact on ranging (nRF54L15 Channel Sounding)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/125274/question-about-identifying-active-antenna-indices-and-iq-sample-logging-impact-on-ranging-nrf54l15-channel-sounding</link><description>I am currently working with the Channel Sounding sample on the nRF54L15 DK boards (SDK and toolchain v3.1.1) and using Nordic’s multiple-antenna support as described here: docs.nordicsemi.com/.../channel_sounding.html 
 I am operating in multiplexing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Nov 2025 15:00:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/125274/question-about-identifying-active-antenna-indices-and-iq-sample-logging-impact-on-ranging-nrf54l15-channel-sounding" /><item><title>RE: Question about identifying active antenna indices and IQ sample logging impact on ranging (nRF54L15 Channel Sounding)</title><link>https://devzone.nordicsemi.com/thread/553854?ContentTypeID=1</link><pubDate>Mon, 10 Nov 2025 15:00:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e2cda4a-6321-4537-894d-2074bdc616e7</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;This is the reply I got from our Channel sounding team, including some background info:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;----------------------------------------&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;First of all, all antenna paths are used in every CS step mode 2, meaning all antennas will be used in every step. If you are using the default T_PM = 10µs and the required T_SW = 10µs, then the antennas may be switched at an interval of 20µs during the mode 2 step. From the application point of view there is not &amp;quot;currently&amp;quot; active antenna, all of this happens in high priority context handled by the controller. &amp;nbsp;If possible you can connect a logic analyzer to the GPIOs which are controlling the antenna switch (&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/df039990cdc5b0187459a83995fa7d61a8afe44a/samples/bluetooth/channel_sounding_ras_initiator/boards/nrf54l15dk_nrf54l15_cpuapp.overlay#L7-L17"&gt;https://github.com/nrfconnect/sdk-nrf/blob/df039990cdc5b0187459a83995fa7d61a8afe44a/samples/bluetooth/channel_sounding_ras_initiator/boards/nrf54l15dk_nrf54l15_cpuapp.overlay#L7-L17&lt;/a&gt;) to view the exact times of switching.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For the 2:2 configuration there are four antenna paths, N_AP=4, and each antenna path is defined as follows: AP1 is assigned to 1:1, AP2 is assigned to 1:2, AP3 is assigned to 2:1 and AP4 is assigned to 2:2. &amp;nbsp;Where the notation x:y corresponds to antenna x on initiator, &amp;nbsp;antenna y on reflector. (Reference: &lt;i&gt;Core Spec Version 6.2 Vol 6 Part A Section 5.3&lt;/i&gt;&lt;br /&gt;&lt;i&gt;Antenna Switching for Channel Sounding&lt;/i&gt;).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Furthermore, the antenna path permutation index corresponds to a certain sequence in which the antenna paths will be activated during a CS step according to &lt;i&gt;Table 4.15 in Core Spec Version 6.2 Vol 6 Part H Section 4.7.5 Antenna path permutations&lt;/i&gt;. By the way, I think the entire &lt;i&gt;Section 4.7 Phase measurements with antenna switching&lt;/i&gt;, might be of interest.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note that it is this function&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/df039990cdc5b0187459a83995fa7d61a8afe44a/subsys/bluetooth/controller/cs_antenna_switch.c#L74-L98"&gt;https://github.com/nrfconnect/sdk-nrf/blob/df039990cdc5b0187459a83995fa7d61a8afe44a/subsys/bluetooth/controller/cs_antenna_switch.c#L74-L98&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;that is used by the controller to switch to a given antenna (indexed from 0 unlike the description above/ in spec).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Finally after collecting results from both the initiator and reflector the IQ values measured during a CS procedure for each antenna path is stored here:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/a7e36dcbea5d835baea5e96ea80d0b7955e296fd/include/bluetooth/cs_de.h#L78-L79"&gt;https://github.com/nrfconnect/sdk-nrf/blob/a7e36dcbea5d835baea5e96ea80d0b7955e296fd/include/bluetooth/cs_de.h#L78-L79&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the example of a 2:2 configuration&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;iq_tones[0] contains IQ data from AP1 (antenna 1 on initiator, &amp;nbsp;antenna 1 on reflector)&lt;/li&gt;
&lt;li&gt;iq_tones[1] contains IQ data from AP2 (antenna 1 on initiator, antenna 2 on reflector)&lt;/li&gt;
&lt;li&gt;iq_tones[2] contains IQ data from AP3 (antenna 2 on initiator, &amp;nbsp;antenna 1 on reflector)&lt;/li&gt;
&lt;li&gt;iq_tones[3] contains IQ data from AP4 (antenna 2 on initiator, &amp;nbsp;antenna 2 on reflector)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;----------------------------------------&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Edvin&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question about identifying active antenna indices and IQ sample logging impact on ranging (nRF54L15 Channel Sounding)</title><link>https://devzone.nordicsemi.com/thread/553489?ContentTypeID=1</link><pubDate>Wed, 05 Nov 2025 19:59:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1830b648-ca65-4149-8683-296756aa38af</guid><dc:creator>Firo_187</dc:creator><description>&lt;p data-start="200" data-end="402"&gt;I&amp;rsquo;m already familiar with the struct and I&amp;rsquo;m logging the &lt;code data-start="257" data-end="284"&gt;antenna_permutation_index&lt;/code&gt;. However, it&amp;rsquo;s still not entirely clear to me &lt;strong data-start="331" data-end="399"&gt;where in the code I can actually see which antenna is being used&lt;/strong&gt;.&lt;/p&gt;
&lt;p data-start="404" data-end="637"&gt;In the file &lt;code data-start="416" data-end="425"&gt;cs_de.c&lt;/code&gt;, inside the &lt;code data-start="438" data-end="457"&gt;process_step_data&lt;/code&gt; function, I&amp;rsquo;m working with the struct&lt;br data-start="495" data-end="498" /&gt; &lt;code data-start="498" data-end="529"&gt;bt_hci_le_cs_step_data_mode_2&lt;/code&gt;, since my main focus is on Mode 2.&lt;br data-start="564" data-end="567" /&gt; There, I can access the &lt;code data-start="591" data-end="618"&gt;antenna_permutation_index&lt;/code&gt; and &lt;code data-start="623" data-end="634"&gt;tone_info&lt;/code&gt;.&lt;/p&gt;
&lt;p data-start="639" data-end="838"&gt;While I understand the order of the selected antenna paths from the &lt;code data-start="707" data-end="734"&gt;antenna_permutation_index&lt;/code&gt;, &lt;strong data-start="736" data-end="835"&gt;I still don&amp;rsquo;t see how to determine which specific physical antenna was active at a given moment&lt;/strong&gt;.&lt;/p&gt;
&lt;p data-start="840" data-end="971"&gt;Could you please clarify how to derive the currently active antenna based on the &lt;code data-start="921" data-end="948"&gt;antenna_permutation_index&lt;/code&gt; or any related data?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question about identifying active antenna indices and IQ sample logging impact on ranging (nRF54L15 Channel Sounding)</title><link>https://devzone.nordicsemi.com/thread/553442?ContentTypeID=1</link><pubDate>Wed, 05 Nov 2025 13:34:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cccf0e3f-5498-45b1-83c2-f083eb405247</guid><dc:creator>Firo_187</dc:creator><description>&lt;p&gt;Hi edvin,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the reply but is it now possible to log the current active antenna index or not with an multi antenna Configuration?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question about identifying active antenna indices and IQ sample logging impact on ranging (nRF54L15 Channel Sounding)</title><link>https://devzone.nordicsemi.com/thread/553435?ContentTypeID=1</link><pubDate>Wed, 05 Nov 2025 12:50:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35ea41c3-0aa7-4f72-a3ac-38d573eed473</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;This should be where you can find the IQ data:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/a7e36dcbea5d835baea5e96ea80d0b7955e296fd/include/bluetooth/cs_de.h#L78-L79"&gt;https://github.com/nrfconnect/sdk-nrf/blob/a7e36dcbea5d835baea5e96ea80d0b7955e296fd/include/bluetooth/cs_de.h#L78-L79&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You should be able to hook onto those using the NCS\nrf\samples\bluetooth\channel_sounding_ras_[initiator/reflector] samples.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question about identifying active antenna indices and IQ sample logging impact on ranging (nRF54L15 Channel Sounding)</title><link>https://devzone.nordicsemi.com/thread/553070?ContentTypeID=1</link><pubDate>Fri, 31 Oct 2025 21:26:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f03d5146-5624-41ec-acd1-9cd7083ec87b</guid><dc:creator>Firo_187</dc:creator><description>&lt;p&gt;I would also like to mention that I am using the 4&amp;times;4 antenna array &lt;strong data-start="260" data-end="288"&gt;CoreHW CHW1010-ANT 2-1.0&lt;/strong&gt; with different polarizations. I am testing various configurations to study the effect of polarization and how it affects the ranging, and therefore I would like to know which antenna is currently active...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question about identifying active antenna indices and IQ sample logging impact on ranging (nRF54L15 Channel Sounding)</title><link>https://devzone.nordicsemi.com/thread/553035?ContentTypeID=1</link><pubDate>Fri, 31 Oct 2025 13:56:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90f408df-a674-4495-bd72-7b2b9a3c866f</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply. I am discussing this with our channel sounding team to see whether it is possible. I will get back to you when I know more.&amp;nbsp;I am sorry for the delay.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>