<?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 does not timeout</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40685/ble-scan-does-not-timeout</link><description>I am using NRF 52840 dongle, SoftDevice 3.1 and connectivity firmware 1.2.3. I have a node js application, I am using pc-ble-driver-js 2.4.3. I am testing the application on Windows 10 32-bit. 
 The app starts the scan for 3 seconds every 6 seconds. For</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Jan 2019 12:33:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40685/ble-scan-does-not-timeout" /><item><title>RE: BLE scan does not timeout</title><link>https://devzone.nordicsemi.com/thread/164908?ContentTypeID=1</link><pubDate>Thu, 10 Jan 2019 12:33:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e020cfc-1177-4ee9-8cfc-6dd4cbdd21ea</guid><dc:creator>AmrutaZende</dc:creator><description>&lt;p&gt;Thanks.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scan does not timeout</title><link>https://devzone.nordicsemi.com/thread/164905?ContentTypeID=1</link><pubDate>Thu, 10 Jan 2019 12:31:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b79f8496-29f2-4536-9ac4-d8f324fa5cda</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Unfortunately I do not know the dates, but the team is currently working on updated versions of pc-ble-driver-py. Updated version of pc-ble-driver-js is most likely to come next after that.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scan does not timeout</title><link>https://devzone.nordicsemi.com/thread/164807?ContentTypeID=1</link><pubDate>Thu, 10 Jan 2019 06:14:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9338013-e807-4cf0-a341-3d094d73b063</guid><dc:creator>AmrutaZende</dc:creator><description>&lt;p&gt;Is there any expected date by which pc-ble-driver-js will be available?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scan does not timeout</title><link>https://devzone.nordicsemi.com/thread/164641?ContentTypeID=1</link><pubDate>Wed, 09 Jan 2019 09:05:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37fadb9f-fecf-4b85-94f7-3581a597af9b</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, &lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver/tree/v4.0.0"&gt;pc-ble-driver v4.0.0&lt;/a&gt; is out, but &lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver-js"&gt;pc-ble-driver-js&lt;/a&gt; is not yet updated.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scan does not timeout</title><link>https://devzone.nordicsemi.com/thread/164605?ContentTypeID=1</link><pubDate>Wed, 09 Jan 2019 03:50:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03726436-339a-42b9-82ec-bcbf20f79b0d</guid><dc:creator>AmrutaZende</dc:creator><description>&lt;p&gt;Is this release out yet?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scan does not timeout</title><link>https://devzone.nordicsemi.com/thread/159522?ContentTypeID=1</link><pubDate>Thu, 29 Nov 2018 10:10:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b6d49bf-217d-4de7-a0de-8c313d8b2ce6</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The team responsible for pc-ble-driver and pc-ble-driver-js is notified of the issue, but we have not been able to reproduce this exact issue yet.&lt;/p&gt;
&lt;p&gt;There will be a new release of pc-ble-driver soon, with stability fixes that may also solve this issue. After that there will also be a new release of pc-ble-driver-js, using the new version of pc-ble-driver.&lt;/p&gt;
&lt;p&gt;Unfortunately, for now it seems you need to reset the device when this kind of error state happens.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scan does not timeout</title><link>https://devzone.nordicsemi.com/thread/158409?ContentTypeID=1</link><pubDate>Wed, 21 Nov 2018 12:56:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fcadc77-dd63-4208-bd6c-052dd5bb78b2</guid><dc:creator>AmrutaZende</dc:creator><description>&lt;p class="p1"&gt;This issue can be reproduced using NRF52840 dongle and NRF connect app (latest version 2.6.1) on a Windows 10 machine with 32 bit architecture.&lt;/p&gt;
&lt;p class="p1"&gt;Steps to reproduce.&lt;/p&gt;
&lt;p class="p1"&gt;T = 0 sec: Start scan, advertising devices are listed&lt;/p&gt;
&lt;p class="p1"&gt;T = 3 sec: Stop scan, clear the seen devices&lt;/p&gt;
&lt;p class="p1"&gt;T = 6 sec: Start scan,, advertising devices are listed&lt;/p&gt;
&lt;p class="p1"&gt;T =&amp;nbsp;9 sec: Stop scan, clear the seen devices&lt;/p&gt;
&lt;p class="p1"&gt;T =&amp;nbsp;12 sec: Start scan,, advertising devices are listed&lt;/p&gt;
&lt;p class="p1"&gt;T =&amp;nbsp;15&amp;nbsp;sec: Stop scan, clear the seen devices&lt;/p&gt;
&lt;p class="p1"&gt;T =&amp;nbsp;18 sec: Start scan,, advertising devices are listed&lt;/p&gt;
&lt;p class="p1"&gt;T =&amp;nbsp;21&amp;nbsp;sec: Stop scan, clear the seen devices&lt;/p&gt;
&lt;p class="p1"&gt;...... repeat this&amp;nbsp;for a few minutes .....&lt;/p&gt;
&lt;p class="p1"&gt;leave the device running NRF connect for a few minutes&lt;/p&gt;
&lt;p class="p1"&gt;Repeat the start-scan, stop-scan sequence again. The stop scan will not be responsive at one point of time. Thereafter if you do a start scan/stop scan, you&amp;#39;ll see following error.&lt;/p&gt;
&lt;p class="p1"&gt;Error occurred while starting scan. Errcode: NRF_ERROR_INTERNAL (0x3)&lt;/p&gt;
&lt;p class="p1"&gt;Received status with code 4 Unknown value, message:&amp;#39;Error sending packet to target.&amp;#39;&lt;/p&gt;
&lt;p class="p1"&gt;Find below the log file generated by NRF connect app.&lt;/p&gt;
&lt;p class="p1"&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2018_2D00_11_2D00_20T10_5F00_18_5F00_37.286Z_2D00_log.txt"&gt;devzone.nordicsemi.com/.../2018_2D00_11_2D00_20T10_5F00_18_5F00_37.286Z_2D00_log.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scan does not timeout</title><link>https://devzone.nordicsemi.com/thread/158372?ContentTypeID=1</link><pubDate>Wed, 21 Nov 2018 11:03:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d8df10c-d2a2-4da3-8406-58e1603fc224</guid><dc:creator>Prashant Ambardekar</dc:creator><description>&lt;p&gt;We have seen this issue on another 32 bit Windows 10 machine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scan does not timeout</title><link>https://devzone.nordicsemi.com/thread/158292?ContentTypeID=1</link><pubDate>Wed, 21 Nov 2018 06:38:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da1e10d2-79b7-464e-b6be-0d04ce29308b</guid><dc:creator>Prashant Ambardekar</dc:creator><description>&lt;p&gt;Thanks for looking into this.&lt;/p&gt;
&lt;p&gt;It does not fail at the same time each time. In this state scan stop also fails. I added an event listener for scanTimedOut and here are new logs&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;[2018-11-21 11:43:28.046] [info] Starting BLE scan&lt;br /&gt;[2018-11-21 11:43:31.115] [info] ###NRF_Log: 1: GAP_EVT_TIMEOUT time:2018-11-21T06:13:31.116Z connHandle:65535 src:2 srcName:bleGapTimeoutSrcScan &amp;lt;&amp;lt; This is from logMessage event&lt;br /&gt;[2018-11-21 11:43:31.119] [info] #### Scan timed out &amp;lt;&amp;lt; This is from scanTimedOut event listener&lt;br /&gt;[2018-11-21 11:43:34.275] [info] Starting BLE scan&lt;br /&gt;[2018-11-21 11:43:37.525] [info] ###NRF_Log: 1: GAP_EVT_TIMEOUT time:2018-11-21T06:13:37.527Z connHandle:65535 src:2 srcName:bleGapTimeoutSrcScan&lt;br /&gt;[2018-11-21 11:43:37.525] [info] #### Scan timed out&lt;br /&gt;[2018-11-21 11:43:40.506] [info] Starting BLE scan&lt;br /&gt;[2018-11-21 11:43:43.745] [info] ###NRF_Log: 1: GAP_EVT_TIMEOUT time:2018-11-21T06:13:43.747Z connHandle:65535 src:2 srcName:bleGapTimeoutSrcScan&lt;br /&gt;[2018-11-21 11:43:43.745] [info] #### Scan timed out&lt;br /&gt;[2018-11-21 11:43:46.725] [info] Starting BLE scan&lt;br /&gt;[2018-11-21 11:43:49.795] [info] ###NRF_Log: 1: GAP_EVT_TIMEOUT time:2018-11-21T06:13:49.797Z connHandle:65535 src:2 srcName:bleGapTimeoutSrcScan&lt;br /&gt;[2018-11-21 11:43:49.795] [info] #### Scan timed out&lt;br /&gt;[2018-11-21 11:43:52.995] [info] Starting BLE scan&lt;br /&gt;[2018-11-21 11:43:56.025] [info] ###NRF_Log: 1: GAP_EVT_TIMEOUT time:2018-11-21T06:13:56.027Z connHandle:65535 src:2 srcName:bleGapTimeoutSrcScan&lt;br /&gt;[2018-11-21 11:43:56.025] [info] #### Scan timed out&lt;br /&gt;[2018-11-21 11:43:59.226] [info] Starting BLE scan&lt;br /&gt;[2018-11-21 11:44:02.307] [info] ###NRF_Log: 1: GAP_EVT_TIMEOUT time:2018-11-21T06:14:02.307Z connHandle:65535 src:2 srcName:bleGapTimeoutSrcScan&lt;br /&gt;[2018-11-21 11:44:02.307] [info] #### Scan timed out&lt;br /&gt;[2018-11-21 11:44:05.466] [info] Starting BLE scan&lt;/p&gt;
&lt;p&gt;#### No time out event for above scan. All subsequent start scans fail&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;[2018-11-21 11:44:11.686] [info] Starting BLE scan&lt;br /&gt;[2018-11-21 11:45:26.496] [error] Adapter error: {&lt;br /&gt; &amp;quot;message&amp;quot;: &amp;quot;Error occured when starting scan&amp;quot;,&lt;br /&gt; &amp;quot;description&amp;quot;: {&lt;br /&gt; &amp;quot;errno&amp;quot;: 17,&lt;br /&gt; &amp;quot;errcode&amp;quot;: &amp;quot;NRF_ERROR_BUSY&amp;quot;,&lt;br /&gt; &amp;quot;erroperation&amp;quot;: &amp;quot;starting scan&amp;quot;,&lt;br /&gt; &amp;quot;errmsg&amp;quot;: &amp;quot;Error occured when starting scan. Errorcode: NRF_ERROR_BUSY (0x11)\n&amp;quot;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;In this state, stop scan also fails with error&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;[2018-11-21 11:45:29.696] [info] COMM_BLE: Stopping BLE scan&lt;br /&gt;[2018-11-21 11:45:29.736] [error] Adapter error: {&lt;br /&gt; &amp;quot;message&amp;quot;: &amp;quot;Error occured when stopping scanning&amp;quot;,&lt;br /&gt; &amp;quot;description&amp;quot;: {&lt;br /&gt; &amp;quot;errno&amp;quot;: 8,&lt;br /&gt; &amp;quot;errcode&amp;quot;: &amp;quot;NRF_ERROR_INVALID_STATE&amp;quot;,&lt;br /&gt; &amp;quot;erroperation&amp;quot;: &amp;quot;stopping scan&amp;quot;,&lt;br /&gt; &amp;quot;errmsg&amp;quot;: &amp;quot;Error occured when stopping scan. Errorcode: NRF_ERROR_INVALID_STATE (0x8)\n&amp;quot;&lt;br /&gt; }&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Looks like the adapter has gone into a state where&lt;/p&gt;
&lt;p&gt;- Start scan fails with&amp;nbsp;&lt;span&gt;NRF_ERROR_BUSY&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;- Stop scan fails with&amp;nbsp;&lt;span&gt;NRF_ERROR_INVALID_STATE&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Please note that my stop scan is guarded by if(adapter.scanning == true). This evaluates to true in this state but stop scan still fails.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;regards,&lt;/p&gt;
&lt;p&gt;-Prashant.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scan does not timeout</title><link>https://devzone.nordicsemi.com/thread/158170?ContentTypeID=1</link><pubDate>Tue, 20 Nov 2018 12:49:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d091834-a3ac-4ba4-ba23-3aead09638f9</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I could not find any known occurrences of this, and I am not convinced it is due to the scan not timing out. It may for instance be that the connectivity device has entered a bad state, somehow, or that there has been an USB error of some description.&lt;/p&gt;
&lt;p&gt;Does it fail at around the same time each time, or is it some times down towards ten minutes before it breaks and other times up towards twenty minutes or more?&lt;/p&gt;
&lt;p&gt;Does indeed handling the NRF_ERROR_BUSY error code by doing a scan stop followed by a retry solve the issue?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>