<?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>NRF52 Connect Slow</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45165/nrf52-connect-slow</link><description>We have a mobile app on iPhone and Android, the NRF52 advertises every 3 seconds. The app can discover the NRF52 quickly but it takes a long time to connect. The iPhone is about 8 seconds, sometimes android takes up to a minute to connect or doesn&amp;#39;t connect</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Oct 2019 06:28:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45165/nrf52-connect-slow" /><item><title>RE: NRF52 Connect Slow</title><link>https://devzone.nordicsemi.com/thread/213538?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 06:28:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de359076-a5d0-4e69-baa6-eeb8c5f73852</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Have you checked out :&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/what-to-keep-in-mind-when-developing-your-ble-andr"&gt;https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/what-to-keep-in-mind-when-developing-your-ble-andr&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 Connect Slow</title><link>https://devzone.nordicsemi.com/thread/213480?ContentTypeID=1</link><pubDate>Fri, 04 Oct 2019 18:56:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43a36493-5d4e-4e52-9ccb-b4001d6624ee</guid><dc:creator>SKrish</dc:creator><description>&lt;p&gt;Hi , I have a question on similar lines. Sometimes the Android takes forever to connect. I captured the exchange on a sniffer. The BLE peripheral device is advertising (general slow unlimited advertising , every 540ms). The phone seems to hear the advertisement, I see Scan request packet coming in and my peripheral sends the scan response (I see this exchange several times),&amp;nbsp; but the phone does not send a connection indication packet for a very long time (in this case it look 18 minutes!). My question is&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1) When does the Android decide when to send the connection indication packet?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2) If the phone is sending scan request then the phone is hearing the packets from the peripheral right?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3) Can anything&amp;nbsp; be done on the peripheral side to make phone respond faster (like doing a direct advertisement instead of general ?)&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 Connect Slow</title><link>https://devzone.nordicsemi.com/thread/177500?ContentTypeID=1</link><pubDate>Thu, 21 Mar 2019 08:56:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c78a9eb5-f3d2-492a-ba24-c1366f2384e5</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We don&amp;#39;t have any control over the scanning parameters in Android (scan windows or scan interval), but unless they have changed it since the last time we looked into it, then it&amp;nbsp;seems to be close to this:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.android.com/reference/android/bluetooth/le/ScanSettings.Builder.html#setScanMode(int)" rel="noopener noreferrer" target="_blank"&gt;ScanSettings.Builder#setScanMode(int)&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;sets the scan mode.&lt;/p&gt;
&lt;p&gt;There are three options to choose from:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="https://developer.android.com/reference/android/bluetooth/le/ScanSettings.html#SCAN_MODE_LOW_LATENCY" rel="noopener noreferrer" target="_blank"&gt;SCAN_MODE_LOW_LATENCY&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="https://developer.android.com/reference/android/bluetooth/le/ScanSettings.html#SCAN_MODE_BALANCED" rel="noopener noreferrer" target="_blank"&gt;SCAN_MODE_BALANCED&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="https://developer.android.com/reference/android/bluetooth/le/ScanSettings.html#SCAN_MODE_LOW_POWER" rel="noopener noreferrer" target="_blank"&gt;SCAN_MODE_LOW_POWER&lt;/a&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In the balanced and low power modes, the interval is 5 seconds. In the balanced mode, it scans for 2 seconds, then waits for 3 seconds, while in low power mode, it scans for 0.5 seconds and waits for 4.5 seconds. Packets should also be reported when another app scans in a more aggressive mode.&lt;/p&gt;
&lt;p&gt;In low latency mode it seem to scan continuously.&lt;/p&gt;
&lt;p&gt;Also take a look at this blog post and the document found there:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/b/blog/posts/what-to-keep-in-mind-when-developing-your-ble-andr"&gt;https://devzone.nordicsemi.com/b/blog/posts/what-to-keep-in-mind-when-developing-your-ble-andr&lt;/a&gt;&amp;nbsp;&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>