<?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>AoA math</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84740/aoa-math</link><description>Hi, 
 According to the Direction Finding White Paper , the CTE is a pure sin function at 2.4GHz. This is mixed with a local oscillator at 250KHz (for 1Mbps PHY) to obtain a in-phase and quadrature signals. 
 So, given the signal 
 a(t) = A sin(ω t + φ</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 21 Feb 2022 09:23:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84740/aoa-math" /><item><title>RE: AoA math</title><link>https://devzone.nordicsemi.com/thread/354069?ContentTypeID=1</link><pubDate>Mon, 21 Feb 2022 09:23:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70fc86c2-7bf3-4c51-a03d-b3ba5366537c</guid><dc:creator>PaKa</dc:creator><description>&lt;p&gt;So when you are calculating the phase error for each channel you use the data from the reference period to calculate the frequency of the signal represented in the I&amp;amp;Q data and the reference phase? Remember as all frequencies will have inaccuracies you can&amp;#39;t use any &amp;quot;fixed&amp;quot; parameters for this as there will be differences for each channel, device, temperature+++++&lt;/p&gt;
&lt;p&gt;Also, if you are using multiple antennas and not only one, remember that the phase shift will be different for different channels as the base frequency is different. Also note that multipath will impact different channels differently so at a given position different antenna may have multipath issues for different channels.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AoA math</title><link>https://devzone.nordicsemi.com/thread/353972?ContentTypeID=1</link><pubDate>Sat, 19 Feb 2022 08:09:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b714680-ce57-4a0e-9447-35379ae30fac</guid><dc:creator>g.cutri</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thank you very much for you answer. Now everything is more clear. Anyhow,&amp;nbsp;the main problem remeains. If we compute the phase difference&amp;nbsp;on the same antenna&lt;span&gt;&amp;nbsp;(compensating with the reference period)&amp;nbsp;we are not getting 0, as expected. What is worse is that we get very different results depending on the actual carrier frequency.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Does that depends only on noise and differences in LO? How can we handle that?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AoA math</title><link>https://devzone.nordicsemi.com/thread/353786?ContentTypeID=1</link><pubDate>Fri, 18 Feb 2022 09:06:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7d8ecd2-0749-479d-a288-06eac0d1c494</guid><dc:creator>PaKa</dc:creator><description>&lt;p&gt;There seems to be some misunderstanding in you original request:&lt;/p&gt;
&lt;p&gt;On the transmitter side the carrier (2404-2478GHz nominal frequency depending on channel number) is mixed with a sine with 250KHz nominal frequency.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Note: none of these frequencies will be exact!&lt;/p&gt;
&lt;p&gt;On the receiver side the incoming signal is down converted through mixing with a frequency that depends on than channel, the I&amp;amp;Q data is then gathered from this down mixed signal and feed into the algorithm.&lt;/p&gt;
&lt;p&gt;The formulas from SwRa can then be used to calculate the resulting signal.&lt;/p&gt;
&lt;p&gt;Do note that since the nominal modulation signal is 250KHz and the I&amp;amp;Q data are only sampling at 1Msps you will not get a &amp;quot;nice sinewave&amp;quot; as a result, you will get a signal that is only 2x the Nyquist frequency and this very often looks like a AM modulated signal if you try to print it as a sine. This will also be impacted by differences in LO for the 2 sides of the link so may change over channels and over devices.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AoA math</title><link>https://devzone.nordicsemi.com/thread/353688?ContentTypeID=1</link><pubDate>Thu, 17 Feb 2022 16:09:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64efaef5-ffb2-41b4-87dd-78a5d60f49b9</guid><dc:creator>g.cutri</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;At first we have tried the&amp;nbsp;nRF52833 DK with the 12 array antenna (received by Nordic) but we are now using MineW AoA G2 kit since it is simpler to setup multiple anchors. This kit is based on&amp;nbsp;&lt;span&gt;nRF52833 and simply provide I\Q via MQTT.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Anyhow, as gdaquila pointed out, the documentation states that the input signal is mixed with the local oscillator (with&amp;nbsp;a frequency of 250KHz) so it should not be strange to see a modulated signal.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is that correct?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AoA math</title><link>https://devzone.nordicsemi.com/thread/353447?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 17:05:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c57564a5-10d0-4085-a020-89a0affbd160</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The signals does look like an AM modulated signal.&amp;nbsp;Have you based your application on the examples provided by Nordic ? &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/direction_finding_connectionless_tx/README.html"&gt;Bluetooth: Direction finding connectionless beacon&lt;/a&gt; and &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/direction_finding_connectionless_rx/README.html"&gt;Bluetooth: Direction finding connectionless locator.?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Swathy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AoA math</title><link>https://devzone.nordicsemi.com/thread/353266?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 08:25:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:253029c4-60b2-4a9d-8fbf-04f28f4c7c40</guid><dc:creator>gdaquila</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/swra"&gt;SwRa&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I would like to add some additional info to the original post.&lt;/p&gt;
&lt;p&gt;According to what is report here: &lt;a href="https://infocenter.nordicsemi.com/topic/nwp_036/WP/nwp_036/phase_samples.html"&gt;https://infocenter.nordicsemi.com/topic/nwp_036/WP/nwp_036/phase_samples.html&lt;/a&gt; if the chip implements an IQ modulator then the plot of the IQ signals cannot be a pure cosine and/or a pure sine (as you plot them in the above images) but must be another function very similar to a mixed signal made by a sin*cos (for the I component) and sin*sin (for the Q component):&lt;/p&gt;
&lt;p&gt;I(t) = A sin(&amp;omega; t +&amp;nbsp;&amp;phi;) cos(&amp;omega;&lt;sub&gt;LO&lt;/sub&gt; t)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Q(t) = A sin(&amp;omega; t +&amp;nbsp;&amp;phi;) sin(&amp;omega;&lt;/span&gt;&lt;sub&gt;LO&lt;/sub&gt;&lt;span&gt;&amp;nbsp;t)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If, according to the above equations, this is true, then the phase angle cannot be calculated using the formula you provided:&lt;/p&gt;
&lt;p&gt;Phase Angle &lt;span&gt;&amp;phi;&lt;/span&gt; = tan⁻&amp;sup1;(Q/I).&lt;/p&gt;
&lt;p&gt;Our opinion is that you provided a relationship that is valid for IQ sampling but not for IQ modulation and in this case, but, if our undestanding is correct and according to what nordic reports in the link provided above, we are talking about IQ Modulation.&lt;/p&gt;
&lt;p&gt;At least, this is our understanding and we cannot figure out what we are doing wrong.&lt;/p&gt;
&lt;p&gt;Could you please provide your opinion?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AoA math</title><link>https://devzone.nordicsemi.com/thread/353186?ContentTypeID=1</link><pubDate>Tue, 15 Feb 2022 17:55:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e50c92ad-84a0-4680-b095-fa7d772664ff</guid><dc:creator>g.cutri</dc:creator><description>&lt;p&gt;Hi, thank you for your answer.&lt;/p&gt;
&lt;p&gt;I already know iq sampling, but that formulation does not match my experiment results. I and Q&amp;nbsp;should be&amp;nbsp;two sine waves. Instead this is what I obtain when I plot I(t) of one antenna:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1644947263978v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The color changes at every packet. This looks like more to an AM modulated signal than a pure sine wave. So I thought that maybe I and Q where not what I suppose.&lt;/p&gt;
&lt;p&gt;Where am I wrong?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AoA math</title><link>https://devzone.nordicsemi.com/thread/353179?ContentTypeID=1</link><pubDate>Tue, 15 Feb 2022 17:13:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a255deb6-3534-409f-93ed-26a176fb86a0</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Kindy refer this document: &lt;a href="https://www.pe0sat.vgnet.nl/sdr/iq-data-explained/"&gt;https://www.pe0sat.vgnet.nl/sdr/iq-data-explained/&lt;/a&gt;. The &lt;span&gt;formulas for calculating with IQ signals translating between polar and rectangular forms can be found here.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Peak Amplitude A = (I²+Q²)½&lt;/p&gt;
&lt;p&gt;Phase Angle ϕ = tan⁻¹(Q/I)&lt;/p&gt;
&lt;p&gt;I = A⋅cos(ϕ)&lt;/p&gt;
&lt;p&gt;Q = A⋅sin(ϕ)&lt;/p&gt;
&lt;p&gt;Converting IQ Data to a plain signal: I is the original signal.&lt;/p&gt;
&lt;p&gt;Euler form: A⋅eiϕ = A⋅(cos(ϕ) + i⋅sin(ϕ)) = I + Qi&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Swathy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>