<?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>Sample to powersave and wakeup periodicly</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77438/sample-to-powersave-and-wakeup-periodicly</link><description>Hi 
 Im new on nRF9160 and Zephyr. 
 Is there a sample to powersave to lowes current and wakeup every hour very fast?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Jul 2021 21:28:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77438/sample-to-powersave-and-wakeup-periodicly" /><item><title>RE: Sample to powersave and wakeup periodicly</title><link>https://devzone.nordicsemi.com/thread/320114?ContentTypeID=1</link><pubDate>Wed, 14 Jul 2021 21:28:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d1c4d2b-2cdc-4ea3-8e61-fb1be0084efc</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi, basically all examples use this kind of power save &amp;quot;feature&amp;quot;. You can use a timer to set up a periodic task: &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/kernel/timing/timers.html"&gt;http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/kernel/timing/timers.html#&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Zephyr will handle the wakeup and other threads, and put the CPU to sleep when there are no ongoing tasks.&lt;/p&gt;
&lt;p&gt;You can check out the blinky example to get started: &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/basic/blinky/README.html"&gt;http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/basic/blinky/README.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/master/samples/basic/blinky/src/main.c"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/master/samples/basic/blinky/src/main.c&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;It uses a k_sleep function in the main loop to toggle the LEDs, which is another way of setting up periodic tasks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>