<?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>Connect nRF52832 to CoAP IP using an LTE module.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77478/connect-nrf52832-to-coap-ip-using-an-lte-module</link><description>Good morning, 
 I am using SDK 16.0.0 and nRF52832 uC. I have a project where I need to connect the uC to a CoAP IP. The only internet access it has is through an SoC developed by U-BLOX called SARA-R410M-02B which has an LTE unit embedded in our board</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Aug 2021 12:40:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77478/connect-nrf52832-to-coap-ip-using-an-lte-module" /><item><title>RE: Connect nRF52832 to CoAP IP using an LTE module.</title><link>https://devzone.nordicsemi.com/thread/323752?ContentTypeID=1</link><pubDate>Fri, 06 Aug 2021 12:40:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1df536cc-1df0-418e-9f13-1e809d887a7c</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Can you check the resulting DeviceTree (the build/zephyr/zephyr.dts file) to see if the uart0 node was modified?&lt;/p&gt;
&lt;p&gt;Which NCS version are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect nRF52832 to CoAP IP using an LTE module.</title><link>https://devzone.nordicsemi.com/thread/323159?ContentTypeID=1</link><pubDate>Tue, 03 Aug 2021 15:25:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66f08e47-2043-4c20-92ac-ae96189c753a</guid><dc:creator>Bakry</dc:creator><description>&lt;p&gt;By building up your suggested project on my board and adding your modifications, I get these errors in&amp;nbsp;&lt;em&gt;&lt;strong&gt;devicetree.h&amp;nbsp;&lt;/strong&gt;&lt;/em&gt;definition:&amp;nbsp;&lt;em&gt;&lt;strong&gt;#define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))&lt;/strong&gt;&lt;/em&gt;:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;&lt;em&gt;&amp;#39;DT_N_INST_0_ublox_sara_r4_P_mdm_power_gpios_IDX_0_PH_P_label&amp;#39; undeclared here (not in a function)&lt;/em&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;em&gt;&amp;#39;DT_N_INST_0_ublox_sara_r4_P_mdm_power_gpios_IDX_0_VAL_pin&amp;#39; undeclared here (not in a function)&lt;/em&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;em&gt;&amp;#39;DT_N_INST_0_ublox_sara_r4_BUS_P_hw_flow_control&amp;#39; undeclared (first use in this function)&lt;/em&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;em&gt;&amp;#39;DT_N_INST_0_ublox_sara_r4_BUS_P_label&amp;#39; undeclared (first use in this function)&amp;nbsp;&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;Regards!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect nRF52832 to CoAP IP using an LTE module.</title><link>https://devzone.nordicsemi.com/thread/323123?ContentTypeID=1</link><pubDate>Tue, 03 Aug 2021 13:12:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17f28924-8f5a-434b-8ca1-c3179213e879</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;I think my initial advice was a bit misleading.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The Zephyr CoAP library will only format and parse the data, it does not have the functionality to send and receive it.&amp;nbsp;Hence the&amp;nbsp;CoAP client sample assumes the platform running it has networking support, so if you&amp;#39;re running the sample on an nRF52 board, it will not be able to receive data.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is where the CoAP utils library in NCS comes in. It combines the Zephyr CoAP library to format data with the BSD Sockets API to send and receive.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This library will work on an nRF52 device as long as there is some external device that implements BSD sockets: in your case the U-Blox modem.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can try this with the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nrf9160/coap_client/README.html"&gt;nRF CoAP Client sample&lt;/a&gt; available in NCS, which uses the CoAP utils library.&amp;nbsp;You will need to add an overlay file (&amp;lt;board_name.overlay&amp;gt;) to add the U-Blox modem to the device tree. Something like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart0 {
	current-speed = &amp;lt;115200&amp;gt;;
	status = &amp;quot;okay&amp;quot;;

	sara_r4 {
		compatible = &amp;quot;ublox,sara-r4&amp;quot;;
		label = &amp;quot;ublox-sara-r4&amp;quot;;
		mdm-power-gpios = &amp;lt;&amp;amp;arduino_header 11 0&amp;gt;; /* D5 */
		mdm-reset-gpios = &amp;lt;&amp;amp;arduino_header 12 0&amp;gt;; /* D6 */
		status = &amp;quot;okay&amp;quot;;
	};
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then in the prj.conf file, add and remove the following configs.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Add these
CONFIG_NRFX_UART0=y
CONFIG_MODEM=y
CONFIG_MODEM_UBLOX_SARA=y
CONFIG_MODEM_UBLOX_SARA_R4=y

# Remove these
CONFIG_LTE_LINK_CONTROL=y
CONFIG_LTE_AUTO_INIT_AND_CONNECT=n
CONFIG_NRF_MODEM_LIB=y
CONFIG_NRF_MODEM_LIB_TRACE_ENABLED=n
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_AT_HOST_LIBRARY=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have a U-Blox modem to actually test this, so you might have to make some more modifications. But let me know how testing this goes!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect nRF52832 to CoAP IP using an LTE module.</title><link>https://devzone.nordicsemi.com/thread/322660?ContentTypeID=1</link><pubDate>Fri, 30 Jul 2021 11:54:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fce0b2aa-11b9-4fb8-a049-9b16c8cd712f</guid><dc:creator>Bakry</dc:creator><description>&lt;p&gt;One more thing, even though I am able to build a CoAP client project using the Zephyr platform, yet when I debug it on my boards, none of them works as expected at all. Any suggestion..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect nRF52832 to CoAP IP using an LTE module.</title><link>https://devzone.nordicsemi.com/thread/322094?ContentTypeID=1</link><pubDate>Tue, 27 Jul 2021 15:18:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:394eec92-fa14-4b93-a38e-88e0cc22f659</guid><dc:creator>Bakry</dc:creator><description>&lt;p&gt;Thanks for your answer, I am one step closer now. The CoAP client project is working now. The last thing left now, how can I use&amp;nbsp;&lt;em&gt;&lt;strong&gt;SARA-R410M-02B&amp;nbsp;&lt;/strong&gt;&lt;/em&gt;which has our&amp;nbsp;&lt;strong&gt;LTE modem&lt;/strong&gt;, to be used with such example?&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect nRF52832 to CoAP IP using an LTE module.</title><link>https://devzone.nordicsemi.com/thread/321832?ContentTypeID=1</link><pubDate>Mon, 26 Jul 2021 13:02:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:804c8a03-283b-4ea2-9232-e0944eafdd8d</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Which CoAP example are you trying to use?&lt;/p&gt;
&lt;p&gt;The one available in NCS (&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nrf9160/coap_client/README.html#nrf9160-nrf-coap-client"&gt;nRF CoAP Client&lt;/a&gt;) uses the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/include/net/coap_utils.html"&gt;CoAP utils library&lt;/a&gt; in NCS which uses the BSD socket API and therefore will not work on the nRF52 devices alone, only the nRF9160. To use the CoAP utils library on nRF52 devices, you will need some external device that implements BSD sockets, such as the U-Blox modem.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Zephyr has the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/net/sockets/coap_client/README.html"&gt;CoAP client&lt;/a&gt;&amp;nbsp;and &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/net/sockets/coap_server/README.html"&gt;CoAP Server&lt;/a&gt;&amp;nbsp;sample, both of which I am able to build for the nrf52dk_nrf52832 board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect nRF52832 to CoAP IP using an LTE module.</title><link>https://devzone.nordicsemi.com/thread/320503?ContentTypeID=1</link><pubDate>Fri, 16 Jul 2021 17:22:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:966a6e54-ed22-4398-82a1-ab3a271f453f</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I will be on vacation next week so I will take a look at this case next Monday.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect nRF52832 to CoAP IP using an LTE module.</title><link>https://devzone.nordicsemi.com/thread/320202?ContentTypeID=1</link><pubDate>Thu, 15 Jul 2021 10:11:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c5028de-f250-4fb9-a216-82d97daee88f</guid><dc:creator>Bakry</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for your answer. Yesterday I spent all day trying to compile &lt;strong&gt;CoAP&lt;/strong&gt; example on&amp;nbsp;&lt;strong&gt;nRF52832&lt;/strong&gt;. However, I always get&amp;nbsp;&lt;em&gt;&lt;strong&gt;&amp;#39;CONFIG_NET_CONFIG_IEEE802154_DEV_NAME&amp;#39; undeclared (first use in this function)&lt;/strong&gt;&lt;/em&gt;, any suggestions on how to fix that? Also, if you can bear with me, can you clarify much more how to use this library, or provide me a tutorial or an example to follow?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect nRF52832 to CoAP IP using an LTE module.</title><link>https://devzone.nordicsemi.com/thread/320200?ContentTypeID=1</link><pubDate>Thu, 15 Jul 2021 09:59:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:593889e6-6eb2-49ef-beed-36651f582733</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I recommend using the nRF Connect SDK (NCS) where Zephyr provides a &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/networking/coap.html"&gt;CoAP library&lt;/a&gt;&amp;nbsp;where the users must create the sockets for communication. This is a good solution for your setup, where you have an MCU and a separate modem.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As long as you know how to deal with creating sockets on the U-Blox device from the nRF52832.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>