<?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>Connection issues with Android 6.0 Marshmallow and Nexus 6</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9946/connection-issues-with-android-6-0-marshmallow-and-nexus-6</link><description>Since Google released Android Marshmallow 6.0 we are experiencing problems when connecting our nRF51822 based peripherals to a Nexus 6 phone.
The Nexus 6 is able to see our peripherals&amp;#39; advertisements while scanning but when it initiates a connection</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Jan 2017 08:51:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9946/connection-issues-with-android-6-0-marshmallow-and-nexus-6" /><item><title>RE: Connection issues with Android 6.0 Marshmallow and Nexus 6</title><link>https://devzone.nordicsemi.com/thread/36917?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2017 08:51:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e147ecc-3ee5-4eaf-949a-4dfd0e53458c</guid><dc:creator>Mario Amigot</dc:creator><description>&lt;p&gt;I&amp;#39;ve forgotten to mentioned that I confirmed with the help of a BLE sniffer that a central device (in my case was a Samsung Galaxy S6) running Android 6.0 does not send the CONNECT_REQ packet when trying to establish a connection with a peripheral device (nRF51822) with random address. However, changing the address to a public one the connection is established correctly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection issues with Android 6.0 Marshmallow and Nexus 6</title><link>https://devzone.nordicsemi.com/thread/36916?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2017 08:24:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d057ecf7-4999-479d-8ed3-07ddf755c845</guid><dc:creator>Mario Amigot</dc:creator><description>&lt;p&gt;Sorry I didn&amp;#39;t update earlier this issue with my findings.
After some research visiting lots of webs and forums for BLE developers, I found that the cause of this misbehavior was a bug in Android 6.0 (Marshmallow) that appears when working as central device trying to connect with BLE peripheral devices with random addresses (which is the default in Nordic&amp;#39;s nRF51822).
Even Google already released a bug fixing Android patch (within v6.0.1 branch), remember that Android device manufacturers are the ones to actually launch the software updates for their devices (which is a process known for taking a very long time), plus it&amp;#39;s really hard to know which specific patches are included within those updates (even they were labeled as Android v6.0.1) and you need that ALL your users update their devices as soon as the bug fix is released in order to be able to use it. So my solution was to change the random addresses of the nRF51822 devices to public ones.&lt;/p&gt;
&lt;p&gt;P.S.: You can check here some links that matche with my explanation:
&lt;a href="https://www.thetileapp.com/en-gb/android-6-0-0-marshmallow-connectivity"&gt;www.thetileapp.com/.../android-6-0-0-marshmallow-connectivity&lt;/a&gt;
&lt;a href="https://devzone.nordicsemi.com/question/80369/cannot-connect-to-ble-devices-requiring-random-le-address-type-with-android-nrf-app/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;
&lt;a href="https://forum.csr.com/forum/main-category/main-forum/software/68409-android-bluetooth-fails-due-to-storing-too-many-random-bluetooth-addresses-mesh"&gt;forum.csr.com/.../68409-android-bluetooth-fails-due-to-storing-too-many-random-bluetooth-addresses-mesh&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection issues with Android 6.0 Marshmallow and Nexus 6</title><link>https://devzone.nordicsemi.com/thread/36918?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2017 04:44:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a44020e-2006-458f-a0a9-f2871fe809e3</guid><dc:creator>nicko_f</dc:creator><description>&lt;p&gt;I had the same problem with Android Versions 6 and above.
How I fixed the problem was to define:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define SEC_PARAM_LESC                   0                 /**&amp;lt; LE Secure Connections not enabled.*/
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;To make sure LE Secure Connections is not enabled. Hope it helps fixes the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection issues with Android 6.0 Marshmallow and Nexus 6</title><link>https://devzone.nordicsemi.com/thread/36913?ContentTypeID=1</link><pubDate>Mon, 16 May 2016 19:22:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b46d449-175f-46dd-b9db-7b6dd7d19e45</guid><dc:creator>Nick</dc:creator><description>&lt;p&gt;Yes, what a mess. Our product is totally consumer oriented so we&amp;#39;re just going to have to do exchanges for the affected users. Thanks for posting the your discovery though. Before finding it I was totally lost and now I&amp;#39;ve confirmed that adding a name &amp;quot;fixes&amp;quot; the problem for us also. It was just in time to get the update on a big order from the factory too, so it saved us a lot of trouble.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection issues with Android 6.0 Marshmallow and Nexus 6</title><link>https://devzone.nordicsemi.com/thread/36915?ContentTypeID=1</link><pubDate>Mon, 16 May 2016 17:01:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b26b8eea-cb76-412a-ad6f-8e0cb0a8d03a</guid><dc:creator>Freddy S&amp;#248;rensen</dc:creator><description>&lt;p&gt;Hi Nick,
I&amp;#39;ve no idea how to reach the Android team. After I can see that the problem is available on Marshmallow from most manufactures, it&amp;#39;s unthinkable to expect a solution on all these phones in the near future. Android is an amateurish nightmare, that just continues to get worse and worse. We do see so many different &amp;#39;private&amp;#39; variants of Marshmallow, all with bugs that makes them incompatible with both standard Android and BLE.
The only solution left for us, is make an upgrade of all devices, including our stock :-(
We have not added DFU to our firmware yet, so the customers will have to use nRF Toolbox.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection issues with Android 6.0 Marshmallow and Nexus 6</title><link>https://devzone.nordicsemi.com/thread/36914?ContentTypeID=1</link><pubDate>Mon, 16 May 2016 15:37:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b35aff5-8cd3-4b1f-83ab-6e7e5f678f52</guid><dc:creator>Nick</dc:creator><description>&lt;p&gt;Has anyone come up with a workaround for this? Is the Android team aware of it/working on it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection issues with Android 6.0 Marshmallow and Nexus 6</title><link>https://devzone.nordicsemi.com/thread/36912?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2016 19:40:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4a3216a-bec4-4b93-ad67-3df6432abd29</guid><dc:creator>Freddy S&amp;#248;rensen</dc:creator><description>&lt;p&gt;After my Galaxy S6 was updated to Marsmallow, I start to see the same problem. I do have a device, to which I can&amp;#39;t connect with my smartphone. It looks like it&amp;#39;s the same problem, as I&amp;#39;ve seen in the past with HTC phones running Android 5. If you use the sample code like the ble_app_hrs, everything works fine. This is because the advertising data includes a &amp;#39;name tag&amp;#39;. I didn&amp;#39;t have space for a &amp;#39;name tag&amp;#39; in my adv_data, so I solved the problem by adding the &amp;#39;name tag&amp;#39; to the response_req.
So right now I have thousands of BLE-devices on the market, which won&amp;#39;t connect anymore, when the owners smartphones are updated to Marshmallow :-(&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection issues with Android 6.0 Marshmallow and Nexus 6</title><link>https://devzone.nordicsemi.com/thread/36911?ContentTypeID=1</link><pubDate>Tue, 17 Nov 2015 09:58:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c88cb5c-fa67-4c9e-b6df-02a4ad7af53a</guid><dc:creator>Tru Pheenix</dc:creator><description>&lt;p&gt;I can confirm this. I am using the Red Bear Lab BLE Nano board with the S110 softdevice.&lt;/p&gt;
&lt;p&gt;Our peripheral is configured to advertise as an iBeacon and is also connectable as a UART device.&lt;/p&gt;
&lt;p&gt;On Android Lollipop and below, the Nexus 5 works fine. On Marshmallow, the Nexus 5 connects the first time. But if we turn off Bluetooth and turn it back on again the Nexus 5 refuses to connect.&lt;/p&gt;
&lt;p&gt;On the peripheral, there is no connection request received.&lt;/p&gt;
&lt;p&gt;Will anyone tell me what this issue is about? I&amp;#39;m using MBED to develop my firmware.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection issues with Android 6.0 Marshmallow and Nexus 6</title><link>https://devzone.nordicsemi.com/thread/36910?ContentTypeID=1</link><pubDate>Tue, 03 Nov 2015 07:38:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2644953a-aafa-4480-8cbe-4e73c5cc4548</guid><dc:creator>Mario Amigot</dc:creator><description>&lt;p&gt;Thanks Martin, I have already reported this issue through &amp;#39;my support cases&amp;#39; of &amp;#39;my Nordic page&amp;#39;. Hope we find the cause and solution as soon as possible. Cheers&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection issues with Android 6.0 Marshmallow and Nexus 6</title><link>https://devzone.nordicsemi.com/thread/36909?ContentTypeID=1</link><pubDate>Fri, 30 Oct 2015 08:40:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d86c314e-6db8-45e2-9aa0-616556ae868c</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;So it seems like there is some obscure changes made to Marshmallow that makes it incompatible with your peripheral application, right?&lt;/p&gt;
&lt;p&gt;What Softdevice are you running? Could you upload your code? You can do it &lt;a href="https://www.nordicsemi.com/eng/Support-Community/Contact-Support-Team"&gt;here&lt;/a&gt; if you want confidentiality.&lt;/p&gt;
&lt;p&gt;Is it reproducible using some example in the SDK you are using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection issues with Android 6.0 Marshmallow and Nexus 6</title><link>https://devzone.nordicsemi.com/thread/36908?ContentTypeID=1</link><pubDate>Thu, 29 Oct 2015 10:32:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eae4ae64-6761-4e2c-af8f-dc2be1e05ca4</guid><dc:creator>Mario Amigot</dc:creator><description>&lt;p&gt;I don&amp;#39;t think so...The new &amp;#39;Location&amp;#39; permission requested by Android 6.0 only affects the fact that a BLE scan can be performed by the app or not. However, we have proved the Nexus 6 with Android 6.0 running either our app or Nordic&amp;#39;s nRF Master Control Panel app is still able to find our BLE peripheral device during scan, but it&amp;#39;s not able to establish a connection. As I said in my first post, the Nexus 6 seems to send the CONNECT_REQ packet but the BLE peripheral doesn&amp;#39;t receive it (or the BLE_GAP_EVT_CONNECTED event is not thrown by the S110 softdevice at least).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection issues with Android 6.0 Marshmallow and Nexus 6</title><link>https://devzone.nordicsemi.com/thread/36905?ContentTypeID=1</link><pubDate>Thu, 29 Oct 2015 08:54:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ba04105-52aa-4889-80b7-8f6127d3a84f</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;There was some changes in security configurations in Marshmallow. Do you think &lt;a href="http://www.gottabemobile.com/2015/10/12/android-6-0-problems-fixes/"&gt;this&lt;/a&gt;, &lt;a href="http://www.androidcentral.com/psa-you-may-have-issues-using-fitbit-marshmallow-phone-0"&gt;this&lt;/a&gt;, or &lt;a href="https://devzone.nordicsemi.com/question/54440/nrf-master-control-panel-not-working-with-android-marshmallow/"&gt;this&lt;/a&gt; might be relevant?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection issues with Android 6.0 Marshmallow and Nexus 6</title><link>https://devzone.nordicsemi.com/thread/36907?ContentTypeID=1</link><pubDate>Wed, 28 Oct 2015 11:19:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1231f52c-9965-42a2-aaeb-4b68cc451f65</guid><dc:creator>Mario Amigot</dc:creator><description>&lt;p&gt;Hello Martin, thanks for your support.
Our custom application was developed from an older SDK with an older S110. The thing is that it should work regardless the software setup we are using, right? Our application works perfectly with any iOS device and Android device (including Nexus 6 with Android 5.x). However, after upgrading the Nexus 6 to Android 6.0, it does not connect anymore, while the Nexus 5 (for example) with Android 6.0 it does.
I&amp;#39;ve just tried to connect the Nexus 6 with Android 6.0 to our peripheral device by using the nRF Master Control Panel app but it failed as well. Are there specific improvements related to connection establishment in the newer SDK/S110 software versions which would explain this missbehavior?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection issues with Android 6.0 Marshmallow and Nexus 6</title><link>https://devzone.nordicsemi.com/thread/36906?ContentTypeID=1</link><pubDate>Wed, 28 Oct 2015 10:09:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c7f121e-6c76-409b-a8f9-705e4311fa0b</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi. It seems to work fine here when we try to use the ble_app_hrs example from SDK 9, with Softdevice S110 V8, and the nRF Master Control Panel app to connect. Are you using a custom application and app? Could you try the setup above to see if that works?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>