<?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>Channel Sounding – Ranging Data Overwritten and No Distance Update</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122418/channel-sounding-ranging-data-overwritten-and-no-distance-update</link><description>Hello, 
 I managed to run the examples for nrf54l15 channel_sounding_ras_initiator.c and reflector on my custom hardware boards. I changed the overlay files to use my own LED and UART for logging. I have only one RF antenna. I also do not have an external</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Aug 2025 13:50:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122418/channel-sounding-ranging-data-overwritten-and-no-distance-update" /><item><title>RE: Channel Sounding – Ranging Data Overwritten and No Distance Update</title><link>https://devzone.nordicsemi.com/thread/544799?ContentTypeID=1</link><pubDate>Wed, 06 Aug 2025 13:50:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:070cb59e-f2c8-4d53-a8f1-edea2d2c018b</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;There may be a few different reasons, such as:&lt;/p&gt;
&lt;p&gt;A possibility is that the data is not being acknowledged when received, so the peer has to assume it never was received.&lt;br /&gt; &lt;br /&gt;Noise on air could lead to dropped packets in the data transfer, which again would lead to it not being received properly and therefore overwritten.&lt;br /&gt; &lt;br /&gt;It could be that the CS parameters are so that there is not enough ACL time to transfer the data before a new CS procedure is initiated, without more information it&amp;#39;s hard to find the root cause.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When you see the distance has stopped updating, that&amp;#39;s because the distance printed is just the last calculated distance, so when no data transfer is successful there are no new distance measurements.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Channel Sounding – Ranging Data Overwritten and No Distance Update</title><link>https://devzone.nordicsemi.com/thread/544401?ContentTypeID=1</link><pubDate>Sun, 03 Aug 2025 19:49:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f392aa3-2274-494c-9d3d-901ba6f7f4c5</guid><dc:creator>witc</dc:creator><description>&lt;p data-start="75" data-end="570"&gt;Hi Terje,&lt;br /&gt;I am still struggling with this behaviour....&lt;br /&gt;&lt;br /&gt;Please try to specify it more clearly, what exactly does it mean when the initiator says &amp;ldquo;Ranging data overwritten&amp;rdquo;? Does it mean that the initiator is not fast enough to process the new incoming data? Does this mean my own user code is too slow? In the callback &lt;code data-start="338" data-end="361"&gt;ranging_data_ready_cb&lt;/code&gt;, I am informed that new data is ready and I can read it &amp;ndash; so does this mean the CPU is too slow to do this action? Or does it mean some background processes of BLE, CS, etc., which I cannot control as a user?&lt;/p&gt;
&lt;p data-start="572" data-end="720"&gt;My code is almost the same as your &lt;code data-start="607" data-end="622"&gt;ras_initiator&lt;/code&gt; example&amp;hellip; I do not think my code is so slow that the CPU cannot read/process the data fast enough&amp;hellip;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Channel Sounding – Ranging Data Overwritten and No Distance Update</title><link>https://devzone.nordicsemi.com/thread/540509?ContentTypeID=1</link><pubDate>Wed, 25 Jun 2025 15:35:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:652ece1e-1fe9-4fa1-a865-2abfd86376d3</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;To be more specific, the &amp;quot;Ranging data overwritten&amp;quot; indicates you have gotten new data without the ranging requestor fetching it. This may happen if the ranging requestor stops or does not fetch data often enough for there to not be any overwrites.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Channel Sounding – Ranging Data Overwritten and No Distance Update</title><link>https://devzone.nordicsemi.com/thread/540395?ContentTypeID=1</link><pubDate>Tue, 24 Jun 2025 19:51:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e168bff4-3533-4d03-9142-a0a16e63d1ed</guid><dc:creator>witc</dc:creator><description>&lt;p&gt;Thank you, but decreasing the timeout in the main loop cannot affect whether the data will be overwritten. It looks more like the CS measurement is running in the background all the time, and the main core does not manage to process - pick up the data. So, the data are overwritten and no new distance can be calculated ?!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Channel Sounding – Ranging Data Overwritten and No Distance Update</title><link>https://devzone.nordicsemi.com/thread/540235?ContentTypeID=1</link><pubDate>Mon, 23 Jun 2025 15:36:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:414ebe6c-a56c-400a-b9e9-178eee0e5cad</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The board might give some issues, yes. Please create a private ticket with schematics and gerber files, for our review.&lt;/p&gt;
&lt;p&gt;Have you tried with the custom board only, or do you see similar issues with an nRF54L15 DK?&lt;/p&gt;
[quote user=""]What does &amp;quot;Ranging data overwritten&amp;quot; mean here?[/quote]
&lt;p&gt;Basically that you have gotten a new set of ranging data.&lt;/p&gt;
[quote user=""]If I change the main loop delay from the original 5 seconds to for example 200 ms, I never get any measured distance in the log anymore. Why should changing the sleep time matter if the code just checks &lt;code&gt;if (buffer_num_valid != 0)&lt;/code&gt;?[/quote]
&lt;p&gt;Ranging might take some time. If you decrease the timeout, you risk timing out before you get the result. In the case of timeout you will not get a result.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>