<?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>How to get right digree? Nrf52811 direction finding</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59322/how-to-get-right-digree-nrf52811-direction-finding</link><description>This is the config fun followed。 
 one sample every 125ns,one ant get 12us =96 samples. 
 and first 2+32 samples is ignored。 
 ******************************************************************** 
 // 1st ant 96 data of phase 0: -67 -55 -43 -31 -19 -7</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 21 Mar 2020 18:05:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59322/how-to-get-right-digree-nrf52811-direction-finding" /><item><title>RE: How to get right digree? Nrf52811 direction finding</title><link>https://devzone.nordicsemi.com/thread/240993?ContentTypeID=1</link><pubDate>Sat, 21 Mar 2020 18:05:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78fb217a-a50f-43fa-b1c7-4655f3f0c702</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;Jitter is &lt;a href="http://www.rakon.com/component/docman/doc_download/225-phase-noise-and-jitter-in-crystal-oscillators%3FItemid"&gt;the real fact&lt;/a&gt;. My pic is a bit&amp;nbsp;exaggerated. Okay, if it&amp;#39;s not an issue for you.&lt;/p&gt;
&lt;p&gt;Do you have any success in phase detection?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get right digree? Nrf52811 direction finding</title><link>https://devzone.nordicsemi.com/thread/240991?ContentTypeID=1</link><pubDate>Sat, 21 Mar 2020 16:41:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93aacad7-2553-40e4-b1ab-8f2ad76a8d7d</guid><dc:creator>miaojb12</dc:creator><description>&lt;p&gt;Just like your PIC mean,I don&amp;#39;t think BLE will work find.&lt;/p&gt;
&lt;p&gt;I think crystal will change with temperature, but it changed slowly.&lt;/p&gt;
&lt;p&gt;In a shot time, crystal is must be same &lt;span&gt;frequency,this is base of PLL working&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get right digree? Nrf52811 direction finding</title><link>https://devzone.nordicsemi.com/thread/240977?ContentTypeID=1</link><pubDate>Sat, 21 Mar 2020 08:22:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd008991-b3c3-478b-a058-3e1a81b8b701</guid><dc:creator>Dmitry</dc:creator><description>[quote userid="71096" url="~/f/nordic-q-a/59322/how-to-get-right-digree-nrf52811-direction-finding/240947"]but now, we did not get the right phase .&lt;br /&gt;we don&amp;#39;t knoue if there something wrong with hardwear.[/quote]
&lt;p&gt;I cannot say anything more with no info... it would be good if you can take two sample sets in CSV format under two different angles.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="71096" url="~/f/nordic-q-a/59322/how-to-get-right-digree-nrf52811-direction-finding/240947"]but, In my mind, we take more data, just for reduse the fluctuations of jitter,&lt;br /&gt;is not it?[/quote]
&lt;p&gt;Yes, averaging works, but longer distance between samples increases error (that&amp;#39;s what I see on my device, though you may have better crystal) - if you can get rid of it just by decreasing slot length, I see no reasons to work with such a long slots. See&amp;nbsp;what I mean:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0777.111.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get right digree? Nrf52811 direction finding</title><link>https://devzone.nordicsemi.com/thread/240947?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 17:47:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c6994a8-4625-47cd-b628-48e44d3b65a9</guid><dc:creator>miaojb12</dc:creator><description>&lt;p&gt;yes, your are right aboat -360/+360 degree turnover.&lt;br /&gt;we resove it .&lt;br /&gt;1:Straight line fitting with 1st and 5th ant, get slope1 and slope5.&lt;br /&gt;2:slope_average=(slope1+slope5)/2. maybe this slope is a nearly one with true slope.&lt;br /&gt;3:while(slope_green - slope_average &amp;gt; 360degree/48us){&lt;br /&gt; slope_green -= 360degree/48us;&lt;br /&gt;}&lt;br /&gt;while(slope_green - slope_average &amp;lt;- 360degree/48us){&lt;br /&gt; slope_green += 360degree/48us;&lt;br /&gt;}&lt;br /&gt;4:slope_green is not turnover now .&lt;br /&gt;//----------------------------------------------------------------------&lt;br /&gt;we have tested about slope_average and slope_green.&lt;br /&gt;slope_green is much more stable than slope_average.&lt;/p&gt;
&lt;p&gt;dynamic range &lt;br /&gt;slope_green &amp;lt;0.2%&lt;br /&gt;slope_average &amp;lt;1%&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;but now, we did not get the right phase .&lt;br /&gt;we don&amp;#39;t knoue if there something wrong with hardwear.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;//-------------------------------------------------------------------&lt;br /&gt;PS:Do you mean the jitter is random.&lt;br /&gt;but, In my mind, we take more data, just for reduse the fluctuations of jitter,&lt;br /&gt;is not it?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/2400x720/__key/communityserver-discussions-components-files/4/_AE5FE14FFE5647725F00_20200321013833.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get right digree? Nrf52811 direction finding</title><link>https://devzone.nordicsemi.com/thread/240942?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 17:10:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:197013c6-ed0e-4fbe-9c41-2e37cbfcd66b</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;Almost correct.. see, you have 10ppm crystal difference (don&amp;#39;t look at jitter now). At 2.4GHz frequency, you get 24kHz offset - 10ppm turns into 9.6% error relative to 250kHz, in 48 usec your green line could make a -360/+360 degree turnover... Now, jitter is a random fluctuations of crystal frequency, and thus a received phase too. While jitter is negligible at bitrate level, being multiplied by RF demodulator it becomes visible. The longer distance between points, the larger error is accumulated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get right digree? Nrf52811 direction finding</title><link>https://devzone.nordicsemi.com/thread/240893?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 13:46:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:144155cf-8942-43d2-ae02-1c50a4c18bc9</guid><dc:creator>miaojb12</dc:creator><description>&lt;p&gt;I draw a pic, wish you can understand what i mean.&lt;img alt=" " height="758" src="https://devzone.nordicsemi.com/resized-image/__size/3120x6000/__key/communityserver-discussions-components-files/4/0167.DF.png" width="758" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get right digree? Nrf52811 direction finding</title><link>https://devzone.nordicsemi.com/thread/240869?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 12:49:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:301a6234-ded2-45c2-aafa-906be71d239c</guid><dc:creator>Dmitry</dc:creator><description>[quote userid="71096" url="~/f/nordic-q-a/59322/how-to-get-right-digree-nrf52811-direction-finding/240837"]our antenna switching ic is &amp;quot;SKY13322-375LF&amp;quot;,whitch&amp;#39;s switching time is 60ns.&lt;br /&gt;[/quote]
&lt;p&gt;good.&lt;/p&gt;
[quote userid="71096" url="~/f/nordic-q-a/59322/how-to-get-right-digree-nrf52811-direction-finding/240837"]1-16 ignored(may be changed with the switch)&lt;br /&gt;17-80 used for compute average phase&lt;br /&gt;81-96 ignored(may be changed with the switch)[/quote]
&lt;p&gt;it&amp;#39;s better to look at the plot,&amp;nbsp;hard&amp;nbsp;to say exactly where slots are&amp;nbsp;changed. In theory you have two samples for reference period then continuous set of 0.125us samples after 1us gap.&lt;/p&gt;
[quote userid="71096" url="~/f/nordic-q-a/59322/how-to-get-right-digree-nrf52811-direction-finding/240837"]3:comput frequency offset beteen receiver and transmitter with 1sth and 5th ant(whitch is same ant)[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;as a variant, but&lt;/p&gt;
[quote userid="71096" url="~/f/nordic-q-a/59322/how-to-get-right-digree-nrf52811-direction-finding/240837"](longer slot -&amp;gt; more crystal jitter influence -&amp;gt; lower accuracy) may resoved?[/quote]
&lt;p&gt;what I mean - the distance between points that you compare should be as short as possible, a jitter is really noticeable. You have 12us slots, it&amp;#39;s too long. Of course you can average between multiple periods, but I see no reason for adding jitter error if you can work with shorter slots.&lt;/p&gt;
[quote userid="71096" url="~/f/nordic-q-a/59322/how-to-get-right-digree-nrf52811-direction-finding/240837"]4:use 17-80 datas of each ant compute average phase[/quote]
&lt;p&gt;Maybe I didn&amp;#39;t understand clearly, but you should apply frequency offset correction to each sample before calculating average phase.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get right digree? Nrf52811 direction finding</title><link>https://devzone.nordicsemi.com/thread/240837?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 11:25:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5852d3f-fa37-43ab-91ad-22a1b1156e22</guid><dc:creator>miaojb12</dc:creator><description>&lt;p&gt;thanks for your reply.&lt;/p&gt;
&lt;p&gt;our antenna switching ic is &amp;quot;SKY13322-375LF&amp;quot;,whitch&amp;#39;s switching time is 60ns.&lt;br /&gt;We got 96 data for each ant.&lt;/p&gt;
&lt;p&gt;1-16 ignored(may be changed with the switch)&lt;br /&gt;17-80 used for compute average phase&lt;br /&gt;81-96 ignored(may be changed with the switch)&lt;/p&gt;
&lt;p&gt;//-----------------------------------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;How we compute phase&lt;br /&gt;1:we have 4 ants all;&lt;br /&gt;2:we get 1st ant and 5th ant the same one&lt;br /&gt;3:comput frequency offset beteen receiver and transmitter with 1sth and 5th ant(whitch is same ant)&lt;br /&gt;(longer slot -&amp;gt; more crystal jitter influence -&amp;gt; lower accuracy) may resoved?&lt;br /&gt; frequency offset &amp;lt;0.2%wave change,like 11.373,11.372,11.374,11.370&lt;br /&gt;If frequency offset is 0, we will get num like, 12.500 beteen each data.&lt;br /&gt;4:use 17-80 datas of each ant compute average phase&lt;br /&gt;5:compute phase back to the time of first ant.&lt;br /&gt;//--------------------&lt;br /&gt;example &lt;br /&gt;1th average phase:221&lt;br /&gt;5th average phase:166&lt;br /&gt;will get the change beteen each data is 11.373(frequency offset=22.54kHz )&lt;/p&gt;
&lt;p&gt;2nd average phase:296 --&amp;gt; 9(phase of 2nd at 1st ant time)&lt;br /&gt; (296-(11.373*96))=-795&lt;br /&gt; -795+402*2 = 9&lt;/p&gt;
&lt;p&gt;3rd average phase:249 --&amp;gt;76(phase of 3rd at 1st ant time)&lt;br /&gt;4th average phase:271 --&amp;gt;-190(phase of 4th at 1st ant time)&lt;/p&gt;
&lt;p&gt;//-------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;Is there any mistake?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get right digree? Nrf52811 direction finding</title><link>https://devzone.nordicsemi.com/thread/240785?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 09:34:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1711537-74f7-45ee-9267-a318344d7d7b</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;could you visualize your data as a plot or at least put CSV here? It&amp;#39;s really hard to parse tons of digits in the head&amp;nbsp;&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;From your config - all 96 samples falls under the first antenna - we won&amp;#39;t see any phase change.&lt;/p&gt;
&lt;p&gt;IMHO switch pattern is too complex and outstretched, you should use as short switching slot as your antenna switching IC allows, ideally not longer than 2 usec (longer slot -&amp;gt; more crystal jitter influence -&amp;gt; lower accuracy). That&amp;#39;s why reference period is separated - you have enough time on a single antenna to calculate frequency offset, and you have no chance to do that with two samples (4us sample spacing) - at least 8 samples are needed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get right digree? Nrf52811 direction finding</title><link>https://devzone.nordicsemi.com/thread/240756?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 07:31:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc2c9322-64ce-408e-90d5-81df9f74c027</guid><dc:creator>miaojb12</dc:creator><description>&lt;p&gt;&lt;span&gt;sorry,changed &amp;lt; first 2+&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;16&lt;/strong&gt;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;samples&lt;/span&gt;&lt;span&gt;&amp;nbsp;is ignored。&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>