<?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>Auto-connection on the nRF Blinky app</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22692/auto-connection-on-the-nrf-blinky-app</link><description>Hello, 
 I downloaded the nRF Blinky app (for Android) here :
 github.com/.../Android-nRF-Blinky 
 I&amp;#39;m looking to modfy the code to have an auto connection. For this, I would like to go directly on the second page, and do a filtering by name.
If the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Jun 2017 14:57:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22692/auto-connection-on-the-nrf-blinky-app" /><item><title>RE: Auto-connection on the nRF Blinky app</title><link>https://devzone.nordicsemi.com/thread/89215?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2017 14:57:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe3d4979-546e-4c0e-904e-c5cce374a71b</guid><dc:creator>TheRaven</dc:creator><description>&lt;p&gt;Thank you for the links.
In the firmware, I have 4 seconds for CONN_SUP_TIMEOUT. But the Android app detect the deconnection after 20 seconds : is it normal ?
Ok no problem, I will create an other case if needed, thanks a lot again !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Auto-connection on the nRF Blinky app</title><link>https://devzone.nordicsemi.com/thread/89213?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2017 07:35:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e485d2a-b9c7-4591-9da1-46d77c5ff96f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes it&amp;#39;s possible to integrate into one file. I would suggest you to have a look at the basic example from Android &lt;a href="https://developer.android.com/samples/BluetoothLeGatt/index.html"&gt;here&lt;/a&gt; or you can have a look at nRF UART example &lt;a href="https://github.com/NordicSemiconductor/Android-nRF-UART"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To set the connection supervision timeout , you need to change it in the application firmware . Please look for CONN_SUP_TIMEOUT in the firmware. Note that there could be the chance that the phone doesn&amp;#39;t accept it.&lt;/p&gt;
&lt;p&gt;For further question, please create a new case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Auto-connection on the nRF Blinky app</title><link>https://devzone.nordicsemi.com/thread/89214?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2017 16:48:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b1742cf-03cd-4304-9504-29270cbfdbc8</guid><dc:creator>TheRaven</dc:creator><description>&lt;p&gt;Hello, It works perfectly, thanks a lot !! Now, I have an other question : is it possible to concatenate MainActivity.java and ControlBlinkyActivity, in order to have only one activity ?&lt;/p&gt;
&lt;p&gt;And also, when I power off my board, th disconnection is notified on the app more than 20 seconds later : how can I reduce this time ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Auto-connection on the nRF Blinky app</title><link>https://devzone.nordicsemi.com/thread/89212?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2017 15:33:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2d6af3b-b86e-4396-b4a2-181f482b6152</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Raven,&lt;/p&gt;
&lt;p&gt;Have you had a look at where we process the scan result ? First you need to scan , then you check in the scan result if the device name of the result(s) is &amp;quot;ABCDEF&amp;quot;
If you have in the code, we catch the scan result in onBatchScanResults() in MainActivity.java.&lt;/p&gt;
&lt;p&gt;From the result, you can call  mBluetoothDevice.getName(); or result.getScanRecord().getDeviceName(); if scan record is not null. This is done in ExtendedBluetoothDevice.java&lt;/p&gt;
&lt;p&gt;Then if the device name matches, you can send the device address and start controlBlinkIntent as in onItemClick() in MainAcitivity.java&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>