<?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>nRF Distance measurement using nrf_dm_high_precision_calc()</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94836/nrf-distance-measurement-using-nrf_dm_high_precision_calc</link><description>Hello all, 
 I&amp;#39;m using the sample for distance measurement nrf_dm. I&amp;#39;m using the ncs sdk 2.2.0, with toolchain 0.15.1. Currently the sample runs without any change, but now I&amp;#39;m trying to increase the accuracy of the system by changing the dm calculation</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Dec 2022 11:35:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94836/nrf-distance-measurement-using-nrf_dm_high_precision_calc" /><item><title>RE: nRF Distance measurement using nrf_dm_high_precision_calc()</title><link>https://devzone.nordicsemi.com/thread/400807?ContentTypeID=1</link><pubDate>Thu, 15 Dec 2022 11:35:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6a0ba8c-b6cf-4cd1-93e4-f26292046e4c</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Ok, removing the adv_work could work perhaps? I will ask the developer for a suggestion, but that is something to try in the meantime.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Distance measurement using nrf_dm_high_precision_calc()</title><link>https://devzone.nordicsemi.com/thread/400728?ContentTypeID=1</link><pubDate>Thu, 15 Dec 2022 00:55:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e49ad2dc-ca54-406e-9c66-a45902ab13cf</guid><dc:creator>Miguel Roque</dc:creator><description>&lt;p&gt;I tried your suggestion but it doesn&amp;#39;t seems to work. Without the scan (just in Device A) there is no measurements at all (both side)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Distance measurement using nrf_dm_high_precision_calc()</title><link>https://devzone.nordicsemi.com/thread/400655?ContentTypeID=1</link><pubDate>Wed, 14 Dec 2022 14:23:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:396d7a86-2470-4469-9024-bc9f22431ec2</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;That should be possible, but I don&amp;#39;t think it is officially supported. You will need to do this yourself by splitting the sample into two versions. It may be as simple as one versions where you comment out adv_start(), and another where you comment out scan_start() in &lt;span class="pl-en"&gt;bt_sync_init&lt;/span&gt;() in main.c. I believe the roles are assigned based on the exchange of SCAN_REQ and &lt;span class="pl-c"&gt;SCAN_RESP&lt;/span&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Distance measurement using nrf_dm_high_precision_calc()</title><link>https://devzone.nordicsemi.com/thread/400634?ContentTypeID=1</link><pubDate>Wed, 14 Dec 2022 13:28:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80eaf065-fcab-492e-9615-4214d011a899</guid><dc:creator>Miguel Roque</dc:creator><description>&lt;p&gt;Hi &lt;span class="user-name"&gt;&lt;a href="https://devzone.nordicsemi.com/members/oivind"&gt;Øivind&lt;/a&gt;&amp;nbsp;, thank you for your prompt reply. Yes, I have been able to make it work meanwhile.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="user-name"&gt;Now I have another question, if I understood correctly, the dm module makes has a initial synchronization phase, and after that an initiator requests a distance measurment to the other device who acts as reflector and answers to it with the necessary data. Is it possible to force a device (for instance &amp;quot;DEVICE A&amp;quot;) to always be the initiator and the &amp;quot;DEVICE B&amp;quot; to always be the reflector?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="user-name"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Distance measurement using nrf_dm_high_precision_calc()</title><link>https://devzone.nordicsemi.com/thread/400618?ContentTypeID=1</link><pubDate>Wed, 14 Dec 2022 12:52:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6174ef54-8de9-4f19-bf48-8e5a35322bc4</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;High precision calc is not currently supported in the DM sample, as explained by Simon here: &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/94425/distance-measurement-library-questions-part-2/398513"&gt;RE: Distance Measurement library questions (part 2)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There is a pull request on the github for this feature, so you could try to add support using this: &lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/7895"&gt;https://github.com/nrfconnect/sdk-nrf/pull/7895&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Distance measurement using nrf_dm_high_precision_calc()</title><link>https://devzone.nordicsemi.com/thread/400455?ContentTypeID=1</link><pubDate>Tue, 13 Dec 2022 16:55:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d425c2b-3d84-49e7-b406-4cda7fda636f</guid><dc:creator>Miguel Roque</dc:creator><description>&lt;p&gt;Update: I increased the MAIN_STACK_SIZE and now I don&amp;#39;t have any stack overflow error, however the measurements (in MCPD) is allways 0m for all methods&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>