<?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>Intermittent Advertisement Reception</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47604/intermittent-advertisement-reception</link><description>I am getting intermittent pickup of advertising packet from a peripheral known to advertise every 2 second. Basically I get ~20 sec gaps where nothing is received. 
 
 Below is my debug output from my central app where I output a dot each time the BLE_GAP_EVT_ADV_REPORT</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Jun 2019 08:00:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47604/intermittent-advertisement-reception" /><item><title>RE: Intermittent Advertisement Reception</title><link>https://devzone.nordicsemi.com/thread/191939?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 08:00:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bc095c7-177a-4fac-a04a-76ff63cc1980</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Could you please try to debug this, and provide an error code if there are any. I would like to see what exactly is happening after that last event.&lt;/p&gt;
&lt;p&gt;Please read up on the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_nrf_log.html"&gt;logger module&lt;/a&gt; for how to properly handle the nRF Logger.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Intermittent Advertisement Reception</title><link>https://devzone.nordicsemi.com/thread/191726?ContentTypeID=1</link><pubDate>Sat, 08 Jun 2019 02:25:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff05abfc-1af9-4770-b01d-58d4547f2107</guid><dc:creator>Jchristf</dc:creator><description>&lt;p&gt;I&amp;#39;m using&amp;nbsp;the ble_center &amp;quot;experimenta&amp;quot; CLI example, and have basically only added the logging.&lt;/p&gt;
&lt;p&gt;Inside the BLE GAP event handler for the case: BLE_GAP_EVT_ADV_REPORT,&amp;nbsp; I have inserted the below (m_scan_substring is just taking as an arg from scan on command).&lt;/p&gt;
&lt;p&gt;if (m_scan_substring) {&lt;br /&gt;&amp;nbsp; ble_gap_addr_t *addrp;&lt;br /&gt;&amp;nbsp; addrp = &amp;amp;p_gap_evt-&amp;gt;params.adv_report.peer_addr;&lt;br /&gt;&amp;nbsp; sprintf(str,&amp;quot;%02X%02X%02X%02%02X%02X&amp;quot;,addrp-&amp;gt;addr[0],addrp-&amp;gt;addr[1],addrp-&amp;gt;addr[2],addrp-&amp;gt;addr[3],addrp-addr[4],addrp-&amp;gt;addr[5]);&lt;br /&gt;&amp;nbsp; if (strstr(str,m_scan_substring)) {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NRF_LOG_RAW_INFO(&amp;quot;!&amp;quot;);&lt;br /&gt;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;So I&amp;#39;m wondering if the problem is that&amp;nbsp;&lt;span&gt;NRF_LOG_RAW_INFO is not reliable inside the event&amp;nbsp; handler, which is presumably an active Interrupt?&amp;nbsp; &amp;nbsp;Do I need to implement some sort of queue and print from that queue in the main process?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Intermittent Advertisement Reception</title><link>https://devzone.nordicsemi.com/thread/188443?ContentTypeID=1</link><pubDate>Wed, 22 May 2019 08:01:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a88dc72-da28-45ba-b5b1-3e7a7c0e0a37</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;This seems very strange. First thing I&amp;#39;m noticing is that the last event before the &amp;quot;pause&amp;quot; only provides one exclamation mark, so there is no scan response coming. Are you able to see what happens after that last event? And even if an error occurs there, I don&amp;#39;t see why it would take 20 seconds to start receiving advertisements again. I am guessing there is a timeout or that the central is going to sleep in some way, but it&amp;#39;s really hard to tell when I don&amp;#39;t know more about your application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are the peripheral and central both nRF52832DKs? Are you building the application based on any of the examples in the SDK, in that case, what examples, and what exactly have you changed (if anything)?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>