<?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>Uart example stops blinking after a while</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29675/uart-example-stops-blinking-after-a-while</link><description>I was testing ble_app_uart with my nRF51 DK and gcc compiler on Mac OX. Everything went fine. But after blinking for about 1 minute, the light that was supposed to be blinking remained on and stops blinking. This is a rather small problem but it concerns</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Jan 2018 05:03:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29675/uart-example-stops-blinking-after-a-while" /><item><title>RE: Uart example stops blinking after a while</title><link>https://devzone.nordicsemi.com/thread/117795?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2018 05:03:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a70bda0c-c094-40d5-92f2-0146c3337395</guid><dc:creator>Sivaguru Ravi</dc:creator><description>&lt;p&gt;Hi Oli,&lt;/p&gt;
&lt;p&gt;If You can see the #defines there is a line  &amp;quot;&lt;strong&gt;#define APP_ADV_TIMEOUT_IN_SECONDS      180&lt;/strong&gt;&amp;quot;
which is used in &lt;strong&gt;line 480&lt;/strong&gt; in the example code to set &amp;quot;&lt;strong&gt;options.ble_adv_fast_timeout&lt;/strong&gt;&amp;quot;. You have to set this parameter as &amp;quot;&lt;strong&gt;0&lt;/strong&gt;&amp;quot; to disable the advt timeout as in this case after 180 secs the advt will stop.&lt;/p&gt;
&lt;p&gt;but in the example &lt;strong&gt;line 471&lt;/strong&gt; you can see you can see that the adv.flag parameter has been set as &amp;quot;&lt;strong&gt;advdata.flags              = BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE;&lt;/strong&gt;&amp;quot;. In this mode you cannot set &amp;quot;&lt;strong&gt;options.ble_adv_fast_timeout&lt;/strong&gt;&amp;quot; as 0 which is not permitted. As in any limited mode of advertising there has to be a time out value greater than 0.&lt;/p&gt;
&lt;p&gt;So you have set the &lt;strong&gt;advdata.flags&lt;/strong&gt; parameter to a &lt;strong&gt;general&lt;/strong&gt; advertising mode like &amp;quot;&lt;strong&gt;BLE_GAP_ADV_FLAG_LE_GENERAL_DISC_MODE&lt;/strong&gt;&amp;quot; so that you can set the &lt;strong&gt;options.ble_adv_fast_timeout&lt;/strong&gt; paramater to &lt;strong&gt;0&lt;/strong&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Uart example stops blinking after a while</title><link>https://devzone.nordicsemi.com/thread/117794?ContentTypeID=1</link><pubDate>Mon, 22 Jan 2018 21:08:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5ee3630-895a-4a58-a33a-964e8741381f</guid><dc:creator>venerley</dc:creator><description>&lt;p&gt;Hi Oli, is this before connecting? if so then it might be that your device is going to sleep after the &lt;code&gt;APP_ADV_TIMEOUT_IN_SECONDS&lt;/code&gt; interval? (used to set &lt;code&gt;options.ble_adv_fast_timeout&lt;/code&gt;)
If so then set this value to 0 and it will not sleep and will just keep advertising.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>