<?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>OpenThread Sleepy end device failure</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64526/openthread-sleepy-end-device-failure</link><description>Hello, 
 I am currently running the openthread client example provided in the NCS and I am trying to toggle the client as a sleepy end device. However, in the toggle_minimal_sleepy_end_device() function, otThreadSetLinkMode(instance, mode) returns OT_ERROR_INVALID_ARGS</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Sep 2020 10:19:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64526/openthread-sleepy-end-device-failure" /><item><title>RE: OpenThread Sleepy end device failure</title><link>https://devzone.nordicsemi.com/thread/268250?ContentTypeID=1</link><pubDate>Mon, 07 Sep 2020 10:19:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:340d9adc-c52b-445f-b5fd-fd7ac36e88fa</guid><dc:creator>Amadeus</dc:creator><description>&lt;p&gt;I tried on the latest master branch again, and at it looks like the MTD is entering sleep mode. At least, no mesh link error occurs. However, it is not obvious to me how the poll period and communication with the SED works. I am not able to communicate with the SED with multicast messages, which is sort of expected. My understanding is that the SED needs to poll its parent for data, but I am not aware of how this is done. Do you have any details on this?&lt;/p&gt;
&lt;div style="left:62px;position:absolute;top:79px;" id="gtx-trans"&gt;
&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OpenThread Sleepy end device failure</title><link>https://devzone.nordicsemi.com/thread/267947?ContentTypeID=1</link><pubDate>Fri, 04 Sep 2020 06:34:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52426de1-08f0-463b-9cc3-164f165e9637</guid><dc:creator>Amadeus</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Indeed, it looks like the SED call succeeds on tag v.1.3.0. It still fails the latest release of the master branch. Do you know how the power management is handled for the SED&amp;#39;s on tag v1.3.0 compared to the latest release? The&amp;nbsp;&lt;em&gt;toggle_minimal_sleepy_end_device()&amp;nbsp;&lt;/em&gt;function is updated with power management features on the master branch.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OpenThread Sleepy end device failure</title><link>https://devzone.nordicsemi.com/thread/267254?ContentTypeID=1</link><pubDate>Mon, 31 Aug 2020 13:05:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b3cbf7a-3645-4561-b7c9-4ce02efbdfce</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;So I tested the unmodified coap_client example from NCS, and at first I also saw the &amp;quot;Failed&amp;nbsp;to&amp;nbsp;set&amp;nbsp;MLE&amp;nbsp;link&amp;nbsp;mode&amp;nbsp;configuration&amp;quot;, but I did an nrfjprog --eraseall, and the issue went away.&lt;/p&gt;
&lt;p&gt;Can you please test this? If that doesn&amp;#39;t work, I am running on NCS v1.3.0, can you please test that tag? The master may or may not work, based on when you fetched it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OpenThread Sleepy end device failure</title><link>https://devzone.nordicsemi.com/thread/266373?ContentTypeID=1</link><pubDate>Wed, 26 Aug 2020 07:40:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1abe24a-7846-4d88-89c6-43954f228075</guid><dc:creator>Amadeus</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am using the nRF52840 DK. I call&amp;nbsp;&lt;em&gt;coap_client_toggle_minimal_sleepy_end_device()&amp;nbsp;&lt;/em&gt;with a button press which submits the&amp;nbsp;&lt;em&gt;toggle_MTD_SED_work &lt;/em&gt;struct to the work queue. This struct is bounded to &lt;em&gt;toggle_minimal_sleepy_end_device()&lt;/em&gt;&amp;nbsp;in an init function.&lt;em&gt;&amp;nbsp;&lt;/em&gt;The function is called only once per button click; I have checked this.&lt;/p&gt;
&lt;p&gt;I am using the latest version on the master branch; updated the repo yesterday. Still getting the same error.&lt;/p&gt;
&lt;p&gt;Yes, I can send the project which produces this error. How do we proceed?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OpenThread Sleepy end device failure</title><link>https://devzone.nordicsemi.com/thread/266276?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2020 14:13:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f49f2f6-5523-442b-868d-ddcfe43a3cb1</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I spoke with the our OpenThread team. They say that this seems strange. What HW are you running this on?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Where do you call&amp;nbsp;&lt;em&gt;toggle_minimal_sleepy_end_device()&lt;/em&gt; from? And how often/fast do you call it? In case it is on a button press, may it be that it is being called many times, due to a bounce?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What NCS version are you using? 1.3.0? Is there some way for us to reproduce this on a DK? Is it possible to send a project that will reproduce this?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OpenThread Sleepy end device failure</title><link>https://devzone.nordicsemi.com/thread/264738?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2020 07:01:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40d8937b-5ea0-4ede-bbfd-1814f1fc9007</guid><dc:creator>Amadeus</dc:creator><description>&lt;p&gt;Hello Edvin,&lt;/p&gt;
&lt;p&gt;See attachment below.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/sleepy_5F00_end.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;This function is correctly&amp;nbsp;submitted to the work queue and called when enabling CONFIG_OPENTHREAD_MTD_SED. However, the if statement on line 231 evaluates to &lt;em&gt;true&lt;/em&gt; because&amp;nbsp;&lt;em&gt;otThreadSetLinkMode()&amp;nbsp;&lt;/em&gt;returns&amp;nbsp;&lt;span&gt;OT_ERROR_INVALID_ARGS.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;See attachment below for declaration of&amp;nbsp;&lt;/span&gt;otLinkModeConfig struct returned from&amp;nbsp;&lt;em&gt;otThreadGetLinkMode()&amp;nbsp;&lt;/em&gt;on line 222:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/OtLinkMode.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The fields of this struct&amp;nbsp;are true, false, true, true (1, 0, 1, 1) when passed to&amp;nbsp;&lt;em&gt;otThreadSetLinkMode().&amp;nbsp;&lt;/em&gt;I reckon the third field,&amp;nbsp;&lt;/span&gt;&lt;em&gt;bool&amp;nbsp;mDeviceType,&amp;nbsp;&lt;/em&gt;should be &lt;em&gt;false&lt;/em&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OpenThread Sleepy end device failure</title><link>https://devzone.nordicsemi.com/thread/264004?ContentTypeID=1</link><pubDate>Tue, 11 Aug 2020 10:42:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1efaeb1-fdb8-4c13-82a3-4116e2f4d4e5</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Ernst,&lt;/p&gt;
&lt;p&gt;I am terribly sorry for the late reply. Are you still struggling with this?&lt;/p&gt;
&lt;p&gt;Let me see if I get this right:&lt;/p&gt;
&lt;p&gt;toggle_minimal_sleepy_end_device() returns OT_ERROR_INVALID_ARGS.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]and the booleans in the mode bit field returned from&amp;nbsp;&lt;em&gt;otThreadGetLinkMode(instance)&lt;/em&gt; evaluates to true, false, true, true - respectively. Thus, mode.mDeviceType indicates that the &amp;quot;sender&amp;quot; is an FTD, which i reckon is the problem here.&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;What do you mean by &amp;quot;the sender&amp;quot;? Is this the device that you are trying to put in sleepy end mode? Can you clarify what otThreadGetLinkmode returns? instance is the type otInstance, right?&amp;nbsp;What parameters are &amp;quot;true, false, true, true&amp;quot;?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>