<?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>NDT outside of Zephyr (specifically arduino)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116834/ndt-outside-of-zephyr-specifically-arduino</link><description>Hi, 
 
 My ultimate goal is to add NDT [1] to a meshtastic [2] device implemented with RAK4631[3]. For this goal I can see the following obstacles: 
 - The meshtastic stack is arduino based. 
 - The nordic SDK is Zephyr dependent 
 - The NDT is not standalone</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Dec 2024 06:51:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116834/ndt-outside-of-zephyr-specifically-arduino" /><item><title>RE: NDT outside of Zephyr (specifically arduino)</title><link>https://devzone.nordicsemi.com/thread/512875?ContentTypeID=1</link><pubDate>Mon, 02 Dec 2024 06:51:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d3c9847-8168-4934-8258-df711c24947a</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Juan&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think there should be any additional files that need to be linked here.&lt;/p&gt;
&lt;p&gt;Best of luck,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NDT outside of Zephyr (specifically arduino)</title><link>https://devzone.nordicsemi.com/thread/512819?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2024 16:55:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4425e60d-e7bf-4e4d-8bef-b946b1916125</guid><dc:creator>jbozzo</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Thank you for your response. I am aware that this project won&amp;#39;t be straightforward nor I will have Nordic support in developing it. Thank you for taking your time to look into the feasibility of it!&lt;/p&gt;
&lt;p&gt;Yes, we plan on using the nrf52480. As understood I need to meet the following conditions:&lt;/p&gt;
&lt;p&gt;- Make sure I support or implement IPC in the meshtastic stack.&lt;/p&gt;
&lt;p&gt;- Implementing RPC for the distance measurement functionality (thus porting/re-implementing the dm_rpc module)&lt;/p&gt;
&lt;p&gt;- Make sure to link the NDT static library.&lt;/p&gt;
&lt;p&gt;Only with the last condition I am still a bit confused. Is it enough to link the softdevice library from the SDK [1]? (for example ./components/softdevice/s132/hex/s132_nrf52_7.2.0_softdevice.hex)&lt;br /&gt;Or does the NDT funcionality comes on a separated hex or bin file that has to be linked in addition to softdevice?&lt;/p&gt;
&lt;p&gt;[1] &lt;a id="" href="https://www.nordicsemi.com/Products/Development-software/nrf5-sdk/download"&gt;https://www.nordicsemi.com/Products/Development-software/nrf5-sdk/download&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Juan Andr&amp;eacute;s&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NDT outside of Zephyr (specifically arduino)</title><link>https://devzone.nordicsemi.com/thread/512792?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2024 14:28:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:101b2774-cc8f-40cf-b151-f9ea804077b2</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Okay, so they got back to me pretty quickly, and here are some additional thoughts/details on this.&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrfxlib/nrf_dm/README.html"&gt;NDT nrfxlib&lt;/a&gt;&amp;nbsp;library is static and does not have any dependencies in Zephyr, correct. There should be no problems porting that as long as you&amp;#39;re using a supported nRF SoC (seems like you&amp;#39;re using the nRF52840, so no problem there).&lt;/p&gt;
&lt;p&gt;However, the&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/others/dm.html#mod-dm"&gt; Distance measurement subsystem&lt;/a&gt; is a different story, and was written specifically for use in NCS. Worst case, you would have to rewrite the entire subsystem, but the functionality to do ranging on a device does not necessarily need the full subsystem depending on the use-case you&amp;#39;re gunning for. It might be sufficient to write your own software to integrate nrf_dm with Meshtastic. So it does not sound as grim as I initially thought, but the statement still stands, that we won&amp;#39;t be able to support you with the implementation, as we&amp;#39;re not familiar with the Meshtastic stack, and strive to focus on the NCS solution.&lt;/p&gt;
&lt;p&gt;Let me know if you have any specific questions though, and I&amp;#39;ll do what I can to answer.&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: NDT outside of Zephyr (specifically arduino)</title><link>https://devzone.nordicsemi.com/thread/512776?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2024 13:51:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:763e82f4-4b86-4f01-abc4-084da8e2b60e</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Juan&lt;/p&gt;
&lt;p&gt;I&amp;#39;m afraid there are more steps here, since you say Meshtastic use the SoftDevice, while the NDT was built with NCS features in mind I&amp;#39;m not so sure these will be 1-to-1 compatible. I have asked the NDT devs internally if they see this as a viable way to do NDT on an Arduino stack but I wouldn&amp;#39;t have my hopes up. The NDT was specifically made for the nRF Connect SDK, and has not been planned to move outside of the Zephyr environment.&lt;/p&gt;
&lt;p&gt;Either way I&amp;#39;m afraid this is not something we will be able to support you in implementing, but I will get back to you regarding the feasibility of the project as a whole when I hear some thoughts on the matter from the developers. Thank you for taking interest in it. It does sound like an interesting project.&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>