Hi,
I have been having some issues trying to get my IQ samples to match what I expect in terms of antenna numbering and timing and want to confirm that I have the correct understanding.
Below are the details of one trial I ran where I only initially looked at the I data to try and make sense of the data being collected:
The below parameters were calculated using a Sine fit function using the 8 samples from the reference period and look pretty close to what I was expecting.
i amplitude: -65.900
i frequency: 251.589kHz
i Phase: -0.187
angle_of_arrival_params={
Here is the (xlxs) results of the 1st packet with my calculated times and antenna numbers.
Below is a plot of the 'I' data for each antenna, along with a sine wave generated from the 8 reference samples.

Note 1: I am starting at time = 0. I.e. Sample idx=0 at time 4uS is the first sample of the reference period and sample idx=8 at time 15uS is the first sample in the second half of the first 2uS sampling window.
Note 2: I am using the 5.20 SDK.
Note 3: The data was taken with a clear line of sight, however, it was not as controlled as an Anechoic chamber.
Note 4: I have already read this post on sampling, but I don' think it applies as I am getting filtered results and don't need to discard the guard period and switching period samples myself.
Note 5: Based on this post I am only using a single antenna array. I used array 2 is more easily mapped to the array in iCallBLE/ble_user_config.c
Questions
1. For 1 MHz sampling, where within the reference period and sample slots is the sample taken? Are they sampled at the same point for both reference and sample slot samples? I.e. are they taken in the middle of the uS (first reference sample would be 4.5uS and proper sample at 15.5uS) or at some other point within the slot.
2. For 2, 3 & 4MHz sampling, how are they spread out within each 1 uS reference slot and each .75uS sampling slot?
3. Does the antenna switch during the first testing slot as per the specs (e.g. in my case antenna 1 is sampled in the first switching slot)? Looking at the data in the plot, it appears as though the reference antenna (antenna 2) and the antennas on either side (1&4) might have been swapped. Or is there anything else that might be causing this?
4. Based on the plot and the xlxs results is there anything else that I need to fix us to get more accurate results?
Cheers,
Stephen