<?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>regarding nrf_dm code is not proper</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101047/regarding-nrf_dm-code-is-not-proper</link><description>Hi , 
 I have testing the distance code nrf_dm for the project. I am using the nrf52840 dk and nrf52840dongle for testing the code. I have loaded both the device with same source code and tested the distance output from the nrf52840dk. 
 The outputs are</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Jul 2023 14:20:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101047/regarding-nrf_dm-code-is-not-proper" /><item><title>RE: regarding nrf_dm code is not proper</title><link>https://devzone.nordicsemi.com/thread/434754?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 14:20:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff02e6c5-2bae-4d93-9de9-11d2a9751063</guid><dc:creator>Mathew A</dc:creator><description>&lt;p&gt;ok Simonr,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;thank you so much for your patience&amp;nbsp; and feedbacks&amp;nbsp;&lt;/p&gt;
&lt;p&gt;i will do the&amp;nbsp; calibration as well&amp;nbsp; and if possible I will post the results&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A. Mathew&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: regarding nrf_dm code is not proper</title><link>https://devzone.nordicsemi.com/thread/434751?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 14:14:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2352ac9b-1f16-4aa1-9a3f-b3b6d3770c24</guid><dc:creator>Mathew A</dc:creator><description>&lt;p&gt;thank you Simonr for the testing&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: regarding nrf_dm code is not proper</title><link>https://devzone.nordicsemi.com/thread/434367?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2023 08:02:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7886b8fc-5ef0-4ced-8af8-4cc46535b98e</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Got some information from the devs on this issue as well, and they strongly recommend doing the calibration as well.&lt;/p&gt;
&lt;p&gt;The standard deviation for the IFFT libraries is ~70cm or so, while for the high precision it is 27cm. Usable resolution for high precision measurements will then be ~50cm and ~1m for standard measurements, so what you&amp;#39;re seeing is not too off it seems here.&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: regarding nrf_dm code is not proper</title><link>https://devzone.nordicsemi.com/thread/434253?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2023 14:15:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:387243ef-2edc-4701-b679-0b4abdd3ba2e</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Mathew&lt;/p&gt;
&lt;p&gt;I can confirm that I see similar results on my end with a Dongle and DK, and I&amp;#39;ve asked the developers if they have any ways to improve this. From my testing it seems to provide the same accuracy at longer distances too though, so missing with ~50cm at 10m seems okay. One thing that came to mind, that I&amp;#39;ll test myself tomorrow as well, could be to follow the zero-distance calibration mentioned in the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/nrf_dm/README.html#zero-distance-calibration"&gt;documentaiton here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;As for measuring the distance between phones that don&amp;#39;t have nRF devices in them I&amp;#39;m afraid will be out of our scope. The best suggestion I have is adding a tag or similar you can attach to your phone with nRF SoCs that does this distance measurement, and communicates with &amp;quot;its&amp;quot; phone through an app over BLE.&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: regarding nrf_dm code is not proper</title><link>https://devzone.nordicsemi.com/thread/434042?ContentTypeID=1</link><pubDate>Sat, 01 Jul 2023 02:21:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71e666bd-7eca-4056-bbc2-0213626abe85</guid><dc:creator>Mathew A</dc:creator><description>&lt;p&gt;thanks Simonr,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Thank you so much for your replies.&lt;/p&gt;
&lt;p&gt;ok Simonr once you get back to work, update me about the results and please&amp;nbsp; give some idea how to measure the distance of the mobile phones if any alternate way available.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks in Advance&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A. Mathew&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: regarding nrf_dm code is not proper</title><link>https://devzone.nordicsemi.com/thread/433911?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 11:09:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6259484-b157-4ce0-b29d-cd128ae06402</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Mathew&lt;/p&gt;
&lt;p&gt;Sorry, there&amp;#39;s been a misunderstanding here. The Direction and Distance Finding Service (DDFS) is only a custom service that allows publication of distance, azimuth and elevation measurement data. So it will not let the nRF52/53 device to connect to a phone and calculate the distance to the phone directly. The DDFS lets you forward the data from I.E. the distance measurement sample between two nRF devices. Most phones (if not all) today does not support the Direction Finding feature in BLE, and our distance measurement can only be used between two devices.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will have to get back to you next week with test results with a Dongle and DK from my end. We&amp;#39;re moving into the summer vacation period here in Norway, so we&amp;#39;ll be short on staff for the coming ~4 weeks, and delayed replies must be expected.&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: regarding nrf_dm code is not proper</title><link>https://devzone.nordicsemi.com/thread/433738?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2023 14:35:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:913fc349-c195-4393-beff-53be9954ebe1</guid><dc:creator>Mathew A</dc:creator><description>&lt;p&gt;hi Simonr,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; thank you so much for your replies.&lt;/p&gt;
&lt;p&gt;please test the DK and dongle distance code, and give me feedback&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/bluetooth_services/services/ddfs.html#ddfs-readme"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/bluetooth_services/services/ddfs.html#ddfs-readme&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;their is no separate code for&amp;nbsp; direction and&amp;nbsp; distance measurement code&amp;nbsp; &amp;nbsp;only nrf_dm is available.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;inside the code&amp;nbsp; &amp;nbsp;service_ddfs_init()&amp;nbsp; the function as been intialized but how to change the code for direction and distance finding&amp;nbsp; and for measuring the mobile signal what uuid should be present in the nrf_connect_mobile app.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;so please give me clear idea so that i will give&amp;nbsp; a try.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Thanks in Advance&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;A. Mathew&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: regarding nrf_dm code is not proper</title><link>https://devzone.nordicsemi.com/thread/433473?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2023 13:00:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b922274-4dab-4c3e-a25b-878d0a96107a</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/nrf_dm/README.html#nrf-dm"&gt;Nordic Distance Measurement library&lt;/a&gt; is developed specifically for the nRF52 and nRF53 series, and we will not provide any support to port it to other products. To get these results on a phone, you will need to have an application that also connects to one of the nRF5x devices running the distance measurement application that can forward the location data to the phone over BLE. That&amp;#39;s the solution we&amp;#39;ve been using for demos at least.&lt;/p&gt;
&lt;p&gt;An alternative could be to use the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/bluetooth_services/services/ddfs.html#ddfs-readme"&gt;Bluetooth Direction and Distance Finding service&lt;/a&gt; that the Distance measurement sample also uses. As this is a Bluetooth LE service, phones should be able to connect to and support this service as well I believe.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see why you get such bad results though. I will try to reproduce this on my end with a Dongle and DK as well and get back to you.&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: regarding nrf_dm code is not proper</title><link>https://devzone.nordicsemi.com/thread/433304?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2023 15:20:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7387d08-9201-444d-b8ca-a8ecbafda305</guid><dc:creator>Mathew A</dc:creator><description>&lt;p&gt;thanks for the reply Simonr,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I don&amp;#39;t have any extra DK, i&amp;nbsp; am having two dongle boards, so i will test with dongle to dongle, i think so i need to do some averaging and then correct the offset as given in the document, so i will give a try.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;my aim of the project is to sense the distance&amp;nbsp; of the device and to make the relay on or off. This aim has to be implemented with dongle and with the mobile device.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; I will test the code with averaging and try to get the near by values and&amp;nbsp; &amp;nbsp;will post the result.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; so&amp;nbsp; as i told my aim of the project&amp;nbsp; i need to implement the&amp;nbsp; &amp;nbsp;distance measurement with the mobile devices, is their any method or we can modify&amp;nbsp; the code ?if so please let me know how we can get the distance from the mobile.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks in Advance&lt;/p&gt;
&lt;p&gt;A. Mathew&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: regarding nrf_dm code is not proper</title><link>https://devzone.nordicsemi.com/thread/433158?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2023 09:29:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc111311-0be3-407b-ae42-b56fa275ca80</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Thank you for the clarification. This does indeed seem worse than expected. Do you have an extra DK so you can test using two DKs instead of just the Dongle? Also, what version of the nRF Connect SDK are you working on here?&lt;/p&gt;
&lt;p&gt;Unfortunately there isn&amp;#39;t anything to do in HW to optimize the nRF52840 Dongle further, and it&amp;#39;s not really meant to be an end product but rather a development tool. If you&amp;#39;re planning on a commercial end product I think it will be worth it to use either your own HW or buy a &lt;a href="https://www.nordicsemi.com/Nordic-Partners/3rd-party-modules"&gt;dongle/module from a third party&lt;/a&gt; with a better antenna than the nRF52840 Dongle.&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: regarding nrf_dm code is not proper</title><link>https://devzone.nordicsemi.com/thread/432795?ContentTypeID=1</link><pubDate>Sat, 24 Jun 2023 08:12:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56c463ec-92c8-4a20-a9df-6069c985eef3</guid><dc:creator>Mathew A</dc:creator><description>&lt;p&gt;Hi Simonr,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Thanks for the reply and sorry for the&amp;nbsp; late reply, The distance between both devices antenna is around&amp;nbsp; 55cm and the distance between two Duts is 50 cm, so&amp;nbsp; i have attached the outputs of the both the devices so please have look and let me known on what way we can solve the issues.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;if i decrease the distance then some near by values are getting but if any blocks that values are not proper.&lt;/p&gt;
&lt;p&gt;The environment i&amp;nbsp; am working is 10x10 room, might be some headphones ble signals are present.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;how to optimize the nrf52840 dongle antenna?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;i&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1687594133221v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;this is the output from the nrfdk&lt;/p&gt;
&lt;p&gt;&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/pastedimage1687594160879v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;this is the output from the dongle&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&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/pastedimage1687594201414v4.jpeg" alt=" " /&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/pastedimage1687594201315v3.jpeg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;this the work environment setup&amp;nbsp; has been made for testing.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;my prime aim of the project is to use dongle and detect&amp;nbsp; the mobile distance.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;so please have a look and give me some solution.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;A. Mathew&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: regarding nrf_dm code is not proper</title><link>https://devzone.nordicsemi.com/thread/432330?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2023 13:09:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:644698bf-bb34-426e-8a09-6192b9f3eb02</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Have you measured the distance between the devices antenna to antenna, and have you measured the exact range between the two DUTs?&amp;nbsp;Can you share some details about your testing environment? It seems strange that the RSSI would be the most accurate parameter. Are there a lot of other 2.4GHz devices in your proximity? Is there anything physically between the two DUTs?&lt;/p&gt;
&lt;p&gt;It&amp;#39;s also worth noting that the antenna on the nRF52840 Dongle is not very well optimized for high performance in terms of antenna performance, so that may be a factor as well.&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></channel></rss>