<?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 Distance accurancy issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/124901/channel-sounding-distance-accurancy-issue</link><description>Hello Support Team, 
 I am currently testing the new Channel Sounding feature on two nRF54L15 boards, on which I flashed your Channel Sounding samples ( initiator and reflector ). I noticed that the distance accuracy (for example, using the IFFT) is not</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Oct 2025 14:11:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/124901/channel-sounding-distance-accurancy-issue" /><item><title>RE: Channel Sounding Distance accurancy issue</title><link>https://devzone.nordicsemi.com/thread/551731?ContentTypeID=1</link><pubDate>Thu, 16 Oct 2025 14:11:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cef4087-d6ef-4611-96f4-f4a2a40758ba</guid><dc:creator>PaKa</dc:creator><description>&lt;p&gt;It looks like what is called &amp;quot;average&amp;quot; is actually a median filter. This works differently as outliers are ignored totally while in average they will impact the results. You use median filters here as one of the quirks of phase based ranging is that you can get suddenly get very wrong results caused by for instance multipath. With a median filter these are removed while with average they would &amp;quot;count&amp;quot;.&lt;/p&gt;
&lt;p&gt;More advanced and tailored filtering can also be used if you need even better performance&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Channel Sounding Distance accurancy issue</title><link>https://devzone.nordicsemi.com/thread/551716?ContentTypeID=1</link><pubDate>Thu, 16 Oct 2025 13:18:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de9b761e-d8e8-4067-a3d0-e53f2f57c61f</guid><dc:creator>Elfving</dc:creator><description>[quote user="Fhar"]&lt;p&gt;Yes sorry, It refers indeed to the delay between each measurement ( in my understanding). In the code,&amp;nbsp;it is called in the main loop as&amp;nbsp;&amp;nbsp;&lt;code&gt;k_sleep(K_MSEC(5000));&lt;/code&gt;, which introduces a 5-second pause between distance readings.&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;Ah, I think that just is there to limit what gets logged so that it is easier for the user to understand the sample.&lt;/p&gt;
[quote user="Fhar"]Regarding the &amp;quot;3-stage average filter&amp;quot;, I couldn’t clearly identify it in the code either.[/quote]
&lt;p&gt;I heard this from the relevant team, and I now see that by this they meant they filter it, and then take the average or something, and I guess it has 3 stages in that sense. My thinking was that you could increase the amount of samples used for this process, which I see is controlled by&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/77497ca2748d28049c439e0612d0eb642269867e/samples/bluetooth/channel_sounding_ras_initiator/src/main.c#L64"&gt;DE_SLIDING_WINDOW_SIZE &lt;/a&gt;which is set to 9 by default. The &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/77497ca2748d28049c439e0612d0eb642269867e/samples/bluetooth/channel_sounding_ras_initiator/src/main.c#L143-L145"&gt;averaging is done here.&lt;/a&gt;&lt;/p&gt;
[quote user="Fhar"]&lt;p&gt;I assume it requires multiple antennas to work correctly. From what I know, the Dev Kit nrf54L15 dk only has a single Bluetooth antenna isn&amp;#39;t ?&amp;nbsp;&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;Yeah, for the multiple antenna version of channel sounding you need that, and the DKs only have one.&lt;/p&gt;
[quote user="Fhar"]I initially tested the Channel Sounding solution to achieve precise distance measurements (ideally &amp;lt;1 meter), even with obstacles like walls.&lt;br /&gt; Recent tests with both Dev Kits aligned face-to-face ( antennas looking at each other) . It seems I have better results — around 0.5 to 1 meter error for short distances (0–6 meters) without obstacles.[/quote]
&lt;p&gt;That sort of precision is the goal for channel sounding, though better algorithms might give you these results in other situations, and with potential obstructions.&lt;/p&gt;
&lt;p&gt;Note that you can get much better precision with what is called UWB, though that is something we sadly do not provide. I also hear that it costs a lot more.&lt;/p&gt;
[quote user="Fhar"]Thank you again for your help and time,&amp;nbsp;&lt;br /&gt;[/quote]
&lt;p&gt;No problem at all, please 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: Channel Sounding Distance accurancy issue</title><link>https://devzone.nordicsemi.com/thread/551615?ContentTypeID=1</link><pubDate>Wed, 15 Oct 2025 15:00:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:181abce0-2a76-4b19-9c95-d37b9a7ba79c</guid><dc:creator>Fhar</dc:creator><description>[quote userid="103347" url="~/f/nordic-q-a/124901/channel-sounding-distance-accurancy-issue/551417"]I am not sure if I am familiar with that one. Where did you find this?[/quote]
&lt;p&gt;Yes sorry, It refers indeed to the delay between each measurement ( in my understanding). In the code,&amp;nbsp;it is called in the main loop as&amp;nbsp;&amp;nbsp;&lt;code&gt;k_sleep(K_MSEC(5000));&lt;/code&gt;, which introduces a 5-second pause between distance readings.&lt;/p&gt;
[quote userid="103347" url="~/f/nordic-q-a/124901/channel-sounding-distance-accurancy-issue/551417"]Currently, a 3-stage average filter is used in the SDK. If you want something simple, then maybe it would be enough to raise that to a 5-stage filter, as well as only relying on the IFFT estimate.&amp;nbsp;[/quote]
&lt;p&gt;Regarding the &amp;quot;3-stage average filter&amp;quot;, I couldn&amp;rsquo;t clearly identify it in the code either. I tried increasing the sliding window size from &lt;code&gt;#define DE_SLIDING_WINDOW_SIZE (9)&lt;/code&gt; to 15 and then 20, but didn&amp;rsquo;t notice any significant improvement in the results. If you have more insight on where this filter is implemented or how it&amp;rsquo;s supposed to work, I&amp;rsquo;d be happy to look into it further.&lt;/p&gt;
[quote userid="103347" url="~/f/nordic-q-a/124901/channel-sounding-distance-accurancy-issue/551417"]Though you could also add an &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrfxlib/softdevice_controller/doc/channel_sounding.html#multiple_antennas_support"&gt;antenna matrix and the code for that&lt;/a&gt;, try to combine all the different estimates (IFFT, phase slope etc.), and on top of that add a Kalman filter.&amp;nbsp;[/quote]
&lt;p&gt;I assume it requires multiple antennas to work correctly. From what I know, the Dev Kit nrf54L15 dk only has a single Bluetooth antenna isn&amp;#39;t ?&amp;nbsp;&lt;/p&gt;
[quote userid="103347" url="~/f/nordic-q-a/124901/channel-sounding-distance-accurancy-issue/551417"]So the question is rather how much accuracy you need, given your use case.&amp;nbsp;[/quote]
&lt;p&gt;I initially tested the Channel Sounding solution to achieve precise distance measurements (ideally &amp;lt;1 meter), even with obstacles like walls.&lt;br /&gt; Recent tests with both Dev Kits aligned face-to-face ( antennas looking at each other) . It seems I have better results &amp;mdash; around 0.5 to 1 meter error for short distances (0&amp;ndash;6 meters) without obstacles.&lt;br /&gt; Next, I&amp;rsquo;ll need to re-test with obstacles, making sure the antennas are properly aligned &amp;mdash; which is a bit trickier when the devices are in separate rooms.&lt;br /&gt;&lt;br /&gt;Thank you again for your help and time,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Regards,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Fhar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Channel Sounding Distance accurancy issue</title><link>https://devzone.nordicsemi.com/thread/551417?ContentTypeID=1</link><pubDate>Tue, 14 Oct 2025 12:03:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:488dd672-c5f5-4ab1-9440-9f6fe1af16ab</guid><dc:creator>Elfving</dc:creator><description>[quote user="Fhar"]&lt;p&gt;Also In that setup, the initiator and reflector were in different rooms, about 13 m apart — can Channel Sounding still work properly under those conditions?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;It would impact it, though bodies (or anything containing water) would typically impact it more. So the question is rather how much accuracy you need, given your use case.&amp;nbsp;&lt;/p&gt;
[quote user="Fhar"]Does the relative orientation of the Bluetooth antennas affect the accuracy?[/quote]
&lt;p&gt;Well I guess it could. I am not really a HW guy, but the radiation pattern would for sure play a role. And if you use multiple antennas (as is common in some direction finding and channel sounding use-cases) then ofcourse the&amp;nbsp;orientation&amp;nbsp;of that plane would play a role.&lt;/p&gt;
[quote user="Fhar"]Does the sleep time parameter influence the results, and what exactly is its role[/quote]
&lt;p&gt;I am not sure if I am familiar with that one. Where did you find this?&lt;/p&gt;
[quote user="Fhar"]Can the reflector be moving, or does it need to remain static?[/quote]
&lt;p&gt;It can be moving. I think the IFFT estimates work better with more previous samples, so it won&amp;#39;t benefit the estimates if the distance&amp;nbsp;follows eg. a quick sine wave, though it is made to track something moving.&lt;/p&gt;
[quote user="Fhar"]Are there any parameters I could tune to improve accuracy before considering a third-party algorithm?[/quote]
&lt;p&gt;It is hard to point to a specific spot in the code where you should do one specific thing. My impression is that there is a lot one could do here. Currently, a 3-stage average filter is used in the SDK. If you want something simple, then maybe it would be enough to raise that to a 5-stage filter, as well as only relying on the IFFT estimate.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Though you could also add an &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrfxlib/softdevice_controller/doc/channel_sounding.html#multiple_antennas_support"&gt;antenna matrix and the code for that&lt;/a&gt;, try to combine all the different estimates (IFFT, phase slope etc.), and on top of that add a Kalman filter.&amp;nbsp;&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: Channel Sounding Distance accurancy issue</title><link>https://devzone.nordicsemi.com/thread/551396?ContentTypeID=1</link><pubDate>Tue, 14 Oct 2025 10:15:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b3f7d2c-c965-4f15-b897-ac7ef1590e3e</guid><dc:creator>Fhar</dc:creator><description>&lt;p data-start="171" data-end="184"&gt;Hi Elfving,&lt;/p&gt;
&lt;p data-start="186" data-end="292"&gt;Thanks a lot for your detailed feedback and for clarifying the limitations of Channel Sounding accuracy.&lt;/p&gt;
&lt;p data-start="294" data-end="470"&gt;Yes, I watched the webinar and also tested the different methods using the previous Distance Toolbox. It helped me indeed to understand more about the different method.&lt;/p&gt;
&lt;p data-start="472" data-end="927"&gt;To come back to the 13 m test, I understand that the distance progresses in steps, but I was surprised by how long it takes to reach an acceptable level of accuracy.&amp;nbsp;&lt;br /&gt;Also In that setup, the initiator and reflector were in different rooms, about 13 m apart &amp;mdash; can Channel Sounding still work properly under those conditions?&lt;/p&gt;
&lt;p data-start="929" data-end="970"&gt;I also have a few additional questions:&lt;/p&gt;
&lt;ul data-start="971" data-end="1311"&gt;
&lt;li data-start="971" data-end="1051"&gt;
&lt;p data-start="973" data-end="1051"&gt;Does the relative orientation of the Bluetooth antennas affect the accuracy?&lt;/p&gt;
&lt;/li&gt;
&lt;li data-start="1052" data-end="1138"&gt;
&lt;p data-start="1054" data-end="1138"&gt;Does the sleep time parameter influence the results, and what exactly is its role?&lt;/p&gt;
&lt;/li&gt;
&lt;li data-start="1139" data-end="1205"&gt;
&lt;p data-start="1141" data-end="1205"&gt;Can the reflector be moving, or does it need to remain static?&lt;/p&gt;
&lt;/li&gt;
&lt;li data-start="1206" data-end="1311"&gt;
&lt;p data-start="1208" data-end="1311"&gt;Are there any parameters I could tune to improve accuracy before considering a third-party algorithm?&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Thank you for your help and time,&lt;/p&gt;
&lt;p data-start="1313" data-end="1337"&gt;Best regards,&lt;/p&gt;
&lt;p data-start="1313" data-end="1337"&gt;&lt;br data-start="1326" data-end="1329" /&gt; Fhar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Channel Sounding Distance accurancy issue</title><link>https://devzone.nordicsemi.com/thread/551259?ContentTypeID=1</link><pubDate>Mon, 13 Oct 2025 11:35:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c8cedc6-e4a9-47a2-a0a9-eecde594c965</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;So first of all, CS isn&amp;#39;t UWB; the best you can expect is &lt;span&gt;±&lt;/span&gt;0.5m. So the distance is progressing in steps. The way it almost seems that you&amp;#39;ve made it do on the bottom 13m test(?) might be a good way to look at it. Differentiating between&amp;nbsp;&lt;span&gt;±0.5m would be impossible/hard.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Secondly, it is tempting to simply say that you should disregard anything but the IFFT measurement - which I would also claim performs ok-ish in the tests you&amp;#39;ve shown (although I am not so sure why it bounces down to 0 in the 13m test). IFFT might be the most developed algorithm, but the truth is rather that all of these metrics work best in different situations. RSSI is okay in short range for instance, and RTT is best for very long ranges. &lt;a href="https://youtu.be/5vZIILTWmW0?si=MlgZspaf2wriI8yQ&amp;amp;t=1550"&gt;This old webinar&lt;/a&gt; (which is meant to describe how our old &amp;quot;Distance Toolbox&amp;quot; worked, but the tech is almost the same) goes a bit further into the details of what separates these measurements. Another thing I just realized when finding the webinar now is that phase slope might get you a max range, but don&amp;#39;t quote me on that.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;Most importantly: if you really want a good accuracy for your product, what you would typically do is to buy a third party algorithm that gets you&amp;nbsp;a better accuracy&amp;nbsp;than what our free code does. I assume the better algorithms combine all of these metrics in some fancy way. If you contact your local regional sales manager I bet he would be able to put you in contact with someone selling third party CS algorithms.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>