<?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>Questions about Nordic Distance Measurement library sample</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112374/questions-about-nordic-distance-measurement-library-sample</link><description>The hardware I use is nrf52840Dongle, using nrf_dm sample for development. There are a few problems: 
 1. I have 8 devices, all within communication range, 4 as base stations and 3 as tags. The base station is the reflector, which is achieved by commenting</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Jul 2024 09:14:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112374/questions-about-nordic-distance-measurement-library-sample" /><item><title>RE: Questions about Nordic Distance Measurement library sample</title><link>https://devzone.nordicsemi.com/thread/494985?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2024 09:14:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cb2f72c-dbc5-420d-b8ea-75a0af5e5678</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;It doesn&amp;#39;t seem like the ranging specifically increases over time though, and after the 4 second ranging there seems to be a new 1 second ranging, so they seem random, rather than decreasingly slower. Can you provide some more information on how you do the testing? How far between the two devices is it when testing, and in what kind of environment are you testing. Also, is the Dongle doing anything else in software except the distance measurement ranging that might take a lot of time?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about Nordic Distance Measurement library sample</title><link>https://devzone.nordicsemi.com/thread/494146?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2024 12:51:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f452775e-4a38-4455-9f56-b3e108df6b04</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Simon is out of office, and he will be with you when he is back on Monday.&lt;/p&gt;
&lt;p&gt;Apologies&amp;nbsp;for the inconvenience.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Naeem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about Nordic Distance Measurement library sample</title><link>https://devzone.nordicsemi.com/thread/492571?ContentTypeID=1</link><pubDate>Sun, 07 Jul 2024 05:56:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00f84f50-60c9-41a5-91ca-9311ada0174e</guid><dc:creator>June11</dc:creator><description>&lt;p&gt;An output interval of 8s is too long for me.&lt;/p&gt;
&lt;p&gt;My current configuration is&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_DM_HIGH_PRECISION_CALC&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div data-theme="default" data-language=""&gt;CONFIG_DM_MIN_TIME_BETWEEN_TIMESLOTS_US=8000&lt;/div&gt;
&lt;div data-theme="default" data-language=""&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/20240707_2D00_135925.jpg" /&gt;&lt;/div&gt;
&lt;div data-theme="default" data-language=""&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about Nordic Distance Measurement library sample</title><link>https://devzone.nordicsemi.com/thread/491123?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2024 13:04:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb3eda19-3d82-4298-984f-0fa6ab522311</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve not been able to find anything on a ranging increasing in time, and I think this is just the random delay from BLE advertisements trigging. The count of time you have set up seems to be rather random.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about Nordic Distance Measurement library sample</title><link>https://devzone.nordicsemi.com/thread/490979?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2024 02:47:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd0b0f88-85d7-4c14-a4df-caf143866022</guid><dc:creator>June11</dc:creator><description>[quote userid="132718" url="~/f/nordic-q-a/112374/questions-about-nordic-distance-measurement-library-sample/490109"]&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have solved the problem of imbalanced output data. But now I run into another problem, I find that the number of outputs becomes less as time goes on, what might be the cause of this?&lt;/p&gt;
&lt;p&gt;I found similar questions in this ticker, but couldn&amp;#39;t find the answer.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/108629/nrfconnect-sdk-nrf_dm-example-with-dedicated-roles-with-several-reflectors-and-one-initiator-degrades-with-time"&gt;devzone.nordicsemi.com/.../nrfconnect-sdk-nrf_dm-example-with-dedicated-roles-with-several-reflectors-and-one-initiator-degrades-with-time&lt;/a&gt;&lt;/p&gt;[/quote]
&lt;p&gt;The fifth question means that when the device is just powered on, the initiator&amp;#39;s ranging frequency is 2 per second. After 30 minutes, the frequency of the initiator&amp;#39;s output log will slow down, and on average only one ranging data is output every 5s.&lt;/p&gt;
&lt;p&gt;The graph below shows the measured ranging output frequency after 30 minutes&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1719456440387v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about Nordic Distance Measurement library sample</title><link>https://devzone.nordicsemi.com/thread/490859?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2024 11:50:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b9b8fd0-573e-41f6-87b2-2362b3e931a8</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;1. To make a device just work as a scanner or advertiser you need to change the bt_sync_init() function to only use advertising or scanning so that the device won&amp;#39;t do both of them.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. I&amp;#39;m not sure I understand what you mean here, but the reason an advertises might only connect to one base station is likely because it decides to pair and sync up to the first device it connects to, and if that device always is in range that is what it will connect to. You can change the way the connections are handled to disconnect and &amp;quot;forget&amp;quot; that device so that it will connect to another one next time (most likely). You can also turn off the initial central it connected to so that the tag will connect to a new one&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3. Good. High precision will only be necessary if you have the computing to spare and need the extra accuracy.&lt;/p&gt;
&lt;p&gt;4. One timeslot will be the time allocated for the radio to do a certain task, so the part between the&amp;nbsp;&lt;strong&gt;red&amp;nbsp;&lt;/strong&gt;arrows in your drawing I believe.&lt;/p&gt;
&lt;p&gt;5. Can you be more specific on what you mean about the frequency of ranging decreasing? From what to what exactly?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about Nordic Distance Measurement library sample</title><link>https://devzone.nordicsemi.com/thread/490400?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2024 15:41:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:149d8a41-e4d6-4481-8d87-74ff1b82b426</guid><dc:creator>June11</dc:creator><description>&lt;p&gt;Hi，&lt;/p&gt;
&lt;p&gt;1、I&amp;#39;ve looked at the documentation, but I haven&amp;#39;t found an answer on how to just set as a scanner；&lt;/p&gt;
&lt;p&gt;2、&amp;nbsp;For the balance issue, I refer to the practice of other tickets and make limits in the application；&lt;/p&gt;
&lt;p&gt;3、I&amp;#39;ll try to test the parameters you suggested，&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_DM_HIGH_PRECISION_CALC"&gt;&lt;span&gt;CONFIG_DM_HIGH_PRECISION_CALC&lt;/span&gt;&lt;/a&gt;&lt;span&gt;=n；&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;4、This figure was drawn by me based on the official document, and it is what I understand, but I don&amp;#39;t know if it is correct or not.&amp;nbsp;I don&amp;#39;t quite understand what TIMESLOT means；&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;5、The device distance remains the same,&amp;nbsp;Over time, the frequency of ranging decreases.Any suggestions on this issue？&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about Nordic Distance Measurement library sample</title><link>https://devzone.nordicsemi.com/thread/490368?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2024 14:36:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68473c2d-f8be-47bb-a25d-9eed2e3bc588</guid><dc:creator>mathiaso</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
[quote user=""]&lt;p&gt;1. I have 8 devices, all within communication range, 4 as base stations and 3 as tags. The base station is the reflector, which is achieved by commenting this code：&lt;/p&gt;
&lt;div&gt;//if (peer_supported_test(info-&amp;gt;addr)) {&lt;/div&gt;
&lt;p&gt;I want to let the tag be the initiator only。What do I need to change？&lt;/p&gt;[/quote]
&lt;p&gt;Have you looked at the documentation describing &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/nrf_dm/README.html"&gt;the&amp;nbsp;nRF Distance Measurement sample&lt;/a&gt; and how to &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrfxlib/nrf_dm/doc/nrf_dm_usage.html"&gt;use the Distance Measurement Library&lt;/a&gt;?&lt;/p&gt;
[quote user=""]&lt;p&gt;2. I found that the tag sometimes only tests with certain base stations, and I want to test the tag with each base station, so that the measurement data of the tag is relatively average. Is there any better implementation method?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;cursor:zoom-in;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2210.pastedimage1719038470794v1.png" alt=" " /&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Is this what you figured out yourself?&lt;/p&gt;
[quote user=""]3. Test the two boards separately, and find that the measurement data can be output once per second when the distance is close. When the distance becomes longer, the output data will become slower. What parameters do you need to change?[/quote]
&lt;p&gt;There are several parameters deciding how fast output will be ready. Distance is one of these parameters so it is natural that it requires more time as the distance increases. If you&amp;#39;ve set &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_DM_HIGH_PRECISION_CALC"&gt;&lt;span&gt;CONFIG_DM_HIGH_PRECISION_CALC&lt;/span&gt;&lt;/a&gt;&lt;span&gt;=&lt;/span&gt;y and can sacrifice precision for a higher output data rate, you can set it =&lt;span&gt;n, as described in &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_DM_MIN_TIME_BETWEEN_TIMESLOTS_US"&gt;CONFIG_DM_MIN_TIME_BETWEEN_TIMESLOTS_US&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
[quote user="June11"]&lt;p&gt;For multiple device measurements, is it a one-time synchronization followed by device by device measurements?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure TIMESLOT meant the pink arrow part or the blue arrow part.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;cursor:zoom-in;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/6012.pastedimage1719130610342v1.png" alt=" " /&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Could you please point to the source of this figure?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Mathias&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about Nordic Distance Measurement library sample</title><link>https://devzone.nordicsemi.com/thread/490367?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2024 14:36:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee63d4ed-c113-4e86-88f7-6274dc923c93</guid><dc:creator>mathiaso</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
[quote user=""]&lt;p&gt;1. I have 8 devices, all within communication range, 4 as base stations and 3 as tags. The base station is the reflector, which is achieved by commenting this code：&lt;/p&gt;
&lt;div&gt;//if (peer_supported_test(info-&amp;gt;addr)) {&lt;/div&gt;
&lt;p&gt;I want to let the tag be the initiator only。What do I need to change？&lt;/p&gt;[/quote]
&lt;p&gt;Have you looked at the documentation describing &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/nrf_dm/README.html"&gt;the&amp;nbsp;nRF Distance Measurement sample&lt;/a&gt; and how to &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrfxlib/nrf_dm/doc/nrf_dm_usage.html"&gt;use the Distance Measurement Library&lt;/a&gt;?&lt;/p&gt;
[quote user=""]&lt;p&gt;2. I found that the tag sometimes only tests with certain base stations, and I want to test the tag with each base station, so that the measurement data of the tag is relatively average. Is there any better implementation method?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;cursor:zoom-in;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2742.pastedimage1719038470794v1.png" alt=" " /&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Is this what you figured out yourself?&lt;/p&gt;
[quote user=""]3. Test the two boards separately, and find that the measurement data can be output once per second when the distance is close. When the distance becomes longer, the output data will become slower. What parameters do you need to change?[/quote]
&lt;p&gt;There are several parameters deciding how fast output will be ready. Distance is one of these parameters so it is natural that it requires more time as the distance increases. If you&amp;#39;ve set &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_DM_HIGH_PRECISION_CALC"&gt;&lt;span&gt;CONFIG_DM_HIGH_PRECISION_CALC&lt;/span&gt;&lt;/a&gt;&lt;span&gt;=&lt;/span&gt;y and can sacrifice precision for a higher output data rate, you can set it =&lt;span&gt;n, as described in &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_DM_MIN_TIME_BETWEEN_TIMESLOTS_US"&gt;CONFIG_DM_MIN_TIME_BETWEEN_TIMESLOTS_US&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
[quote user="June11"]&lt;p&gt;For multiple device measurements, is it a one-time synchronization followed by device by device measurements?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure TIMESLOT meant the pink arrow part or the blue arrow part.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;cursor:zoom-in;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/3817.pastedimage1719130610342v1.png" alt=" " /&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Could you please point to the source of this figure?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Mathias&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about Nordic Distance Measurement library sample</title><link>https://devzone.nordicsemi.com/thread/490109?ContentTypeID=1</link><pubDate>Sun, 23 Jun 2024 09:47:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81a9e46d-6037-4e4c-a27e-6f69c1ee7e33</guid><dc:creator>June11</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have solved the problem of imbalanced output data. But now I run into another problem, I find that the number of outputs becomes less as time goes on, what might be the cause of this?&lt;/p&gt;
&lt;p&gt;I found similar questions in this ticker, but couldn&amp;#39;t find the answer.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/108629/nrfconnect-sdk-nrf_dm-example-with-dedicated-roles-with-several-reflectors-and-one-initiator-degrades-with-time"&gt;devzone.nordicsemi.com/.../nrfconnect-sdk-nrf_dm-example-with-dedicated-roles-with-several-reflectors-and-one-initiator-degrades-with-time&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about Nordic Distance Measurement library sample</title><link>https://devzone.nordicsemi.com/thread/490106?ContentTypeID=1</link><pubDate>Sun, 23 Jun 2024 08:22:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f2ab520-604a-4a36-bf4e-8de610787555</guid><dc:creator>June11</dc:creator><description>&lt;p&gt;Hi，&lt;br /&gt;&amp;nbsp;I understand the parameters in this way, and I don&amp;#39;t know if my understanding is correct.&lt;/p&gt;
&lt;p&gt;For multiple device measurements, is it a one-time synchronization followed by device by device measurements?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure TIMESLOT meant the pink arrow part or the blue arrow part.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1719130610342v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>