<?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 the distance measurement mesh model</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95646/questions-about-the-distance-measurement-mesh-model</link><description>Hello 
 My application is based on the Distance measurement sample which uses a BLE scan response callback to trigger the measurement synchronization sequence in reflector mode and scan callback to trigger synchronization sequence in initiator mode. With</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 31 Jan 2023 22:24:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95646/questions-about-the-distance-measurement-mesh-model" /><item><title>RE: Questions about the distance measurement mesh model</title><link>https://devzone.nordicsemi.com/thread/407438?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2023 22:24:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7c98ca3-3135-4bd6-873d-e2a60c878631</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;Update&lt;/p&gt;
&lt;p&gt;Got it to work, Can use mesh dm in the shell and measure distance between 2 nodes&lt;/p&gt;
&lt;p&gt;Here&amp;nbsp;is what I had to do i&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp;proj.conf&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_MESH_DM_CLI&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_MESH_DM_SRV&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;2. Add dm server and client to model composition&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bt_mesh_model&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;_vnd_models&lt;/span&gt;&lt;span&gt;[]&lt;/span&gt;&lt;span&gt; = {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;// your vendor models&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;// Distance measurement models.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;BT_MESH_MODEL_DM_CLI&lt;/span&gt;&lt;span&gt;(&amp;amp;&lt;/span&gt;&lt;span&gt;_dm_client&lt;/span&gt;&lt;span&gt;),&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;BT_MESH_MODEL_DM_SRV&lt;/span&gt;&lt;span&gt;(&amp;amp;&lt;/span&gt;&lt;span&gt;_dm_srv&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;// config client.used for provisioning via shell&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bt_mesh_cfg_cli&lt;/span&gt;&lt;span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;_config_client&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;static&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bt_mesh_model&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;_root_models&lt;/span&gt;&lt;span&gt;[]&lt;/span&gt;&lt;span&gt; = {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;BT_MESH_MODEL_CFG_SRV&lt;/span&gt;&lt;span&gt;, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;BT_MESH_MODEL_CFG_CLI&lt;/span&gt;&lt;span&gt;(&amp;amp;&lt;/span&gt;&lt;span&gt;_config_client&lt;/span&gt;&lt;span&gt;),&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;static&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bt_mesh_elem&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;_elements&lt;/span&gt;&lt;span&gt;[]&lt;/span&gt;&lt;span&gt; = {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;BT_MESH_ELEM&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;_root_models&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;_vnd_models&lt;/span&gt;&lt;span&gt;),&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;3. I use mesh shell to provision. Added the following commands&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;bind dm client model to node address&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;mesh models cfg model app-bind &lt;/span&gt;&lt;span&gt;&amp;lt;node addr&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;0 &lt;/span&gt;&lt;span&gt;&lt;span&gt;0x&lt;/span&gt;&lt;span&gt;000C&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;0x0059&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;bind dm server model to node address&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;mesh models cfg model app-bind&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;lt;node addr&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;0&amp;nbsp;&lt;/span&gt;&lt;span&gt;0x000B&lt;/span&gt;&lt;span&gt;&amp;nbsp;0x0059&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;NOTE&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;0x0059 is Nordic BLE ID. Must bind these models using Nordic ID not your company ID&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Otherwise bind fails&lt;br /&gt;&lt;br /&gt;Provisioned 2 nodes&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Now can do the following in the mesh shell&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;mesh init&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;mesh target dst &amp;lt;node address&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;mesh models dm start 1 (MPCD mode) &amp;lt;other node addr&amp;gt;&lt;br /&gt;Get this back&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;br /&gt;Status: Success (err: 0)&lt;br /&gt;&lt;br /&gt;Entry number: 1&lt;br /&gt; Mode: MCPD&lt;br /&gt; Quality: 0&lt;br /&gt; Error Occurred: 0&lt;br /&gt; Address: 0X0001&lt;br /&gt; Best distance (cm): 60&lt;br /&gt; IFFT distance (cm): 60&lt;br /&gt; Phase slope distance (cm): 196&lt;br /&gt; RSSI open space distance (cm): 891&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;NOTE&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;The measurement takes about 2 seconds ( 1 minute 51-52 seconds)&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;This is for 2 devices within BLE range&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Seems&amp;nbsp; a bit long&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&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 the distance measurement mesh model</title><link>https://devzone.nordicsemi.com/thread/406859?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2023 13:34:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b24fb98-737b-48bc-90f3-770eb22bd0e4</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I&amp;#39;m waiting for some input from the Mesh developers. Hopefully I hear back from them next week.&lt;/p&gt;
&lt;p&gt;Apologies for the inconvinience,&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about the distance measurement mesh model</title><link>https://devzone.nordicsemi.com/thread/406681?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 14:06:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12bf3323-66bd-4611-8aa7-f2bb839a35f5</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;Andreas&lt;/p&gt;
&lt;p&gt;I&amp;#39;m still stuck with my effort to incorporate the DM mesh&amp;nbsp;model into my application and need help there. I added both client and server models to my&amp;nbsp; mesh model composition but cannot even use the mesh DM shell sample to start a measurement - it returns an error. There is an entry above with the details but I can provide more if that&amp;#39;s not enough. Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about the distance measurement mesh model</title><link>https://devzone.nordicsemi.com/thread/406590?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 08:41:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2073c713-afa7-4d2d-a117-3110c8d5a89e</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="AndyM"]Can you clarify - does this apply to the ranging or synchronization phase or both?[/quote]
&lt;p&gt;This will be during both phases. 10 seconds sounds like a long time to receive the measurement results. I will clarify this number with the Mesh team and ask them if the results sounds within expectations&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about the distance measurement mesh model</title><link>https://devzone.nordicsemi.com/thread/406589?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 08:39:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eff01b84-1ecc-4702-8c8b-ab13d05e0f71</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve noted that you&amp;#39;re also interested in a sample, but unfortunately the same reply with regards timeline will go here as well. I will let you know &lt;em&gt;&lt;strong&gt;if&lt;/strong&gt; &lt;/em&gt;and when I get it done.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about the distance measurement mesh model</title><link>https://devzone.nordicsemi.com/thread/406498?ContentTypeID=1</link><pubDate>Wed, 25 Jan 2023 14:49:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e02c5ba9-2876-41e2-931b-04331a37d4c3</guid><dc:creator>AndyM</dc:creator><description>[quote userid="107683" url="~/f/nordic-q-a/95646/questions-about-the-distance-measurement-mesh-model/405011"]node cannot participate in the mesh communication&amp;nbsp;during DM ranging.&amp;nbsp;[/quote]
&lt;p&gt;Can you clarify - does this apply to the ranging or synchronization phase or both?&lt;br /&gt;In my experiments it can take 1-10 seconds to receive the measurement result. Farther nodes tend to take longer to measure&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about the distance measurement mesh model</title><link>https://devzone.nordicsemi.com/thread/406486?ContentTypeID=1</link><pubDate>Wed, 25 Jan 2023 14:25:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f0bee53-1ec4-4c47-b3a6-9e4bb8f5bfa9</guid><dc:creator>markibi</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
[quote userid="107683" url="~/f/nordic-q-a/95646/questions-about-the-distance-measurement-mesh-model/405011"]&lt;p&gt;Currently we don&amp;#39;t have any official samples planned. I will look into it and see if I can create an unofficial sample, but I can not guarantee anything w.r.t. time horizon and/or if it ever will be done.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class="quote-header"&gt;&lt;/div&gt;&lt;blockquote class="quote"&gt;&lt;div class="quote-content"&gt;&lt;/div&gt;&lt;/blockquote&gt;[/quote]
&lt;p&gt;Im also working in a bt mesh project and we need to use the distance measurement mesh model, even if the API is clear as a beginners we have some complications, then im also interested if either an official or unofficial sample is&amp;nbsp;available.&lt;/p&gt;
&lt;p&gt;&lt;span class="warnSign tooltip_help" title="Il se peut que cette traduction soit inexacte."&gt;&lt;/span&gt;I thank you in advance,&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Mehdi - Firmware engineer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about the distance measurement mesh model</title><link>https://devzone.nordicsemi.com/thread/406055?ContentTypeID=1</link><pubDate>Mon, 23 Jan 2023 14:12:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74aacb57-2caf-4532-b1a9-42d80898b983</guid><dc:creator>AndyM</dc:creator><description>&lt;div&gt;&lt;span&gt;&lt;/span&gt;I was able to get around error -125 by setting the client-&amp;gt;model-&amp;gt;pub-&amp;gt;addr to the unicast address of the node that initiates the measurement - now get error -22&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about the distance measurement mesh model</title><link>https://devzone.nordicsemi.com/thread/405674?ContentTypeID=1</link><pubDate>Thu, 19 Jan 2023 12:56:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80135822-b4b3-471b-85f3-e78cc0d02a87</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I am unfortunately out of office until next week, so there will be some wait time. I will get back to you earliest then.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about the distance measurement mesh model</title><link>https://devzone.nordicsemi.com/thread/405566?ContentTypeID=1</link><pubDate>Wed, 18 Jan 2023 22:40:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:316c2827-7077-4e6e-9c65-d5a732d4b89c</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;Update. Used mesh dm client in mesh shell. Get same error -125&lt;/p&gt;
&lt;p&gt;The dm client is in the composition&lt;br /&gt;~$ mesh models dm instance get-all&lt;br /&gt;Model instance found at addr 0x00C8. Element index: 0&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Please advise&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about the distance measurement mesh model</title><link>https://devzone.nordicsemi.com/thread/405547?ContentTypeID=1</link><pubDate>Wed, 18 Jan 2023 19:02:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e31dd62-ca45-4928-ba2a-1ee3e20cc43a</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;Thank you&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Having trouble incorporating DM mesh into my application.&lt;/p&gt;
&lt;p&gt;I already have several vendor models, so I added&amp;nbsp;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;BT_MESH_MODEL_DM_CLI(&amp;amp;dm_client) and&amp;nbsp;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;BT_MESH_MODEL_DM_SRV(&amp;amp;dm_srv) to my model composition&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;When I call&amp;nbsp;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;bt_mesh_dm_cli_measurement_start() I get error -125 (&lt;/span&gt;&lt;/span&gt;&lt;span&gt;EADDRNOTAVAIL)&lt;br /&gt;Indeed the dm_client-&amp;gt;model-&amp;gt;pub.addr is 0&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;What should it be set to ?&lt;br /&gt;Would be great to get a working sample with instructions how to provision&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Thanks&lt;/div&gt;
&lt;/div&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 the distance measurement mesh model</title><link>https://devzone.nordicsemi.com/thread/405011?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2023 11:55:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7064e11-dcee-4b9d-bded-ba264e443528</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Here is the result of the conversation I had with the Mesh developers.&lt;/p&gt;
[quote user=""]Do you plan to add a sample how the DM model should be used? That would very helpful[/quote]
&lt;p&gt;Currently we don&amp;#39;t have any official samples planned. I will look into it and see if I can create an unofficial sample, but I can not guarantee anything w.r.t. time horizon and/or if it ever will be done.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]It seems that&amp;nbsp;simply calling this API every time a scan packet arrives is going to overwhelm the mesh network. On the other hand it would be great to receive more than one measurement so averaging can be applied. What&amp;#39;s your recommendation on how frequently should&amp;nbsp;&amp;nbsp;bt_mesh_dm_cli_measurement_start&amp;nbsp;API be called?&lt;br /&gt;[/quote]
&lt;p&gt;We imagine distance measurement to be used not so often. Since, mesh nodes (such as lights) are often static, this feature could be useful during initial deployment of the network to find out topology of the network. At that time feature can be used to map-out the whole network and relative positions of the devices. You need to be aware that when distance measurement is being done the node cannot participate in mesh network operation as distance measurement library takes control of the radio to do the measurement. After network is deployed, distance measurement can be done say once in a day, or only where there is change in the network (like replacing devices). If the devices move around, DM can be triggered when, for example, accelerometer detects the movement. It really depends on the use case and imagination.&lt;/p&gt;
&lt;p&gt;It is up to you as a developer to decide how to use the function calls to suit your applications/designs needs, but as mentioned there are limitations such as the operation node cannot participate in the mesh communication&amp;nbsp;during DM ranging.&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;p&gt;&lt;span&gt;There is an API&amp;nbsp;bt_mesh_dm_cli_results_get() which returns the measurement results.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;However the results are available in the&amp;nbsp;bt_mesh_dm_cli_measurement_start() callback.&amp;nbsp;&lt;br /&gt;Can you clarify when this function should be called?&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;bt_mesh_dm_cli_results_get() allows client to fetch several past measurements from the server at later point.&lt;/p&gt;
&lt;p&gt;bt_mesh_dm_cli_measurement_start() will start the measurement and provide results for &amp;#39;that&amp;#39; measurement.&lt;/p&gt;
&lt;p&gt;Let me know if this answers your questions!&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about the distance measurement mesh model</title><link>https://devzone.nordicsemi.com/thread/404820?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2023 13:38:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4d406f9-e2d4-406b-a49e-4b40eedb6322</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I will ask the Mesh developers about your questions and if we&amp;#39;ve planned a sample, so I&amp;#39;ll get back to you when I hear from them&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about the distance measurement mesh model</title><link>https://devzone.nordicsemi.com/thread/404635?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2023 16:05:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:088571c1-4b42-437a-8530-6d6bdc7d1365</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;One other&amp;nbsp; thing&lt;br /&gt;There are 2 API&amp;#39;s in the DM library&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;nrf_dm_calc() and&amp;nbsp;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;nrf_dm_high_precision_calc()&lt;br /&gt;It would be great to&amp;nbsp; have a parameter to&amp;nbsp; control which one is used&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>