<?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>What should I pay attention to before using the Angle estimation algorithm?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111372/what-should-i-pay-attention-to-before-using-the-angle-estimation-algorithm</link><description>I am using the nRF52833 DK and a Nordic-designed antenna array (12 antennas with 0.02m spacing) for an AoA Direction Finding project. I obtained the IQ data using Direction finding connectionless beacon / Direction finding connectionless locator and input</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 May 2024 09:49:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111372/what-should-i-pay-attention-to-before-using-the-angle-estimation-algorithm" /><item><title>RE: What should I pay attention to before using the Angle estimation algorithm?</title><link>https://devzone.nordicsemi.com/thread/485992?ContentTypeID=1</link><pubDate>Mon, 27 May 2024 09:49:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e54a199c-6b35-49e7-b535-272dd5fba925</guid><dc:creator>Zihao</dc:creator><description>&lt;p&gt;Hi Paka，&lt;/p&gt;
&lt;p&gt;Yes I am using the 2M PHY:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;PER_ADV_SYNC[0]: [DEVICE]: 12:63:96:6B:22:D1 (random) synced, Interval 0x0780 (2400 ms), PHY LE 2M
success. Periodic sync established.
Enable receiving of CTE...
success. CTE receive enable
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In fact, I didn&amp;#39;t change the code, except for adding some lines to print the IQ data.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks! Now I got the angle!&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2543.pastedimage1716803010400v1.png" alt=" " /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2161.pastedimage1716803018213v2.png" alt=" " /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/8400.pastedimage1716803027473v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Thanks again!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What should I pay attention to before using the Angle estimation algorithm?</title><link>https://devzone.nordicsemi.com/thread/485960?ContentTypeID=1</link><pubDate>Mon, 27 May 2024 07:49:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d94d032a-d416-4bd8-8b61-e67d28c3cf28</guid><dc:creator>PaKa</dc:creator><description>&lt;p&gt;Difficult to say as you have changed the code. One thing to check is if you are using the 2Mbps PHY as that is using 500KHz typical modulation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What should I pay attention to before using the Angle estimation algorithm?</title><link>https://devzone.nordicsemi.com/thread/485920?ContentTypeID=1</link><pubDate>Sun, 26 May 2024 09:58:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f4adbf1-ec1e-4794-bcc0-15a9d212e80b</guid><dc:creator>Zihao</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello PaKa,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;ve been trying to compensate the phase drift caused by temperature, noise, or crystal oscillator using the 8 reference samples, but I&amp;#39;ve encountered an issue.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;According to the whitepaper nWP036, the 8 reference points should be 1us/sample, totaling an 8us duration. However, the CTE is a 250kHz single tone signal, with a period of 1/250kHz = 4us. Therefore, my understanding is that the reference should only have a signal length of approximately 2 cycles. However, the signal I&amp;#39;ve collected (observing the four plots in this case) looks more like 4 cycles, giving the impression that the CTE signal is 500kHz.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The same impression in another case: &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/72343.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Source: &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/86399/aoa-antenna-switch-pattern-and-iq-sampling-via-nrf52833/361074"&gt;RE: AOA: Antenna switch pattern and IQ sampling via nrf52833&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think it should be like:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1716717497343v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So where did I go wrong in my understanding?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What should I pay attention to before using the Angle estimation algorithm?</title><link>https://devzone.nordicsemi.com/thread/485553?ContentTypeID=1</link><pubDate>Thu, 23 May 2024 08:11:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db41e386-7186-4884-8cee-1d27fe2c6973</guid><dc:creator>Zihao</dc:creator><description>&lt;p&gt;&lt;span&gt;Got it, I understand! Your explanation is very clear, thank you for your reply!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What should I pay attention to before using the Angle estimation algorithm?</title><link>https://devzone.nordicsemi.com/thread/485551?ContentTypeID=1</link><pubDate>Thu, 23 May 2024 08:06:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8f4ecac-6289-4547-a255-9bf30a50baa6</guid><dc:creator>PaKa</dc:creator><description>&lt;p&gt;So the single antenna plot shows that you have a frequency that is not 250KHz, as a 250KHz would yield a horisontal line for the reference period. This is to be expected as I stated, the TYPICAL value is 250KHz but it will always be a bit off.&lt;/p&gt;
&lt;p&gt;Then for the non-reference period you have a fairly straight line, a little bit of overlayd noise, also to be expected. The slope of this line is also coming from the non-perfect 250KHz so as indicated by the reference period.&lt;/p&gt;
&lt;p&gt;When you start changing the antennas as you have done, then the phase will jump for each antenna change. How much will depend on the distance between the antennas, the distance from the transmitter to the antenna array and the position relative to the antenna array. How much the phase will change is something you can model with normal trigonometry.&lt;/p&gt;
&lt;p&gt;You will have to use the reference phase to set the baseline for the signal, if not you will not be able to calculate any angles at all. How to do this is outside the scope of what Nordic will support as it is part of the algorithm work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What should I pay attention to before using the Angle estimation algorithm?</title><link>https://devzone.nordicsemi.com/thread/485468?ContentTypeID=1</link><pubDate>Wed, 22 May 2024 14:46:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5acab3ca-761a-42ce-9d63-3524112494a5</guid><dc:creator>Zihao</dc:creator><description>&lt;p&gt;Hi, thank you for your reply.&lt;br /&gt;So, is the reference sampling actually useful? I thought the reference was just to make the receiver more stable before receiving the CTE...&lt;br /&gt;Could you please provide me with some links about using these 8 samples with short interval to calculate the actual frequency? I just did some searching and found that there are so few materials that it&amp;#39;s hard to find any useful information...&lt;br /&gt;In addition, just to confirm, the &amp;quot;phase shift&amp;quot; you mentioned is what I said in the 2), right? After I compensate the &amp;quot;phase shift&amp;quot;, the phase&amp;nbsp;plot of any antenna should be a straight line, right?&lt;/p&gt;
&lt;p&gt;I have trid to&amp;nbsp;&lt;span&gt;calculate the average fluctuations in IQ (&amp;Delta;I and &amp;Delta;Q) for&amp;nbsp;compensating the drift, but that doesn&amp;#39;t seem right either...&amp;nbsp;Is my method of compensation unreasonable? Or we have to use the first eight Samples?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What should I pay attention to before using the Angle estimation algorithm?</title><link>https://devzone.nordicsemi.com/thread/485460?ContentTypeID=1</link><pubDate>Wed, 22 May 2024 14:29:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69866796-d1e8-4679-9be5-b9298f174485</guid><dc:creator>Zihao</dc:creator><description>&lt;p&gt;Hello, thank you for your reply.&lt;br /&gt;Yes, I understand that MUSIC is beyond your scope, so the main purpose of this case is to confirm that there is nothing wrong with the IQ data I got.&lt;br /&gt;I don&amp;#39;t quite understand what you said about &amp;quot;the graph should be similar to what you see with one antenna&amp;quot;. Are you saying &amp;quot;The graph should look like a straight line&amp;quot;?&lt;br /&gt;I used a square antenna array designed by Nordic with 12 antennas. I only use a linear array of four of these antennas. My ant_patterns[] = {0x2, 0x0, 0x5, 0x6}, which correspond to a line on the array.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What should I pay attention to before using the Angle estimation algorithm?</title><link>https://devzone.nordicsemi.com/thread/485391?ContentTypeID=1</link><pubDate>Wed, 22 May 2024 11:57:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c868804b-1b06-44eb-9c69-0b457ec8fdaa</guid><dc:creator>PaKa</dc:creator><description>&lt;p&gt;Input data looks not too far of what to be expected in my opinion.&lt;/p&gt;
&lt;p&gt;All the frequencies are &amp;quot;typical&amp;quot; so you can&amp;#39;t use the data without compensating for drift. This is specifically why the reference sampling is 8 samples with short interval as these are to be used to find the actual frequency and establish the phase of the signal.&lt;/p&gt;
&lt;p&gt;When you have this then you can extrapolate the &amp;quot;reference&amp;quot; signal for the length of the entire sequence. Then you can see the phase shift per antenna compared to the reference, this is what the algorithm should use to determine the angle.&lt;/p&gt;
&lt;p&gt;How to use/preprocess the date before handing it over to the MUSIC algorithm will be outside what Nordic will be able to support but there may be non-nordicans in the forum that may help you out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What should I pay attention to before using the Angle estimation algorithm?</title><link>https://devzone.nordicsemi.com/thread/485386?ContentTypeID=1</link><pubDate>Wed, 22 May 2024 11:43:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4229c55d-c2c6-4b57-9412-f58d9238a234</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Unfortunately supporting the MUSIC algorithm is outside the scope from our side, so it&amp;#39;s limited how much we can help you here I&amp;#39;m afraid, but you are right, the graph should be similar to what you see with one antenna, so something seems to be wrong here. I can&amp;#39;t comment on how you&amp;#39;ve handled the IQ data, as we don&amp;#39;t focus on that, but how have you set up the antenna switching? What antenna array are you using here and what antenna switching pattern is used here?&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>