<?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>how to wake up from deep sleep mode using button long press</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112782/how-to-wake-up-from-deep-sleep-mode-using-button-long-press</link><description>Hello everyone, 
 in one of my project i have to implement button functionalities. using single button, I have to put device into OFF mode and also wake up from OFF mode. i need to perform this two operations with button long press for 5 seconds. 
 that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Jul 2024 15:27:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112782/how-to-wake-up-from-deep-sleep-mode-using-button-long-press" /><item><title>RE: how to wake up from deep sleep mode using button long press</title><link>https://devzone.nordicsemi.com/thread/493682?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2024 15:27:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4eef0f8-10c7-41a5-b0e7-de9191fc595b</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;#define LONG_PRESS_TIMEOUT K_SECONDS(); This defines how long&amp;nbsp;&lt;/span&gt;&lt;/span&gt;you need to press the button for it to register as a &amp;quot;long press&amp;quot;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can try to set the value 5. Putting the value 5 means you need to hold down the button for 5s.&lt;/p&gt;
&lt;p&gt;Regarding waking up from deep sleep,&lt;/p&gt;
&lt;p&gt;The device can be put into System OFF mode using the POWER register interface. When in System OFF mode, the device can be woken up through one of the following signals:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The DETECT signal, optionally generated by the GPIO peripheral&lt;/li&gt;
&lt;li&gt;The ANADETECT signal, optionally generated by the LPCOMP module&lt;/li&gt;
&lt;li&gt;The SENSE signal, optionally generated by the NFC module to “wake-on-field”&lt;/li&gt;
&lt;li&gt;A reset&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;you can look at this case&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/102057/deep-sleep-mode-and-wake-up-standby-mode-on-button-press-and-run-in-normal-mode-nrf9160"&gt;(+) Deep Sleep Mode and wake Up(standby mode) on Button press and run in normal mode (nRF9160) - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone (nordicsemi.com)&lt;/a&gt;&amp;nbsp;and this one for nRF5 SDK&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/111347/current-consumption-in-deep-sleep-mode-when-the-voltage-goes-below-1-5v-current-starts-peaking-to-300-a"&gt;(+) Current Consumption in deep sleep mode: when the voltage goes below 1.5V current starts peaking to 300µA. - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone (nordicsemi.com)&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to wake up from deep sleep mode using button long press</title><link>https://devzone.nordicsemi.com/thread/492952?ContentTypeID=1</link><pubDate>Tue, 09 Jul 2024 12:06:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15b865c4-586a-4f9a-8e9b-ba03aacb6e1f</guid><dc:creator>srinivasa m</dc:creator><description>&lt;p&gt;Hi Kazi,&lt;/p&gt;
&lt;p&gt;Thanks for your response, my concern is how to wake up the device from deep sleep mode by long press for 5 seconds.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;kindly share any logic&amp;nbsp; or any code to wake up from deep sleep mode&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;regards,&lt;/p&gt;
&lt;p&gt;Srinivasa M&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to wake up from deep sleep mode using button long press</title><link>https://devzone.nordicsemi.com/thread/492775?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2024 15:14:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7442e47f-bc06-4fec-be51-73c407251a13</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;span&gt;Srinivasa,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can look at this sample of long press button which shows how to implement long press for buttons.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/martelmy/NCS_examples/blob/main/peripherals/long_press_button/src/main.c"&gt;NCS_examples/peripherals/long_press_button/src/main.c at main · martelmy/NCS_examples · GitHub&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;kazi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>