<?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>Advertising interval from Slow to fast without init process</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33983/advertising-interval-from-slow-to-fast-without-init-process</link><description>Hi, 
 I am implementing a beacon solution and intrested to move from fast to slow and vis versa(slow to fast) advertising modes - 
 i.e. BLE_ADV_MODE_FAST &amp;amp; BLE_ADV_MODE_SLOW This is a coincell powered device and the goal for these transitions is to save</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 May 2018 09:29:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33983/advertising-interval-from-slow-to-fast-without-init-process" /><item><title>RE: Advertising interval from Slow to fast without init process</title><link>https://devzone.nordicsemi.com/thread/130772?ContentTypeID=1</link><pubDate>Thu, 03 May 2018 09:29:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fe64b8e-993d-4ccf-b894-31c33357d01f</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Yaniv,&lt;/p&gt;
&lt;p&gt;Please take a look in the &amp;quot;&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Flib_ble_advertising.html&amp;amp;cp=4_0_0_3_2_1" target="_blank" rel="noopener noreferrer"&gt;Advertising Module documentation&lt;/a&gt;&amp;quot;.&lt;/p&gt;
&lt;p&gt;Usually you have advertising go from&amp;nbsp;&amp;nbsp;Fast -&amp;gt; Slow -&amp;gt; Idle.&lt;/p&gt;
&lt;p&gt;Do you only want to change from Fast -&amp;gt; Slow -&amp;gt; Fast -&amp;gt; Slow ? (&lt;em&gt;aka. never enter sleep_mode?)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;If so you could just add that when Slow_adv_timeout runs out you go back to fast_adv in the IDLE case:&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt; switch (ble_adv_evt)
    {
        case BLE_ADV_EVT_FAST:
            err_code = bsp_indication_set(BSP_INDICATE_ADVERTISING);
            APP_ERROR_CHECK(err_code);
						NRF_LOG_INFO(&amp;quot;FAST ADVERTISING&amp;quot;);
            break;
				
				case BLE_ADV_EVT_SLOW:
					err_code = bsp_indication_set(BSP_INDICATE_ADVERTISING_SLOW);
					APP_ERROR_CHECK(err_code);
					NRF_LOG_INFO(&amp;quot;SLOW ADVERTISING&amp;quot;);
				  break;
				
        case BLE_ADV_EVT_IDLE:
					  //NRF_LOG_INFO(&amp;quot;IDLE&amp;quot;);
            //sleep_mode_enter();
						err_code = bsp_indication_set(BSP_INDICATE_ADVERTISING);
            APP_ERROR_CHECK(err_code);
						NRF_LOG_INFO(&amp;quot;FAST ADVERTISING&amp;quot;);
						
            break;
        default:
            break;
    }&lt;/pre&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;nbsp;&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>