<?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>Unable to connect to bonded device on Android</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/26440/unable-to-connect-to-bonded-device-on-android</link><description>Hi, I have a problem with BLE connection. When I bond to the device and then connect, everything works and connection is stable. When I kill the app and try to connect again to the bonded device, I get disconnected from the Android with status code 22</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Nov 2017 14:37:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/26440/unable-to-connect-to-bonded-device-on-android" /><item><title>RE: Unable to connect to bonded device on Android</title><link>https://devzone.nordicsemi.com/thread/104040?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2017 14:37:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3081222-af0f-4cde-8fe8-2670bfaa44a0</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;If you have a phone with Android 8+ in nRF Connect you&amp;#39;ll see the connection parameter updates. Before service discovery there is an update with 7.5 ms, and after discovery some more updates with higher values (depending on the app).
Looks like the security fails in your case, or service discovery. It sets interval to 7.5ms, starts discovery/resuming security and fails, and disconnects.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to connect to bonded device on Android</title><link>https://devzone.nordicsemi.com/thread/104039?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2017 14:32:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16611ec3-afee-4f70-abf2-7d4d2cf4e8be</guid><dc:creator>vtarantik</dc:creator><description>&lt;p&gt;Oh, I see, but it&amp;#39;s still weird since when I connect right after the bonding, I can sometimes see a couple of connection updates with interval value set to 36 and it works. When I kill the app, or disconnect from the peripheral and try to connect again, I can only see one connection update with interval value set to 6 followed by disconnect. Could you please point me to the place where you found this info about the 7.5ms interval for discovery? Maybe I can find some more there. And thank you once again for helping me here, I&amp;#39;m starting to be desperate.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to connect to bonded device on Android</title><link>https://devzone.nordicsemi.com/thread/104038?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2017 10:05:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:352a687a-7b11-4737-8259-31326974e130</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;It does come from the Android system. After successful bonding Android repeats service discovery. To make it faster they change connection interval to 7.5ms, but just for the discover. When it&amp;#39;s done a new connection param update will come with higher value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to connect to bonded device on Android</title><link>https://devzone.nordicsemi.com/thread/104037?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2017 10:01:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d57e6a4e-9fa4-44fd-9973-28ae13ba32b9</guid><dc:creator>vtarantik</dc:creator><description>&lt;p&gt;Well, we&amp;#39;ve tried to change the FW on peripheral side but no success, no matter which parameter value we put in the peripheral, I&amp;#39;m still getting connection update with interval 6. I started to wonder whether this couldn&amp;#39;t be coming from the phone but it shouldn&amp;#39;t make sense since this value isn&amp;#39;t supported by the system. Do you think that it&amp;#39;s possible that it&amp;#39;s coming from the phone?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to connect to bonded device on Android</title><link>https://devzone.nordicsemi.com/thread/104032?ContentTypeID=1</link><pubDate>Sat, 04 Nov 2017 16:42:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ed50ade-a153-457b-9934-ac6819415d24</guid><dc:creator>vtarantik</dc:creator><description>&lt;p&gt;Well, I&amp;#39;ll be able to try day after tomorrow so I&amp;#39;ll let you know. The weird thing is that iOS never disconnects from the peripheral, only Android so I&amp;#39;m not sure if this can be the case. I&amp;#39;m thinking whether iOS doesn&amp;#39;t have some better handling of this case since it stays connected. Thanks again for your tips..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to connect to bonded device on Android</title><link>https://devzone.nordicsemi.com/thread/104036?ContentTypeID=1</link><pubDate>Sat, 04 Nov 2017 06:09:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67519287-92ea-4bfa-9b84-a7b1c0053b93</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;And one more thing: if possible, Android uses 7.5ms interval for the service discovery. When done it changes interval to a longer one.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to connect to bonded device on Android</title><link>https://devzone.nordicsemi.com/thread/104035?ContentTypeID=1</link><pubDate>Sat, 04 Nov 2017 05:58:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ffeb2b4-8c88-4c95-8dd9-3f34ec5c4e9c</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;For HID devices iOS has minimum 7.5ms, for others 30ms.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to connect to bonded device on Android</title><link>https://devzone.nordicsemi.com/thread/104034?ContentTypeID=1</link><pubDate>Sat, 04 Nov 2017 05:57:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd59608a-b8a0-4d26-9ead-21dbebeb5fd3</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Yes, that&amp;#39;s is most likely the reason. In the connection parameters update you may specify the min and max conn interval, if you set both to 7.5ms both Android and iOS will disconnect. Android&amp;#39;s minimum is 11.25, ios is 30ms. Could you try with this values?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to connect to bonded device on Android</title><link>https://devzone.nordicsemi.com/thread/104033?ContentTypeID=1</link><pubDate>Sat, 04 Nov 2017 05:47:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0f952aa-b880-45dd-a935-160bc5b2fd8d</guid><dc:creator>vtarantik</dc:creator><description>&lt;p&gt;Thanks a lot for your reply. I&amp;#39;ve been trying it on Pixel with Android 8.0, Moto G4 with Android 7.0, Nexus 5 with Android 8.0 and also Nexus 6P with Android 8.0. The behavior is the same on all of those devices. I found out that if I try to connect to already paired device, the peripheral requests connection update with interval parameter set to 6, which is apparently not supported since Android 6 but I haven&amp;#39;t found any documentation that says that if the device doesn&amp;#39;t support the requested interval it can disconnect or request disconnection from the peripheral. Do you think that this could be the case?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to connect to bonded device on Android</title><link>https://devzone.nordicsemi.com/thread/104031?ContentTypeID=1</link><pubDate>Fri, 03 Nov 2017 15:45:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7902ab1c-1d46-44f6-9c58-33726bc2f186</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;What phone and Android version are you using? On older Android versions, around 4.3-4.4.x there were problems with bonding. The initial connection after device was bonded worked fine, but resuming secure connection after reconnection failed. I don&amp;#39;t remember exactly on what phones this issue used to occur, but I&amp;#39;d say it was Nexus 4 or 7. I also don&amp;#39;t know if there was something that could be done on the fw side as a workaround.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>