<?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 RTC in Mesh Application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50397/using-rtc-in-mesh-application</link><description>Hi, 
 I&amp;#39;m trying to implement a slow timer which is supposed to be triggered about every 30 minutes or even less frequent, but I&amp;#39;m kind of clueless how to solve this issue. 
 
 I tried implementing the app_timer first, as described in this post: https</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Aug 2019 12:15:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50397/using-rtc-in-mesh-application" /><item><title>RE: Using RTC in Mesh Application</title><link>https://devzone.nordicsemi.com/thread/205886?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2019 12:15:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbae3d04-2d87-4ac4-861d-8b8c4d145f51</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry about the very long delay here.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It seems that you are on the right track here.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Depending on what you are looking for specifically, you can find most of the clock settings in the sdk_config file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also,&amp;nbsp;mesh_init() -&amp;gt;&amp;nbsp;&amp;nbsp;.core.lfclksrc = DEV_BOARD_LF_CLK_CFG,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/**&lt;br /&gt; * Clock configuration for Nordic development boards.&lt;br /&gt; */&lt;br /&gt;&lt;em&gt;#if defined(S110)&lt;/em&gt;&lt;br /&gt;&lt;em&gt; #define DEV_BOARD_LF_CLK_CFG NRF_CLOCK_LFCLKSRC_XTAL_20_PPM&lt;/em&gt;&lt;br /&gt;#elif NRF_SD_BLE_API_VERSION &amp;gt;= 5&lt;br /&gt; #define DEV_BOARD_LF_CLK_CFG { \&lt;br /&gt; .source = NRF_SDH_CLOCK_LF_SRC, \&lt;br /&gt; .rc_ctiv = NRF_SDH_CLOCK_LF_RC_CTIV, \&lt;br /&gt; .rc_temp_ctiv = NRF_SDH_CLOCK_LF_RC_TEMP_CTIV, \&lt;br /&gt; .accuracy = NRF_SDH_CLOCK_LF_ACCURACY \&lt;br /&gt; }&lt;br /&gt;&lt;em&gt;#else&lt;/em&gt;&lt;br /&gt;&lt;em&gt; #define DEV_BOARD_LF_CLK_CFG { \&lt;/em&gt;&lt;br /&gt;&lt;em&gt; .source = NRF_CLOCK_LF_SRC_XTAL, \&lt;/em&gt;&lt;br /&gt;&lt;em&gt; .rc_ctiv = 0, \&lt;/em&gt;&lt;br /&gt;&lt;em&gt; .rc_temp_ctiv = 0, \&lt;/em&gt;&lt;br /&gt;&lt;em&gt; .xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM \&lt;/em&gt;&lt;br /&gt;&lt;em&gt; }&lt;/em&gt;&lt;br /&gt;&lt;em&gt;#endif&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Heiner"]Unless the Mesh Team strongly recommends it, I would probably try to finish the prototype before migrating to the new SDK version.[/quote]
&lt;p&gt;&amp;nbsp;nRF5 SDK for Mesh v.3.2.0 is&lt;span&gt;&amp;nbsp;a minor feature release. It adds Friend feature support, the RSSI monitoring model, support for nRF5 SDK v15.3.0, significant changes to the DFU documentation, and fixes to several bugs.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can take a look at the release notes, and see if any of the changes to the SDK is vital for your application. If not, you should be fine using v.3.1.0.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&amp;nbsp;&lt;br /&gt;Joakim.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTC in Mesh Application</title><link>https://devzone.nordicsemi.com/thread/205394?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2019 19:38:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba2f458d-b0fd-4cae-a748-f2f61aa0cd5d</guid><dc:creator>Heiner</dc:creator><description>&lt;p&gt;Hi Joakim,&lt;/p&gt;
&lt;p&gt;apparently I had to use &lt;strong&gt;nrf_drv_rtc_counter_clear&amp;nbsp;&lt;/strong&gt;and &lt;strong&gt;nrf_drv_rtc_cc_set&lt;/strong&gt;&amp;nbsp;after each compare event.&lt;/p&gt;
&lt;p&gt;The compare timer did not trigger again, because it disables itself after the first use (described in this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/8772/rtc-nrf51-sdk-example-matches-compare0-only-once" rel="noopener noreferrer" target="_blank"&gt;thread&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;I&amp;#39;m also using instance #2 of the rtc, because it seems like the other instances are in use.&lt;/p&gt;
&lt;p&gt;This might explain, why &lt;strong&gt;lfclk_config&lt;/strong&gt; did not work. Most likely it has already been configured elsewhere in the code.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Anyways I&amp;#39;m still not quite happy, because I don&amp;#39;t really understand what&amp;#39;s going on and where the clock is configured in this example.&lt;/p&gt;
&lt;p&gt;If it&amp;#39;s possible, could you maybe point me to where the clock configuration of the mesh example is described?&lt;/p&gt;
&lt;p&gt;It would be great to know, so I can calculate the correct compare value instead of just trying.&lt;/p&gt;
&lt;p&gt;Also, it might be easier to understand what parameters I can change, without messing up some other part of the code.&lt;/p&gt;
[quote userid="20690" url="~/f/nordic-q-a/50397/using-rtc-in-mesh-application/202182"]Note that we just released the latest version on the nRF5 SDK for Mesh (v.3.2.0)[/quote]
&lt;p&gt;I also took&amp;nbsp;a look into the new SDK version, but on a first sight&amp;nbsp;the example does not seem to be build much different than it was in the v.3.1.0 version.&lt;/p&gt;
&lt;p&gt;Unless the Mesh Team strongly recommends it, I would probably try to finish the prototype before migrating to the new SDK version.&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;Heiner&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTC in Mesh Application</title><link>https://devzone.nordicsemi.com/thread/202182?ContentTypeID=1</link><pubDate>Fri, 02 Aug 2019 13:46:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8dcba03-2a54-4e6d-91e9-3080c7e58d53</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Thank you!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll take a closer look and get back to you.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note that we just released the latest version on the nRF5 SDK for Mesh (v.3.2.0)&lt;/p&gt;
&lt;p&gt;Best regards,&amp;nbsp;&lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTC in Mesh Application</title><link>https://devzone.nordicsemi.com/thread/202176?ContentTypeID=1</link><pubDate>Fri, 02 Aug 2019 13:41:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11dbeb3f-4782-4c9d-87c8-a688c8d1334b</guid><dc:creator>Heiner</dc:creator><description>&lt;p&gt;Hi Joakim,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m currently using Version 3.1.0&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heiner&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTC in Mesh Application</title><link>https://devzone.nordicsemi.com/thread/202170?ContentTypeID=1</link><pubDate>Fri, 02 Aug 2019 13:30:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:addea6ed-4190-486d-8ef1-5a41c7830c50</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi Heiner.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Just a quick question before starting to look closer into this;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which version of the nRF5 SDK for Mesh are you working with?&lt;/p&gt;
&lt;p&gt;Best regards,&amp;nbsp;&lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>