<?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>Completely disabling sleep mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21413/completely-disabling-sleep-mode</link><description>I am using the ble_app_uart example as my base on a 52832 with sdk 12. My project runs off line power and needs to remain available for connection 24/7. I have commented out BLE_ADV_EVT_IDLE case in on_adv_evt() function and the BSP_EVENT_SLEEP case in</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Nov 2017 13:00:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21413/completely-disabling-sleep-mode" /><item><title>RE: Completely disabling sleep mode</title><link>https://devzone.nordicsemi.com/thread/83959?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2017 13:00:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a93c5211-9d5d-4460-9973-f0ccfb195e16</guid><dc:creator>Rishi</dc:creator><description>&lt;p&gt;Hey, the error was on my part. While debugging, I had commented out the advdata.flags variable. It is fixed now.
Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Completely disabling sleep mode</title><link>https://devzone.nordicsemi.com/thread/83958?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2017 12:50:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8973e67-3e91-4a78-b23a-ad39a601e26f</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;What SDK version and SDK example are you testing ?&lt;/p&gt;
&lt;p&gt;Try debugging and see if you running into the error handler. &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/"&gt;See this post&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Completely disabling sleep mode</title><link>https://devzone.nordicsemi.com/thread/83960?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2017 09:11:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27a6bc7b-9331-4596-b2c1-e217aa2e5f37</guid><dc:creator>Rishi</dc:creator><description>&lt;p&gt;Hey Sigurd,
I did not initially. On setting this value to 0, the board does not advertise anymore.
Again, I have disabled sleep_mode_enter() and removed &lt;strong&gt;BLE_ADV_EVT_IDLE&lt;/strong&gt; case from on_adv_evt(). Also, changed the flag value as discussed above.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Completely disabling sleep mode</title><link>https://devzone.nordicsemi.com/thread/83961?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2017 08:30:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27ce0831-7808-426d-acd4-0352a15a8e95</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi Rishi ,&lt;/p&gt;
&lt;p&gt;Did you set the timeout(&lt;code&gt;APP_ADV_TIMEOUT_IN_SECONDS&lt;/code&gt;) to 0 ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Completely disabling sleep mode</title><link>https://devzone.nordicsemi.com/thread/83957?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2017 05:47:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6677166e-f64f-49e7-9f04-bb659d444af6</guid><dc:creator>Rishi</dc:creator><description>&lt;p&gt;Hey Scott,
I performed the steps discussed here, but I continue to have the same problem you were facing initially.
I have changed&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;advdata.flags              = BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;advdata.flags              = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;in advertisin_init().&lt;/p&gt;
&lt;p&gt;Is there any other change that I am missing?
Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Completely disabling sleep mode</title><link>https://devzone.nordicsemi.com/thread/83956?ContentTypeID=1</link><pubDate>Mon, 17 Apr 2017 19:39:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbcc161d-1f78-4583-8c2d-496dcf94827c</guid><dc:creator>Scott</dc:creator><description>&lt;p&gt;That was it! I completely overlooked the advertising options. Thank you Daniel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Completely disabling sleep mode</title><link>https://devzone.nordicsemi.com/thread/83955?ContentTypeID=1</link><pubDate>Mon, 17 Apr 2017 19:18:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83145cec-483d-4b82-bf0b-666280160c93</guid><dc:creator>Daniel Wang</dc:creator><description>&lt;p&gt;Are you doing unlimited advertising(&lt;code&gt;BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE&lt;/code&gt;) with timeout set  to &lt;code&gt;0&lt;/code&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>