<?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>Distance Measurement Sample Code</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119642/distance-measurement-sample-code</link><description>Is there a way to modify the distance measurement sample code to where it is intended for one transmitter and multiple receivers versus between just two devices? I am trying to attempt this using the nrf5340 DK. Or would it be better to use any of the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Mar 2025 06:55:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119642/distance-measurement-sample-code" /><item><title>RE: Distance Measurement Sample Code</title><link>https://devzone.nordicsemi.com/thread/528132?ContentTypeID=1</link><pubDate>Thu, 20 Mar 2025 06:55:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:309cd72a-620c-4c98-8cf3-dc15eb82626a</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It would most likely be mostly main.c, yes. Please note that some samples may have functionality in other files in the src folder of the sample as well, so depending on what you want to do you might have to do changes to those as well. You should not change other files (outside of the samples folder), though, as those are the files and libraries distributed with the SDK.&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: Distance Measurement Sample Code</title><link>https://devzone.nordicsemi.com/thread/527056?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 22:44:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0643af82-b638-451f-bfcc-a72de589117c</guid><dc:creator>mgl</dc:creator><description>&lt;p&gt;Thank you. Would this mean I would only have to modify the main.c file or other files as well?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Distance Measurement Sample Code</title><link>https://devzone.nordicsemi.com/thread/526744?ContentTypeID=1</link><pubDate>Tue, 11 Mar 2025 12:30:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:191c211a-15ef-4924-b11b-566b07785c71</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I assume that you refer to the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/others/dm.html"&gt;Distance Measurement module&lt;/a&gt; and the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrfxlib/nrf_dm/README.html#nrf-dm"&gt;Nordic Distance Measurement library&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The distance measurement library works for two devices at a time. (The algorithm itself is one-to-one only. It is not one-to-many, many-to-one, nor many-to-many.)&lt;/p&gt;
&lt;p&gt;What you can do at the application level, is to do multiple distance measurements with different devices, one after each other. In the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/nrf_dm/README.html"&gt;Bluetooth: nRF Distance Measurement with Bluetooth LE discovery sample&lt;/a&gt;, each device both scans and advertises. Instead, you could modify that sample (possibly into two different samples) so that you have one device scan only, and the other devices advertise only, and then let the scanning device do a distance measurement session with each of the advertisers in turn.&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>