<?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>BLE Peripheral restarts after 3 minutes when not connected to any device via BLE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73997/ble-peripheral-restarts-after-3-minutes-when-not-connected-to-any-device-via-ble</link><description>Hi Nordic, 
 
 my BLE peripheral with the nrf52840 and sdk 15.3 with s140 restarts if not connected after 180s. I assume that the reason is the .config.ble_adv_fast_timeout parameter but if i set this ne to 0, application does not start with an ble_advertising_start</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 09 Jul 2021 11:16:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73997/ble-peripheral-restarts-after-3-minutes-when-not-connected-to-any-device-via-ble" /><item><title>RE: BLE Peripheral restarts after 3 minutes when not connected to any device via BLE</title><link>https://devzone.nordicsemi.com/thread/319340?ContentTypeID=1</link><pubDate>Fri, 09 Jul 2021 11:16:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0c15bcc-33eb-43d0-a116-e65af6a86fcd</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;That could be an alternate.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Peripheral restarts after 3 minutes when not connected to any device via BLE</title><link>https://devzone.nordicsemi.com/thread/318131?ContentTypeID=1</link><pubDate>Thu, 01 Jul 2021 09:25:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05acaf61-f535-4e88-948b-9096dae376df</guid><dc:creator>User1321</dc:creator><description>&lt;p&gt;Unfortunatelly, while using the SDK 15.3, when using both&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt; init.advdata.flags = BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE;&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;or&lt;/p&gt;
&lt;p&gt;&lt;em&gt;init.advdata.flags&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In both cases, the peripheral stops advertising after some minutes, the only thing that i found to work there is to start again the advertising while receiving the&amp;nbsp;&lt;strong&gt;BLE_ADV_EVT_IDLE&lt;/strong&gt; event.&amp;nbsp; Is this a wrong approach?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Peripheral restarts after 3 minutes when not connected to any device via BLE</title><link>https://devzone.nordicsemi.com/thread/305076?ContentTypeID=1</link><pubDate>Thu, 15 Apr 2021 11:48:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bf22af7-5ad8-48f9-b26f-6c010715c12c</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Since you&amp;#39;ve set BLE_GAP_ADV_FLAG_LE_LIMITED_DISC_MODE, the maximum advertising timeout allowed will be 180 seconds.&amp;nbsp;&lt;/span&gt;&lt;span&gt;If you change this to BLE_GAP_ADV_FLAG_LE_GENERAL_DISC_MODE it will be unlimited, and you can set the ble_adv_fast_timeout_set to 0 to let it advertise without a timeout.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>