<?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>NRF52840 Thread example power down 10 mins after USB disconnect</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24897/nrf52840-thread-example-power-down-10-mins-after-usb-disconnect</link><description>Hello, 
 I am trying the Thread Cloud COAP Client 
 
 &amp;lt;InstallFolder&amp;gt;\examples\thread\experimental\cloud_coap_client 
 
 on a NRF52840 PDK. I&amp;#39;m using Thread SDK v0.10.0. The example works as described. 
 However, when I unplug the board from USB</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Sep 2017 06:44:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24897/nrf52840-thread-example-power-down-10-mins-after-usb-disconnect" /><item><title>RE: NRF52840 Thread example power down 10 mins after USB disconnect</title><link>https://devzone.nordicsemi.com/thread/98033?ContentTypeID=1</link><pubDate>Wed, 13 Sep 2017 06:44:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04e1e8e0-4ca9-4b20-a7b0-b80ae938bcb1</guid><dc:creator>Robert Lubos</dc:creator><description>&lt;p&gt;I meant DFU example from Thread SDK. You can find it in &amp;lt;INSTALL_FOLDER&amp;gt;\examples\thread\experimental\dfu\client. It uses a copy of IOT CoAP, ported for OpenThread, which is located in &amp;lt;INSTALL_FOLDER&amp;gt;\examples\thread\experimental\dfu\coap. The example itself does not use observe feature though, but you can check the documentation to see how to use it. Optionally, there is an example in IOT SDK (Observer Client) that uses observer feature, so you can use is as a reference for CoAP code. Keep in mind though that IOT SDK examples does not use Thread.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Thread example power down 10 mins after USB disconnect</title><link>https://devzone.nordicsemi.com/thread/98032?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 16:02:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2167b632-664e-464a-8197-cc1350f7df2c</guid><dc:creator>meetandyhere</dc:creator><description>&lt;p&gt;Thanks for clarifying that. I couldn&amp;#39;t find any DFU example in the IOT SDK. The only place i found it was &amp;lt;INSTALL_FOLDER&amp;gt;\examples\iot\tftp\dfu. In the normal SDK, there is a dfu example but no IOT CoAP. Did you mean this example ? &amp;lt;INSTALL_FOLDER&amp;gt;\examples\iot\coap\ipv6\client_observe ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Thread example power down 10 mins after USB disconnect</title><link>https://devzone.nordicsemi.com/thread/98037?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 15:43:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0adc49b-4ca8-4935-ad21-4d8c43d27903</guid><dc:creator>meetandyhere</dc:creator><description>&lt;p&gt;Setting poll period to 500 ms after just after sending DNS request solved it! Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Thread example power down 10 mins after USB disconnect</title><link>https://devzone.nordicsemi.com/thread/98038?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 10:58:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92a33e02-2a10-48e9-9db5-0a7914f399b4</guid><dc:creator>Robert Lubos</dc:creator><description>&lt;p&gt;Hi, my guess is that there is a mismatch between SED data poll period and DNS query timeout. The poll period is a time between consecutive polls for the data from SED to the parent. If the DNS query timeout is lower than the poll period, the query will fail before SED would even attempt to get the response (which will happen for default value of poll period). What you can try to do is to lower the pool period just after sending the DNS request, the same way we do in Thread MTD CoAP Client before sending CoAP requests: &lt;code&gt;otLinkSetPollPeriod(m_app.p_ot_instance, DNS_POLL_PERIOD);&lt;/code&gt;. Just set the DNS_POLL_PERIOD to some reasonable value (default DNS response timeout is 3000 ms, so setting poll period to 500 ms should be fine).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Thread example power down 10 mins after USB disconnect</title><link>https://devzone.nordicsemi.com/thread/98034?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 10:45:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63d6d584-a2b4-4bfe-b100-70e0545a1080</guid><dc:creator>Robert Lubos</dc:creator><description>&lt;p&gt;Hi,
Unforunately the observer feature is not present in OpenThread&amp;#39;s CoAP implementation. Althought there is an API to add &amp;quot;Observe&amp;quot; option to the header, there is no mechanism to handle Observe responses from the server. And just FYI, the &lt;code&gt;aObserve&lt;/code&gt; paramter is the value of the Observe option, For more information about this mechanism, please refer to RFC 7641.
An option to use the Observe mechanism is to use different CoAP implementation, for example the IoT CoAP that we use in the DFU example (you can find it inside DFU example folder in the recent release). Unfortunately there is no Thread example that demonstrates the use of it, but you can refer to the documentation: &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.iotsdk.v0.9.0/lib_iot_coap_addon_observe.html?cp=4_3_0_4_8_1_0."&gt;infocenter.nordicsemi.com/.../lib_iot_coap_addon_observe.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Thread example power down 10 mins after USB disconnect</title><link>https://devzone.nordicsemi.com/thread/98036?ContentTypeID=1</link><pubDate>Fri, 08 Sep 2017 07:37:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fd72f0f-aeea-4821-a93f-7a6e2215db2e</guid><dc:creator>meetandyhere</dc:creator><description>&lt;p&gt;Thanks for the information! So the Cloud COAP client example in the Thread SDK is by default setup to assign router roles to nodes? I saw in the MTD COAP client some lines of code to make a node sleepy end deivce:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; otLinkModeConfig mode;
    memset(&amp;amp;mode, 0, sizeof(mode));
    mode.mRxOnWhenIdle       = false	; // Join network as SED.
    mode.mSecureDataRequests = true;
    assert(otThreadSetLinkMode(p_instance, mode) == OT_ERROR_NONE);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;However, when I try to do this in the Cloud COAP client example, hostname resolution always fails. So I&amp;#39;m assuming that sleepy end devices do not do any hostname resolution themselves, but depend on the router?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Thread example power down 10 mins after USB disconnect</title><link>https://devzone.nordicsemi.com/thread/98035?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2017 21:22:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2de9b6a-0f70-434b-868b-fd3cb0564758</guid><dc:creator>Krzysztof Loska</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thread Routers are not meant to be baterry-powered devices. Routers have their radio turned on and listening all the time when not transmitting. If you need energy optimization you have to use Thread Sleepy End Device role.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://openthread.io"&gt;This new website&lt;/a&gt; is an official place which documents OpenThread project but it also includes very good guides on Thread itself e.g. about &lt;a href="https://openthread.io/guides/thread_primer/node_roles_and_types"&gt;node roles and types&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Thread example power down 10 mins after USB disconnect</title><link>https://devzone.nordicsemi.com/thread/98023?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2017 09:22:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e616bde-5a30-47e5-b87e-540dd814a06f</guid><dc:creator>meetandyhere</dc:creator><description>&lt;p&gt;Thanks for checking. An update from my side - I managed to get a bit further in receiving value on the NRF52840. Basically I use &lt;code&gt;otCoapHeaderInit(&amp;amp;header, OT_COAP_TYPE_NON_CONFIRMABLE, OT_COAP_CODE_GET);&lt;/code&gt; to create a message and send that using &lt;code&gt;otCoapSendRequest(p_instance, p_request, &amp;amp;message_info, cloud_data_request_callback, p_instance);&lt;/code&gt;. Here, cloud_data_request_callback is the callback function that is executed when the cloud responds with data. I execute this on Button press 3, which works, the cloud returns the JSON string for the requested resource. However, this is the NRF52 kind of polling. Instead, I would like the callback function to be executed when the value on the cloud is changed. For that, I checked and saw there is an &amp;quot;observor&amp;quot; option that can be set using &lt;code&gt;otCoapHeaderAppendObserveOption&lt;/code&gt;. In this function, I don&amp;#39;t understand the second parameter &lt;code&gt;aObserve Observe field value.&lt;/code&gt; I tried various values but they don&amp;#39;t work. So it would be great if you could check with the developers about this issue!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Thread example power down 10 mins after USB disconnect</title><link>https://devzone.nordicsemi.com/thread/98031?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2017 09:06:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34d2f25e-f7df-4259-936b-57948793ae65</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m not aware of such an example. I&amp;#39;m not sure if it is trivial or not. If you want me to, I can check with the developers if they see any problem with implementing a &amp;quot;cloud coap server&amp;quot;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Thread example power down 10 mins after USB disconnect</title><link>https://devzone.nordicsemi.com/thread/98027?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2017 14:46:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a96af4e-2617-4a15-b462-7d589bf711ce</guid><dc:creator>meetandyhere</dc:creator><description>&lt;p&gt;Thanks, I&amp;#39;ll have a look at that! Can I ask another question about the same Thread Cloud Coap client example? Basically, the example sends data to thethings.io cloud when I press button 1 and 2. I now want to establish communication in the other direction. So, have a button widget in the things dashboard which when pressed sends a value to the NRF52840. Could you tell me if there is some example available about how to do this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Thread example power down 10 mins after USB disconnect</title><link>https://devzone.nordicsemi.com/thread/98026?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2017 14:41:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10b44ded-bac9-4bdc-aa1a-8fc3e8061fb8</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I haven&amp;#39;t actually tried myself, but the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.threadsdk.v0.10.0/thread_client_server_example.html?cp=4_2_0_2_5"&gt;Thread MTD CoAP Client example&lt;/a&gt; should be of interest.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Thread example power down 10 mins after USB disconnect</title><link>https://devzone.nordicsemi.com/thread/98025?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2017 14:38:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:931aec26-0532-4379-a586-c8f088513dff</guid><dc:creator>meetandyhere</dc:creator><description>&lt;p&gt;Right now the roles are automatically assigned. I have a network of three NRF52840s, where one of them is a NCP attached to Raspberry Pi and the others are nodes. When a node is joined, I can see in the Thread Topology Manager that it is a end node initially, but after a few seconds becomes a router. Making the node a sleepy end device is a good idea - could you tell me how I can force a node to become a sleepy end device? Some changes in the code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Thread example power down 10 mins after USB disconnect</title><link>https://devzone.nordicsemi.com/thread/98024?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2017 13:49:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0858b2f4-7141-446d-9d5e-c984b444f649</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Strange. Could it be that you are draining too much current from the battery, but I&amp;#39;m not sure if there is anything special happening after 10 minutes. Is it exactly ten minutes? Have you tried to measure the current consumption?&lt;/p&gt;
&lt;p&gt;If the power consumption of the Thread examples are quantified? I&amp;#39;m not sure what you mean by this. The thread router role is not very battery friendly as it is scanning most of the time. If you want to run of a battery you should look into the sleepy end device. Maybe you can use that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Thread example power down 10 mins after USB disconnect</title><link>https://devzone.nordicsemi.com/thread/98030?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2017 12:17:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fb9fbdc-6df8-4180-8615-f398f51dbe17</guid><dc:creator>meetandyhere</dc:creator><description>&lt;p&gt;Yes, I am using the same battery for every test. If the board is connected to USB, it works uninterrupted without any power down. Is the power consumption of Thread examples quantified? We are interested in using Thread for further development, but a big constraint for us is that battery consumption should be minimal. Our use-case is a door sensor which sends door open/close information when this status changes to a cloud application. The Thread Cloud CoAP client seems to be a straightforward solution, but maybe we have to rethink using Thread if it consumes too much power. Could you recommend a non-Thread example which  can achieve the similar Client-Cloud functionality as the Thread example?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Thread example power down 10 mins after USB disconnect</title><link>https://devzone.nordicsemi.com/thread/98029?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2017 12:11:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e33234fd-7636-4bf6-9f1b-3767d8823558</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;And you are using the same battery for every test? And this does not happen after 10 minutes if you power it from USB? Sounds really strange, but I&amp;#39;ll look into it. The Thread examples would be much more power hungry than for example HRM, because it will almost be scanning all the time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Thread example power down 10 mins after USB disconnect</title><link>https://devzone.nordicsemi.com/thread/98028?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2017 12:02:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef585deb-7d19-4a5e-aac7-1d13e67a31d3</guid><dc:creator>meetandyhere</dc:creator><description>&lt;p&gt;The board is powered by a CR2032 battery that came when we purchased the kit. It doesn&amp;#39;t seem a battery issue because the board is powered on and works well for about 10 mins after USB disconnect. After a subsequent USB connect and disconnect, we get the same behavior. So there seems to be some pattern with the 10 min power down behavior. Also, non-Thread BLE examples, e.g. HRM from the SDK v. 13.1 run for much longer than 10 mins on battery. So I was wondering if it is some Thread-specific issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Thread example power down 10 mins after USB disconnect</title><link>https://devzone.nordicsemi.com/thread/98022?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2017 11:25:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f99163f-83c0-4a06-be7e-437d5cae78a3</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;How is the board powered when you unplug it from the USB? Could it be a battery issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>