<?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>The problem to find the phase shift between the waves of two fixed NRF52833DK boards using CTE data.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/100056/the-problem-to-find-the-phase-shift-between-the-waves-of-two-fixed-nrf52833dk-boards-using-cte-data</link><description>Hello, dear support. Could you please to help me with my research. I trying to get phase shift between the waves of two fixed NRF52833DK boards, based on principle Initiator + Reflector with using data of continuous tone extension (CTE). 
 In theory </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 27 May 2023 12:57:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/100056/the-problem-to-find-the-phase-shift-between-the-waves-of-two-fixed-nrf52833dk-boards-using-cte-data" /><item><title>RE: The problem to find the phase shift between the waves of two fixed NRF52833DK boards using CTE data.</title><link>https://devzone.nordicsemi.com/thread/427915?ContentTypeID=1</link><pubDate>Sat, 27 May 2023 12:57:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d374a8e-e719-44a0-b506-6b9e98d1c102</guid><dc:creator>AsterG</dc:creator><description>&lt;p&gt;I understand. Thank you for information, Kenneth.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;With best respect.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The problem to find the phase shift between the waves of two fixed NRF52833DK boards using CTE data.</title><link>https://devzone.nordicsemi.com/thread/427882?ContentTypeID=1</link><pubDate>Fri, 26 May 2023 16:24:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eee00fd0-3b2e-4ef5-84dd-afe08599297f</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Setting up timer compare events to trigger the radio tasks over a ppi channel will have the most accurate timing. All while loops are by design inaccurate, because the event may occur at any time within the loop, which can cause a difference of several 64MHz instruction between exiting the loop for each while loop.&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t guarantee this will solve your issue, but at least it will make it more accurate.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The problem to find the phase shift between the waves of two fixed NRF52833DK boards using CTE data.</title><link>https://devzone.nordicsemi.com/thread/427835?ContentTypeID=1</link><pubDate>Fri, 26 May 2023 14:01:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c5a2a73-5ac0-4810-b6f2-363233eed5a6</guid><dc:creator>AsterG</dc:creator><description>&lt;p&gt;Very thank you for information and your patience. Now I learn the specification more detailed and have last question by this theme before start my long way to find solution of my problem.&lt;/p&gt;
&lt;p&gt;If all RADIO events to make use over PPI, for avoid any delays between calling those events, so this will make synchronization much accurate as it possible, So why is needed TIMER?&lt;br /&gt;Delay between events calls on I&lt;strong&gt;nitiator&lt;/strong&gt; and on &lt;strong&gt;Reflector&lt;/strong&gt; already will constant from iteration to iteration, because all is used over PPI, so why TIMER is needed in this chain in context my task?&lt;/p&gt;
&lt;p&gt;With best respect. Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The problem to find the phase shift between the waves of two fixed NRF52833DK boards using CTE data.</title><link>https://devzone.nordicsemi.com/thread/427493?ContentTypeID=1</link><pubDate>Thu, 25 May 2023 11:18:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1468153c-eb0d-4015-9185-5f4bae66de03</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry, but I don&amp;#39;t really have more information, I highly recommend that you update and use the library in nRF Connect SDK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think the main problem is that in specific the start tasks here occur asynchrounous (e.g. depending on the inaccurate while() checks you have), I likely suggest that you for instance try to connect start tasks to a timer of for instance fixed 1us resolution, since the on-air data rate is 1Mbps. At least that is where I would have started.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The problem to find the phase shift between the waves of two fixed NRF52833DK boards using CTE data.</title><link>https://devzone.nordicsemi.com/thread/427462?ContentTypeID=1</link><pubDate>Thu, 25 May 2023 09:27:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0550503-384f-4dc6-9703-edf70f152d11</guid><dc:creator>AsterG</dc:creator><description>&lt;p&gt;Hello. Could you please tell me exactly how TIMER and PPI can be used regarding my situation. I&amp;#39;m not asking you to write code for me, but, at least, direct me to the right thoughts to continue searching solution for my question.&lt;/p&gt;
&lt;p&gt;I thought that if the RADIO is not reconnected (not use RADIO-&amp;gt;TASKS_DISABLE) when switching from transmitter (TX) to receiver (RX) and vice-versa, then LOs generation remains continuous (for both &lt;strong&gt;Initiator&lt;/strong&gt; and &lt;strong&gt;Reflector&lt;/strong&gt;), then the delta of LOs phases between these &lt;strong&gt;Initiator&lt;/strong&gt; and &lt;strong&gt;Reflector&lt;/strong&gt; is constant and stable over the time. &lt;br /&gt;I tried to use also interrupts for RADIO peripheral (over NVIC_EnableIRQ(RADIO_IRQn)) with same negative result. Please explain me how I can right to use for my experiments TIMER and PPI...? &lt;br /&gt;Is really interrupts (over NVIC_EnableIRQ()) or while{...} (as in example files) solutions introduce such large error into the stable LO generation? Or I &amp;#39;m wrong in something?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The problem to find the phase shift between the waves of two fixed NRF52833DK boards using CTE data.</title><link>https://devzone.nordicsemi.com/thread/427398?ContentTypeID=1</link><pubDate>Thu, 25 May 2023 07:43:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65e4af42-a408-41cc-811e-3d8a7549082c</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Unfortunately we do really only support the distance measurement library you find in nRF Connect SDK.&lt;/p&gt;
&lt;p&gt;Our suggestion looking at your code though would be to look into avoid busy waits (such as while(some_event)), and instead try to use TIMER and PPI to get more control over the timing.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The problem to find the phase shift between the waves of two fixed NRF52833DK boards using CTE data.</title><link>https://devzone.nordicsemi.com/thread/427211?ContentTypeID=1</link><pubDate>Wed, 24 May 2023 11:51:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11be4638-8437-4ef3-9c6d-ff92b3ea4140</guid><dc:creator>AsterG</dc:creator><description>&lt;p&gt;Hello Kenneth. Thanks for the quick response.&lt;/p&gt;
&lt;p&gt;Firstly, I use the project infrastructure based on NRF5 SDK and there is no way to switch to NRF Connect SDK at the current moment.&lt;/p&gt;
&lt;p&gt;Secondly, I consider the goal not to create a rangefinder, as such, but something similar to a motion sensor based on its own phase-based algorithm with its own characteristics.&lt;/p&gt;
&lt;p&gt;That&amp;#39;s why I am interested in the technical possibility of such a phase shift measurement.&lt;br /&gt;Yes, I am familiar with these documents, from which it follows that such a phase shift measurement is possible on these chips. &lt;br /&gt;Having studied the specification, I wrote&amp;nbsp;test code for&amp;nbsp;&lt;strong&gt;Initiator&lt;/strong&gt;&lt;span&gt;&amp;nbsp;and&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Reflector&lt;/strong&gt;&amp;nbsp;in which I tried to take into account all the nuances, but, obviously, somewhere I made a mistake in setting up the RADIO peripheral or some else.&lt;br /&gt;Could you please to explain, by my code, what I do wrong?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;With best respect. Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The problem to find the phase shift between the waves of two fixed NRF52833DK boards using CTE data.</title><link>https://devzone.nordicsemi.com/thread/427187?ContentTypeID=1</link><pubDate>Wed, 24 May 2023 10:54:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db561f47-09b6-4ab2-bc6f-e4b5560ffdc3</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Is there any reason why you&amp;nbsp;can&amp;#39;t use the ready-made library that calculate the distance for you already?&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/others/dm.html#distance-measurement"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/others/dm.html#distance-measurement&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/nrf_dm/README.html#nrf-dm"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/nrf_dm/README.html#nrf-dm&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Example:&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/nrf_dm/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/nrf_dm/README.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>