<?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>sd_ble_gap_scan_start() returns NRF_SUCCESS, but no advertising packets get received</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40411/sd_ble_gap_scan_start-returns-nrf_success-but-no-advertising-packets-get-received</link><description>Hi, 
 I&amp;#39;m in the middle of developing a software that runs on nRF52840 and scans for BLE devices all of the time, then quickly connects to each and every one as fast as possible to check for a certain characteristic (and - if found - reading its value</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Nov 2018 08:46:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40411/sd_ble_gap_scan_start-returns-nrf_success-but-no-advertising-packets-get-received" /><item><title>RE: sd_ble_gap_scan_start() returns NRF_SUCCESS, but no advertising packets get received</title><link>https://devzone.nordicsemi.com/thread/159664?ContentTypeID=1</link><pubDate>Fri, 30 Nov 2018 08:46:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:783ce4e9-26b0-47a4-8ffb-9e6afa5de8c4</guid><dc:creator>Jan Panier</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There has been some busy time between then and now, but I&amp;#39;m glad for your reaction and wanted to answer your questions:&lt;/p&gt;
&lt;p&gt;1. Well, it did. By reorganising my project and learning of the &amp;#39;scan timeout == connection timeout&amp;#39; anomaly (my scan timeout was 0, my connection timeout != 0) I&amp;#39;m now down to it happening less than once a day. But it might still happen, we currently are in the middle of some longterm testing and one device &amp;#39;froze&amp;#39; up while scanning. Still trying to reproduce it.&lt;/p&gt;
&lt;p&gt;2. No, sometimes it happened 5 minutes into the test, sometimes it was running for hours before showing that behaviour.&lt;/p&gt;
&lt;p&gt;3. Yes, I had started a minimal project that was just scanning, connecting, disconnecting in a cycle as fast as possible. That&amp;#39;s when I learned about the timeout anomaly mentioned in (1). I took this as a base for reimplementing my main project.&lt;/p&gt;
&lt;p&gt;4. I could share my minimal test project. But that didn&amp;#39;t freeze up as often as the main project did. Unfortunately, I can&amp;#39;t share everything, but as soon as I have isolated the cause, I am willing to share the reproducing code with you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gap_scan_start() returns NRF_SUCCESS, but no advertising packets get received</title><link>https://devzone.nordicsemi.com/thread/157115?ContentTypeID=1</link><pubDate>Tue, 13 Nov 2018 14:07:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5405bd17-727b-4ff0-a876-e688d3e55a86</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have never seen anything like this and I can&amp;#39;t find any similar reports in our system.&lt;/p&gt;
&lt;p&gt;It could sound like you end up in some sort of dead lock blocking your scanner.&amp;nbsp;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Does this happen every time?&lt;/li&gt;
&lt;li&gt;Does&amp;nbsp;it always happen after ~30min?&lt;/li&gt;
&lt;li&gt;Have you tried narrowing it down a bit and remove all features not essential to scanning?&amp;nbsp;&lt;/li&gt;
&lt;li&gt;It could be useful to reproduce this here. Do you mind sharing your code or describe how I can reproduce it? We can make the case private if you prefer confidentiality.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>