<?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>How do I set up CoAP Server whit SED on Nrf Connect SDK v1.4.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69094/how-do-i-set-up-coap-server-whit-sed-on-nrf-connect-sdk-v1-4-0</link><description>Hey, 
 I am wondering if it is possible to run MTD and SED on the CoAP server on nRF Connect SDK v1.4.0. 
 I have looked at the question &amp;quot; How do I set up CoAP Server whit SED &amp;quot; (link below) in DevZone but that is for the Nordic SDK 3.2.0 or later. This</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Dec 2020 15:17:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69094/how-do-i-set-up-coap-server-whit-sed-on-nrf-connect-sdk-v1-4-0" /><item><title>RE: How do I set up CoAP Server whit SED on Nrf Connect SDK v1.4.0</title><link>https://devzone.nordicsemi.com/thread/284374?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2020 15:17:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf399a69-29b2-4926-ab8f-830fd45395c5</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Sebastian,&lt;/p&gt;
&lt;p&gt;I got a temporary solution to set up a SED mode CoAP server.&lt;/p&gt;
&lt;p&gt;1. Rebuild CoAP server. You need to copy &amp;quot;overlay-mtd.conf&amp;quot; from CoAP client sample to CoAP server. Add &amp;quot;&lt;span&gt;list&lt;/span&gt;&lt;span&gt;(INSERT&amp;nbsp;OVERLAY_CONFIG&amp;nbsp;1&amp;nbsp;overlay-mtd.conf)&lt;/span&gt;&amp;quot; to CMakeLists.txt and rebuild this sample. You may want to cut down &amp;quot;&lt;span&gt;CONFIG_OPENTHREAD_POLL_PERIOD&lt;/span&gt;&lt;span&gt;=3&lt;/span&gt;&lt;span&gt;000&lt;/span&gt;&amp;quot; to avoid lang lantency. Make sure you erase the chip and flash, the previous setting may be stored in the chip if you only use the flash to flash application area. I use &amp;quot;west flash --erase&amp;quot; on my test.&lt;/p&gt;
&lt;p&gt;2. Rebuild CoAP client. You need to change the multicast IP address in order to reach the SEDs according to &lt;a href="https://openthread.io/guides/thread-primer/ipv6-addressing#multicast"&gt;the multicastt description on OpenThread&lt;/a&gt;.&amp;nbsp;The IP address to use is network dependent. On my device, they are&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;uart:~$ ot ipmaddr
ff33:40:fdde:ad00:beef:0:0:1
ff32:40:fdde:ad00:beef:0:0:1
ff02:0:0:0:0:0:0:1
ff03:0:0:0:0:0:0:1
ff03:0:0:0:0:0:0:fc&lt;/pre&gt;&lt;/p&gt;
&lt;div&gt;the sample uses the ff03:0:0:0:0:0:0:1 address as it is universal, but it does not reach SEDs. So the desired addresses are the first and second, depending on the scope.&lt;/div&gt;
&lt;p&gt;change the multicast_local_addr in coap_client_utils.c like&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static struct sockaddr_in6 multicast_local_addr = {
	.sin6_family = AF_INET6,
	.sin6_port = htons(COAP_PORT),
	//.sin6_addr.s6_addr = { 0xff, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
	//		       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 },
    .sin6_addr.s6_addr = { 0xff, 0x33, 0x00, 0x40, 0xfd, 0xde, 0xad, 0x00,
	 		       0xbe, 0xe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 },
	.sin6_scope_id = 0U
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;rebuild and flash after erasing chip.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Then you should be able to use Button 2 on CoAP client&amp;nbsp; to toggle LED 4 on CoAP server.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I set up CoAP Server whit SED on Nrf Connect SDK v1.4.0</title><link>https://devzone.nordicsemi.com/thread/283743?ContentTypeID=1</link><pubDate>Tue, 08 Dec 2020 10:06:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:566b9ec2-e530-4c1b-b729-3070243de1d9</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Sorry for my miss understanding, I agree with you. I will contact our openThread expert for potential solutions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I set up CoAP Server whit SED on Nrf Connect SDK v1.4.0</title><link>https://devzone.nordicsemi.com/thread/283460?ContentTypeID=1</link><pubDate>Mon, 07 Dec 2020 06:35:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75f8903b-456a-4116-88fe-5d59bcd8eaad</guid><dc:creator>SebSeb</dc:creator><description>&lt;p&gt;What I am trying to do is to have an end devise that on request can send information to the asking device. My understanding of CoAP is that only a client can send a request to a server. Due to this I need to have them switched so that the end device is a server and the router is a client.&lt;/p&gt;
&lt;p&gt;So my question is if I can configure a server to use the SED/MTD and be triggered to wake up when an incoming massages is detected.&lt;/p&gt;
&lt;p&gt;Best &lt;span&gt;regards&lt;/span&gt;,&lt;/p&gt;
&lt;p&gt;Sebastian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I set up CoAP Server whit SED on Nrf Connect SDK v1.4.0</title><link>https://devzone.nordicsemi.com/thread/283380?ContentTypeID=1</link><pubDate>Fri, 04 Dec 2020 17:22:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cde3f85-92d1-463f-a40b-f12bdf5757f7</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Sebastian,&lt;/p&gt;
&lt;p&gt;Thinking&amp;nbsp;from&amp;nbsp;the application level, I am a bit confused about this request.&lt;/p&gt;
&lt;p&gt;The role of&amp;nbsp;&amp;nbsp;MTD/SED device is most likely to be used as a Coap client. It is&amp;nbsp;&lt;span&gt;disabled most of the time and wakes on occasion to poll or send messages with its parent.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;An FTD can be used as either Coap server or client benefit from its always-on &lt;span&gt;radio&amp;nbsp;&lt;/span&gt;and calculate power to handle requests from clients.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am not sure how they would work if their roles swap.&amp;nbsp; Let me know your opinions. :-)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The NCS has Thread Coap client example provide options for FTD or MTD/SED:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.4.0/nrf/samples/openthread/coap_client/README.html"&gt;Thread: CoAP Client — nRF Connect SDK 1.4.0 documentation (nordicsemi.com)&lt;/a&gt;&amp;nbsp;It build as a FTD device defaultly. overlay-mtd.conf&amp;nbsp; contains configuration for MTD/SED setup. Thread Coap server example only configured as an FTD device:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.4.0/nrf/samples/openthread/coap_server/README.html"&gt;Thread: CoAP Server — nRF Connect SDK 1.4.0 documentation (nordicsemi.com)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&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>