<?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>Is advertising timeout max value 65535 on SDK 15?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39879/is-advertising-timeout-max-value-65535-on-sdk-15</link><description>Hi. 
 I am using nRF52840 &amp;amp; SDK 15.0.0. 
 I set the advertising slow timeout to 14 min, But, the advertising stops at about 3 min. 
 The followings is summary of advertising settings. 
 &amp;gt; ble_advertising_init_t init; &amp;gt; init.config.ble_adv_slow_timeout</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 08 Apr 2020 14:44:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39879/is-advertising-timeout-max-value-65535-on-sdk-15" /><item><title>RE: Is advertising timeout max value 65535 on SDK 15?</title><link>https://devzone.nordicsemi.com/thread/244111?ContentTypeID=1</link><pubDate>Wed, 08 Apr 2020 14:44:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f20f28b-2e12-4748-8525-be8d25777cec</guid><dc:creator>GT</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;Is this bug resolved? I would like to have a advertising timout after disconnect to be 30min. How can I achieve this?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Gautham&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is advertising timeout max value 65535 on SDK 15?</title><link>https://devzone.nordicsemi.com/thread/155255?ContentTypeID=1</link><pubDate>Wed, 31 Oct 2018 06:24:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9002e26e-e415-4f89-9b23-0e3996d472da</guid><dc:creator>masataka hasegawa</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;OK, understood.&lt;br /&gt;We use&amp;nbsp;&lt;span&gt;BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MOD.&lt;br /&gt;and We will change the product spec (advertising timeout to 10min).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks,&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is advertising timeout max value 65535 on SDK 15?</title><link>https://devzone.nordicsemi.com/thread/155177?ContentTypeID=1</link><pubDate>Tue, 30 Oct 2018 14:42:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ab2d4fa-048c-4c26-bb82-a53a0a221d77</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;hello,&lt;/p&gt;
&lt;p&gt;I see. I did some testing now. If you use&amp;nbsp;BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE, the advertising timeout is limited to 180 seconds. If you use&amp;nbsp;BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE you can extend the time, but as it is now, the timeout is limited to 16 bits (65535 units), as you say.&lt;/p&gt;
&lt;p&gt;If you need a longer timeout, e.g. 14 minutes, you can use advertising timeout = 0 (never time out), and then use a separate timer to stop the advertisements manually.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is advertising timeout max value 65535 on SDK 15?</title><link>https://devzone.nordicsemi.com/thread/154972?ContentTypeID=1</link><pubDate>Tue, 30 Oct 2018 01:13:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:facb0df3-af49-4a59-87fc-92ea00696f73</guid><dc:creator>masataka hasegawa</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;Thank you for answer,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;p_adv_params-&amp;gt;duration(uint16_t) is set by&amp;nbsp;set_adv_mode_slow().&lt;br /&gt;&lt;/span&gt;&lt;span&gt;set_adv_mode_slow() is called from&amp;nbsp;ble_advertising_start().&lt;br /&gt;The SDK set slow duration value to&amp;nbsp;&lt;/span&gt;p_advertising-&amp;gt;adv_params by&amp;nbsp;&lt;span&gt;set_adv_mode_slow().&lt;br /&gt;&lt;/span&gt;Finally,&amp;nbsp;&lt;span&gt;p_advertising-&amp;gt;adv_params (struct) is set Softdevice directly by&amp;nbsp;sd_ble_gap_adv_set_configure().&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So, you mean that the fixing needs to modified both the SDK and the Softdevice.&amp;nbsp;&lt;br /&gt;Is this correct?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is advertising timeout max value 65535 on SDK 15?</title><link>https://devzone.nordicsemi.com/thread/154800?ContentTypeID=1</link><pubDate>Mon, 29 Oct 2018 08:12:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2975898-3b49-4a33-b106-20bda639d963</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You seem to be right. The p_adv_params-&amp;gt;duration is a uint16_t. I believe that this is a bug, but let me report it to the our SDK team, and see if there is a reason for why it is done like this.&lt;/p&gt;
&lt;p&gt;I will keep you updated when I hear something.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In the meantime, I don&amp;#39;t see any problems with changing p_adv_params-&amp;gt;duration to be a uint32_t variable instead of uint16_t. The project compiles, and the device advertises, so you can assume that this will work, and as I said, I will keep you updated when I hear something from the SDK team.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>