<?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>Angle of Arrival (AoA) Calculation Producing Unexpected Values</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119525/angle-of-arrival-aoa-calculation-producing-unexpected-values</link><description>Hi, 
 I&amp;#39;m working on an indoor positioning system using an nRF5340 and a CHW1010-ANT1 antenna array. I&amp;#39;m receiving IQ samples from BLE CTE packets and using them to calculate the AoA. 
 When I manually input IQ values, the AoA is correct and stable. However</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Apr 2025 08:22:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119525/angle-of-arrival-aoa-calculation-producing-unexpected-values" /><item><title>RE: Angle of Arrival (AoA) Calculation Producing Unexpected Values</title><link>https://devzone.nordicsemi.com/thread/533135?ContentTypeID=1</link><pubDate>Mon, 28 Apr 2025 08:22:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6980e2db-4d73-43c7-b836-babe96b5cf97</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Great, Amanda will take care of you there.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Angle of Arrival (AoA) Calculation Producing Unexpected Values</title><link>https://devzone.nordicsemi.com/thread/533110?ContentTypeID=1</link><pubDate>Sun, 27 Apr 2025 16:48:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a5dbe6b-1944-467c-b93c-88ed880e24c1</guid><dc:creator>Louis Chen</dc:creator><description>&lt;p&gt;Hi Elfving ,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am using aoa mode, and it can be identified from the print.&lt;/p&gt;
&lt;p&gt;CTE[0]: samples count 45, cte type AOA, slot durations: 2 [us], packet status CRC OK, RSSI -790&lt;br /&gt;IQ sample content : &lt;br /&gt;sample[0] = I:-7 Q:-11 RSSI:-790&lt;br /&gt;sample[1] = I:12 Q:-9 RSSI:-790&lt;br /&gt;sample[2] = I:7 Q:12 RSSI:-790&lt;br /&gt;sample[3] = I:-16 Q:8 RSSI:-790&lt;br /&gt;sample[4] = I:-4 Q:-15 RSSI:-790&lt;br /&gt;sample[5] = I:16 Q:-5 RSSI:-790&lt;br /&gt;sample[6] = I:5 Q:13 RSSI:-790&lt;br /&gt;sample[7] = I:-16 Q:4 RSSI:-790&lt;br /&gt;sample[8] = I:13 Q:30 RSSI:-790&lt;br /&gt;sample[9] = I:14 Q:1 RSSI:-790&lt;br /&gt;sample[10] = I:20 Q:-45 RSSI:-790&lt;br /&gt;sample[11] = I:-8 Q:-8 RSSI:-790&lt;br /&gt;sample[12] = I:5 Q:-30 RSSI:-790&lt;br /&gt;sample[13] = I:-41 Q:-28 RSSI:-790&lt;br /&gt;sample[14] = I:50 Q:-24 RSSI:-790&lt;br /&gt;sample[15] = I:-18 Q:3 RSSI:-790&lt;br /&gt;sample[16] = I:-32 Q:17 RSSI:-790&lt;br /&gt;sample[17] = I:-1 Q:12 RSSI:-790&lt;br /&gt;sample[18] = I:47 Q:25 RSSI:-790&lt;br /&gt;sample[19] = I:6 Q:-10 RSSI:-790&lt;br /&gt;sample[20] = I:29 Q:5 RSSI:-790&lt;br /&gt;sample[21] = I:26 Q:-41 RSSI:-790&lt;br /&gt;sample[22] = I:14 Q:58 RSSI:-790&lt;br /&gt;sample[23] = I:-2 Q:-17 RSSI:-790&lt;br /&gt;sample[24] = I:-15 Q:-31 RSSI:-790&lt;br /&gt;sample[25] = I:-15 Q:-4 RSSI:-790&lt;br /&gt;sample[26] = I:-26 Q:42 RSSI:-790&lt;br /&gt;sample[27] = I:9 Q:5 RSSI:-790&lt;br /&gt;sample[28] = I:-9 Q:27 RSSI:-790&lt;br /&gt;sample[29] = I:37 Q:21 RSSI:-790&lt;br /&gt;sample[30] = I:-56 Q:17 RSSI:-790&lt;br /&gt;sample[31] = I:16 Q:-7 RSSI:-790&lt;br /&gt;sample[32] = I:30 Q:-15 RSSI:-790&lt;br /&gt;sample[33] = I:1 Q:-18 RSSI:-790&lt;br /&gt;sample[34] = I:-45 Q:-23 RSSI:-790&lt;br /&gt;sample[35] = I:-10 Q:9 RSSI:-790&lt;br /&gt;sample[36] = I:-30 Q:-8 RSSI:-790&lt;br /&gt;sample[37] = I:-21 Q:43 RSSI:-790&lt;br /&gt;sample[38] = I:-21 Q:-53 RSSI:-790&lt;br /&gt;sample[39] = I:2 Q:16 RSSI:-790&lt;br /&gt;sample[40] = I:12 Q:28 RSSI:-790&lt;br /&gt;sample[41] = I:19 Q:-2 RSSI:-790&lt;br /&gt;sample[42] = I:22 Q:-42 RSSI:-790&lt;br /&gt;sample[43] = I:-8 Q:-7 RSSI:-790&lt;br /&gt;sample[44] = I:9 Q:-25 RSSI:-790&lt;/p&gt;
&lt;p&gt;My issue link :&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/120925/angle-of-arrival-application-exception-the-nrf52833-dk-antenna-array-cannot-be-started-normally-gpio-is-not-switched"&gt;devzone.nordicsemi.com/.../angle-of-arrival-application-exception-the-nrf52833-dk-antenna-array-cannot-be-started-normally-gpio-is-not-switched&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Angle of Arrival (AoA) Calculation Producing Unexpected Values</title><link>https://devzone.nordicsemi.com/thread/533054?ContentTypeID=1</link><pubDate>Fri, 25 Apr 2025 16:11:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac7122bf-8e7c-407d-9b3f-5fc4e63ac8fc</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi Louis,&lt;/p&gt;
&lt;p&gt;I see you&amp;#39;ve gotten an answer from Milad here. I am not familiar with the exact antenna array that you are using, though if you are using the default NCS samples for this then it being configured to AOD might be one potential issue.&lt;/p&gt;
&lt;p&gt;Feel free to open a new case if you are still having issues with this.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Angle of Arrival (AoA) Calculation Producing Unexpected Values</title><link>https://devzone.nordicsemi.com/thread/531794?ContentTypeID=1</link><pubDate>Tue, 15 Apr 2025 07:19:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8989e57f-9d7b-4251-8639-535566bf6fda</guid><dc:creator>miladflores</dc:creator><description>&lt;p&gt;Hi Louis,&lt;/p&gt;
&lt;p&gt;If I remember correctly I did not turn on that pin since it was used for AoD rather than AoA.&lt;/p&gt;
&lt;p&gt;You should not be able to receive CTE on the PCB antenna only.&amp;nbsp;&lt;br /&gt;Are you controlling what pins are set high/low on the nRF? Also, do you possess the complete datasheet provided by CoreHW?&lt;/p&gt;
&lt;p&gt;FYI, I did switch antenna array from CHW1010-ANT1 to U-blox B10 antenna instead.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Milad&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Angle of Arrival (AoA) Calculation Producing Unexpected Values</title><link>https://devzone.nordicsemi.com/thread/531666?ContentTypeID=1</link><pubDate>Mon, 14 Apr 2025 10:07:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7037284-a99f-4df3-898c-12527ffb45b4</guid><dc:creator>Louis Chen</dc:creator><description>&lt;p&gt;Hi Sir,&lt;/p&gt;
&lt;p&gt;I have some questions and would like to ask you if it is convenient. I am currently using a similar configuration of NRF52833+Antenna (CHW1010-ANT1-1.0) as yours. How do I use your ANT RF SWITCH PIN9 (D0: Digital control input)?&lt;/p&gt;
&lt;p&gt;Another question is, after setting the ANT pattern, I tried to connect to the CTE link AOA mode, but I found that my antenna array would not switch. I tried to measure from GPIO 3/4/28/29 but couldn&amp;#39;t get it? Did you make any changes? I removed the ANT array and used the PCB antenna instead, but it didn&amp;#39;t move at all.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Angle of Arrival (AoA) Calculation Producing Unexpected Values</title><link>https://devzone.nordicsemi.com/thread/526780?ContentTypeID=1</link><pubDate>Tue, 11 Mar 2025 14:20:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2ca305e-c61c-41c8-bff1-a73b0137a783</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;No problem at all Milad &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Let us know if there is anything else!&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Angle of Arrival (AoA) Calculation Producing Unexpected Values</title><link>https://devzone.nordicsemi.com/thread/526771?ContentTypeID=1</link><pubDate>Tue, 11 Mar 2025 13:54:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3da3c79a-c0bc-4894-886d-3fa221cbf9eb</guid><dc:creator>miladflores</dc:creator><description>&lt;p&gt;Thank you for your assistance Elfving!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Milad&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Angle of Arrival (AoA) Calculation Producing Unexpected Values</title><link>https://devzone.nordicsemi.com/thread/526679?ContentTypeID=1</link><pubDate>Tue, 11 Mar 2025 08:06:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96cf8239-2bd4-494d-9ed7-1af44ecf1314</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;&lt;span&gt;I guess we do not have that much in regards to materials on&amp;nbsp;this, t&lt;/span&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/101467/aoa-iq-samples-analysis?ReplyFilter=Answers&amp;amp;ReplySortBy=Answers&amp;amp;ReplySortOrder=Descending"&gt;hough this previous response by another customer might be worth a look.&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Elfving&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Angle of Arrival (AoA) Calculation Producing Unexpected Values</title><link>https://devzone.nordicsemi.com/thread/526676?ContentTypeID=1</link><pubDate>Tue, 11 Mar 2025 06:46:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29c3ca79-6dd3-49ad-9b58-4ed9bcdf2c0e</guid><dc:creator>miladflores</dc:creator><description>&lt;p&gt;You are completely right about it looping through until there are no more samples. However, I still have a concern regarding the calibration with the reference sample, I cannot wrap my head around a way to figure it out and there is not much information out there, do you have any advice regarding this?&lt;/p&gt;
&lt;p&gt;Milad&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Angle of Arrival (AoA) Calculation Producing Unexpected Values</title><link>https://devzone.nordicsemi.com/thread/526552?ContentTypeID=1</link><pubDate>Mon, 10 Mar 2025 13:05:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed30dae0-9f55-479a-94fa-7ae2346571b2</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Precisely :)&lt;/p&gt;
&lt;p&gt;Note that the pattern is just a list, and you can repeat antennas on there. I acctually think the pattern needs to loop back on the one used in the reference at one point for it to follow the spec.&lt;/p&gt;
&lt;p&gt;The WP is great for the understanding, though it unfortunately&amp;nbsp;mentions a few things that is not correct as to how the sample in the SDK works. The main use-case of the WP was to explain the HW limitations, though those are ofcourse more than what SW limits us to. The documentation from BLE SIG and &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/direction_finding_connectionless_rx/README.html"&gt;the little documentation we have here&lt;/a&gt; is should be correct in case you find any discrepancies. Though let me know if you have questions, and I can help clear things up as well.&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Angle of Arrival (AoA) Calculation Producing Unexpected Values</title><link>https://devzone.nordicsemi.com/thread/526537?ContentTypeID=1</link><pubDate>Mon, 10 Mar 2025 12:10:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8a0467d-55a4-4d70-9979-0fb6823e9362</guid><dc:creator>miladflores</dc:creator><description>[quote userid="103347" url="~/f/nordic-q-a/119525/angle-of-arrival-aoa-calculation-producing-unexpected-values/526358"]Did the WP clear things up for you regarding the antenna patterns?[/quote]
&lt;p&gt;Yes, thank you for the clarification!&lt;br /&gt;If I got it right, it means that the first antenna in the antenna pattern is used 8 times during the reference period and after the reference period the pattern goes on to the 2nd antenna in the pattern and loops through the whole pattern until all the samples have been collected.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Milad&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Angle of Arrival (AoA) Calculation Producing Unexpected Values</title><link>https://devzone.nordicsemi.com/thread/526358?ContentTypeID=1</link><pubDate>Fri, 07 Mar 2025 13:36:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0988590f-bbd9-41c9-9a59-6fbb93fd5d6e</guid><dc:creator>Elfving</dc:creator><description>[quote user="miladflores"]&lt;p&gt;In my cpunet.overlay I have set &amp;quot;dfe-antenna-num = &amp;lt;16&amp;gt;&amp;quot; since the antenna array consists of 8 antenna patches with polarization. Even numbers are horizontal and odd numbers are vertical.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;&lt;/div&gt;&lt;/blockquote&gt;[/quote]
&lt;p&gt;I guess that depends mainly on the antenna, so that might be fine.&amp;nbsp;Did the WP clear things up for you regarding the antenna patterns?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Angle of Arrival (AoA) Calculation Producing Unexpected Values</title><link>https://devzone.nordicsemi.com/thread/526311?ContentTypeID=1</link><pubDate>Fri, 07 Mar 2025 09:32:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7ffe8a5-ca71-4c65-8886-e398ba556074</guid><dc:creator>miladflores</dc:creator><description>[quote userid="103347" url="~/f/nordic-q-a/119525/angle-of-arrival-aoa-calculation-producing-unexpected-values/525972"]It should be used to calibrate.[/quote]
&lt;p&gt;And would that be by getting the frequency offset from the reference samples and then using it to correct the remaining samples? If so, I&amp;#39;m thinking of something like this:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/frequency_5F00_offset_5F00_func.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="103347" url="~/f/nordic-q-a/119525/angle-of-arrival-aoa-calculation-producing-unexpected-values/525972"]Yeah, although that depends a bit on your pattern length, and whether these numbers refer to antennas, or order to antenna pattern etc.[/quote]
&lt;p&gt;In my cpunet.overlay I have set &amp;quot;dfe-antenna-num = &amp;lt;16&amp;gt;&amp;quot; since the antenna array consists of 8 antenna patches with polarization. Even numbers are horizontal and odd numbers are vertical.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="103347" url="~/f/nordic-q-a/119525/angle-of-arrival-aoa-calculation-producing-unexpected-values/525972"]What NCS version are you using? I guess all NCS versions should work, but we&amp;#39;ve only gotten the locator QDID (and therefore officially checked the locator) from NCS 2.2 with SDC, which I guess can be an argument for using that one. The zephyr controller also has a QDID for the locator&amp;nbsp;that goes with NCS2.2.[/quote]
&lt;p&gt;I&amp;#39;m&amp;nbsp;running NCS 2.9.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Milad&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Angle of Arrival (AoA) Calculation Producing Unexpected Values</title><link>https://devzone.nordicsemi.com/thread/525972?ContentTypeID=1</link><pubDate>Wed, 05 Mar 2025 12:30:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a45ef825-1fa7-41d7-bef9-ee36af3fd179</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you using just one reciever?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/nwp_036/page/WP/nwp_036/intro.html"&gt;Our WP on DF typically clears up confusion regarding antenna switching patterns. Have you seen this?&lt;/a&gt;&lt;/p&gt;
[quote user=""]As I understood it, the first 8 samples are from the reference period and should not be used to calculate the AoA [/quote]
&lt;p&gt;It should be used to calibrate.&lt;/p&gt;
[quote user=""]So the pattern goes 0 - 0 - 0 - 0 - 0- 0 - 0 - 0 - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 0 - 1 - etc. Am I missing something here?[/quote]
&lt;p&gt;Yeah, although that depends a bit on your pattern length, and whether these numbers refer to antennas, or order to antenna pattern etc.&lt;/p&gt;
&lt;p&gt;What NCS version are you using? I guess all NCS versions should work, but we&amp;#39;ve only gotten the locator QDID (and therefore officially checked the locator) from NCS 2.2 with SDC, which I guess can be an argument for using that one. The zephyr controller also has a QDID for the locator&amp;nbsp;that goes with NCS2.2.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>