<?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>How to adverting a single one packet and then timeout with latest softdevice s140 6.1.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39045/how-to-adverting-a-single-one-packet-and-then-timeout-with-latest-softdevice-s140-6-1-0</link><description>Hi support team, 
 I&amp;#39;m using sdk 15.0 and softdevice s140_nrf52_6.1.0 and nrf52840. 
 My application has strict requirements on power consumption, so I have to set advertising interval to larger than 10.24 seconds which is the maximum value of BLE SPEC</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Feb 2020 17:53:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39045/how-to-adverting-a-single-one-packet-and-then-timeout-with-latest-softdevice-s140-6-1-0" /><item><title>RE: How to adverting a single one packet and then timeout with latest softdevice s140 6.1.0</title><link>https://devzone.nordicsemi.com/thread/232415?ContentTypeID=1</link><pubDate>Mon, 03 Feb 2020 17:53:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0457c5c-34f1-4e74-a2f4-f491a266ac1f</guid><dc:creator>stecla</dc:creator><description>&lt;p&gt;Could you please share your code? I have a similar issue and would love to have a look for inspiration &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to adverting a single one packet and then timeout with latest softdevice s140 6.1.0</title><link>https://devzone.nordicsemi.com/thread/152215?ContentTypeID=1</link><pubDate>Tue, 09 Oct 2018 12:38:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e81c3635-bd3d-4dc2-a65a-7073a4f2bf3f</guid><dc:creator>Kenneth</dc:creator><description>[quote user="teliu"]Could you please let me know if it was expected or a potential issue?[/quote]
&lt;p&gt;In the 6.1.0 release notes there is an entry: &amp;quot;Fixed an issue where the advertiser could send advertising packets beyond the set advertising duration (DRGN-10069). &amp;quot;&lt;/p&gt;
&lt;p&gt;I guess this is the root cause of what you are seeing&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to adverting a single one packet and then timeout with latest softdevice s140 6.1.0</title><link>https://devzone.nordicsemi.com/thread/152129?ContentTypeID=1</link><pubDate>Tue, 09 Oct 2018 02:19:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f9c948c-a7c4-4c8a-865e-687f7c041d82</guid><dc:creator>Liu Tengfei</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;Good news! I&amp;#39;ve found a pretty better way to achieve my requirement of advertising one time, by setting&amp;nbsp;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;max_adv_evts to 1 in&amp;nbsp;&lt;/span&gt;&lt;/span&gt;ble_gap_adv_params_t before calling&amp;nbsp;sd_ble_gap_adv_set_configure.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;By the way, I found a different behavior between softdevice s140 6.0.0 and 6.1.0. When I set adv duration less than the adv interval, for softdevice 6.0.0, it works well and I could receive both adv packet and the scan response. However, for softdevice 6.1.0, I could only receive adv packet but not be able to receive any scan response. This was actually the reason why I could hardly connect to the peripheral with softdevice 6.1.0 before.&lt;/div&gt;
&lt;div&gt;Could you please let me know if it was expected or a potential issue?&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Thanks,&lt;/div&gt;
&lt;div&gt;Tengfei.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to adverting a single one packet and then timeout with latest softdevice s140 6.1.0</title><link>https://devzone.nordicsemi.com/thread/151585?ContentTypeID=1</link><pubDate>Thu, 04 Oct 2018 07:44:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad5270f9-dcd9-487b-9fc7-2dc5f7f28b3a</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Can you first try this for instance using nRF5 SDKv15.2 and S132v6.1? For instance use hrs or beacon example? If you are not able to make that work I can give it a try here.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to adverting a single one packet and then timeout with latest softdevice s140 6.1.0</title><link>https://devzone.nordicsemi.com/thread/151557?ContentTypeID=1</link><pubDate>Thu, 04 Oct 2018 03:17:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2010f2f1-9c51-42cd-b4ce-415f1b3c3d09</guid><dc:creator>Liu Tengfei</dc:creator><description>[quote userid="2111" url="~/f/nordic-q-a/39045/how-to-adverting-a-single-one-packet-and-then-timeout-with-latest-softdevice-s140-6-1-0/150946"]@sa BLE_GAP_ADV_TIMEOUT_VALUES.&amp;nbsp;@note The SoftDevice will always complete at least one advertising&amp;nbsp;event even if the duration is set too low. */[/quote]
&lt;p&gt;Hi, I believe that softdevice will immediately send a packet after calling advertising start and wait for an interval to send another one if no timeout reached. This worked well in my application with softdevice s140_6.0.0, I set adv interval to 3s and timeout to 1s, my application only advertise one time and then timeout. However, after I upgrade softdevice to 6.1.0, the advertising did not work at all with the same code and config for advertising module. I could even not be able to discover it. Could you help to verify the issue for the new softdevice 6.1.0?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to adverting a single one packet and then timeout with latest softdevice s140 6.1.0</title><link>https://devzone.nordicsemi.com/thread/150946?ContentTypeID=1</link><pubDate>Mon, 01 Oct 2018 11:53:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bd64a94-17d0-411c-8cd3-16cac5d34968</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The longest allowed interval by BLE spec is 10.24 seconds. If you only allow one advertisement channel every 10.24sec by controlling the advertisement mask (ble_gap_ch_mask_t) in adv_params when calling&amp;nbsp;sd_ble_gap_adv_set_configure(), then the average current consumption is very close to the System ON idle current. So not sure how much you will gain by reducing the interval even further. Once you get around ~2uA the life time of even a coin cell battery is&amp;nbsp; more than 10 years.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But to answer your question: I expect in this case that you will need to use radio notification to have full control of when it&amp;#39;s advertising, and thereby you can from the application start and stop advertising as you see fit from an app_timer. The advertisement interval can be set to 10.24sec&amp;nbsp;and duration to for instance 1 second if you only want to advertise 1 time. From the description of duration field in ble_gap_adv_params_t:&lt;/p&gt;
&lt;p&gt;uint16_t duration; /**&amp;lt; Advertising duration in 10 ms units. When timeout is reached, an event of type @ref BLE_GAP_EVT_ADV_SET_TERMINATED is raised.&lt;br /&gt; @sa BLE_GAP_ADV_TIMEOUT_VALUES.&amp;nbsp;@note The SoftDevice will always complete at least one advertising&amp;nbsp;event even if the duration is set too low. */&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>