<?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>RTC calendar</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/129/rtc-calendar</link><description>Hi,
I need a RTC calendar ble stack on nrf51822 .
(turn on the RTC0 on ble stack and get the count, how to setting the rtc wakeup ) 
 which calendar need follow :
track of the time (hours, minutes and seconds) and date (day, week,month, year) 
 i</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Aug 2014 11:02:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/129/rtc-calendar" /><item><title>RE: RTC calendar</title><link>https://devzone.nordicsemi.com/thread/698?ContentTypeID=1</link><pubDate>Thu, 07 Aug 2014 11:02:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:217c64cd-f6d1-4fcd-abba-b163785ff286</guid><dc:creator>Ivan G&amp;#243;mez</dc:creator><description>&lt;p&gt;Hi, I&amp;#39;m trying to get a timestamp based in a RTC calendar, but I don&amp;#39;t understand very good how to manage the timers, interruptions and all this staff. Is there any example recommended in order to understand it? I purchased the nRF51822 BLUETOOTH SMART BEACON KIT, so I don&amp;#39;t have more example than the one included to show de iBeacon behavior, so any help will be very welcome. I tried using strftime to get the timestamp, and I actually get it but the days behave like seconds almost... they pass really fast, so the seconds are like usecs. Regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC calendar</title><link>https://devzone.nordicsemi.com/thread/697?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2013 11:50:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65592f0a-ed65-40d4-8dbf-ff4669419a0f</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Note; the app_timer is a library that is softdevice-compatible, but it does not store softdevice events.
This library will only run the events setup to use the RTC TICK in your application.&lt;/p&gt;
&lt;p&gt;The MAX_TIMERS define will set how many instances you can have called through the app_timer library, meaning battery_handler, hrm_handler, or other handlers that you may have in your application.&lt;/p&gt;
&lt;p&gt;The OP_QUEUE_SIZE will give you how many of these pending events that you can have queued up at the time. However, this does not mean that you will have many events queued up, as this is application specific. The app_timer library runs in interrupt priority low, on both RTC and software interrupt, so they cannot interrupt each other.
If you have other IRQ-sources running on same priority, which consume more time, then you can build up queue-size.&lt;/p&gt;
&lt;p&gt;If you have a situation where your queue size is eaten up, you will get a NRF_ERROR_NO_MEM back&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC calendar</title><link>https://devzone.nordicsemi.com/thread/693?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2013 22:30:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ff8303f-ba67-4c05-bc5e-cb26931c7aaf</guid><dc:creator>cocoa</dc:creator><description>&lt;p&gt;Thank you, but I&amp;#39;ve not so sure to have understood .
Supposing that there are ten events that want to start a timer , OP_QUEUES_SIZE = 10, MAZ_TIMER= 1, softdevice will store all events in a queue, but if the events will be 11, the queue will be corrupted ? (Will be raised an exception or an assert?)
Again, with a max timer = 10 and a queue = 11, the 12th event will raise a corruption if all 10 timers are working and nobody of them can accept the 12th event ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC calendar</title><link>https://devzone.nordicsemi.com/thread/696?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2013 07:41:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b4055e0-3451-4e7c-9122-3ac2afd9834d</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Forgot to mention; The latter define is application specific and based on the timing of all of your running tasks, and if you are using scheduler or not. You will have to run tests and see what number works for your application&lt;/p&gt;
&lt;p&gt;-H&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC calendar</title><link>https://devzone.nordicsemi.com/thread/695?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2013 07:39:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c83c518-7db0-4d9b-a3f8-ddf718584d49</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;First of I have to say that I have &lt;em&gt;no experience&lt;/em&gt; with objc (I&amp;#39;m more of a firmware guy), so I cannot comment on that.&lt;/p&gt;
&lt;p&gt;Most of the ble_* examples uses app_timer, mostly without scheduler.
&amp;quot;ble_app_template&amp;quot; uses the scheduler, and is more or less a empty shell. Look at that project, and how HRM sets it up to see the difference.&lt;/p&gt;
&lt;p&gt;The &amp;quot;OP_QUEUE_SIZE&amp;quot; defines how many operations you can have queued. Lets say you have a situation where you get events are are queueing up (starting a one-time timer) then this define says how many you can have queued before corruption will happen.&lt;/p&gt;
&lt;p&gt;BR
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC calendar</title><link>https://devzone.nordicsemi.com/thread/694?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2013 19:33:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eff74bb8-b905-4cb6-b1cf-c8ff4cdfacc8</guid><dc:creator>cocoa</dc:creator><description>&lt;p&gt;Hi Håkon,
seizing upon the answer, I would ask you how exactly is , in APP_TIMER_INIT macro, the OP_QUEUES_SIZE parameter.
Is a timer operation  like a ObjC block passed to a thread ?
How can I set the right size for it ?
Can you show me an example ? (best if with and without Scheduler)&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;-cocoa&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC calendar</title><link>https://devzone.nordicsemi.com/thread/692?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2013 08:30:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:196e08a6-f516-4322-a472-1455bdc49624</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Steven,&lt;/p&gt;
&lt;p&gt;This can be achieved by using the app_timer library.
If you have alook at any of the ble-examples, all of these use the app_timer library.
What you need to adjust is this define:
#define APP_TIMER_MAX_TIMERS&lt;/p&gt;
&lt;p&gt;This define must be equal or greater to the amount of times &amp;quot;app_timer_create&amp;quot; function is called.
If this is not done, the library will not allocate the sufficient amount of RAM to run the added timer function.
You create like this:
app_timer_create(&amp;amp;m_my_timer_id, APP_TIMER_MODE_REPEATED, my_timeout_handler);&lt;/p&gt;
&lt;p&gt;my_timeout_handler is your RTC timer function which is called based on the interval that you set when starting this.&lt;/p&gt;
&lt;p&gt;You start the timer by running this function:
app_timer_start(m_my_timer_id, INTERVAL, NULL);&lt;/p&gt;
&lt;p&gt;For storing information to flash, you can use one of these libraries:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;ble_flash&lt;/li&gt;
&lt;li&gt;nrf_nvmc&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best regards
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>