<?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>using kernel timer to wake do something a few times a day</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46962/using-kernel-timer-to-wake-do-something-a-few-times-a-day</link><description>Hi, 
 I need my NRF9160 to do some task multiple times a day. 
 i.e. 
 in 8:25, 9:40,12:30,... 
 each day. 
 would it be considered good practice to use kernel timers to for each times (as stated above) , with a 24 hour time period? 
 is there a limit</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 11 May 2019 04:13:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46962/using-kernel-timer-to-wake-do-something-a-few-times-a-day" /><item><title>RE: using kernel timer to wake do something a few times a day</title><link>https://devzone.nordicsemi.com/thread/186489?ContentTypeID=1</link><pubDate>Sat, 11 May 2019 04:13:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83c25780-5ce5-4a40-bc5f-e2091d883128</guid><dc:creator>rkguy</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/male"&gt;Martin Lesund&lt;/a&gt;can you please clarify? Are you suggestion to use PSM both for putting the modem into low power between commination intervals and for putting the arm in low power now until the next sampling event? I thought PSM would not be as battery efficient as a timer because I thought it didn&amp;#39;t turn off hardware, other than the modem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using kernel timer to wake do something a few times a day</title><link>https://devzone.nordicsemi.com/thread/186287?ContentTypeID=1</link><pubDate>Fri, 10 May 2019 07:03:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa2452e4-1d4c-4af2-811f-46ca63b92104</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Moshe,&lt;/p&gt;
&lt;p&gt;Sounds good, then I would recommend looking into the Power Saving Mode (PSM) for the LTE communication.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-8acdc94afe294092a048eb5452924ea6/pastedimage1557471773505v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;(&lt;a href="https://www.nordicsemi.com/Products/Low-power-cellular-IoT" rel="noopener noreferrer" target="_blank"&gt;ref&lt;/a&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using kernel timer to wake do something a few times a day</title><link>https://devzone.nordicsemi.com/thread/186258?ContentTypeID=1</link><pubDate>Thu, 09 May 2019 17:33:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f18935e2-a899-40d5-8a18-422f4069b6e0</guid><dc:creator>MosheSmartAmr</dc:creator><description>&lt;p&gt;Hi Martin,&lt;/p&gt;
&lt;p&gt;Thanks for your answer.&lt;/p&gt;
&lt;p&gt;the tasks are to read sensor data and sent them over LTE.&lt;/p&gt;
&lt;p&gt;They do not require high precision&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using kernel timer to wake do something a few times a day</title><link>https://devzone.nordicsemi.com/thread/186187?ContentTypeID=1</link><pubDate>Thu, 09 May 2019 12:38:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9294410-76e3-4500-addc-90678aff88ad</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Moshe,&lt;br /&gt;What are this &amp;quot;tasks&amp;quot;?&lt;br /&gt;Sending data via LTE or just reading sensor data ?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/kernel/timing/timers.html" rel="noopener noreferrer" target="_blank"&gt;Here is some extracts from the&lt;span&gt;&amp;nbsp;&lt;/span&gt;Timer documentation&lt;/a&gt;.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/kernel/timing/clocks.html#id7"&gt;Suggested Uses&lt;/a&gt;&lt;a title="Permalink to this headline" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/kernel/timing/clocks.html#suggested-uses"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Use services based on the system clock for time-based processing that does not require high precision, such as&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/kernel/timing/timers.html#timers-v2"&gt;&lt;span&gt;timer objects&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;or&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/kernel/threads/index.html#thread-sleeping"&gt;&lt;span&gt;Thread Sleeping&lt;/span&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Use services based on the hardware clock for time-based processing that requires higher precision than the system clock can provide, such as&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/kernel/threads/index.html#busy-waiting"&gt;&lt;span&gt;Busy Waiting&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;or fine-grained time measurements.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;:&amp;nbsp;&lt;span&gt;The high frequency of the hardware clock, combined with its 32-bit size, means that counter rollover must be taken into account when taking high-precision measurements over an extended period of time.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using kernel timer to wake do something a few times a day</title><link>https://devzone.nordicsemi.com/thread/185805?ContentTypeID=1</link><pubDate>Tue, 07 May 2019 19:11:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d78e467-9afd-4c91-a0a1-821a30b052d0</guid><dc:creator>MosheSmartAmr</dc:creator><description>&lt;p&gt;Anyone, please &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>