<?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 scan timeout always in multiple of second</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50386/ble-scan-timeout-always-in-multiple-of-second</link><description>Hi there, 
 I&amp;#39;m developing applications with nRF52840, SoftDevice 6.1.1. Normally the scan timeout is in step of 10 ms. But whichever the value I set between seconds, e.g., 500ms, 1500ms, the actual scan timeout is 1 seconds, 2 seconds and etc. 
 This</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Aug 2019 02:39:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50386/ble-scan-timeout-always-in-multiple-of-second" /><item><title>RE: BLE scan timeout always in multiple of second</title><link>https://devzone.nordicsemi.com/thread/202287?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2019 02:39:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aed4cdd3-f737-47aa-aeca-a7b98b53a84a</guid><dc:creator>guohui</dc:creator><description>&lt;p&gt;Oh, I was wrong with the initial post. I was flashing the SoftDevice 6.0.0. With SoftDevice 6.1.1, this issue disappears. Sorry and thank you for your patience.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scan timeout always in multiple of second</title><link>https://devzone.nordicsemi.com/thread/202284?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2019 02:00:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d621eb91-0c2d-4bcb-b5b0-6a222a331fc8</guid><dc:creator>guohui</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;So I have tried different ways to verify if this is related to our source code or SoftDevice, but the timeout is always align with seconds. Is it possible that some configurations to nRF52840 internal resources might affect the timing of SoftDevice?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scan timeout always in multiple of second</title><link>https://devzone.nordicsemi.com/thread/202099?ContentTypeID=1</link><pubDate>Fri, 02 Aug 2019 10:51:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f83650b-e5e5-4077-9a5a-8eb9b2a8a2bf</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;No, this is a puzzle. I do not believe it is an issue with the SoftDevice itself. I have played around with a central example from SDK 15.3, using S140 version 6.0.1 and using that I have no problem settings can timeouts that are other than whole seconds. Also, this is not an issue&amp;nbsp;I have seen before. I am tempted to believe that it is somehow related to your code.&lt;/p&gt;
&lt;p&gt;Did just suddenly see this issue, or did you see it just recently after some modifications? Could there be a memory corruption of some sort (just a shot in the dark)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scan timeout always in multiple of second</title><link>https://devzone.nordicsemi.com/thread/202023?ContentTypeID=1</link><pubDate>Fri, 02 Aug 2019 06:01:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e34bc3f8-b1db-406c-a627-06aeefb0d297</guid><dc:creator>guohui</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;Do you have any idea so far? Or any suggestion that I can try to figure out whether it is something&amp;nbsp;wrong with my own code or the SoftDevice?&lt;/p&gt;
&lt;p&gt;Thanks a lot!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scan timeout always in multiple of second</title><link>https://devzone.nordicsemi.com/thread/201615?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2019 13:28:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78cd8395-1073-4848-94bd-90e440b54345</guid><dc:creator>guohui</dc:creator><description>&lt;p&gt;&lt;img alt="Scan timeout" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screen-Shot-2019_2D00_07_2D00_31-at-9.23.27-PM.png" /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt="Scan Interval" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screen-Shot-2019_2D00_07_2D00_31-at-9.23.50-PM.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="Scan window" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screen-Shot-2019_2D00_07_2D00_31-at-9.24.09-PM.png" /&gt;&lt;/p&gt;
&lt;p&gt;The above effective parameters are corresponding to the parameters that I set in application, which is:&lt;/p&gt;
&lt;p&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;params.&lt;span&gt;interval&lt;/span&gt; = 32;&lt;/p&gt;
&lt;p&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;params.&lt;span&gt;window&lt;/span&gt; = 16;&lt;/p&gt;
&lt;p&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;params.&lt;span&gt;timeout&lt;/span&gt; = 50;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scan timeout always in multiple of second</title><link>https://devzone.nordicsemi.com/thread/201604?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2019 13:12:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:098c2461-12e5-4de6-86d1-1bfad9c65fd4</guid><dc:creator>guohui</dc:creator><description>&lt;p&gt;Yes. As the log I posted above, the timeout event is generated right in multiple of second.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scan timeout always in multiple of second</title><link>https://devzone.nordicsemi.com/thread/201598?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2019 13:08:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0ebfb09-be42-481f-b4c5-7b45ba5d76ba</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see. Can you compare it with when you get the timeout event from the SoftDevice? Does that happen after a whole second as well?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scan timeout always in multiple of second</title><link>https://devzone.nordicsemi.com/thread/201593?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2019 13:03:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60b15a74-79a3-4296-bcad-9ecdcc48a4bf</guid><dc:creator>guohui</dc:creator><description>&lt;p&gt;By measuring the power consumption during scanning, from the current chart I&amp;nbsp;captured, the scan interval and scan window did align with&amp;nbsp;the value that I set in my application, while the timeout always in multiple of second.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scan timeout always in multiple of second</title><link>https://devzone.nordicsemi.com/thread/201456?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2019 08:55:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d11dcb2-0b73-4710-89a3-38b37609c69b</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This is odd. I don&amp;#39;t see anything that should cause the timeout to be in whole seconds. How have you verified that scanning is in whole seconds? In other words: How do you check how long time the device scans?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scan timeout always in multiple of second</title><link>https://devzone.nordicsemi.com/thread/201221?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 11:46:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28bcb267-a85b-40b6-8c10-6758c4ff0eb3</guid><dc:creator>guohui</dc:creator><description>&lt;p&gt;More code&amp;nbsp;can be found here:&amp;nbsp;&lt;a href="https://github.com/particle-iot/device-os/blob/fix/ble/v1.3.1-rc.1/hal/src/nRF52840/ble_hal.cpp#L1230"&gt;https://github.com/particle-iot/device-os/blob/fix/ble/v1.3.1-rc.1/hal/src/nRF52840/ble_hal.cpp#L1230&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thank you so much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scan timeout always in multiple of second</title><link>https://devzone.nordicsemi.com/thread/201212?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 11:32:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfceaead-8923-4234-b7a8-4162e4f0c4f3</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This is not a limitation of the SoftDevice (BLE stack), so&amp;nbsp;I think we need to see more of your code. It could be for instance that you are doing some integer math that causes this, but that is just a guess without seeing what you are doing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>