<?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 Restart advertising after timeout?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4818/how-to-restart-advertising-after-timeout</link><description>Hi.
For my application, i want to do a battery saver profile.
I need to send one advertising package every 30second.
So now i do this by setting 
 #define ADV_TIMEOUT_IN_SECONDS 5
#define ADV_INTERVAL_IN_MS 10000 
 
 and by setting a WDT that reset</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Dec 2014 10:02:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4818/how-to-restart-advertising-after-timeout" /><item><title>RE: how to Restart advertising after timeout?</title><link>https://devzone.nordicsemi.com/thread/17046?ContentTypeID=1</link><pubDate>Thu, 18 Dec 2014 10:02:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db2a224b-d1ae-4522-bbac-6acc535ec1e2</guid><dc:creator>Giovanni</dc:creator><description>&lt;p&gt;I try the method with application timer that call to sd_ble_gap_adv_start, but after one day of job the system go in tilt, and the advertising shut down. the current consumption increases dramatically and this decay my coin cell battery.
my start code is this
&lt;a href="https://github.com/NordicSemiconductor/nrf51-ble-app-temp"&gt;github.com/.../nrf51-ble-app-temp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;where i change&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define ADV_TIMEOUT_IN_SECONDS          5
#define ADV_INTERVAL_IN_MS              10000
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and add the call at new timer.
i remove the old timer with the advdata_udate&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to Restart advertising after timeout?</title><link>https://devzone.nordicsemi.com/thread/17045?ContentTypeID=1</link><pubDate>Tue, 16 Dec 2014 20:48:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43c1fb12-a03f-4611-8929-e1d37cb5a278</guid><dc:creator>Giovanni</dc:creator><description>&lt;p&gt;the smallest as possible
Thanks for your reply&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to Restart advertising after timeout?</title><link>https://devzone.nordicsemi.com/thread/17043?ContentTypeID=1</link><pubDate>Tue, 16 Dec 2014 20:45:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4828c17-a2f6-43e9-80a7-c3b260546aee</guid><dc:creator>Giovanni</dc:creator><description>&lt;p&gt;Thanks.
Now i try this&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to Restart advertising after timeout?</title><link>https://devzone.nordicsemi.com/thread/17044?ContentTypeID=1</link><pubDate>Mon, 15 Dec 2014 16:02:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01d321dc-db56-4061-a5dc-797aeca81dae</guid><dc:creator>Jason</dc:creator><description>&lt;p&gt;How many power consumption your need (your limited)? you may just need to use the adv. start/stop with a timer, and don&amp;#39;t need to reset your device.&lt;/p&gt;
&lt;p&gt;Or, reference our RTOS framework with tickless technology:
&lt;a href="https://github.com/ucxpresso/nano51822"&gt;github.com/.../nano51822&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to Restart advertising after timeout?</title><link>https://devzone.nordicsemi.com/thread/17042?ContentTypeID=1</link><pubDate>Mon, 15 Dec 2014 14:57:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecb5a75c-1920-49c4-9981-1f815c377455</guid><dc:creator>John</dc:creator><description>&lt;p&gt;I understand that the limitation of the advertising interval to 0x4000 (10.24 seconds) means you can&amp;#39;t just set the interval to 30 seconds. However, you could have the advertising timeout like you do, but have a 30 second application timer that would trigger another call to sd_ble_gap_adv_start for you. Then you could avoid the forced reset.&lt;/p&gt;
&lt;p&gt;Take a look at the timer library documentation in the SDK documentation, it is in the Libraries section. Also look at app_timer.c.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>