<?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>Infinite, slow adversiting?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7344/infinite-slow-adversiting</link><description>I am trying to make my NRF 51 advertise forever till someone connects. I have based myself on the ble_uart example where it uses fast advertising with 40 ms intervals for 180 seconds. 
 Now, I changed to slow advertising with 2000 ms intervals, but BLE_GAP_ADV_TIMEOUT_GENERAL_UNLIMITED</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 May 2015 14:53:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7344/infinite-slow-adversiting" /><item><title>RE: Infinite, slow adversiting?</title><link>https://devzone.nordicsemi.com/thread/26010?ContentTypeID=1</link><pubDate>Fri, 29 May 2015 14:53:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9aa429e1-1d0a-4fc1-859f-ea8a0f7e9dbc</guid><dc:creator>Emil</dc:creator><description>&lt;p&gt;I am a bit confused...&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF51_SDK/nRF51_SDK_v8.x.x/doc/8.1.0/s110/html/a01017.html#ga09100a0666512ed8cd2e600627197254"&gt;developer.nordicsemi.com/.../a01017.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;Unlimited advertising in general discoverable mode.&amp;quot;&lt;/p&gt;
&lt;p&gt;so ble_advdata_t.flags              = BLE_GAP_ADV_FLAG_LE_GENERAL_DISC_MODE;
and ble_adv_modes_config_t.ble_adv_slow_timeout = BLE_GAP_ADV_TIMEOUT_GENERAL_UNLIMITED?&lt;/p&gt;
&lt;p&gt;Where else is it documented?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Infinite, slow adversiting?</title><link>https://devzone.nordicsemi.com/thread/26009?ContentTypeID=1</link><pubDate>Fri, 29 May 2015 14:47:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8315eafa-11dd-4040-8521-ac23e8bfd4ba</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;No the constant is correct - it&amp;#39;s what you put in the ble_gap_adv_params_t structure you pass to advertising start, zero means forever and it&amp;#39;s documented there somewhere. The wrapper library just copies whatever is in the fast_timeout or slow_timeout to the structure when it starts advertising so you&amp;#39;d expect that constant to work the same way with the library. However zero is disallowed and turns advertising off completely for that mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Infinite, slow adversiting?</title><link>https://devzone.nordicsemi.com/thread/26008?ContentTypeID=1</link><pubDate>Fri, 29 May 2015 13:49:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9e155d8-758a-4829-a307-0186bd48ff5f</guid><dc:creator>Emil</dc:creator><description>&lt;p&gt;Also here it doesn&amp;#39;t use the const, but rather a literal &amp;#39;0&amp;#39;. I guess BLE_GAP_ADV_TIMEOUT_GENERAL_UNLIMITED is wrongly named...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Infinite, slow adversiting?</title><link>https://devzone.nordicsemi.com/thread/26007?ContentTypeID=1</link><pubDate>Fri, 29 May 2015 13:47:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5070e4c7-adfe-48ad-83e5-ca5c2875d26e</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;I&amp;#39;ll say one more time (then I&amp;#39;ll shut up about it )&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;if (m_adv_modes_config.ble_adv_fast_interval == 0 || m_adv_modes_config.ble_adv_fast_timeout == 0)
     m_adv_modes_config.ble_adv_fast_enabled = false;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;.. and the same for slow advertising too.&lt;/p&gt;
&lt;p&gt;I get if the interval is zero then the mode should be disabled. I don&amp;#39;t understand why setting the advertising timeout to zero should disable the mode when 0 is BLE_GAP_ADV_TIMEOUT_GENERAL_UNLIMITED.&lt;/p&gt;
&lt;p&gt;I will now shut up about this&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Infinite, slow adversiting?</title><link>https://devzone.nordicsemi.com/thread/26006?ContentTypeID=1</link><pubDate>Fri, 29 May 2015 13:46:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57ac8c74-f4a5-4ffa-980c-817f5d67f200</guid><dc:creator>Emil</dc:creator><description>&lt;p&gt;Cool That answered my first part of the question!&lt;/p&gt;
&lt;p&gt;About restarting advertising in the handler? Yeah if BLE_GAP_ADV_TIMEOUT_GENERAL_UNLIMITED is not really doing what it claims to do (out from the name).&lt;/p&gt;
&lt;p&gt;So, to the 2nd point, I guess disabling fast, and enabling slow, setting it to 2000 ms intervals would lower the power consumption a lot right? And is it a good practice doing this from a temp sensor that would last as long as possible sending data to a PC or a central having an USB dongle?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Also, is this a good practice in general to have something like a temp sensor doing this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Infinite, slow adversiting?</title><link>https://devzone.nordicsemi.com/thread/26005?ContentTypeID=1</link><pubDate>Fri, 29 May 2015 13:41:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb23e472-3cc6-48b2-ad16-30f5db032a6d</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi! There was a &lt;a href="https://devzone.nordicsemi.com/question/39418/infinite-advertising-with-sd-800/?comment=39447#comment-39447"&gt;discussion about this topic yesterday&lt;/a&gt; with some great suggestions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>