<?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>Android issues with BLE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15094/android-issues-with-ble</link><description>Hi, 
 I am facing some issues on the Android part of the BLE. 
 Firstly it takes around 20 seconds for the android phone in scanning mode to find the nordic board. This happen only for the first time and not after that. 
 I also face a lag when connection</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 25 Jul 2016 12:29:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15094/android-issues-with-ble" /><item><title>RE: Android issues with BLE</title><link>https://devzone.nordicsemi.com/thread/57654?ContentTypeID=1</link><pubDate>Mon, 25 Jul 2016 12:29:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca5a4cb5-f5b7-4abd-9d50-f8b8176763fd</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure, maybe you can add a new question regarding this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Android issues with BLE</title><link>https://devzone.nordicsemi.com/thread/57653?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2016 05:18:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae97618b-aa2d-4715-bcaa-a9b778b69076</guid><dc:creator>soumil</dc:creator><description>&lt;p&gt;Thanks for sharing that link. This is really helpful.  Cant we set the connection parameters on the phone side directly. Do we need to change the Android source code for that or there are some functions to do that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Android issues with BLE</title><link>https://devzone.nordicsemi.com/thread/57655?ContentTypeID=1</link><pubDate>Wed, 20 Jul 2016 11:22:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01247497-0f3b-4217-8d04-95eda4065080</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I don&amp;#39;t know what the scan intervals/windows are on Android, but I found &lt;a href="http://stackoverflow.com/questions/27792670/android-aosp-definition-of-scan-interval-and-scan-window-in-android-source-cod"&gt;this&lt;/a&gt;. As a peripheral you can only request a connection parameter update, it is up to the central device to actually do it. See &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v2.0.0/group___b_l_e___g_a_p___c_p_u___m_s_c.html?cp=2_3_0_1_0_2_1_3_7"&gt;this&lt;/a&gt; for more information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Android issues with BLE</title><link>https://devzone.nordicsemi.com/thread/57652?ContentTypeID=1</link><pubDate>Wed, 20 Jul 2016 09:14:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e4682c2-5ce7-440e-9325-17cbfc3dd156</guid><dc:creator>soumil</dc:creator><description>&lt;p&gt;Okay thanks would try this. Do we know for different scan modes what are the scanning intervals set on the phone side. For example in case of SCAN_MODE_LOW_LATENCY, what is the scanning interval? Also can i change the connection parameters from the firmware side. Is it using connection params update ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Android issues with BLE</title><link>https://devzone.nordicsemi.com/thread/57650?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2016 10:13:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75666b90-1987-4724-a1a6-2a4709097682</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Could it be that you are using a different advertising interval when you restart advertising on a disconnect?&lt;/p&gt;
&lt;p&gt;You could try decreasing the advertising interval and see if that makes a difference. Or you could try changing the SCAN_MODE_LOW_LATENCY when you &lt;a href="https://developer.android.com/reference/android/bluetooth/le/ScanSettings.html"&gt;scan&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://devzone.nordicsemi.com/question/56471/check-ble-connection-interval/"&gt;this&lt;/a&gt; for how to check the actual connection interval.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Android issues with BLE</title><link>https://devzone.nordicsemi.com/thread/57651?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2016 04:43:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0065cd3d-addf-4bb7-a2a4-d67e333a53ec</guid><dc:creator>soumil</dc:creator><description>&lt;p&gt;We have made our own app using the android Ble library. The advertising interval i am using on the nordic board is 500ms. When i say it happens only for one time and not after that means that when scanning is done for the first time, the phone takes a long time to find the nordic device but once paired/connected once, then the next time device discovery happens quickly.
How do you set the connection interval in android?The peripheral connection parameters are set as min to 500 ms and max to 1000 ms. The smartphone reads the custom characteristic after connection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Android issues with BLE</title><link>https://devzone.nordicsemi.com/thread/57649?ContentTypeID=1</link><pubDate>Thu, 14 Jul 2016 07:57:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0086c560-04e7-4260-917b-93930d0db44d</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;What app are you using to scan? What advertising interval are you using? What do you mean by &amp;quot;This happen only for the first time and not after that&amp;quot;? What connection interval are you using? How are you sending the information to the smart phone? Does the smart phone read the result, or does the nRF5 send a notification with the result?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>