<?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 Mesh Client + Server Sample Wanted</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117670/distance-measurement-mesh-client-server-sample-wanted</link><description>Hi there. I&amp;#39;m attempting to do trilateration between 3 nRF Devices. A1, A2, and A3. 
 
 A1 - A2 I can get using the nRF Distance Measurement toolbox 
 A1 - A3 I can get using the nRF Distance Measurement toolbox 
 A2 - A3 I can get using the nRF Distance</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 04 Jan 2025 12:19:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117670/distance-measurement-mesh-client-server-sample-wanted" /><item><title>RE: Distance Measurement Mesh Client + Server Sample Wanted</title><link>https://devzone.nordicsemi.com/thread/516869?ContentTypeID=1</link><pubDate>Sat, 04 Jan 2025 12:19:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9246e8f3-2837-414c-89d1-3a02eb289c9e</guid><dc:creator>adojang</dc:creator><description>&lt;p&gt;After 4 days of struggling and a ton of assistance from Claude (Anthropic&amp;#39;s AI chat bot) and nRF&amp;#39;s own AI, I finally got it.&lt;br /&gt;&lt;br /&gt;My approach involved using a shorter UUID (appropriate for my application), which gave space to transmit the data from other nrf_dm devices to the primary one.&lt;br /&gt;&lt;br /&gt;I&amp;#39;m including the source files here for anyone else. This is the starting point for doing trilateration.&lt;/p&gt;
&lt;p&gt;To use them, copy the nordic dm sample in visual studio (&lt;a id="" href="https://github.com/nrfconnect/sdk-nrf/tree/main/samples/bluetooth/nrf_dm"&gt;https://github.com/nrfconnect/sdk-nrf/tree/main/samples/bluetooth/nrf_dm&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;Then just replace all the files with these ones.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I was able to get this working on 3 x nRF52840 dongles.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrfMultiDistance.zip"&gt;devzone.nordicsemi.com/.../nrfMultiDistance.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;CmakeLists.txt:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#
# Copyright (c) 2021 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
cmake_minimum_required(VERSION 3.20)

find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(nrf_dm)

# NORDIC SDK APP START
target_sources(app PRIVATE
  src/main.c
  src/pwm_led.c
  src/peer.c
  src/service.c
  src/claude.c
  )
# NORDIC SDK APP END

zephyr_library_include_directories(${CMAKE_CURRENT_SOURCE_DIR})&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;prj.conf:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#
# Copyright (c) 2021 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

# BT
CONFIG_BT=y

CONFIG_BT_CENTRAL=y
CONFIG_BT_PERIPHERAL=y

CONFIG_BT_SCAN=y
CONFIG_BT_SCAN_FILTER_ENABLE=y
CONFIG_BT_SCAN_NAME_CNT=1
CONFIG_BT_SCAN_MANUFACTURER_DATA_CNT=1
CONFIG_BT_SCAN_WITH_IDENTITY=y
CONFIG_BT_ID_MAX=1

CONFIG_BT_EXT_ADV=y

CONFIG_BT_DDFS=y

# Distance Measurement
CONFIG_DM_MODULE=y

CONFIG_MPSL=y
CONFIG_MPSL_TIMESLOT_SESSION_COUNT=1

CONFIG_DM_MODULE_LOG_LEVEL_DBG=n
CONFIG_DM_GPIO_DEBUG=y
CONFIG_PWM=y

CONFIG_NCS_SAMPLES_DEFAULTS=y
CONFIG_DK_LIBRARY=y

CONFIG_DM_HIGH_PRECISION_CALC=y
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/hungbui"&gt;Hung Bui&lt;/a&gt; , once I finish with a solid implementation, would nordic be interested in the source code to publish it?&lt;/p&gt;
&lt;p&gt;I feel this is something a lot of aspiring engineers think is something trivial, only to get stuck in the nitty gritty of ble. Would have helped me a lot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Distance Measurement Mesh Client + Server Sample Wanted</title><link>https://devzone.nordicsemi.com/thread/516831?ContentTypeID=1</link><pubDate>Fri, 03 Jan 2025 14:36:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:736f9f50-ee67-4fc3-8f8b-eabd558e4f72</guid><dc:creator>adojang</dc:creator><description>&lt;p&gt;Hi Hung, I coped over the nrfm_dm sample and worked my way from there to my modified code.&lt;br /&gt;&lt;br /&gt;I&amp;#39;d like to pursue the proper mesh implementation rather, as it was built for this exact case.&lt;br /&gt;&lt;br /&gt;I&amp;#39;m not familiar with the mesh/client at all yet, despite reading through the documentation I mentioned above a few times.&lt;/p&gt;
&lt;p&gt;What would be a good next step for me to get this thing going?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Distance Measurement Mesh Client + Server Sample Wanted</title><link>https://devzone.nordicsemi.com/thread/516674?ContentTypeID=1</link><pubDate>Thu, 02 Jan 2025 15:25:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af902408-1340-4d2b-896e-52d12709da1a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Adriaan,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;How did you implement the distance measurement toolbox ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Did you implement this with the dm_client and the dm_srv model ? You need to use these model if you want to receive the distance between 2 server to the client.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Are you familiar with our mesh server/client ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>