<?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>Assign both CoAP client and server roles to a node in nRF_Connect_SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83333/assign-both-coap-client-and-server-roles-to-a-node-in-nrf_connect_sdk</link><description>Hi, 
 In nRF_Connect_SDK&amp;#39;s OpenThread&amp;#39;s Coap_Client sample, I want to implement the role of both client and server on a single node. 
 Also instead of sending messages to CoAP_Server, I want to send messages to my own CoAP server, whose address I have</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Jan 2022 09:50:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83333/assign-both-coap-client-and-server-roles-to-a-node-in-nrf_connect_sdk" /><item><title>RE: Assign both CoAP client and server roles to a node in nRF_Connect_SDK</title><link>https://devzone.nordicsemi.com/thread/347715?ContentTypeID=1</link><pubDate>Fri, 14 Jan 2022 09:50:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a73d2b9f-c402-4757-8133-679746e1720a</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;From the function I see, theerror OT_ERROR_INVALID_STATE comes from the function &amp;quot;otCoapSendRequest&amp;quot;. Could you right-click this and &amp;quot;Go to definition&amp;quot;?&lt;/p&gt;
&lt;p&gt;Find where the error comes from, and if the &amp;quot;otCoapSendRequest&amp;quot; returns OT_ERROR_INVALID_STATE anywhere.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assign both CoAP client and server roles to a node in nRF_Connect_SDK</title><link>https://devzone.nordicsemi.com/thread/347660?ContentTypeID=1</link><pubDate>Thu, 13 Jan 2022 18:43:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd20be33-166a-4488-bd3d-4fad3927b49e</guid><dc:creator>Bhumika</dc:creator><description>&lt;p&gt;I am currently using segger for development.&lt;/p&gt;
&lt;p&gt;And I need help in understanding why my CoAP packet is not reaching my CoAP server which is present on Border Router.&lt;/p&gt;
&lt;p&gt;How to resolve this &amp;quot;OT_ERROR_INVALID_STATE&amp;quot;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assign both CoAP client and server roles to a node in nRF_Connect_SDK</title><link>https://devzone.nordicsemi.com/thread/347621?ContentTypeID=1</link><pubDate>Thu, 13 Jan 2022 14:31:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d66d45bd-8ae1-49ce-8ae3-edc722abc8f7</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Which function definition?&lt;/p&gt;
&lt;p&gt;Which IDE are you using for developement?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assign both CoAP client and server roles to a node in nRF_Connect_SDK</title><link>https://devzone.nordicsemi.com/thread/347598?ContentTypeID=1</link><pubDate>Thu, 13 Jan 2022 13:18:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48ca8a20-8434-48f3-9671-45ed5aae304d</guid><dc:creator>Bhumika</dc:creator><description>&lt;p&gt;I have seen function definition in &amp;quot;&lt;span class="s1"&gt;modules//lib/openthread/src/core/api/coap_api.cpp&amp;quot;. But its generic return messages doesn&amp;#39;t contain this return message.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="s1"&gt;can you help in debugging?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="s1"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assign both CoAP client and server roles to a node in nRF_Connect_SDK</title><link>https://devzone.nordicsemi.com/thread/347590?ContentTypeID=1</link><pubDate>Thu, 13 Jan 2022 13:00:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2ffba97-2810-45a0-a1e2-0a564bb62738</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
[quote user="bhumika"]Do I need to initialize something which is being missed?[/quote]
&lt;p&gt;Yes, this is likely.&lt;/p&gt;
&lt;p&gt;To figure out exactly what is missing, find where the error is set in the CoAP library.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assign both CoAP client and server roles to a node in nRF_Connect_SDK</title><link>https://devzone.nordicsemi.com/thread/347484?ContentTypeID=1</link><pubDate>Thu, 13 Jan 2022 05:01:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0614397-848d-4c79-baef-d1861ab16f1d</guid><dc:creator>Bhumika</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It was my bad, ipaddr is available.&lt;/p&gt;
&lt;p&gt;I am using below code to send CoAP message to my CoAP server:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;

#define BORDER_ROUTER_IP  &amp;quot;2001:db8:1:ffff::a00:1&amp;quot; 
#define BOOTSTRAP_MESSAGE_FORMAT &amp;quot;o=2&amp;amp;i=1&amp;amp;t=1&amp;amp;2=10&amp;quot;
#define COMMON_RESOURCE &amp;quot;proxy/zenedge&amp;quot;
#define EUID &amp;quot;u=64088dce2d8f7568&amp;quot;
#define PACKET_VERSION &amp;quot;pv=1&amp;quot;
#define BOOTSTRAP_RESOURCE &amp;quot;pt=b&amp;quot;

/**
 * @brief Bootstrap callback
 * @param aContext Not used
 * @param aMessage coap message
 * @param aMessageInfo Not used
 * @param aError  Error happened during receiving of coap message
 */
void bootStrapCallBack(
    void *aContext,
    otMessage *aMessage,
    const otMessageInfo *aMessageInfo,
    otError aError) {
  uint32_t length = otMessageGetLength(aMessage) - otMessageGetOffset(aMessage);
  uint8_t buff_callback[256];

  if (aError != OT_ERROR_NONE) {
    LOG_INF(&amp;quot;(bootstrap call_back) Error receiving coap response message: Error %d: %s\r\n&amp;quot;, aError,
        otThreadErrorToString(aError));
  } else {
    if (otCoapMessageGetCode(aMessage) == OT_COAP_CODE_CONTENT) {

      LOG_INF(&amp;quot;(bootstrap call_back) Response received successfully\n\r&amp;quot;);
      if (length &amp;lt; 256) {
        otMessageRead(aMessage, otMessageGetOffset(aMessage), buff_callback, length);
        LOG_INF(&amp;quot;%s\n\r&amp;quot;, buff_callback);
      } else {
        LOG_INF(&amp;quot;Response length too lengthy\n&amp;quot;);
      }
    } else {
      LOG_INF(&amp;quot;Response code is %d,  %s\r\n&amp;quot;, otCoapMessageGetCode(aMessage),
          otThreadErrorToString(otCoapMessageGetCode(aMessage)));
    }
  }
  OT_UNUSED_VARIABLE(aContext);
  OT_UNUSED_VARIABLE(aMessageInfo);
}


/**
 * @param openthread instance
 * @action print address of device
 */
static void addresses_print(otInstance *aInstance) {
  LOG_INF(&amp;quot;Print IPv6 address of node&amp;quot;);
  const otNetifAddress *unicastAddrs = otIp6GetUnicastAddresses(aInstance);
  for (const otNetifAddress *addr = unicastAddrs; addr; addr = addr-&amp;gt;mNext) {
    char string[OT_IP6_ADDRESS_STRING_SIZE];
    const otIp6Address add6 = addr-&amp;gt;mAddress;
    otIp6AddressToString(&amp;amp;add6, string, sizeof(add6));
    LOG_INF(&amp;quot;addr: %s&amp;quot;, log_strdup(string));
  }
}


/**
 * @brief send coap packet for bootstraping
 */
void coap_send_bootstrap_message() {
  struct openthread_context *context = openthread_get_default_context();
  char buff[30];
  char *bootstrap_message_payload = NULL;
  sprintf(buff, BOOTSTRAP_MESSAGE_FORMAT);
  bootstrap_message_payload = (char *)malloc(30);
  strcpy(bootstrap_message_payload, buff);
  otMessageInfo message_info;
  otMessage *p_message;
  otError error = OT_ERROR_NONE;
  do {
    p_message = otCoapNewMessage(openthread_get_default_instance(), NULL);
    otCoapMessageInit(p_message, OT_COAP_TYPE_CONFIRMABLE, COAP_METHOD_POST);
    otCoapMessageGenerateToken(p_message, 2);
    otCoapMessageAppendUriPathOptions(p_message, COMMON_RESOURCE);
    otCoapMessageAppendUriQueryOption(p_message, EUID);
    otCoapMessageAppendUriQueryOption(p_message, PACKET_VERSION);
    otCoapMessageAppendUriQueryOption(p_message, BOOTSTRAP_RESOURCE);
    otCoapMessageSetPayloadMarker(p_message);
    if (p_message == NULL) {
      LOG_INF(&amp;quot;Failed to allocate config message for CoAP Request\r\n&amp;quot;);
      break;
    }
    error = otMessageAppend(p_message, bootstrap_message_payload, strlen(bootstrap_message_payload));
    if (error != OT_ERROR_NONE) {
      break;
    }
    memset(&amp;amp;message_info, 0, sizeof(message_info));
    message_info.mPeerPort = COAP_PORT;
    otIp6AddressFromString(BORDER_ROUTER_IP, &amp;amp;message_info.mPeerAddr);

    LOG_INF(&amp;quot;Send Bootstarp message&amp;quot;);
    error = otCoapSendRequest(context-&amp;gt;instance, p_message, &amp;amp;message_info, bootStrapCallBack, NULL);
    
  } while (false);
  LOG_INF(&amp;quot;*********Print node address********* &amp;quot;);
  addresses_print(context-&amp;gt;instance);

  if (error != OT_ERROR_NONE &amp;amp;&amp;amp; p_message != NULL) {
    LOG_INF(&amp;quot;Failed to send config CoAP Request: %d\r\n&amp;quot;, error);
    otMessageFree(p_message);
  } else {
    LOG_INF(&amp;quot;Packet sent successfully&amp;quot;);
  }
  free(bootstrap_message_payload);
}
&lt;/pre&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Bur while sending the coap message I am receiving the following error.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:09:12.965,362] &amp;lt;inf&amp;gt; coap_client_utils: Send Bootstarp message
[00:09:12.965,454] &amp;lt;inf&amp;gt; coap_client_utils: *********Print node address*********
[00:09:12.965,454] &amp;lt;inf&amp;gt; coap_client_utils: Print IPv6 address of node
[00:09:12.965,637] &amp;lt;inf&amp;gt; coap_client_utils: addr: feef:ee:0:0:267
[00:09:12.965,820] &amp;lt;inf&amp;gt; coap_client_utils: addr: fdf2:8f4:1bb2:b
[00:09:12.966,033] &amp;lt;inf&amp;gt; coap_client_utils: addr: fdf2:8f4:1bb2:b
[00:09:12.966,217] &amp;lt;inf&amp;gt; coap_client_utils: addr: fe80:0:0:0:f6ce
[00:09:12.966,217] &amp;lt;inf&amp;gt; coap_client_utils: Failed to send config CoAP Request: 13&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This Error code:&amp;#39;13&amp;#39; pertains to &amp;quot;OT_ERROR_INVALID_STATE&amp;quot; . In what condition do we get this response?&lt;/p&gt;
&lt;p&gt;Do I need to initialize something which is being missed?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assign both CoAP client and server roles to a node in nRF_Connect_SDK</title><link>https://devzone.nordicsemi.com/thread/347406?ContentTypeID=1</link><pubDate>Wed, 12 Jan 2022 14:10:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:964436b3-dd10-45e3-ab1c-3b281b603070</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Just to double check that you print all the available addresses:&lt;br /&gt;Could you use the serial interface and do the command:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;ot ipaddr&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Does this return the same addresses as when you log?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assign both CoAP client and server roles to a node in nRF_Connect_SDK</title><link>https://devzone.nordicsemi.com/thread/347298?ContentTypeID=1</link><pubDate>Wed, 12 Jan 2022 07:23:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdab1901-82af-4d79-92c5-6a2d65b059f5</guid><dc:creator>Bhumika</dc:creator><description>&lt;p&gt;In Old SDK (nrf_SDK_for_Thread_and_Zigbee_4.1.0), which is working with Border router here are the address:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
&amp;lt;info&amp;gt; app: feef:ee:0:0:3b06:a24d:2625:50e7

&amp;lt;info&amp;gt; app: fdf2:8f4:1bb2:b82a:0:ff:fe00:1c0d

&amp;lt;info&amp;gt; app: fdf2:8f4:1bb2:b82a:800c:e83b:2bf4:518a

&amp;lt;info&amp;gt; app: fe80:0:0:0:7b9f:ccb1:dca1:e627&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In nRF_Connect_SDK(v1.8.0), following address are formed:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
[00:00:00.785,766] &amp;lt;inf&amp;gt; coap_client_utils: addr: fdf2:8f4:1bb2:b
[00:00:00.785,949] &amp;lt;inf&amp;gt; coap_client_utils: addr: fdf2:8f4:1bb2:b
[00:00:00.786,132] &amp;lt;inf&amp;gt; coap_client_utils: addr: fe80:0:0:0:f6ce&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And following addresses are formed on my border router which hosts the CoAP Server:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; inet6 feef:ee::be40:d9ae:ce19:5dbc  prefixlen 64  scopeid 0x40&amp;lt;site&amp;gt;
        inet6 fe80::d4c8:801f:ac75:6cb5  prefixlen 64  scopeid 0x20&amp;lt;link&amp;gt;
        inet6 fdf2:8f4:1bb2:b82a:94a5:bb8d:4716:6657  prefixlen 64  scopeid 0x0&amp;lt;global&amp;gt;
        inet6 fe80::1ac8:b1c:d7f9:a06c  prefixlen 64  scopeid 0x20&amp;lt;link&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So my understanding is that in my nRF_Connect_SDK based node, fix mesh prefix-based address is not formed, i.e. address with prefix: &amp;quot;feef:ee&amp;quot;&lt;/p&gt;
&lt;p&gt;Can you tell me how to form this address?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assign both CoAP client and server roles to a node in nRF_Connect_SDK</title><link>https://devzone.nordicsemi.com/thread/347215?ContentTypeID=1</link><pubDate>Tue, 11 Jan 2022 14:54:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e458bb28-ca1f-48dc-a60a-a93337eb128d</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;You need to add strdup to the logging. See &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/zephyr/reference/logging/index.html?highlight=config_log_strdup_max_string#logging-v1"&gt;Logging v1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;LOG_INF(&amp;quot;addr: %s\n&amp;quot;, log_strdup(string));
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assign both CoAP client and server roles to a node in nRF_Connect_SDK</title><link>https://devzone.nordicsemi.com/thread/346861?ContentTypeID=1</link><pubDate>Mon, 10 Jan 2022 09:25:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8a2f15d-44db-44af-8b43-fee0390ab802</guid><dc:creator>Bhumika</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;I have tried again and reviewed my code.&lt;/p&gt;
&lt;p&gt;I couldn&amp;#39;t find any error with any interrupt.&lt;/p&gt;
&lt;p&gt;Code crashed only while calling addresses_print function.&lt;/p&gt;
&lt;p&gt;The attached code for the address print function is as follow:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/**
 * @param openthread instance
 * @action print address of device
 */
static void addresses_print(otInstance *aInstance) {
  LOG_INF(&amp;quot;Print IPv6 address of node&amp;quot;);
  const otNetifAddress *unicastAddrs = otIp6GetUnicastAddresses(openthread_get_default_instance());
  LOG_INF(&amp;quot;Assigned 1&amp;quot;);

  for (const otNetifAddress *addr = unicastAddrs; addr; addr = addr-&amp;gt;mNext) {
    LOG_INF(&amp;quot;***Inside Loop 1.1***&amp;quot;);
    char string[OT_IP6_ADDRESS_STRING_SIZE];
    const otIp6Address add6 = addr-&amp;gt;mAddress;
    LOG_INF(&amp;quot;***Inside Loop 1.2***&amp;quot;);
   // otIp6AddressToString(&amp;amp;add6, string, sizeof(add6));
    LOG_INF(&amp;quot;addr: %s\n&amp;quot;, string);
  }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kindly look into it and help me in finding the cause of this crash.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assign both CoAP client and server roles to a node in nRF_Connect_SDK</title><link>https://devzone.nordicsemi.com/thread/346600?ContentTypeID=1</link><pubDate>Fri, 07 Jan 2022 07:27:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26ac79d2-b1be-486b-989c-55ae7bfaadcb</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Your error message says:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:00.378,051] &amp;lt;err&amp;gt; os: Fault during interrupt handling
[00:00:00.378,082] &amp;lt;err&amp;gt; os: Current thread: 0x200015b8 (logging)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The fault happens in your logging, and seems to be connected to interrupts.&lt;br /&gt;I advise that you investigate these in your program to try to find the issue.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assign both CoAP client and server roles to a node in nRF_Connect_SDK</title><link>https://devzone.nordicsemi.com/thread/346588?ContentTypeID=1</link><pubDate>Fri, 07 Jan 2022 05:14:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02d17a5b-a30a-46c5-8d08-4dabab89a4f1</guid><dc:creator>Bhumika</dc:creator><description>&lt;p&gt;can you suggest what is wrong with this implementation, why my code is crashing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assign both CoAP client and server roles to a node in nRF_Connect_SDK</title><link>https://devzone.nordicsemi.com/thread/346426?ContentTypeID=1</link><pubDate>Thu, 06 Jan 2022 10:58:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd038a6c-3b01-4d4b-86bc-0a80187b4667</guid><dc:creator>Bhumika</dc:creator><description>&lt;p&gt;I have modified my code as per the snippet provided by you.&lt;/p&gt;
&lt;p&gt;Now my code looks like below mentioned...&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
/**
 * @param openthread instance
 * @action print address of device
 */
static void addresses_print(otInstance *aInstance) {
  LOG_INF(&amp;quot;Print IPv^ address of node&amp;quot;);
  const otNetifAddress *unicastAddrs = otIp6GetUnicastAddresses(openthread_get_default_instance());

  for (const otNetifAddress *addr = unicastAddrs; addr; addr = addr-&amp;gt;mNext) {
    char string[OT_IP6_ADDRESS_STRING_SIZE];
    const otIp6Address add6 = addr-&amp;gt;mAddress;
    otIp6AddressToString(&amp;amp;add6, string, sizeof(add6));
    LOG_INF(&amp;quot;addr: %s\n&amp;quot;, string);
  }
}
int i = 0;

static void on_thread_state_changed(uint32_t flags, void *context) {
  LOG_INF(&amp;quot;***In on_thread_state_changed &amp;quot;);

  struct openthread_context *ot_context = context;

  if (flags &amp;amp; OT_CHANGED_THREAD_ROLE) {
    switch (otThreadGetDeviceRole(ot_context-&amp;gt;instance)) {
    case OT_DEVICE_ROLE_CHILD:
    case OT_DEVICE_ROLE_ROUTER:
    case OT_DEVICE_ROLE_LEADER:
      if (i == 0) {
        i = 1;
        otThreadSetEnabled(ot_context-&amp;gt;instance, false);
        otLinkSetExtendedAddress(ot_context-&amp;gt;instance, &amp;amp;EUI64);
        otThreadSetEnabled(ot_context-&amp;gt;instance, true);
      }
      LOG_INF(&amp;quot;*****Node Role :  &amp;quot;);
      k_work_submit(&amp;amp;on_connect_work);
      LOG_INF(&amp;quot;*********Print node address********* &amp;quot;);
      addresses_print(ot_context-&amp;gt;instance);
      is_connected = true;
      dk_set_led_on(LIGHT_LED2);
      dk_set_led_off(LIGHT_LED3);
      break;

    case OT_DEVICE_ROLE_DISABLED:
    case OT_DEVICE_ROLE_DETACHED:
    default:
      LOG_INF(&amp;quot;****Default Role :  &amp;quot;);
      k_work_submit(&amp;amp;on_disconnect_work);
      is_connected = false;
      dk_set_led_on(LIGHT_LED3);
      dk_set_led_off(LIGHT_LED2);
      break;
    }
  }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Still, I get the same error. Still, my code crashes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am not getting any IP address for nRF_Connect_Devices. Attached error log below...&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:00.002,716] &amp;lt;inf&amp;gt; ieee802154_nrf5: nRF5 802154 radio initialized
[00:00:00.106,079] &amp;lt;inf&amp;gt; fs_nvs: 8 Sectors of 4096 bytes
[00:00:00.106,079] &amp;lt;inf&amp;gt; fs_nvs: alloc wra: 0, d58
[00:00:00.106,079] &amp;lt;inf&amp;gt; fs_nvs: data wra: 0, 4c4
[00:00:00.118,011] &amp;lt;inf&amp;gt; net_l2_openthread: State changed! Flags: 0x101fc300 current role: 0
[00:00:00.118,408] &amp;lt;inf&amp;gt; net_l2_openthread: OpenThread version: OPENTHREAD/69eb7030c-dirty; Zephyr; Jan  6 2022 11:43:49
[00:00:00.121,246] &amp;lt;inf&amp;gt; net_l2_openthread: OpenThread already commissioned.
[00:00:00.121,276] &amp;lt;inf&amp;gt; net_l2_openthread: Network name: fb9d04b4bc8d7a24
[00:00:00.188,018] &amp;lt;inf&amp;gt; net_l2_openthread: State changed! Flags: 0x0100103d current role: 1
[00:00:00.194,091] &amp;lt;inf&amp;gt; coap_client: Start CoAP-client sample
[00:00:00.194,580] &amp;lt;dbg&amp;gt; coap_utils.coap_init: CoAP socket receive thread started
[00:00:00.194,610] &amp;lt;inf&amp;gt; net_l2_openthread: OpenThread version: OPENTHREAD/69eb7030c-dirty; Zephyr; Jan  6 2022 11:43:49
[00:00:00.197,143] &amp;lt;inf&amp;gt; net_l2_openthread: OpenThread already commissioned.
[00:00:00.197,174] &amp;lt;inf&amp;gt; net_l2_openthread: Network name: fb9d04b4bc8d7a24
[00:00:00.198,516] &amp;lt;inf&amp;gt; net_l2_openthread: State changed! Flags: 0x00000010 current role: 1
[00:00:00.198,516] &amp;lt;inf&amp;gt; coap_client_utils: ***In on_thread_state_changed
[00:00:00.198,974] &amp;lt;inf&amp;gt; coap_client_utils: MAC Address of the Device: f4 ce 36 64 8 8d
[00:00:00.198,974] &amp;lt;inf&amp;gt; coap_client_utils:  ce 2d
[00:00:00.282,470] &amp;lt;inf&amp;gt; net_l2_openthread: State changed! Flags: 0x00001084 current role: 2
[00:00:00.283,050] &amp;lt;inf&amp;gt; coap_client_utils: ***In on_thread_state_changed
[00:00:00.290,802] &amp;lt;inf&amp;gt; coap_client_utils: *****Node Role :
[00:00:00.290,832] &amp;lt;inf&amp;gt; coap_client_utils: *********Print node address*********
[00:00:00.290,832] &amp;lt;inf&amp;gt; coap_client_utils: Print IPv^ address of node
[00:00:00.304,443] &amp;lt;err&amp;gt; os: s[ 4]:  0x00000000  s[ 5]:  0x00000000  s[ 6]:  0x00000000  s[ 7]:  0x00000000
--- 7 messages dropped ---
[00:00:00.304,443] &amp;lt;err&amp;gt; os: s[ 8]:  0x00000000  s[ 9]:  0x00000000  s[10]:  0x00000000  s[11]:  0x00000000
[00:00:00.304,473] &amp;lt;err&amp;gt; os: s[12]:  0x00000000  s[13]:  0x00000000  s[14]:  0x00000000  s[15]:  0x00000000
[00:00:00.304,473] &amp;lt;err&amp;gt; os: fpscr:  0x4c42e4d5
[00:00:00.304,504] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x000554dc
[00:00:00.304,504] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0
[00:00:00.304,504] &amp;lt;err&amp;gt; os: Current thread: 0x200015b8 (logging)
[00:00:00.377,838] &amp;lt;err&amp;gt; os: ***** HARD FAULT *****
[00:00:00.377,868] &amp;lt;err&amp;gt; os:   Fault escalation (see below)
[00:00:00.377,868] &amp;lt;err&amp;gt; os: ARCH_EXCEPT with reason 4

[00:00:00.377,868] &amp;lt;err&amp;gt; os: r0/a1:  0x00000004  r1/a2:  0x000000d1  r2/a3:  0x00000001
[00:00:00.377,899] &amp;lt;err&amp;gt; os: r3/a4:  0x000138d5 r12/ip:  0x00000000 r14/lr:  0x00007b05
[00:00:00.377,899] &amp;lt;err&amp;gt; os:  xpsr:  0x4100000b
[00:00:00.377,899] &amp;lt;err&amp;gt; os: s[ 0]:  0x00000000  s[ 1]:  0x00000000  s[ 2]:  0x00000000  s[ 3]:  0x00000000
[00:00:00.377,929] &amp;lt;err&amp;gt; os: s[ 4]:  0x00000000  s[ 5]:  0x00000000  s[ 6]:  0x00000000  s[ 7]:  0x00000000
[00:00:00.377,960] &amp;lt;err&amp;gt; os: s[ 8]:  0x00000000  s[ 9]:  0x00000000  s[10]:  0x00000000  s[11]:  0x00000000
[00:00:00.377,990] &amp;lt;err&amp;gt; os: s[12]:  0x00000000  s[13]:  0x00000000  s[14]:  0x00000000  s[15]:  0x00000000
[00:00:00.377,990] &amp;lt;err&amp;gt; os: fpscr:  0x00000010
[00:00:00.378,021] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x000554dc
[00:00:00.378,051] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0
[00:00:00.378,051] &amp;lt;err&amp;gt; os: Fault during interrupt handling

[00:00:00.378,082] &amp;lt;err&amp;gt; os: Current thread: 0x200015b8 (logging)
[00:00:01.267,242] &amp;lt;err&amp;gt; fatal_error: Resetting system
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Below is the IP address available on the nRF_SDK thread devices...&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app: fdf3:cf88:3e4e:ad4d:e732:8425:d033:b6e2

&amp;lt;info&amp;gt; app: fdfe:ee41:832:1c64:0:ff:fe00:7c0a

&amp;lt;info&amp;gt; app: fdfe:ee41:832:1c64:37d8:db5e:5adb:a088

&amp;lt;info&amp;gt; app: fe80:0:0:0:7b9f:ccb1:dca1:e627
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assign both CoAP client and server roles to a node in nRF_Connect_SDK</title><link>https://devzone.nordicsemi.com/thread/346415?ContentTypeID=1</link><pubDate>Thu, 06 Jan 2022 10:33:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60d92732-d41e-497b-98d1-2fecae555662</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;My guess is that something is off with your print function. &lt;br /&gt;OpenThread in Zephyr has a function to convert Ip6 addresses to strings, so it seems to work when I usethat instead:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    const otNetifAddress *unicastAddrs = otIp6GetUnicastAddresses(openthread_get_default_instance());    
    
    for (const otNetifAddress *addr = unicastAddrs; addr; addr = addr-&amp;gt;mNext)    
    {    
        char string[OT_IP6_ADDRESS_STRING_SIZE];    
        const otIp6Address  add6 = addr-&amp;gt;mAddress;    
        otIp6AddressToString(&amp;amp;add6, string, sizeof(add6));    
        printk(&amp;quot;addr: %s\n&amp;quot;,string);    
    }    
//void otIp6AddressToString(const otIp6Address *aAddress, char *aBuffer, uint16_t aSize)  &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Can you compare available IP addressed on the nRF Connect SDK thread devices and nRF5 SDK thread devices?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assign both CoAP client and server roles to a node in nRF_Connect_SDK</title><link>https://devzone.nordicsemi.com/thread/346385?ContentTypeID=1</link><pubDate>Thu, 06 Jan 2022 09:32:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27716063-caed-438d-bad2-5131deae4573</guid><dc:creator>Bhumika</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;I am trying to print the address of my CoAP_Clien node, but I am facing a crash...&lt;/p&gt;
&lt;p&gt;Below is the code snippet:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
static void address_print(const otIp6Address *addr) {
  char ipstr[40];
  snprintf(ipstr, sizeof(ipstr), &amp;quot;%x:%x:%x:%x:%x:%x:%x:%x&amp;quot;,
      ((uint8_t *)(addr-&amp;gt;mFields.m16 + 0)),
      ((uint8_t *)(addr-&amp;gt;mFields.m16 + 1)),
      ((uint8_t *)(addr-&amp;gt;mFields.m16 + 2)),
      ((uint8_t *)(addr-&amp;gt;mFields.m16 + 3)),
      ((uint8_t *)(addr-&amp;gt;mFields.m16 + 4)),
      ((uint8_t *)(addr-&amp;gt;mFields.m16 + 5)),
      ((uint8_t *)(addr-&amp;gt;mFields.m16 + 6)),
      ((uint8_t *)(addr-&amp;gt;mFields.m16 + 7)));
  LOG_INF(&amp;quot;%s\r\n&amp;quot;, (uint32_t)ipstr);
}

/**
 * @param openthread instance
 * @action print address of device
 */
static void addresses_print(otInstance *aInstance) {
  LOG_INF(&amp;quot;Inside address print&amp;quot;);
  int a = 0;
  for (const otNetifAddress *addr = otIp6GetUnicastAddresses(aInstance); addr; addr = addr-&amp;gt;mNext) {
    LOG_INF(&amp;quot;Inside for address print: %d&amp;quot;, a);
    a++;
    address_print(&amp;amp;addr-&amp;gt;mAddress);
  }
}

static void on_thread_state_changed(uint32_t flags, void *context) {
  LOG_INF(&amp;quot;***In on_thread_state_changed &amp;quot;);

  struct openthread_context *ot_context = context;
  if (i == 0) {
    i = 1;
    otThreadSetEnabled(ot_context-&amp;gt;instance, false);
    otLinkSetExtendedAddress(ot_context-&amp;gt;instance, &amp;amp;EUI64);
    otThreadSetEnabled(ot_context-&amp;gt;instance, true);
  }

  if (flags &amp;amp; OT_CHANGED_THREAD_ROLE) {
    switch (otThreadGetDeviceRole(ot_context-&amp;gt;instance)) {
    case OT_DEVICE_ROLE_CHILD:
    case OT_DEVICE_ROLE_ROUTER:
    case OT_DEVICE_ROLE_LEADER:
      LOG_INF(&amp;quot;*****Node Role :  &amp;quot;);
      k_work_submit(&amp;amp;on_connect_work);
      LOG_INF(&amp;quot;*********Print node address********* &amp;quot;);
      addresses_print(ot_context-&amp;gt;instance);
      is_connected = true;
      dk_set_led_on(LIGHT_LED2);
      dk_set_led_off(LIGHT_LED3);
      break;

    case OT_DEVICE_ROLE_DISABLED:
    case OT_DEVICE_ROLE_DETACHED:
    default:
      LOG_INF(&amp;quot;****Default Role :  &amp;quot;);
      k_work_submit(&amp;amp;on_disconnect_work);
      is_connected = false;
      dk_set_led_on(LIGHT_LED3);
      dk_set_led_off(LIGHT_LED2);
      break;
    }
  }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Each Time code crashes when it goes inside the &amp;quot;addresses_print&amp;quot; function.&lt;/p&gt;
&lt;p&gt;Below is the crash report:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:00.002,685] &amp;lt;inf&amp;gt; ieee802154_nrf5: nRF5 802154 radio initialized
[00:00:00.106,048] &amp;lt;inf&amp;gt; fs_nvs: 8 Sectors of 4096 bytes
[00:00:00.106,048] &amp;lt;inf&amp;gt; fs_nvs: alloc wra: 5, d98
[00:00:00.106,048] &amp;lt;inf&amp;gt; fs_nvs: data wra: 5, 428
[00:00:00.216,613] &amp;lt;inf&amp;gt; net_l2_openthread: State changed! Flags: 0x101fc300 current role: 0
[00:00:00.217,010] &amp;lt;inf&amp;gt; net_l2_openthread: OpenThread version: OPENTHREAD/69eb7030c-dirty; Zephyr; Jan  6 2022 11:43:49
[00:00:00.245,117] &amp;lt;inf&amp;gt; net_l2_openthread: OpenThread already commissioned.
[00:00:00.245,117] &amp;lt;inf&amp;gt; net_l2_openthread: Network name: fb9d04b4bc8d7a24
[00:00:00.363,403] &amp;lt;inf&amp;gt; net_l2_openthread: State changed! Flags: 0x0100103d current role: 1
[00:00:00.369,384] &amp;lt;inf&amp;gt; coap_client: Start CoAP-client sample
[00:00:00.369,903] &amp;lt;dbg&amp;gt; coap_utils.coap_init: CoAP socket receive thread started
[00:00:00.369,934] &amp;lt;inf&amp;gt; net_l2_openthread: OpenThread version: OPENTHREAD/69eb7030c-dirty; Zephyr; Jan  6 2022 11:43:49
[00:00:00.398,071] &amp;lt;inf&amp;gt; net_l2_openthread: OpenThread already commissioned.
[00:00:00.398,101] &amp;lt;inf&amp;gt; net_l2_openthread: Network name: fb9d04b4bc8d7a24
[00:00:00.399,261] &amp;lt;inf&amp;gt; net_l2_openthread: State changed! Flags: 0x00000010 current role: 1
[00:00:00.399,261] &amp;lt;inf&amp;gt; coap_client_utils: ***In on_thread_state_changed
[00:00:00.506,805] &amp;lt;inf&amp;gt; net_l2_openthread: State changed! Flags: 0x1000307f current role: 1
[00:00:00.507,110] &amp;lt;inf&amp;gt; coap_client_utils: ***In on_thread_state_changed
[00:00:00.507,141] &amp;lt;inf&amp;gt; coap_client_utils: ****Default Role :
[00:00:00.508,758] &amp;lt;inf&amp;gt; coap_client_utils: MAC Address of the Device: f4 ce 36 64 8 8d
[00:00:00.508,789] &amp;lt;inf&amp;gt; coap_client_utils:  ce 2d
[00:00:00.547,393] &amp;lt;inf&amp;gt; net_l2_openthread: State changed! Flags: 0x00003004 current role: 1
[00:00:00.547,607] &amp;lt;inf&amp;gt; coap_client_utils: ***In on_thread_state_changed
[00:00:00.547,607] &amp;lt;inf&amp;gt; coap_client_utils: ****Default Role :
[00:00:03.004,425] &amp;lt;inf&amp;gt; net_l2_openthread: State changed! Flags: 0x200012a4 current role: 2
[00:00:03.004,821] &amp;lt;inf&amp;gt; coap_client_utils: ***In on_thread_state_changed
[00:00:03.004,852] &amp;lt;inf&amp;gt; coap_client_utils: *****Node Role :
[00:00:03.004,852] &amp;lt;inf&amp;gt; coap_client_utils: *********Print node address*********
[00:00:03.004,852] &amp;lt;inf&amp;gt; coap_client_utils: Inside address print
[00:00:03.004,882] &amp;lt;inf&amp;gt; coap_client_utils: Inside for address print: 0
[00:00:03.005,004] &amp;lt;inf&amp;gt; coap_client_utils: Inside for address print: 1
[00:00:03.014,312] &amp;lt;err&amp;gt; os: s[ 4]:  0x00000000  s[ 5]:  0x00000000  s[ 6]:  0x00000000  s[ 7]:  0x00000000
--- 10 messages dropped ---
[00:00:03.014,343] &amp;lt;err&amp;gt; os: s[ 8]:  0x00000000  s[ 9]:  0x00000000  s[10]:  0x00000000  s[11]:  0x00000000
[00:00:03.014,343] &amp;lt;err&amp;gt; os: s[12]:  0x00000000  s[13]:  0x00000000  s[14]:  0x00000000  s[15]:  0x00000000
[00:00:03.014,343] &amp;lt;err&amp;gt; os: fpscr:  0x4c0244d5
[00:00:03.014,343] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x00055518
[00:00:03.014,373] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0
[00:00:03.014,373] &amp;lt;err&amp;gt; os: Current thread: 0x200015b8 (logging)
[00:00:03.108,428] &amp;lt;err&amp;gt; os: ***** HARD FAULT *****
[00:00:03.108,428] &amp;lt;err&amp;gt; os:   Fault escalation (see below)
[00:00:03.108,428] &amp;lt;err&amp;gt; os: ARCH_EXCEPT with reason 4

[00:00:03.108,459] &amp;lt;err&amp;gt; os: r0/a1:  0x00000004  r1/a2:  0x000000d1  r2/a3:  0x00000001
[00:00:03.108,459] &amp;lt;err&amp;gt; os: r3/a4:  0x00013911 r12/ip:  0x00000000 r14/lr:  0x00007b41
[00:00:03.108,459] &amp;lt;err&amp;gt; os:  xpsr:  0x4100000b
[00:00:03.108,459] &amp;lt;err&amp;gt; os: s[ 0]:  0x00000000  s[ 1]:  0x00000000  s[ 2]:  0x00000000  s[ 3]:  0x00000000
[00:00:03.108,489] &amp;lt;err&amp;gt; os: s[ 4]:  0x00000000  s[ 5]:  0x00000000  s[ 6]:  0x00000000  s[ 7]:  0x00000000
[00:00:03.108,520] &amp;lt;err&amp;gt; os: s[ 8]:  0x00000000  s[ 9]:  0x00000000  s[10]:  0x00000000  s[11]:  0x00000000
[00:00:03.108,551] &amp;lt;err&amp;gt; os: s[12]:  0x00000000  s[13]:  0x00000000  s[14]:  0x00000000  s[15]:  0x00000000
[00:00:03.108,581] &amp;lt;err&amp;gt; os: fpscr:  0x00000011
[00:00:03.108,581] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x00055518
[00:00:03.108,612] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0
[00:00:03.108,642] &amp;lt;err&amp;gt; os: Fault during interrupt handling

[00:00:03.108,673] &amp;lt;err&amp;gt; os: Current thread: 0x200015b8 (logging)
[00:00:03.997,863] &amp;lt;err&amp;gt; fatal_error: Resetting system
[00:00:00.002,685] &amp;lt;inf&amp;gt; ieee802154_nrf5: nRF5 802154 radio initialized
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you tell me what&amp;#39;s wrong with my address_print function?&lt;/p&gt;
&lt;p&gt;Again this function works perfectly in nRF_SDK_for_Thread_and_Zigbee but crashes in nRF_Connect_SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assign both CoAP client and server roles to a node in nRF_Connect_SDK</title><link>https://devzone.nordicsemi.com/thread/346374?ContentTypeID=1</link><pubDate>Thu, 06 Jan 2022 08:59:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79e45fb2-b581-4714-8462-2772b6acc687</guid><dc:creator>Bhumika</dc:creator><description>&lt;p&gt;Yes, your understanding is correct, simple_coap_client example from nRF% SDK can communicate with my CoAP Server when I commission it on my thread network, while the CoAP_Client sample from nRF_Connect-SDK cannot communicate with my CoAP server when I commission it on my thread network.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also, the above crash disappeared after changing the stack size.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assign both CoAP client and server roles to a node in nRF_Connect_SDK</title><link>https://devzone.nordicsemi.com/thread/346364?ContentTypeID=1</link><pubDate>Thu, 06 Jan 2022 08:21:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fb64a63-a180-41e0-99b8-21a63a94452b</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Thestack overflow of the workqueue is likely because you put too many things on the workqueue stack.&lt;br /&gt;This can be fixed by increasing the workqueue stack:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Let me know if the second crash still persist after this.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You say&lt;/p&gt;
[quote user="bhumika"]No, I am not able to send packets to my server even on the CoAP client alone.[/quote]
&lt;p&gt;and&lt;/p&gt;
[quote user="bhumika"]My other nodes which are based on nRF_SDK_For_Threda_and_Zigbee, also use the same address and nodes are able to send messages to my CoAP server via border router.[/quote]
&lt;p&gt;Just to clarify, is my following understanding correct?&lt;br /&gt;The coap_client sample from nRF Connect SDK can &lt;strong&gt;not&lt;/strong&gt; communicate with your CoAP server?&lt;br /&gt;The simple_coap_client example from nRF5 SDK can communicate with your CoAP server?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assign both CoAP client and server roles to a node in nRF_Connect_SDK</title><link>https://devzone.nordicsemi.com/thread/346247?ContentTypeID=1</link><pubDate>Wed, 05 Jan 2022 14:30:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:984d2db4-9508-40bc-95af-abd56132f911</guid><dc:creator>Bhumika</dc:creator><description>&lt;p&gt;Can You also tell me the cause of error messages? These errors are causing crashes in my code and system reboots. These errors appear when I try to send any CoAP messages on the thread network.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assign both CoAP client and server roles to a node in nRF_Connect_SDK</title><link>https://devzone.nordicsemi.com/thread/346246?ContentTypeID=1</link><pubDate>Wed, 05 Jan 2022 14:29:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93c5ba24-544b-41b8-914e-a615c52e9c0a</guid><dc:creator>Bhumika</dc:creator><description>&lt;p&gt;Yes I am using&amp;nbsp;&lt;span&gt;IP &amp;quot;2001:db8:1:ffff::a00:1&amp;quot; for your CoAP server.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;My other nodes which are based on nRF_SDK_For_Threda_and_Zigbee, also use the same address and nodes are able to send messages to my CoAP server via border router.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am facing this issue in this case only.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also, can you explain the 2 crashes I have mentioned?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assign both CoAP client and server roles to a node in nRF_Connect_SDK</title><link>https://devzone.nordicsemi.com/thread/346234?ContentTypeID=1</link><pubDate>Wed, 05 Jan 2022 14:09:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73c96aa2-9769-432d-9287-82b1b10d8bcd</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;It looks like you are using the IP &amp;quot;2001:db8:1:ffff::a00:1&amp;quot; for your CoAP server?&lt;/p&gt;
&lt;p&gt;This will be the public IP of the Border Router (BR), which will face the internet, and your Thread devices will not be able to find it.&lt;/p&gt;
&lt;p&gt;If you do &amp;quot;ip a&amp;quot; (on the Raspberry Pi) you will get a list of the other IP addresses of the BR. &lt;br /&gt;If you find the address here which face the Thread network, try to use that instead.&lt;br /&gt;Likely it will be one of the ones you listed:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;gt; ipaddr
fdfe:ee41:832:1c64:0:ff:fe00:fc11
fdfe:ee41:832:1c64:0:ff:fe00:fc10
fdfe:ee41:832:1c64:0:ff:fe00:fc38
fdf3:cf88:3e4e:ad4d:70e1:dc2a:eb65:e787
fdfe:ee41:832:1c64:0:ff:fe00:7c00
fdfe:ee41:832:1c64:2104:5e7:bb29:898a
fe80:0:0:0:b458:3788:3659:13e2
Done&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assign both CoAP client and server roles to a node in nRF_Connect_SDK</title><link>https://devzone.nordicsemi.com/thread/346233?ContentTypeID=1</link><pubDate>Wed, 05 Jan 2022 14:04:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee7eec74-701b-4e54-b1f5-04b34ccb0fa5</guid><dc:creator>Bhumika</dc:creator><description>&lt;p&gt;No, I don&amp;#39;t need to connect to the internet for reaching my CoAP server. It is on my border router which is part of my thread network.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assign both CoAP client and server roles to a node in nRF_Connect_SDK</title><link>https://devzone.nordicsemi.com/thread/346228?ContentTypeID=1</link><pubDate>Wed, 05 Jan 2022 13:53:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebf4f191-cf48-444c-a627-0ca58011466d</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I do not know what cause the error messages now. But let us have a look at the internet connection first:&lt;/p&gt;
&lt;p&gt;The response from the pings:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;1 packets transmitted, 0 packets received. Packet loss = 100.0%.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This means that all packets are lost. &lt;br /&gt;The address you try to ping is an IPv4 address for Google through a IPv6 &amp;quot;bridge&amp;quot;. &lt;br /&gt;Since all packets were lost, this could indicate that you do not have any internet connectivity.&lt;/p&gt;
&lt;p&gt;This will be a problem if the server you intend to communicate with devices outside your thread network.&lt;br /&gt;Do you need to connect to the internet with your thread devices? (For example to reach an external coap server)&lt;br /&gt;If you do, we will need to fix the border router.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assign both CoAP client and server roles to a node in nRF_Connect_SDK</title><link>https://devzone.nordicsemi.com/thread/346189?ContentTypeID=1</link><pubDate>Wed, 05 Jan 2022 12:52:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebc6a656-d0e8-44fd-93d2-c79068bcf22c</guid><dc:creator>Bhumika</dc:creator><description>&lt;p&gt;Also, now I am receiving the following error in my logs...&lt;/p&gt;
&lt;p&gt;Please explain the meaning of the following two crashes in the code:&lt;/p&gt;
&lt;p&gt;1.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:11.100,555] &amp;lt;inf&amp;gt; coap_client_utils: Send bootstrap message
[00:00:11.100,799] &amp;lt;err&amp;gt; os: ***** BUS FAULT *****
[00:00:11.100,799] &amp;lt;err&amp;gt; os:   Precise data bus error
[00:00:11.100,799] &amp;lt;err&amp;gt; os:   BFAR Address: 0x786f7270
[00:00:11.100,830] &amp;lt;err&amp;gt; os: r0/a1:  0x786f7270  r1/a2:  0x2000dde9  r2/a3:  0x786f7270
[00:00:11.100,830] &amp;lt;err&amp;gt; os: r3/a4:  0x786f7270 r12/ip:  0x000000e6 r14/lr:  0x00016259
[00:00:11.100,830] &amp;lt;err&amp;gt; os:  xpsr:  0x21000000
[00:00:11.100,830] &amp;lt;err&amp;gt; os: s[ 0]:  0x00000000  s[ 1]:  0x00000000  s[ 2]:  0x00000000  s[ 3]:  0x00000000
[00:00:11.100,860] &amp;lt;err&amp;gt; os: s[ 4]:  0x00000000  s[ 5]:  0x00000000  s[ 6]:  0x00000000  s[ 7]:  0xffffffff
[00:00:11.100,891] &amp;lt;err&amp;gt; os: s[ 8]:  0x00000000  s[ 9]:  0x00000000  s[10]:  0x00000000  s[11]:  0x00000000
[00:00:11.100,891] &amp;lt;err&amp;gt; os: s[12]:  0x00000000  s[13]:  0x00000000  s[14]:  0x00000000  s[15]:  0x00000000
[00:00:11.100,891] &amp;lt;err&amp;gt; os: fpscr:  0x20016e80
[00:00:11.100,921] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x00004142
[00:00:11.100,921] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 0: CPU exception on CPU 0
[00:00:11.100,921] &amp;lt;err&amp;gt; os: Current thread: 0x20002280 (sysworkq)
[00:00:11.716,156] &amp;lt;err&amp;gt; fatal_error: Resetting system&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;2.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:21.605,407] &amp;lt;inf&amp;gt; coap_client_utils: role :
[00:01:48.871,276] &amp;lt;inf&amp;gt; coap_client_utils: Send multicast mesh &amp;#39;light&amp;#39; request
[00:01:48.871,795] &amp;lt;err&amp;gt; os: ***** MPU FAULT *****
[00:01:48.871,795] &amp;lt;err&amp;gt; os:   Stacking error (context area might be not valid)
[00:01:48.871,826] &amp;lt;err&amp;gt; os: r0/a1:  0x2000d144  r1/a2:  0x00000000  r2/a3:  0x00000008
[00:01:48.871,826] &amp;lt;err&amp;gt; os: r3/a4:  0x0001db71 r12/ip:  0x0000cd7c r14/lr:  0x61000000
[00:01:48.871,826] &amp;lt;err&amp;gt; os:  xpsr:  0x00000000
[00:01:48.871,856] &amp;lt;err&amp;gt; os: s[ 0]:  0x00000000  s[ 1]:  0x00000000  s[ 2]:  0x00000000  s[ 3]:  0x00000000
[00:01:48.871,856] &amp;lt;err&amp;gt; os: s[ 4]:  0x00000000  s[ 5]:  0xffffffff  s[ 6]:  0x00000000  s[ 7]:  0x00000000
[00:01:48.871,856] &amp;lt;err&amp;gt; os: s[ 8]:  0x00000000  s[ 9]:  0x00000000  s[10]:  0x00000000  s[11]:  0x00000000
[00:01:48.871,887] &amp;lt;err&amp;gt; os: s[12]:  0x00000000  s[13]:  0x00000000  s[14]:  0x00000000  s[15]:  0x00000000
[00:01:48.871,917] &amp;lt;err&amp;gt; os: fpscr:  0x2000d144
[00:01:48.871,917] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x00000001
[00:01:48.871,917] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 2: Stack overflow on CPU 0
[00:01:48.871,948] &amp;lt;err&amp;gt; os: Current thread: 0x20002280 (sysworkq)
[00:01:49.436,157] &amp;lt;err&amp;gt; fatal_error: Resetting system&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assign both CoAP client and server roles to a node in nRF_Connect_SDK</title><link>https://devzone.nordicsemi.com/thread/346172?ContentTypeID=1</link><pubDate>Wed, 05 Jan 2022 12:27:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9c1acd6-0c77-46dc-838d-b9d0ec1144e7</guid><dc:creator>Bhumika</dc:creator><description>&lt;p&gt;My Coap Client is working fine as other nodes are able to send packets to it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t understand your second point. This is the output of second point:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
&amp;gt; &amp;gt;
&amp;gt; ipaddr
fdfe:ee41:832:1c64:0:ff:fe00:fc11
fdfe:ee41:832:1c64:0:ff:fe00:fc10
fdfe:ee41:832:1c64:0:ff:fe00:fc38
fdf3:cf88:3e4e:ad4d:70e1:dc2a:eb65:e787
fdfe:ee41:832:1c64:0:ff:fe00:7c00
fdfe:ee41:832:1c64:2104:5e7:bb29:898a
fe80:0:0:0:b458:3788:3659:13e2
Done
&amp;gt;
&amp;gt; ping 64:ff9b::0808:0808

1 packets transmitted, 0 packets received. Packet loss = 100.0%.
Done
&amp;gt; ping 64:ff9b::0808:0808

1 packets transmitted, 0 packets received. Packet loss = 100.0%.
Done
&amp;gt;&lt;/pre&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assign both CoAP client and server roles to a node in nRF_Connect_SDK</title><link>https://devzone.nordicsemi.com/thread/346166?ContentTypeID=1</link><pubDate>Wed, 05 Jan 2022 12:15:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:405046a3-1dea-46a8-a0a4-85ccef033d74</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Then there are be multiple possible issues. &lt;br /&gt;Let us try to debug these two first:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Something could be wrong with the server. Try to use another CoAP client to send a message to your server. For example &lt;a href="https://coap.me/"&gt;https://coap.me/&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Maybe the&amp;nbsp; Border Router does not connect the OpenThread network to the internet. Use the client in one of your OpenThread samples to do the following commands:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;ot ipaddr
ot ping 64:ff9b::0808:0808&lt;/pre&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>