<?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>CoAP Client/Server not attaching</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92279/coap-client-server-not-attaching</link><description>Hi, 
 I have been successfully working with CoAP customized client/sever app for a custom dev board. This custom dev board was based on Minew MS88SF21 module. I have created a custom board definition based on nrf52840dk. I did my custom sensor board design</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Oct 2022 10:49:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92279/coap-client-server-not-attaching" /><item><title>RE: CoAP Client/Server not attaching</title><link>https://devzone.nordicsemi.com/thread/389372?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2022 10:49:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cc15cab-efe8-47a1-b101-8da7cd5e30a2</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Yes, that should give more details.&lt;/p&gt;
&lt;p&gt;You may also set&amp;nbsp;&lt;a title="(in Kconfig reference v&amp;amp;nbsp;)" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.0/kconfig/index.html#CONFIG_OPENTHREAD_L2_LOG_LEVEL_DBG"&gt;&lt;code&gt;&lt;span&gt;CONFIG_OPENTHREAD_L2_LOG_LEVEL_DBG&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a title="(in Kconfig reference v&amp;amp;nbsp;)" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.0/kconfig/index.html#CONFIG_OPENTHREAD_L2_DEBUG"&gt;&lt;code&gt;&lt;span&gt;CONFIG_OPENTHREAD_L2_DEBUG&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;&amp;nbsp;if the above configs does not help indicating what is happening.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CoAP Client/Server not attaching</title><link>https://devzone.nordicsemi.com/thread/389096?ContentTypeID=1</link><pubDate>Tue, 04 Oct 2022 02:00:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd111db4-4b42-48fb-b21b-a3df9928a51a</guid><dc:creator>kaushalyasat</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi&amp;nbsp;&lt;/span&gt;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/joh2"&gt;J&amp;oslash;rgen&lt;/a&gt;&lt;span&gt;,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Yes I think it happens while runtime. Probably when I was testing range, I was taking the client further away until it no longer make connection. Then I saw this behavior.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have set the following in my prj.conf for the server.&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_OPENTHREAD_DEBUG&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_OPENTHREAD_LOG_LEVEL_DEBG&lt;/span&gt;&lt;span&gt;=y&lt;/span&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;span&gt;Is this enough?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Cheers,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Kaushalya&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CoAP Client/Server not attaching</title><link>https://devzone.nordicsemi.com/thread/388769?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 12:22:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa206433-cd9f-40d6-a5db-37b5780254bc</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>[quote user="kaushalyasat"]When I ilook into CoAP server mode, it was in&amp;nbsp;&lt;span&gt;&amp;nbsp;Full Network Data. (ot mode replies &amp;#39;n&amp;#39;)&lt;/span&gt;[/quote]
&lt;p&gt;Does this change during run-time? If it does, can you check if the log gives any details on why this happens? You might need to &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.0/nrf/ug_logging.html#thread"&gt;increase the log level&lt;/a&gt; to get more details.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CoAP Client/Server not attaching</title><link>https://devzone.nordicsemi.com/thread/388727?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 10:21:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec4ee9fa-23f5-43fe-a651-592108ff964d</guid><dc:creator>kaushalyasat</dc:creator><description>&lt;p&gt;I think I have found may be why this happens. When I ilook into CoAP server mode, it was in&amp;nbsp;&lt;span&gt;&amp;nbsp;Full Network Data. (ot mode replies &amp;#39;n&amp;#39;)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Then I changed mode to rdn (ot mode rdn) and then it came back to leader role.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Once I do that then it kept on in this mode even after power cycle.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So may be due to whatever reason, the CoAP server changes its mode to &amp;#39;Full Network Data&amp;#39; and losses &amp;#39;rx-on-when-idle&amp;#39; and &amp;#39;Full Thread Device&amp;#39;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Any idea what could trigger this behavior?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If I again set mode to &amp;#39;n&amp;#39;, same this happens and it persists even after power cycle.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I will try to set this mode in thread init function and see.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CoAP Client/Server not attaching</title><link>https://devzone.nordicsemi.com/thread/388654?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 00:29:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40bb0382-92b3-4bc4-9cb7-7b3f0dfee16d</guid><dc:creator>kaushalyasat</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/joh2"&gt;J&amp;oslash;rgen&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Now I have been testing my modified server/client projects successfully until this morning and again the system went back to that phantom state of server/client failing to attach.&lt;/p&gt;
&lt;p&gt;I am desperate for a solution now.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CoAP Client/Server not attaching</title><link>https://devzone.nordicsemi.com/thread/388448?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 03:14:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7936030-123d-440d-97c4-7b82d07c7344</guid><dc:creator>kaushalyasat</dc:creator><description>&lt;p&gt;Thanks&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/joh2"&gt;J&amp;oslash;rgen&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Apologies for my delay, I had to sort out a production issue.&lt;/p&gt;
&lt;p&gt;The code I am trying now is straight out of the example code. So no modifications.&lt;/p&gt;
&lt;p&gt;There were no other OpenThread devices in the vicinity. So I am not sure how these&amp;nbsp;&lt;span&gt;fe80::cc96:a5e5:3ec1:4aec and&amp;nbsp;fe80::f0dd:73af:496a:9446 became children. We only have number of Thread devices in the lab. Can they be attaching to OpenThread networks?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;To become a child, it should have the same PANID, network name and network key as the server, am I correct?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;To make it even worse(??) the server is now becoming a Leader. I didnt do anything. I can see LED1 on server lighting up.&lt;/p&gt;
&lt;p&gt;Really need some help here.&lt;/p&gt;
&lt;p&gt;This is the network session from wireshark.&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/CoAP-session_2D00_Working.pcapng"&gt;devzone.nordicsemi.com/.../CoAP-session_2D00_Working.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CoAP Client/Server not attaching</title><link>https://devzone.nordicsemi.com/thread/388185?ContentTypeID=1</link><pubDate>Tue, 27 Sep 2022 14:53:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68262709-44e7-4ecf-bc82-d5806b037d96</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;How have you modified the samples? Could you provide the code/projects?&lt;/p&gt;
&lt;p&gt;Looking at you sniffer log, it seems that initially there is a router\parent present (fe80::4cc8:a3aa:4415:e77e) with two children attached (fe80::cc96:a5e5:3ec1:4aec and&amp;nbsp;fe80::f0dd:73af:496a:9446).&lt;/p&gt;
&lt;p&gt;In the end of the sniffer trace, it seems these two children are looking for a parent, but the previous parent is no longer sending packets. However, there seems to be another device present in the sniffer log (fe80::7c02:908c:d37b:8a79), but this is configured at another PANID (0xFFFF, not 0xABCD like the other nodes), so this may be interference from another network.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CoAP Client/Server not attaching</title><link>https://devzone.nordicsemi.com/thread/388026?ContentTypeID=1</link><pubDate>Tue, 27 Sep 2022 04:14:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d17f2b56-157a-4770-ab7e-624a88bff69a</guid><dc:creator>kaushalyasat</dc:creator><description>&lt;p&gt;The wireshark session is attached.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/CoAP-session_2D00_Fail.pcapng"&gt;devzone.nordicsemi.com/.../CoAP-session_2D00_Fail.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CoAP Client/Server not attaching</title><link>https://devzone.nordicsemi.com/thread/388024?ContentTypeID=1</link><pubDate>Tue, 27 Sep 2022 01:47:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa5efadd-7ead-405d-b781-86f830705c1c</guid><dc:creator>kaushalyasat</dc:creator><description>&lt;p&gt;I have added&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NET_IPV6&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NET_UDP&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;to prj.conf of both coap_client and coap_server projects, but same result.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>