<?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>BLE Channel Sounding - changing the number of samples.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117897/ble-channel-sounding---changing-the-number-of-samples</link><description>I am testing out the Bluetooth Channel sounding sample with the nRF54L15-dk board using the samples of Channel sounding Initiator with ranging requester. How to change the number of samples in the round trip timing method and phase based ranging method</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Jan 2025 08:16:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117897/ble-channel-sounding---changing-the-number-of-samples" /><item><title>RE: BLE Channel Sounding - changing the number of samples.</title><link>https://devzone.nordicsemi.com/thread/519929?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2025 08:16:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8206306f-e70a-4874-95b5-e26c04f66a09</guid><dc:creator>Vinay Bhagure</dc:creator><description>&lt;p&gt;Thankyou Edvin!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Channel Sounding - changing the number of samples.</title><link>https://devzone.nordicsemi.com/thread/519891?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2025 23:25:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d85ec5b8-9769-4a1a-a884-b5b34a6e1554</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;In this sample, you would have to do that in your application. I guess it is just some simple maths, but you need to decide how you want to weight them. If you weight them equally, just add together all measurements times the number of samples used, and divide by total samples.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But again, neither of these are good measurements at the moment. My best advice is to wait for the sample to get some smart algorithms that actually gives decent results.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Channel Sounding - changing the number of samples.</title><link>https://devzone.nordicsemi.com/thread/519292?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2025 12:39:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0d3e61b-6403-4080-a498-187f44833928</guid><dc:creator>Vinay Bhagure</dc:creator><description>&lt;p&gt;Is there any way to combine both the distances from RTT and PBR methods and get the average solution for the distance measurement?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Channel Sounding - changing the number of samples.</title><link>https://devzone.nordicsemi.com/thread/518413?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2025 10:24:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5855e1b6-a13b-4338-b56f-f2e5b6cd7e9b</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Indeed this is not the final solution for the channel sounding. It is currently just a proof of concept, as I mentioned, to show that we can fetch the raw data correctly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Channel Sounding - changing the number of samples.</title><link>https://devzone.nordicsemi.com/thread/518107?ContentTypeID=1</link><pubDate>Mon, 13 Jan 2025 10:01:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82e3ab73-4f81-4c21-a6ce-b9b0c6fff2a7</guid><dc:creator>Vinay Bhagure</dc:creator><description>&lt;p&gt;Thankyou. That was exactly what I was looking for. But event if we change the number of samples, there is inconsistant and inaccurate values from RTT and PBR methods. It might take some time for Nordic to develop a consistant working solution for this.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Channel Sounding - changing the number of samples.</title><link>https://devzone.nordicsemi.com/thread/517973?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2025 14:51:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63357f4e-1ff0-4f4a-836d-18244cc4a567</guid><dc:creator>Erik Sandgren</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Not sure if this is what you are looking for, but one way of changing the ratio of main mode to sub mode steps is by changing these two&amp;nbsp;values&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/509fa66004370f00faf13912cc6fced25dda6d6c/samples/bluetooth/channel_sounding_ras_initiator/src/main.c#L423-L424"&gt;https://github.com/nrfconnect/sdk-nrf/blob/509fa66004370f00faf13912cc6fced25dda6d6c/samples/bluetooth/channel_sounding_ras_initiator/src/main.c#L423-L424&lt;br /&gt;&lt;/a&gt;For example if I change both to 1, I&amp;nbsp;get roughly as many sub mode steps (RTT steps in this case) as I get main mode steps (PBR steps in this case). Example log from the sample with this change:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;I: Estimated distance to reflector:
I: - Round-Trip Timing method: 4.592482 meters (derived from 78 samples)
I: - Phase-Based Ranging method: 0.434500 meters (derived from 79 samples)
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Channel Sounding - changing the number of samples.</title><link>https://devzone.nordicsemi.com/thread/517942?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2025 13:20:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a203e485-85a2-482d-9497-595aa2d01b04</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Did you test the sample?&lt;/p&gt;
&lt;p&gt;Running it for a short time gives me this log:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;I: - Round-Trip Timing method: 2.443308 meters (derived from 10 samples)
I: - Phase-Based Ranging method: 1.531434 meters (derived from 147 samples)
I: Subevent result callback 1
I: Ranging data ready 1
I: Ranging data get completed for ranging counter 1
I: Estimated distance to reflector:
I: - Round-Trip Timing method: 3.147821 meters (derived from 9 samples)
I: - Phase-Based Ranging method: 1.485374 meters (derived from 148 samples)
I: Subevent result callback 2
I: Ranging data ready 2
I: Ranging data get completed for ranging counter 2
I: Estimated distance to reflector:
I: - Round-Trip Timing method: 2.866765 meters (derived from 8 samples)
I: - Phase-Based Ranging method: 1.402294 meters (derived from 149 samples)
I: Subevent result callback 3
I: Ranging data ready 3
I: Ranging data get completed for ranging counter 3
I: Estimated distance to reflector:
I: - Round-Trip Timing method: 2.922976 meters (derived from 10 samples)
I: - Phase-Based Ranging method: 1.530307 meters (derived from 147 samples)
I: Subevent result callback 4
I: Ranging data ready 4
I: Ranging data get completed for ranging counter 4
I: Estimated distance to reflector:
I: - Round-Trip Timing method: 3.692898 meters (derived from 11 samples)
I: - Phase-Based Ranging method: 1.755326 meters (derived from 146 samples)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So as you can see, the trip time is done using about 10 samples, and the phase-based method is done around 150 times.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am not completely sure, but I suspect it is done in the procedure_params in main(). It doesn&amp;#39;t set the numbers directly, but some intervals and lengths and things like that.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please note that this sample is not a demo on how good the distance measurement is (because it is pretty bad at this point in time). It is a demonstration of using the technology and fetching the required data. In the future, there will be some more work on the maths used to calculate the actual distance, so that it will be more similar to the performance of the nrf_dm (distance measurement) sample, which uses a proprietary (but similar) technique.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>