<?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 NDT(Nordic Distance Measuring Toolbox)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115219/questions-about-ndt-nordic-distance-measuring-toolbox</link><description>Hello! I&amp;#39;m evaluating NDT and trying to inderstand its capabilities. While the library looks fascinating, I faced some speedbumpers on the evaluation phase. I want to use this NDT technology in the future project, and I will be grateful if somebody will</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Oct 2024 14:26:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115219/questions-about-ndt-nordic-distance-measuring-toolbox" /><item><title>RE: Questions about NDT(Nordic Distance Measuring Toolbox)</title><link>https://devzone.nordicsemi.com/thread/505760?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2024 14:26:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05ba7f55-207b-4707-8ede-980b1a6228c3</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;The sample is optimized for one-to-one measurements. If you are doing multiple units, we recommend you build some kind of scheduling solution into the application layer.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;-Amanda H.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about NDT(Nordic Distance Measuring Toolbox)</title><link>https://devzone.nordicsemi.com/thread/505670?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2024 08:26:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9899cae-f773-4a04-8020-5b94bb9219b4</guid><dc:creator>Dmitry Sysoletin</dc:creator><description>&lt;p&gt;Hi Amanda.&lt;br /&gt;Sure, here are some details for reproducing this.&lt;br /&gt;NCS&amp;nbsp;v2.6.1,&lt;br /&gt;Firstly I discovered this on &amp;quot;vanilla&amp;quot; code, i.e. without my changes.&lt;br /&gt;The ranges were transferred to PC via UART. The radio was used solely by nRF DM.&lt;br /&gt;There were 3 nRF52840 (one as a &amp;quot;locator&amp;quot; board connected to the PC, and two as reflectors) + one nRF5340 devkit as an additional reflector.&lt;/p&gt;
&lt;p&gt;Just upload firmware to all the boards, start logging into the file, and wait for a while. After some time, you should notice that you have the same MAC in UART output again and again. If you will reset the &amp;quot;locator&amp;quot; board, you will get different MACs for a while, and then &amp;quot;locking&amp;quot; will happen again.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;About experiments with&amp;nbsp;&lt;span&gt;CONFIG_DM_TIMESLOT_QUEUE_COUNT_SAME_PEER - sorry, I can&amp;#39;t do that at the moment. We decided to stop efforts on evaluating nRF DM due to its unreliability.&lt;br /&gt;&lt;br /&gt;Thank you for your assistance.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about NDT(Nordic Distance Measuring Toolbox)</title><link>https://devzone.nordicsemi.com/thread/505582?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2024 13:11:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce3bd48b-66a3-4366-b8cb-727a159b1fc7</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user=""]1 - If we have more than 2 boards, the ranging works fine for a while (1-5-10 minutes) - in that time we got distances between a &amp;quot;locator&amp;quot; and random &amp;quot;raflector&amp;quot;, and &amp;quot;reflectlor&amp;quot; seems to be random - so it is fine, we got the distances to all of the reflectors. But after a while the &amp;quot;locator&amp;quot; boards seems to &amp;quot;lock&amp;quot; on some particular &amp;quot;reflector&amp;quot; board (most often on the nearest one). After this &amp;quot;locking&amp;quot;, we got only distances to one reflector board. If we move the locator close to other reflector, if will &amp;quot;relock&amp;quot; after a while to the currently physically closest one, and will measure the distance only to that one. So if we have, for example, 3 &amp;quot;reflectors&amp;quot; and one &amp;quot;locator&amp;quot; - we will only have a distance to one &amp;quot;reflector&amp;quot;.[/quote]
&lt;p&gt;Are you checking the distances using the UART print or did you subscribe to the service? Do you check the logs from all the boards?&lt;/p&gt;
&lt;p&gt;Do you change anything in the sample? Could you elaborate on what you modified?&lt;/p&gt;
&lt;p&gt;Could you elaborate in more detail on how to reproduce?&amp;nbsp;What NCS version are you using? Are you using nRF52840DK for all the devices?&lt;/p&gt;
&lt;p&gt;Does setting CONFIG_DM_TIMESLOT_QUEUE_COUNT_SAME_PEER to a lower value work? You can probably try setting this to 1.&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about NDT(Nordic Distance Measuring Toolbox)</title><link>https://devzone.nordicsemi.com/thread/505132?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2024 09:22:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbbb0542-d9ad-4dfa-b141-5a714f47af22</guid><dc:creator>Dmitry Sysoletin</dc:creator><description>&lt;p&gt;Hi Amanda.&lt;br /&gt;Thank you for the suggestion.&lt;br /&gt;I&amp;#39;ve tried this, and it doesn&amp;#39;t help.&lt;br /&gt;After some time (about ~5 mins) &amp;quot;locator&amp;quot; board &amp;quot;locks&amp;quot; on one of the reflectors. Resetting the board helps for a while, and then &amp;quot;locking&amp;quot; happens again.&lt;br /&gt;As I wrote above, I tried to save the timestamps for scanned ranging partners and only perform ranging one time per N ms for the same MAC - but this also doesn&amp;#39;t help.&amp;nbsp;&lt;br /&gt;It looks like when &amp;quot;locking&amp;quot; occurs,&amp;nbsp;adv_scanned_cb() will only be called for the same MAC repeatedly, so I can&amp;#39;t fix this with filtering.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about NDT(Nordic Distance Measuring Toolbox)</title><link>https://devzone.nordicsemi.com/thread/505022?ContentTypeID=1</link><pubDate>Fri, 04 Oct 2024 13:47:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b8784d3-8c90-4c0b-a229-320faa1c8d33</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you try to comment out the&lt;/span&gt;&lt;em&gt;&amp;nbsp;&lt;code&gt;if (peer_supported_test(info-&amp;gt;addr))&lt;/code&gt;&lt;/em&gt;&lt;span&gt;&amp;nbsp;line inside&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;adv_scanned_cb&amp;nbsp;&lt;/code&gt;&lt;span&gt;callback function? Does it help?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about NDT(Nordic Distance Measuring Toolbox)</title><link>https://devzone.nordicsemi.com/thread/504965?ContentTypeID=1</link><pubDate>Fri, 04 Oct 2024 10:25:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:578ed20f-8734-4a68-aea4-e731f8bb6ea1</guid><dc:creator>Dmitry Sysoletin</dc:creator><description>&lt;p&gt;Hello Amanda.&lt;br /&gt;&lt;br /&gt;Thank you for citing the README file.&lt;br /&gt;I&amp;#39;m sure there is something that I missing - can you please point me to what I am missing?&lt;br /&gt;&lt;br /&gt;I still do not&amp;nbsp;get why just after&amp;nbsp;rebooting&amp;nbsp;the initiator board everything looks good, it measures ranges to all of the anchors it can reach, but after some time, it will only measure the distance to just one (the closest one maybe).&lt;br /&gt;If I press the reset - for a while (several minutes) it will again measure the distance to all the boards it can reach, but after a while It will again &amp;quot;lock&amp;quot; itself to just the one.&lt;br /&gt;Why this can be?&lt;br /&gt;&lt;br /&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about NDT(Nordic Distance Measuring Toolbox)</title><link>https://devzone.nordicsemi.com/thread/504880?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2024 14:59:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c034e062-9bb8-4d8c-9e1d-a6205d2582a3</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user=""]after a while, the &amp;quot;locator&amp;quot; board still &amp;quot;locks&amp;quot; on the some &amp;quot;reflector&amp;quot;.[/quote]
&lt;p&gt;&lt;span&gt;Both devices act as an advertiser and a scanner at first in the sample.&amp;nbsp;&lt;/span&gt;&lt;span&gt;This scanner/advertiser interaction is used as a synchronization point. After a configurable delay, Device A and Device B try to range each other as reflector&amp;nbsp;or initiator. The scanner would store&amp;nbsp;the addresses of the supported devices in a list.&lt;/span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1727966492855v2.png" alt=" " /&gt;&lt;/p&gt;
[quote user=""]Is there some config option for defining a board role (initiator/reflector)?[/quote]
&lt;p&gt;There is no specific config to assign an&amp;nbsp;&lt;span&gt;initiator/reflector role in the&amp;nbsp;DM sample, but you can modify the sample to achieve that.&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user=""]is there a way to avoid this and send scan requests only manually when needed?[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Do you comment out the&lt;em&gt;&amp;nbsp;&lt;code&gt;if (peer_supported_test(info-&amp;gt;addr))&lt;/code&gt;&lt;/em&gt;&amp;nbsp;line inside&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;adv_scanned_cb&amp;nbsp;&lt;/code&gt;callback function?&lt;/p&gt;
&lt;p&gt;If the device does not act as a scanner it does not build the list of supported peers.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In the DM sample (from NCS) the device acts as both scanner and advertiser. A list of supported device is build in the scanner callback function. This list is only used for the purpose of&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;sample&lt;/em&gt;&lt;span&gt;. It is not used by the&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;dm submodule&lt;/em&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;or the&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;nrf_dm library.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Note: the current application is not designed to support a large number of units. That will require some changes to the application layer to make it more stable. This has not been in scope for us and it is up to the customer to implement.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>