<?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>Wake up from deep sleep and make a specific button action with nrf52 on thread</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86033/wake-up-from-deep-sleep-and-make-a-specific-button-action-with-nrf52-on-thread</link><description>Hey, 
 I want to build something like a door sensor. So my device should sleep and if the button is pressed it should wake up and send a message to the leader via thread. I am using two nRF52480 DK. 
 I am struggling with different Problems 
 1)with using</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 25 Mar 2022 13:45:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86033/wake-up-from-deep-sleep-and-make-a-specific-button-action-with-nrf52-on-thread" /><item><title>RE: Wake up from deep sleep and make a specific button action with nrf52 on thread</title><link>https://devzone.nordicsemi.com/thread/360028?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 13:45:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a39bf04f-ecb2-42e4-9d5f-922c728ae00a</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Good luck with rebuilding your project!&lt;br /&gt;It is sometimes the easiest solution after all.&lt;/p&gt;
&lt;p&gt;I will close this ticket, but feel free to open a new one if you encounter issues with your new code&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wake up from deep sleep and make a specific button action with nrf52 on thread</title><link>https://devzone.nordicsemi.com/thread/359409?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2022 14:32:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54a5ac50-3f5e-4afb-b9d3-0ed8a3e5dc58</guid><dc:creator>Verena</dc:creator><description>&lt;p&gt;I just rebuild a complete different code and throw this shitty code away.&amp;nbsp;&lt;br /&gt;But thank you very much for your help!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wake up from deep sleep and make a specific button action with nrf52 on thread</title><link>https://devzone.nordicsemi.com/thread/359362?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2022 12:30:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33d86d7d-3c71-4fd3-baba-3cc753861835</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;To avoid misunderstandings, I would like to make sure which SDK is used. &lt;br /&gt;Are you using the &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/nrf-connect-sdk-and-nrf5-sdk-statement"&gt;nRF5 SDK or the nRF Connect SDK&lt;/a&gt;?&lt;br /&gt;Which version are you using of the relevant SDK? &lt;br /&gt;(For example &amp;quot;nRF5 SDK 17.1.0&amp;quot; or &amp;quot;nRF Connect SDK v1.9.1&amp;quot;)&lt;/p&gt;
[quote user="Verena"]I don&amp;#39;t know there to configure it as a SED. Is there any example code?[/quote]
&lt;p&gt;This question depends on SDK.&lt;/p&gt;
[quote user="Verena"]I am already using NRF_LOG_PROCESS == false, but it is shutting down before everything is on the command line.&amp;nbsp;[/quote]
&lt;p&gt;Try to use the debugging feature in Segger Embedded Studio. This might give insight into your issue with the crash.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wake up from deep sleep and make a specific button action with nrf52 on thread</title><link>https://devzone.nordicsemi.com/thread/359307?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2022 09:08:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19a3651a-e20f-4e75-b739-be3be84d7b31</guid><dc:creator>Verena</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;sorry for the shitty code formation.&amp;nbsp; I am using no nrf connect sdk at the moment. I am running the code on windows in Segger Embedded Studio. My device is at least configured as mtd, but&amp;nbsp; I don&amp;#39;t know there to configure it as a SED. Is there any example code?&lt;br /&gt;the high energy consumption is around 11 mA. If it is in the shutdown mode the energy consumption ist 4 uA.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I am already using NRF_LOG_PROCESS == false, but it is shutting down before everything is on the command line.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wake up from deep sleep and make a specific button action with nrf52 on thread</title><link>https://devzone.nordicsemi.com/thread/359134?ContentTypeID=1</link><pubDate>Mon, 21 Mar 2022 12:59:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d13bf34-0b6d-4425-be2f-6935bd8c3546</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Verena&lt;/p&gt;
[quote user=""]1)with using thread_sleep() the sending and receiving of the data is working, but the energy consumption is very high. So instead&amp;nbsp;I tried to use nrf_pwr_mgmt_shutdown(NRF_PWR_MGMT_SHUTDOWN_GOTO_SYSOFF). The power consumption is good, but if I am pressing a button the system is just reseting and the action of the button is not exeecuted. How can I implement the button event?[/quote]
&lt;p&gt;Which version of the SDK are you using?&lt;/p&gt;
&lt;p&gt;Is your Thread device configured as a Sleepy End Device?&lt;/p&gt;
&lt;p&gt;You say &amp;quot;he energy consumption is very high&amp;quot;. Can you give specific numbers?&lt;/p&gt;
[quote user=""]the shutdown is executed before everything is printed on the terminal. How can I prevent this?[/quote]
&lt;p&gt;Try to use &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/group__nrf__log__ctrl.html#gaea4ee51a39f70f14ad2e3213fa497ade"&gt;NRF_LOG_PROCESS()&lt;/a&gt;. &lt;br /&gt;If you struggle to catch all the steps before the crash, I can also recommend using the debugging functionality.&lt;/p&gt;
&lt;p&gt;PS: In DevZone, we have functionality for adding code in formatted form. &lt;br /&gt;This will make it easier to work with the tickets, so I recommend that you use next time you want to share your code. See Insert-&amp;gt; Code.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>