<?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 do not autoconnect when nrf51822 is set to advertise on connect mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19014/android-do-not-autoconnect-when-nrf51822-is-set-to-advertise-on-connect-mode</link><description>Device : nrf51822
Softdevice : S110 v7.0.0 
 Title says it all. Autoconnect is working fine on my Android phones when nrf51822 is always programmed BLE_GAP_ADV_TYPE_ADV_IND. Per Nordic&amp;#39;s SDK, this setting means only one mobile device can connect and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Jan 2017 12:32:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19014/android-do-not-autoconnect-when-nrf51822-is-set-to-advertise-on-connect-mode" /><item><title>RE: Android do not autoconnect when nrf51822 is set to advertise on connect mode</title><link>https://devzone.nordicsemi.com/thread/73508?ContentTypeID=1</link><pubDate>Tue, 17 Jan 2017 12:32:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7af27f74-9b9e-4089-b33d-4836f23b35b2</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@TechGeek: I basically did the same in my test. I&amp;#39;m not sure what in your advertising_start() though.&lt;/p&gt;
&lt;p&gt;Do you observe that we advertise as we should when in connection and when disconnected ?
If we do, then it&amp;#39;s the issue on the phone&amp;#39;s side.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Android do not autoconnect when nrf51822 is set to advertise on connect mode</title><link>https://devzone.nordicsemi.com/thread/73509?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2017 16:31:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:926b81e2-b211-4d2c-b982-44bb36146e82</guid><dc:creator>TechGeek</dc:creator><description>&lt;p&gt;Re: &amp;quot;Suggest you to make sure you advertise in connectable mode after it get disconnected not in non-connectible&amp;quot;.   This is taken care of by the below code snippet I shared earlier:&lt;/p&gt;
&lt;p&gt;case BLE_GAP_EVT_DISCONNECTED:
advertising_start(BLE_GAP_ADV_TYPE_ADV_IND);
break;&lt;/p&gt;
&lt;p&gt;Let me know if this is not the case or you are recommending something different than the above.&lt;/p&gt;
&lt;p&gt;Re: Test on other phone.   I tested on 2 phones :  Samsung Galaxy S7 and OnePlus One.  Both same result.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Android do not autoconnect when nrf51822 is set to advertise on connect mode</title><link>https://devzone.nordicsemi.com/thread/73507?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2017 16:14:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ee2b596-02b4-40f9-8caf-3172429c1d54</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi TechGeek,&lt;/p&gt;
&lt;p&gt;I did  a test here with a SamsungS6 Android 6.0.1 but I don&amp;#39;t see that problem.
I setup a device doing what you described, advertising in non-connectable mode when in connection and switch back to connectable mode when disconnected.
When connecting with Autoconnect selected on nRFConnect app, it can connect after I reset the device to go back to connectable mode. The phone simply wait until timeout happens and then connect again.&lt;/p&gt;
&lt;p&gt;I would suggest you to make sure you advertise in connectable mode after it get disconnected not in non-connectable. Also try to test on other phone.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>