<?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>state chaneged flags</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51249/state-chaneged-flags</link><description>from SDK 3.1 for thread and zigbee in simple coap server 
 
 after any time it go to disabled mode and no response 
 
 what means the flags? why is it disabled and do not response? 
 
 &amp;lt;info&amp;gt; app: State changed! Flags: 0x02002044 Current role: 1 
 
 Thanks</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Sep 2019 13:50:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51249/state-chaneged-flags" /><item><title>RE: state chaneged flags</title><link>https://devzone.nordicsemi.com/thread/209662?ContentTypeID=1</link><pubDate>Fri, 13 Sep 2019 13:50:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69122133-78fc-431a-8831-3755c8589ebf</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi Fran,&lt;/p&gt;
&lt;p&gt;Could you send me the code for each of your nodes? I have made this case private so you can share your code. I was not able to reproduce the issue using the simple_coap_server and ncp example out of the box with our DKs. Have you done any modification to the examples?&lt;/p&gt;
&lt;p&gt;And can you explain more in detail what do you mean when you say the nodes stop responding? What is the state of the LED0? Are you able to connect using the CLI interface? What happens if you press reset after the node gets detached from the network? Do they reconnect or not?&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: state chaneged flags</title><link>https://devzone.nordicsemi.com/thread/208307?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2019 16:45:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26ee2a2e-cf35-471c-b503-cd6c42da5105</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi Fran,&lt;/p&gt;
&lt;p&gt;The &lt;span&gt;OT_CHANGED_THREAD_NETIF_STATE&lt;/span&gt; flag does not give us much information, is just mean that the Thread network interface goes down. Sorry for the late answer here. I want to try to see if I can reproduce the issue at my end. I will let you know when I have new information.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: state chaneged flags</title><link>https://devzone.nordicsemi.com/thread/208007?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2019 14:55:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1214da2-997a-46bd-acf4-2d437beff491</guid><dc:creator>František</dc:creator><description>&lt;p&gt;I am using BT840 module&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: state chaneged flags</title><link>https://devzone.nordicsemi.com/thread/207394?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2019 12:17:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa99c154-2965-40ad-bdcd-f9c5be5373c8</guid><dc:creator>František</dc:creator><description>&lt;p&gt;from RTT viewer:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;ERROR: Failed to read RTT data. Disconnecting.&lt;/p&gt;
&lt;p&gt;LOG: RTT Viewer disconnected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: state chaneged flags</title><link>https://devzone.nordicsemi.com/thread/207341?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2019 09:58:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f34b709-309d-46fa-9cde-318c49dcb744</guid><dc:creator>František</dc:creator><description>&lt;p&gt;I use 6 nodes. One of them is NCP.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If&amp;nbsp;I create thread network and time passes, some nodes go to this state.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Time is cca 5min - 1hour.&lt;/p&gt;
&lt;p&gt;Usually 1-4 nodes form 5 (except NCP) go to&amp;nbsp;&lt;span&gt;OT_CHANGED_THREAD_NETIF_STATE&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Why is called function&amp;nbsp;&lt;a href="https://github.com/openthread/openthread/blob/04896eadeebb1c3a306d889bb937a33bb08dd614/src/core/thread/thread_netif.cpp#L143"&gt;ThreadNetif::Down(void)&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Is any way to wake up node which is in&amp;nbsp;&lt;span&gt;OT_CHANGED_THREAD_NETIF_STATE ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;messages from debuger :&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;lt;info&amp;gt; app: Thread version: OPENTHREAD/20180926-00632-g2279ef61; NRF52840; May 23 2019 20:44:20 &lt;br /&gt;&amp;lt;info&amp;gt; app: Network name: OpenThread &lt;br /&gt;&amp;lt;info&amp;gt; app: Thread interface has been enabled. &lt;br /&gt;&amp;lt;info&amp;gt; app: 802.15.4 Channel : 11 &lt;br /&gt;&amp;lt;info&amp;gt; app: 802.15.4 PAN ID : 0xABCD &lt;br /&gt;&amp;lt;info&amp;gt; app: Radio mode: : rx-on-when-idle &lt;br /&gt;&amp;lt;info&amp;gt; app: State changed! Flags: 0x047F133D Current role: 1 &lt;br /&gt; &lt;br /&gt;&amp;lt;info&amp;gt; app: State changed! Flags: 0x00000040 Current role: 1 &lt;br /&gt; &lt;br /&gt;&amp;lt;info&amp;gt; app: State changed! Flags: 0x020012A4 Current role: 2 &lt;br /&gt; &lt;br /&gt;&amp;lt;info&amp;gt; app: State changed! Flags: 0x00000064 Current role: 3 &lt;br /&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(cca 30 min without activity)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;&amp;lt;info&amp;gt; app: State changed! Flags: 0x02002044 Current role: 1 &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: state chaneged flags</title><link>https://devzone.nordicsemi.com/thread/205684?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2019 15:57:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1c7ea77-0961-4b66-9572-4b211efee587</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi Frantisek,&lt;/p&gt;
&lt;p&gt;If you do a search in the code inside thread_simple_coap_server example you will see that the NRF_LOG module will print &amp;quot;State changed! Flags: 0x%08x Current role: %d\r\n&amp;quot; inside the thread_state_changed_callback function in main.c. The device role retrieve from &lt;a href="https://github.com/openthread/openthread/blob/5d09ce7124be70edc9b635ca9b8670979dbe9835/include/openthread/thread.h#L574"&gt;otThreadGetDeviceRole&lt;/a&gt;(). Role 1 means the node is &amp;quot;&lt;a href="https://github.com/openthread/openthread/blob/5d09ce7124be70edc9b635ca9b8670979dbe9835/include/openthread/thread.h#L65"&gt;detached&lt;/a&gt;&amp;quot;, and the device is not currently participating in the Thread network.&lt;/p&gt;
&lt;p&gt;The flags that are passed as part of otStateChangedCallback to thread_state_changed_callback_set() are found &lt;a href="https://github.com/openthread/openthread/blob/c14cc609628065ecc9a8ae9bada32949d28df5cd/include/openthread/instance.h#L119"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You can see the bits are set with flag 0x02002044 are:&lt;/p&gt;
&lt;p&gt;OT_CHANGED_THREAD_ROLE&lt;/p&gt;
&lt;p&gt;OT_CHANGED_THREAD_RLOC_REMOVED&lt;/p&gt;
&lt;p&gt;OT_CHANGED_IP6_MULTICAST_UNSUBSRCRIBED&lt;/p&gt;
&lt;p&gt;OT_CHANGED_THREAD_NETIF_STATE&lt;/p&gt;
&lt;p&gt;The last one means that the Thread network interface state have changed and &lt;a href="https://github.com/openthread/openthread/blob/04896eadeebb1c3a306d889bb937a33bb08dd614/src/core/thread/thread_netif.cpp#L143"&gt;ThreadNetif::Down(void)&lt;/a&gt; has been called.&lt;/p&gt;
&lt;p&gt;Can you post all the logs from the RTT terminal and steps to reproduce the issue? Also how many nodes do you have and what exactly did you do before this happened?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>