AoA math

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 + φ)

we should have:

I(t) = A sin(ω t + φ) cos(ωLO t)

Q(t) = A sin(ω t + φ) sin(ωLO t)

I've seen aroud that to obtain the phase φ it is sufficent to compute atan(Q / I) but, according to the previous equations, if you divide Q over I, the term A sin(ω t + φ) is simplified and you will just get sin(ωLO t) / cos(ωLO t) that does not depend on φ.

What am I missing?

Parents
  • Hi 

    I would like to add some additional info to the original post.

    According to what is report here: https://infocenter.nordicsemi.com/topic/nwp_036/WP/nwp_036/phase_samples.html 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):

    I(t) = A sin(ω t + φ) cos(ωLO t)

    Q(t) = A sin(ω t + φ) sin(ωLO t)

    If, according to the above equations, this is true, then the phase angle cannot be calculated using the formula you provided:

    Phase Angle φ = tan⁻¹(Q/I).

    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.

    At least, this is our understanding and we cannot figure out what we are doing wrong.

    Could you please provide your opinion?

    Thanks

  • Hi,

    The signals does look like an AM modulated signal. Have you based your application on the examples provided by Nordic ? Bluetooth: Direction finding connectionless beacon and Bluetooth: Direction finding connectionless locator.?

    Regards,

    Swathy

  • Hi,

    At first we have tried the 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 nRF52833 and simply provide I\Q via MQTT.

    Anyhow, as gdaquila pointed out, the documentation states that the input signal is mixed with the local oscillator (with a frequency of 250KHz) so it should not be strange to see a modulated signal.

    Is that correct?

  • There seems to be some misunderstanding in you original request:

    On the transmitter side the carrier (2404-2478GHz nominal frequency depending on channel number) is mixed with a sine with 250KHz nominal frequency.

        Note: none of these frequencies will be exact!

    On the receiver side the incoming signal is down converted through mixing with a frequency that depends on than channel, the I&Q data is then gathered from this down mixed signal and feed into the algorithm.

    The formulas from SwRa can then be used to calculate the resulting signal.

    Do note that since the nominal modulation signal is 250KHz and the I&Q data are only sampling at 1Msps you will not get a "nice sinewave" 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.

  • Hi,

    thank you very much for you answer. Now everything is more clear. Anyhow, the main problem remeains. If we compute the phase difference on the same antenna (compensating with the reference period) we are not getting 0, as expected. What is worse is that we get very different results depending on the actual carrier frequency.

    Does that depends only on noise and differences in LO? How can we handle that?

  • 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&Q data and the reference phase? Remember as all frequencies will have inaccuracies you can't use any "fixed" parameters for this as there will be differences for each channel, device, temperature+++++

    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.

Reply
  • 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&Q data and the reference phase? Remember as all frequencies will have inaccuracies you can't use any "fixed" parameters for this as there will be differences for each channel, device, temperature+++++

    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.

Children
No Data
Related