<?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>Problem with I and Q Samples During the Reference Period of CTE Packets</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78189/problem-with-i-and-q-samples-during-the-reference-period-of-cte-packets</link><description>Hi 
 
 As described in this white paper: https://infocenter.nordicsemi.com/pdf/nwp_036.pdf during the reference period of CTE signals, 8 samples are taken. These samples contain both &amp;quot;I&amp;quot; and &amp;quot;Q&amp;quot; elements of signal which has different phases relatively</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Apr 2025 08:08:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78189/problem-with-i-and-q-samples-during-the-reference-period-of-cte-packets" /><item><title>RE: Problem with I and Q Samples During the Reference Period of CTE Packets</title><link>https://devzone.nordicsemi.com/thread/530757?ContentTypeID=1</link><pubDate>Mon, 07 Apr 2025 08:08:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66d92942-f005-49c1-9755-61a4dbdf8286</guid><dc:creator>Saleh</dc:creator><description>&lt;p&gt;Hi Louis&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is simply plotting the IQ samples reported by the MCU without any modification. Print the IQ samples using UART2USB line and then store the result in a file. In a for loop, go over the IQ samples and print them:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;printf(&amp;quot;%i,%i, i_val, q_val)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Then open the file that you&amp;#39;ve stored the IQ log by a python script and plot the numbers:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;import matplotlib.pyplot as plt

IQ_LOG_FILE = &amp;quot;iq_raw_log/iq.txt&amp;quot;


def read_file_to_lists(file_name):
    with open(file_name, &amp;#39;r&amp;#39;) as f:
        # Read each line, split the string by spaces, and convert to integers
        return [list(map(int, line.split())) for line in f]


def plot_iq(samples):
    i_sample = samples[::2]
    q_sample = samples[1::2]
    plt.plot(i_sample, label=&amp;#39;I&amp;#39;)
    plt.plot(q_sample, label=&amp;#39;Q&amp;#39;)
    plt.legend()
    plt.show()


if __name__ == &amp;#39;__main__&amp;#39;:
    lists_from_file = read_file_to_lists(IQ_LOG_FILE)
    plot_iq(lists_from_file[2])
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It assumes the IQ is stored into the file in a format like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;i11, q11, i12, q12, ...., i1n, q1n
i21, q21, i22, q22, ...., i2n, q2n&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Each line has the IQ samples of one single CTE capture, I comes first and then Q, and they are seperated by comma&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with I and Q Samples During the Reference Period of CTE Packets</title><link>https://devzone.nordicsemi.com/thread/530729?ContentTypeID=1</link><pubDate>Mon, 07 Apr 2025 03:26:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c8e763d-0000-4f8f-87d5-b92d18304794</guid><dc:creator>Louis Chen</dc:creator><description>&lt;p&gt;Hi Saleh,&lt;/p&gt;
&lt;p&gt;I am currently using 52833-DK to try to output IQ sample plot, but I cannot output the diagram like yours. Can you please provide the corresponding code including algorithm or filtering method?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with I and Q Samples During the Reference Period of CTE Packets</title><link>https://devzone.nordicsemi.com/thread/434384?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2023 08:48:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc7b9565-5eb4-44a1-8808-4d01667aa257</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Allen&lt;/p&gt;
&lt;p&gt;I see you have created a ticket of your own here. I&amp;#39;ll reply to you there, as this ticket is ~2 years old at this point.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with I and Q Samples During the Reference Period of CTE Packets</title><link>https://devzone.nordicsemi.com/thread/434379?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2023 08:42:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39d165a3-153d-4cf0-be16-d4cfc8cb02e1</guid><dc:creator>AllenWang</dc:creator><description>&lt;p&gt;Hello, Saleh:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; have you got this question resolved. I met the same issue as you. hope get kindly guidance from you&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks and best wishes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with I and Q Samples During the Reference Period of CTE Packets</title><link>https://devzone.nordicsemi.com/thread/323856?ContentTypeID=1</link><pubDate>Fri, 06 Aug 2021 21:10:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c98c43e-a84d-4212-a41a-df3a8f1f3989</guid><dc:creator>Piotr</dc:creator><description>&lt;p&gt;Thank you for the suggestion, we will consider possibility to go with 1M PHY.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with I and Q Samples During the Reference Period of CTE Packets</title><link>https://devzone.nordicsemi.com/thread/323790?ContentTypeID=1</link><pubDate>Fri, 06 Aug 2021 13:47:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63b02853-1756-4524-a650-9bb56ccce165</guid><dc:creator>Saleh</dc:creator><description>&lt;p&gt;Thank you for clarification, It helped too much.&lt;/p&gt;
&lt;p&gt;To prevent any misunderstanding specially for beginners, I suggest to change the default physical bit rate of the &amp;quot;tx sample&amp;quot;, from 2MB to 1MB, by adding the &amp;quot;BT_LE_ADV_OPT_NO_2M&amp;quot; parameter option.&lt;/p&gt;
&lt;p&gt;Also as you can find in this document: &lt;a href="https://www.bluetooth.com/bluetooth-resources/bluetooth-direction-finding/"&gt;https://www.bluetooth.com/bluetooth-resources/bluetooth-direction-finding/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Page 26, part &amp;quot;5.3 Choices of PHY&amp;quot;, has declared that support of 1MB is mandatory and 2Mb is optional. so from this point of view, choosing the 1MB as the default bit-rate could be a better option.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with I and Q Samples During the Reference Period of CTE Packets</title><link>https://devzone.nordicsemi.com/thread/323775?ContentTypeID=1</link><pubDate>Fri, 06 Aug 2021 13:15:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad1881af-4112-409f-a815-83a08adaced6</guid><dc:creator>Piotr</dc:creator><description>&lt;p&gt;Referring to you comments.&lt;/p&gt;
&lt;p&gt;2. The offset between samples may or may not be visible with PHY_2M. Take a look here:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/642x480/__key/communityserver-discussions-components-files/4/IQ_5F00_sampling_5F00_aliasing_5F00_3.png" /&gt;&lt;/p&gt;
&lt;p&gt;The plot presents IQ samples where there is visible offset in selected I and Q. It was produces on IQ data collected with the same FW I&amp;#39;ve been using to prepare former plot. This one presents IQ data for different CTE.&lt;/p&gt;
&lt;p&gt;In case of PHY_1M, BT Core spec samples spacing in ref. period 1us provides more information for a period of the RF wave, so there is more likely that there won&amp;#39;t be the situation with not visible offset between I and Q samples.&lt;/p&gt;
&lt;p&gt;3. TSAMPLEOFFSET offset is a fine-tunig mechanism implemented in DFE. It may introduce better results when applied but it is not necessary. Radio takes samples in appropriate moments at least 125ns after beginning of the sampling slot.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with I and Q Samples During the Reference Period of CTE Packets</title><link>https://devzone.nordicsemi.com/thread/323737?ContentTypeID=1</link><pubDate>Fri, 06 Aug 2021 12:27:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:101a0e7b-9f17-4c67-bcbc-05095b09cdcb</guid><dc:creator>Saleh</dc:creator><description>&lt;p&gt;Thanks a lot Piotr,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I was working on this issue for three days, there are some comments that I want to share:&lt;br /&gt;&lt;br /&gt;1- Yes, Also I found both transmitter and receiver are working as expected and&amp;nbsp; there is a phase-shift between &amp;quot;I&amp;quot; and &amp;quot;Q&amp;quot;.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;2- The reason that we can not see this phase-shift in the samples, is the frequency offset of CTE signal. when &lt;strong&gt;PHY_2M&lt;/strong&gt; is used, the offset is &lt;strong&gt;500kHz&lt;/strong&gt; and when &lt;strong&gt;PHY_1M&lt;/strong&gt; is used, it will be &lt;strong&gt;250kHz&lt;/strong&gt;. By &lt;strong&gt;default&lt;/strong&gt; &amp;quot;PHY_2M&amp;quot; has chosen in Zephyr examples, so the offset of CTE signal is 500kHz.&lt;/p&gt;
&lt;p&gt;According to the sampling frequency during the &amp;quot;reference period&amp;quot; which is done every 1us, the result is not clear enough to see the phase-shift.&lt;/p&gt;
&lt;p&gt;the offset frequency of different physical bitrate has documented in this white paper, page 13: &lt;a href="https://infocenter.nordicsemi.com/pdf/nwp_036.pdf"&gt;https://infocenter.nordicsemi.com/pdf/nwp_036.pdf&lt;/a&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;3- Maybe it is not directly relevant, but as you can see in the above white paper (page 12), it is needed to set the &amp;quot;TSAMPLEOFFSET&amp;quot; in order to read the samples when A/D converter has settled. Now this value is not set and is zero by default.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;4- I changed the physical bit rate to 1M by adding the &amp;quot;BT_LE_ADV_OPT_NO_2M&amp;quot; option to the advertiser parameter of the transmitter:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;
static struct bt_le_adv_param param =
		BT_LE_ADV_PARAM_INIT(BT_LE_ADV_OPT_EXT_ADV |
				     BT_LE_ADV_OPT_USE_NAME |
				     BT_LE_ADV_OPT_NO_2M,
				     BT_GAP_ADV_FAST_INT_MIN_2,
				     BT_GAP_ADV_FAST_INT_MAX_2,
				     NULL);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And now you can see the phase-shift obviously between &amp;quot;I&amp;quot; and &amp;quot;Q&amp;quot; samples.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2438.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Saleh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with I and Q Samples During the Reference Period of CTE Packets</title><link>https://devzone.nordicsemi.com/thread/323698?ContentTypeID=1</link><pubDate>Fri, 06 Aug 2021 11:16:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0312714-72c1-4e17-8a78-71388d90fbd4</guid><dc:creator>Piotr</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve taken a look into the issue. I&amp;#39;ve made some small custom change to enable oversampling of received CTE. Samples spacing I&amp;#39;ve used is 125ns instead of 1us that is BT Core spec ref. period spacing.&lt;/p&gt;
&lt;p&gt;Pay attention that samples were collected before preparation to transport through HCI layer. They have different amplitude than what you would observe in application layer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have a look on the plot below.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/IQ_5F00_sampling_5F00_aliasing_5F00_2.png" /&gt;&lt;/p&gt;
&lt;p&gt;I and Q lines are samples collected every 125ns. Selected I and selected Q are samples you would observe in application (selected every 1us)&lt;/p&gt;
&lt;p&gt;As you can clearly see, the selected I and Q look like there is no PI/2 phase shift between actual I and Q. In reality the shift is there but undersampling makes is not visible.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with I and Q Samples During the Reference Period of CTE Packets</title><link>https://devzone.nordicsemi.com/thread/323551?ContentTypeID=1</link><pubDate>Thu, 05 Aug 2021 13:05:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c597c50-7337-41f5-86f1-b2f6940c3934</guid><dc:creator>Saleh</dc:creator><description>&lt;p&gt;Thanks for your time Simnor&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have attached the recorded file, the format is:&lt;/p&gt;
&lt;p&gt;&amp;lt;i&amp;gt;, &amp;lt;q&amp;gt;, &amp;lt;i&amp;gt;, &amp;lt;q&amp;gt;, ......, &amp;lt;i&amp;gt;, &amp;lt;q&amp;gt;\n&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/iq_2D00_locator_2D00_nrf52833.txt"&gt;devzone.nordicsemi.com/.../iq_2D00_locator_2D00_nrf52833.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;every line contains the IQ data captured from a CTE signal. The sample time slot is set to 1us, so in total 82 IQ samples are available. to reproduce it at your site, you can simply run the &amp;quot;direction finding example&amp;quot; and print the IQ samples. for more information please take a look at this issue:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues/37412"&gt;https://github.com/zephyrproject-rtos/zephyr/issues/37412&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Saleh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with I and Q Samples During the Reference Period of CTE Packets</title><link>https://devzone.nordicsemi.com/thread/323530?ContentTypeID=1</link><pubDate>Thu, 05 Aug 2021 12:05:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a4e46c4-a43a-4c8d-9c3d-47d17415dc35</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Sorry about the misunderstanding on my part, I interpreted the BLE spec. incorrectly. I discussed this with&amp;nbsp;a few colleagues, and what you&amp;#39;re expecting to see (the phase shift between I and Q) should indeed be the case. The I and Q samples are always measured at the same point in time so they should indeed be phase shifted. Can you provide the IQ data itself so we can take a look on our side?&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: Problem with I and Q Samples During the Reference Period of CTE Packets</title><link>https://devzone.nordicsemi.com/thread/323376?ContentTypeID=1</link><pubDate>Wed, 04 Aug 2021 15:03:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50e31f4b-6564-47be-a824-c8b2d78ab8e0</guid><dc:creator>Saleh</dc:creator><description>&lt;p&gt;Thanks Dmitry&lt;/p&gt;
&lt;p&gt;Exactly! you are right. It should be 2 cycle at reference period (each cycle takes 4us so two cycle during 8us reference period).&lt;/p&gt;
&lt;p&gt;Also it is mentioned in this references that CTE signal carries a 250kHz signal, so Dmitry assumption is correct:&lt;/p&gt;
&lt;p&gt;Ref1: &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fnwp_036%2FWP%2Fnwp_036%2Fconstant_tone_extension.html"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fnwp_036%2FWP%2Fnwp_036%2Fconstant_tone_extension.html&lt;/a&gt;&lt;br /&gt;Ref2: &lt;a href="https://dev.ti.com/tirex/explore/node?node=AHYhhuDNTaRXzkOlahOlvA__pTTHBmu__LATEST"&gt;https://dev.ti.com/tirex/explore/node?node=AHYhhuDNTaRXzkOlahOlvA__pTTHBmu__LATEST&lt;/a&gt;&lt;br /&gt;Ref3: &lt;a href="https://www.silabs.com/documents/public/application-notes/an1297-custom-direction-finding-solutions-silicon-labs-bluetooth.pdf"&gt;https://www.silabs.com/documents/public/application-notes/an1297-custom-direction-finding-solutions-silicon-labs-bluetooth.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It seems the transmitter is sending an incorrect signal, maybe it is a software problem &lt;a href="https://devzone.nordicsemi.com/members/simonr"&gt;Simonr&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with I and Q Samples During the Reference Period of CTE Packets</title><link>https://devzone.nordicsemi.com/thread/323366?ContentTypeID=1</link><pubDate>Wed, 04 Aug 2021 14:29:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5db135fc-bef5-4be4-a7de-95cb7820bd2f</guid><dc:creator>Saleh</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Yes it is, and can you explain why there is no phase-shift between &amp;quot;I&amp;quot; and &amp;quot;Q&amp;quot; signal during the &amp;quot;reference period&amp;quot; while it should be? As you mentioned before 90 degree difference should be visible between these two signal.&lt;/p&gt;
&lt;p&gt;I think something is wrong at the lower layers that control the BLE.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Saleh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with I and Q Samples During the Reference Period of CTE Packets</title><link>https://devzone.nordicsemi.com/thread/323343?ContentTypeID=1</link><pubDate>Wed, 04 Aug 2021 13:27:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1cdbade-dd2f-48dc-94bc-dc5199ba1c2e</guid><dc:creator>Simonr</dc:creator><description>&lt;div&gt;Hi&lt;/div&gt;
&lt;div&gt;The requirement in the BLE specification is &amp;quot;&lt;em&gt;the receiver shall take an IQ sample each microsecond during the reference period and an IQ sample each sample slot&lt;/em&gt;&amp;quot; and that samples are taken &amp;quot;&lt;em&gt;at the same point within each IQ Sampling Window&lt;/em&gt;&amp;quot;. This is a requirement for the IQ samples being reported by the Controller to the Host.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Best regards,&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Simon&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with I and Q Samples During the Reference Period of CTE Packets</title><link>https://devzone.nordicsemi.com/thread/323293?ContentTypeID=1</link><pubDate>Wed, 04 Aug 2021 11:47:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27f4e48c-89e1-4da0-b555-a1b17f805bee</guid><dc:creator>Dmitry</dc:creator><description>[quote userid="106258" url="~/f/nordic-q-a/78189/problem-with-i-and-q-samples-during-the-reference-period-of-cte-packets/323248#323248"]While your point is correct but I don&amp;#39;t think it is the source of the problem in this case.[/quote]
&lt;p&gt;Maybe, but you can see that frequency in reference period is two times higher than at third party device. 250 kHz shoud give two full sine periods at 8 usec, you have four.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with I and Q Samples During the Reference Period of CTE Packets</title><link>https://devzone.nordicsemi.com/thread/323285?ContentTypeID=1</link><pubDate>Wed, 04 Aug 2021 11:05:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26838304-8890-48b9-8bec-16d16157ec42</guid><dc:creator>Saleh</dc:creator><description>&lt;p&gt;Thanks Simnor, but I think your first assumption was correct.&lt;/p&gt;
&lt;p&gt;I know there is 90 degree phase-shift between I and Q samples, my question is why this phase-shift&lt;strong&gt; is not visible&lt;/strong&gt; at the first 8 samples which corresponds to the &amp;quot;&lt;strong&gt;Reference Period&lt;/strong&gt;&amp;quot; of CTE Signal.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1628074951970v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Three first images of the main question, belongs to the samples generated by the Zephyr examples, and as you can see, &amp;quot;I&amp;quot; and &amp;quot;Q&amp;quot; have same phases at the first 8 samples in this images.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1628075384901v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1628075402926v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;and this one&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1628075425307v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;But fourth image is a third party implementation and you can see the phase-shift in this image.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1628075444164v4.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with I and Q Samples During the Reference Period of CTE Packets</title><link>https://devzone.nordicsemi.com/thread/323278?ContentTypeID=1</link><pubDate>Wed, 04 Aug 2021 10:52:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6066336-bd99-4a2d-82ae-46e412a1b81c</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry, I might have misunderstood your initial question. Are you asking&amp;nbsp;&lt;strong&gt;why&lt;/strong&gt; the I and Q are 90 degrees phase-shifted? If so, please check out section 2.4&amp;nbsp;in the whitepaper explaining the I and Q components.&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: Problem with I and Q Samples During the Reference Period of CTE Packets</title><link>https://devzone.nordicsemi.com/thread/323248?ContentTypeID=1</link><pubDate>Wed, 04 Aug 2021 08:43:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b081525e-e58a-48bf-abdd-1808ee0c1ee8</guid><dc:creator>Saleh</dc:creator><description>&lt;p&gt;Thank you Dmitry for your answer,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The reference period is 8us, and in all cases the sampling rate during this period is 1us, so exactly 8 samples are captured during this period in all cases. While your point is correct but I don&amp;#39;t think it is the source of the problem in this case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with I and Q Samples During the Reference Period of CTE Packets</title><link>https://devzone.nordicsemi.com/thread/323246?ContentTypeID=1</link><pubDate>Wed, 04 Aug 2021 08:30:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd11e1ee-6aea-4e9e-99b5-9c1d5d0c98d1</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;from the polts I can only see that you have reference period with 2-usec slots while third party product has 1-usec reference slot. If the signal is sampled at 1/2 of its frequency, you cannot see a 90-degree phase shift on the graph.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with I and Q Samples During the Reference Period of CTE Packets</title><link>https://devzone.nordicsemi.com/thread/323243?ContentTypeID=1</link><pubDate>Wed, 04 Aug 2021 08:16:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:add116de-d308-466a-8a6a-a8df827f4be3</guid><dc:creator>Saleh</dc:creator><description>&lt;p&gt;Hi Simonr&lt;/p&gt;
&lt;p&gt;As described in the this whitepaper: &lt;a href="https://infocenter.nordicsemi.com/pdf/nwp_036.pdf"&gt;https://infocenter.nordicsemi.com/pdf/nwp_036.pdf&lt;/a&gt; , part 4,&amp;nbsp;Table 4: Antenna switching settings, same antenna has been used during the &amp;quot;reference period&amp;quot; , so despite of using antenna array or pcb antenna, similar behavior is expected during this period.&lt;/p&gt;
&lt;p&gt;Anyway the first two images are captured by pcb antenna, the third one has captured using the antenna array and the problem exist.&lt;/p&gt;
&lt;p&gt;To ensure about this problem, I executed the third party implementation (which our algorithm can calculate the transmitter angle based on its results) with the pcb antenna on nRF52833-DK (same as what I have used to run Zephyr examples) ad you can see the results here:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/iq_2D00_sample_2D00_pcbant.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Obviously the &amp;quot;I&amp;quot; and &amp;quot;Q&amp;quot; samples have different phases in the reference period of CTE signal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with I and Q Samples During the Reference Period of CTE Packets</title><link>https://devzone.nordicsemi.com/thread/323229?ContentTypeID=1</link><pubDate>Wed, 04 Aug 2021 07:40:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c3db8e4-4896-4fb1-b754-674f6e03c460</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Saleh&lt;/p&gt;
&lt;p&gt;I&amp;#39;m guessing that your locator device is not using an antenna array, as receiving this data with only one antenna will result in a stable phase because there is only one antenna receiving these samples.&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>