<?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>System ON Sleep mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38832/system-on-sleep-mode</link><description>Hi all, 
 In our project we are using nrf52810, SDK 15.0.0 and ble_app_uart.c example. 
 We are using our custom board in which MCU is communicating with BLE through wired UART. 
 we tried to implement Sleep mode in BLE. 
 when we send &amp;quot;sleep\n&amp;quot; string</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 09 Nov 2018 08:01:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38832/system-on-sleep-mode" /><item><title>RE: System ON Sleep mode</title><link>https://devzone.nordicsemi.com/thread/156595?ContentTypeID=1</link><pubDate>Fri, 09 Nov 2018 08:01:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a17c690-d3d1-47b5-aa24-b4c0a7378c82</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;There are two sleep modes on nRF52810, System ON sleep mode and System OFF sleep mode. They are explained in the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52%2Fdita%2Fnrf52%2Fchips%2Fnrf52810_ps.html&amp;amp;cp=2_2_0"&gt;product specification v1.2 (&lt;/a&gt;section 5.3.2 and 5.3.3)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In System ON sleep mode the CPU will wake up on any event. In System OFF sleep mode the CPU can only wake up on GPIO, high value or voltage input crossing a certain value.&lt;br /&gt;&lt;br /&gt;System On sleep mode is the most used one since all peripherals can be active. This sleep mode is entered with the function __WFE() which is short for Wait For Event. However you will often see this code in examples:&lt;br /&gt;&lt;br /&gt;__SEV();&lt;br /&gt;__WFE();&lt;br /&gt;__WFE();&lt;br /&gt;&lt;br /&gt;This is because if the event flag is set when __WFE() is called, the function will clear the event flag and return immediately, therefore not go to sleep. __SEV() (Set EVent flag) sets the event flag, so __SEV() followed by __WFE() will clear the event flag without going to sleep. Then we are sure that in the next __WFE() the CPU will go to sleep. The SoftDevice function sd_app_evt_wait() will do the same as these calls and put the CPU to System ON sleep mode.&lt;br /&gt;&lt;br /&gt;sd_app_evt_wait() or the SEV WFE calls are often done inside the main while loop. After this call we can add code to be executed when the CPU wakes up from an event. You can also run code inside interrupts connected to the event, as these will run when the specific event happens and the system wakes up.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;idle_state_handle() is just a function that calls system on sleep after all advertising is done.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: System ON Sleep mode</title><link>https://devzone.nordicsemi.com/thread/156589?ContentTypeID=1</link><pubDate>Fri, 09 Nov 2018 07:46:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79ce18a6-52e9-4a16-b6d4-922e7a80849b</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;how to wake up the device after sleep mode&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: System ON Sleep mode</title><link>https://devzone.nordicsemi.com/thread/156586?ContentTypeID=1</link><pubDate>Fri, 09 Nov 2018 07:41:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a31ae653-c868-4ef3-b8f9-dbd00d42c9a2</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;hi... please help me, can you explain what is meant by system on sleep mode and idle stata handle&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: System ON Sleep mode</title><link>https://devzone.nordicsemi.com/thread/150385?ContentTypeID=1</link><pubDate>Wed, 26 Sep 2018 07:37:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e3acd56-e4eb-4c67-958f-5690191cb3dd</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi Venu.&lt;/p&gt;
&lt;p&gt;The unmodified &lt;strong&gt;ble_app_uart&lt;/strong&gt; example goes to sleep after all the code above the &lt;strong&gt;for-loop&lt;/strong&gt; is done, as long as you don&amp;#39;t remove &lt;strong&gt;idle_state_handle();&lt;/strong&gt; from the &lt;strong&gt;for-loop&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;idle_state_handle(); will call system ON sleep after all advertising is done.&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: System ON Sleep mode</title><link>https://devzone.nordicsemi.com/thread/150162?ContentTypeID=1</link><pubDate>Tue, 25 Sep 2018 06:57:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f56c6e07-4e1c-4341-801c-ba58c68ee460</guid><dc:creator>venu gopal</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
[quote userid="73423" url="~/f/nordic-q-a/38832/system-on-sleep-mode/150152"]Unless you write sleep, the application will not go to sleep.[/quote]
&lt;p&gt;Can you explain in detail&amp;nbsp;about how to write sleep&amp;nbsp; &amp;nbsp;(I learned from devzone that&amp;nbsp;&lt;strong&gt;sd_app_evt_wait(); &lt;/strong&gt;is enough for System ON Sleep mode , correct me if i&amp;#39;m wrong)&amp;nbsp; and if any sample code is available that will be much helpful..,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Moreover through only Normal UART communication Nordic BLE has to go Sleep (&lt;span&gt;System ON Sleep&lt;/span&gt;) and wakeup&lt;/p&gt;
&lt;p&gt;Is it possible ..............???? If so, please give some suggestion&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: System ON Sleep mode</title><link>https://devzone.nordicsemi.com/thread/150152?ContentTypeID=1</link><pubDate>Tue, 25 Sep 2018 06:32:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08384321-6fc6-465f-a6a8-bc565aeb8eeb</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi Venu.&lt;/p&gt;
&lt;p&gt;Your problem is that your if-sentence is triggered each time you send a string containing sleep, but it jumps out of power management each time you receive an event (this could be anything, like inputs, advertising, softdevice and so on). Unless you write sleep, the application will not go to sleep.&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>