<?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>Rigado BMD-340 - NRF52840 BLE + OpenThread sleep mode - current consumption</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52429/rigado-bmd-340---nrf52840-ble-openthread-sleep-mode---current-consumption</link><description>We are developping an application using an NRF52840, Based on nRF5 SDK for Thread and Zigbee V3.0.0 
 Running S140 softdevice 
 We are using BLE advertizements and Openthread communication. 
 
 In the main loop, there are 2 lines for OpenThread communication</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 30 Sep 2019 11:31:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52429/rigado-bmd-340---nrf52840-ble-openthread-sleep-mode---current-consumption" /><item><title>RE: Rigado BMD-340 - NRF52840 BLE + OpenThread sleep mode - current consumption</title><link>https://devzone.nordicsemi.com/thread/212543?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2019 11:31:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e2c992a-2a9e-4cc4-a7ae-a30434e949d6</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;How are you going to sleep mode by the way? You say that you&amp;nbsp;&lt;em&gt;also&lt;/em&gt;&amp;nbsp;tried using thread_sleep(); but how have you been going to sleep in the other instances? I dug a bit in the code and found that thread_soft_deinit(); just disables the OpenThread library, and is generally used as part of a deinit function. For example like this (from examples\thread\CLI):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void thread_instance_finalize(void)
{
    bsp_thread_deinit(thread_ot_instance_get());
    thread_soft_deinit();
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Maybe try the sleep and deinit functions as described there to see if that helps.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rigado BMD-340 - NRF52840 BLE + OpenThread sleep mode - current consumption</title><link>https://devzone.nordicsemi.com/thread/212411?ContentTypeID=1</link><pubDate>Sun, 29 Sep 2019 18:51:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7a6ef18-8c3d-4e16-94e8-119f5d926d5f</guid><dc:creator>VECA_LV</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Thank you for your inputs.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As a test case, I init a thread instance, immediatly followed by either a soft deinit of a real deinit&lt;/p&gt;
&lt;p&gt;When I do this in the mainloop, nothing more on thread calls&lt;/p&gt;
&lt;p&gt;thread_instance_init();&lt;/p&gt;
&lt;p&gt;thread_soft_deinit();&lt;/p&gt;
&lt;p&gt;Nothing happens&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When I do this in the mainloop, nothing more on thread calls&lt;/p&gt;
&lt;p&gt;thread_instance_init();&lt;/p&gt;
&lt;p&gt;thread_deinit();&lt;/p&gt;
&lt;p&gt;The processor resets&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In the second case, you would expect the thread instance getting initialized and deinitialized, but a reset is the result.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Any thoughts?&lt;/p&gt;
&lt;p&gt;BLE stack is initialized, thread is initialized, but thread_deinit(); call crahses the system&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rigado BMD-340 - NRF52840 BLE + OpenThread sleep mode - current consumption</title><link>https://devzone.nordicsemi.com/thread/211955?ContentTypeID=1</link><pubDate>Thu, 26 Sep 2019 07:16:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe10d39a-4d5a-460e-b4c7-08db55adaf7f</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;You can check out the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_tz_v3.2.0%2Fthread_cli_example.html&amp;amp;cp=5_3_2_10_4_1"&gt;Thread CLI Example&lt;/a&gt;&lt;span&gt;&amp;nbsp;for how to deinitialize the Thread stack using thread_soft_deinit(), and the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_tz_v3.2.0%2Fthread_multi_switched_template_example.html&amp;amp;cp=5_3_2_10_3_0_1"&gt;BLE and Thread Template Example&lt;/a&gt; for how to deinitialize using thread_deinit(). I believe these also demonstrate how the utility calls are used as well.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rigado BMD-340 - NRF52840 BLE + OpenThread sleep mode - current consumption</title><link>https://devzone.nordicsemi.com/thread/211875?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2019 14:25:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bf6401e-d607-45bb-8e3f-f9b48182f8b4</guid><dc:creator>VECA_LV</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;I tried adding these calls in the mainloop, before going to sleep:&lt;/p&gt;
&lt;p&gt;thread_soft_deinit() did not change the current consumption&lt;/p&gt;
&lt;p&gt;thread_deinit() triggered a fatal error.&lt;/p&gt;
&lt;p&gt;I tried various scenarios with these 2 calls, with no success.&lt;/p&gt;
&lt;p&gt;Once the OpenThread is initialized, I can&amp;#39;t turn it off dynamically.&lt;/p&gt;
&lt;p&gt;Any further inputs or help?&lt;/p&gt;
&lt;p&gt;Is there an example I could refer to for dynamically enabling/disabling OpenThread?&lt;/p&gt;
&lt;p&gt;I also tried to get thread_sleep(), but that has no effect.&lt;/p&gt;
&lt;p&gt;Reading that it is advised to use the thread utility calls to handle init, deinit and sleep, how can this be done?&lt;/p&gt;
&lt;p&gt;Thank you for the help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rigado BMD-340 - NRF52840 BLE + OpenThread sleep mode - current consumption</title><link>https://devzone.nordicsemi.com/thread/211190?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2019 10:40:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:606cd420-8ce3-4d4c-96e2-6ba073569ee9</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t tested these myself, but try calling thread_deinit() or thread_soft_deinit() (both defined in thread_utils.c) before going to sleep, as I think these should deinit should effectively disable Thread and notably lower the current consumption.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>