<?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>How to configure advertising time 10 secs on 5 secs off(with rtc)?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25648/how-to-configure-advertising-time-10-secs-on-5-secs-off-with-rtc</link><description>Hello,
I am using sdk12.2.2 and pca10040. I want that my beacon advertises continuously for 10 sec and then it stops advertising for 5 secs. Do I need to use rtc for this?
Also later I want that customer should be able to configure this 5 10sec on timings</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 03 Oct 2017 08:22:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25648/how-to-configure-advertising-time-10-secs-on-5-secs-off-with-rtc" /><item><title>RE: How to configure advertising time 10 secs on 5 secs off(with rtc)?</title><link>https://devzone.nordicsemi.com/thread/101056?ContentTypeID=1</link><pubDate>Tue, 03 Oct 2017 08:22:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1c4374a-7f62-4a2e-8b1b-8d66e03f31e6</guid><dc:creator>shibshab</dc:creator><description>&lt;p&gt;If you use the &lt;code&gt;ble_advertising.c&lt;/code&gt; component, you can use the &lt;code&gt;ble_adv_fast_timeout&lt;/code&gt; or &lt;code&gt;ble_adv_slow_timeout&lt;/code&gt; in the &lt;code&gt;ble_adv_modes_config_t&lt;/code&gt; type for configuring how long the device should advertise every time you invoke &lt;code&gt;ble_adv_start&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;There are similar arguments to be used if you choose to use &lt;code&gt;sd_ble_gap_adv_start&lt;/code&gt; directly.&lt;/p&gt;
&lt;p&gt;Next you could use &lt;code&gt;app_timer.c&lt;/code&gt; to start a timer for a 5 second timer which will let you know when to call &lt;code&gt;sd_ble_gap_adv_start&lt;/code&gt; again.&lt;/p&gt;
&lt;p&gt;As for nrf connect support, you could extend it with a new app (nrf connect is now a framework which supports different apps inside of it) in which you write to a &amp;quot;configure&amp;quot; characteristic of the device, changing the 5 second value to something else.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>