<?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>Deep sleep mode.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72356/deep-sleep-mode</link><description>Hi, 
 We have created an application with BLE multi peripheral where I have to put my chip into deep sleep mode by long pressing the tactile button &amp;amp; also I have to wake it up by long pressing the same tactile button. could you please guide me to achieve</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Mar 2021 09:40:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72356/deep-sleep-mode" /><item><title>RE: Deep sleep mode.</title><link>https://devzone.nordicsemi.com/thread/299699?ContentTypeID=1</link><pubDate>Mon, 15 Mar 2021 09:40:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30e1a2e6-1549-4e59-84ea-4958787905e9</guid><dc:creator>Roshan Prajapati</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes I have checked the bsp_event_handler() function and I have found the function for deep sleep. But, thing is I am struggling to achieve the long press button event and also I can&amp;#39;t able to find this long press event in bsp_event_handler(). Thing is I have already used the app_button_init() along with debounce time to achieve the long push for different button but i guess the app_button_init() can be used only once in our application. am i right? I am not sure about this. please, help me to achieve the long press button event to call the deep sleep function and Thank you for your previous inputs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deep sleep mode.</title><link>https://devzone.nordicsemi.com/thread/299525?ContentTypeID=1</link><pubDate>Fri, 12 Mar 2021 15:24:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0842e4ed-196f-45f3-ad72-a231e3ae4563</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Have you checked the function&amp;nbsp;&lt;span&gt;bsp_event_handler() ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deep sleep mode.</title><link>https://devzone.nordicsemi.com/thread/299383?ContentTypeID=1</link><pubDate>Fri, 12 Mar 2021 07:01:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:769eb899-8317-4f2a-9e42-9eb8c71f6301</guid><dc:creator>Roshan Prajapati</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Hung Bui,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have explored the&amp;nbsp;ble_app_hrs example. But thing is I am trying to achieve&amp;nbsp;the sleep and wake up in our &lt;strong&gt;Custom board &lt;/strong&gt;(application used - ble_app_multiperipheral)&amp;nbsp;which is having only &lt;strong&gt;one tactile button.&lt;/strong&gt; I want to implement the deep sleep mode in my custom board by long pressing the tactile button and again I want to wake up the chip using same tactile button. please suggest me the best way to achieve this.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deep sleep mode.</title><link>https://devzone.nordicsemi.com/thread/298264?ContentTypeID=1</link><pubDate>Mon, 08 Mar 2021 08:30:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a66e77f5-5853-4bd8-9fa5-afd4a64ecb21</guid><dc:creator>Roshan Prajapati</dc:creator><description>&lt;p&gt;Hi Hung Bui,&lt;/p&gt;
&lt;p&gt;Thank you for the reply. I will do check on the examples which you have mentioned. If any other further queries I will post in the same case.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deep sleep mode.</title><link>https://devzone.nordicsemi.com/thread/298175?ContentTypeID=1</link><pubDate>Fri, 05 Mar 2021 16:41:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ce20a12-4715-4545-a69a-b434db5ea0f6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Roshan,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How familiar you are with our nRF5 SDK ?&amp;nbsp;&lt;br /&gt;In the SDK we provide you a bsp library that can handle button press.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For example if you have a look at the ble_app_hrs example, you can find the&amp;nbsp;bsp_event_handler() where if you quick press button 0 (on the nRF52 DK) the device will enter sleep mode (deep sleep).&amp;nbsp;&lt;br /&gt;and if you long press the same button it will do Disconnection if it&amp;#39;s in a connection.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can modify that handle so that when you long press a button it enter deep sleep mode instead.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regarding waking up, you can find in&amp;nbsp;sleep_mode_enter() how it&amp;#39;s prepared before enter sleep mode so that you can wake the chip up with a button. However it always wakes up with an interrupt (button press) doesn&amp;#39;t matter if it&amp;#39;s long press or short press. You would need to implement in your code so that if it wakes up from a button press, it would start a timer and if the button is released before a period of time (short press) the chip will enter sleep mode again. And if it&amp;#39;s longer than a certain time, it will boot up normally. This we don&amp;#39;t have yet and you would need to implement.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>