<?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>irk saved but android 5.0 cannot reconnect to s110</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7935/irk-saved-but-android-5-0-cannot-reconnect-to-s110</link><description>Hi,
we have two devices using android 5.0 have this issue. 
 
 
 bonding to s110, irk_counter=1;
s110 uses whitelist advertising.
android 5.0 device can reconnect to s110. 
 
 
 android 5.0 device delete bonding info, and rebonding to s110, irk_counter</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Jul 2015 14:22:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7935/irk-saved-but-android-5-0-cannot-reconnect-to-s110" /><item><title>RE: irk saved but android 5.0 cannot reconnect to s110</title><link>https://devzone.nordicsemi.com/thread/28376?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2015 14:22:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14b948bb-fe65-4acd-b014-5b97d196f2d7</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Now: The master control panel won&amp;#39;t save the device context, so it would not expect the CCCD = 1 when re-connect to the device. Further more, if you have removed the bond information on the phone , then it&amp;#39;s normal to &amp;quot;enable service&amp;quot; when you connect since it&amp;#39;s treating the peripheral as a new peripheral.&lt;/p&gt;
&lt;p&gt;nRF Master Control panel is just a generic master emulator, you would need to create your own app (you can base on the nRFUART) for you purpose&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: irk saved but android 5.0 cannot reconnect to s110</title><link>https://devzone.nordicsemi.com/thread/28375?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2015 07:16:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a4508fd-6c7a-44b4-acd0-ec26baf4bc20</guid><dc:creator>Now</dc:creator><description>&lt;p&gt;Hi Hung, it&amp;#39;s ok to do re-bond test on Master Control Panel, but I&amp;#39;m not sure if it&amp;#39;s normal that we need to &amp;quot;enable service&amp;quot; after discover service. So if android has this issue, iOS might have too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: irk saved but android 5.0 cannot reconnect to s110</title><link>https://devzone.nordicsemi.com/thread/28374?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2015 09:16:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8727e385-9de2-4f78-b4ed-c2ef69cb0392</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Now: I would not suggest to try to bond inside android setting. It should be better to trigger bonding in app, not in Bluetooth setting. I know there is nothing wrong with your approach, but I suspect there could be smth wrong with the implementation on Android (bond not really erased until you quit the bluetooth setting).&lt;/p&gt;
&lt;p&gt;You can try to use our nRF master control panel app for testing. If you try to read an encrypted characteristic, it will trigger bonding on the phone.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: irk saved but android 5.0 cannot reconnect to s110</title><link>https://devzone.nordicsemi.com/thread/28373?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2015 00:56:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07be4093-6a3d-49fd-9636-e8391f45a8e2</guid><dc:creator>Now</dc:creator><description>&lt;p&gt;Hi Hung,
before getting other sniffer log, a quick reply for this:&lt;/p&gt;
&lt;p&gt;The master tried to rebond, this is strange, because you mentioned that you erased bond information (forget the device in Bluetooth setting). I don&amp;#39;t know why the tablet still want to rebond. You can find the LL_ENC_REQ sent from the master. This is not normal. When the bond information is deleted from the tablet, it should not sent this request. After this, the slave tried to start the encryption (LL_START_ENC_REQ), but the master encrypted response (LL_START_ENC_RSP) was most likely wrong. So we can see the central keep retrying until it&amp;#39;s timed out.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Because I do re-bond in android setting after deleting first bond info, and it was done successfully. Then I use nordic UART APP, it finded S110 and tried to connect to it with LTK.&lt;/p&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: irk saved but android 5.0 cannot reconnect to s110</title><link>https://devzone.nordicsemi.com/thread/28372?ContentTypeID=1</link><pubDate>Tue, 14 Jul 2015 09:08:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:468c317a-f632-4f14-a4b7-b7a96d629d9d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Now:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;When you test with the proximity, please make sure you have deleted bond on both the phone and the nRF51 (use erase all to clean the flash).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Usually after you have unbond (select FORGET in bluetooth setting menu on Android setting), the tablet should not try to re-encrypt the link, because it should treat the nRF51 as a new device.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Yes, please provide the trace with iPhone 5&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: irk saved but android 5.0 cannot reconnect to s110</title><link>https://devzone.nordicsemi.com/thread/28371?ContentTypeID=1</link><pubDate>Tue, 14 Jul 2015 07:43:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f71d556-03b5-43c3-8f34-a89d54e93e5e</guid><dc:creator>Now</dc:creator><description>&lt;p&gt;we&amp;#39;ll upload two sniffer log later, one is for rebonding and connect without whitelist advertising, the other is for rebonding and cannot connect with whitelist advertising.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: irk saved but android 5.0 cannot reconnect to s110</title><link>https://devzone.nordicsemi.com/thread/28370?ContentTypeID=1</link><pubDate>Tue, 14 Jul 2015 07:39:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47d05059-6158-46db-88d2-4101a7b089fe</guid><dc:creator>Now</dc:creator><description>&lt;p&gt;What did you do to erase bonding information on the Nexus 7 ? Which app did you use to test?&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;we just imitate the user behavior, and we tried Nordic UART and our own APP.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Could you try to use the nRF Master Control panel app for testing ?&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;You mean to simulate android device to connect to our developing device?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Could you also attach the trace for iPhone 5 ?&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;iPhone has the same behavior as Android L, since they both use IRK... do you still need that? If yes, I&amp;#39;ll upload it later.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;You can try SDK v6.x with S110 v7.x for testing with XLR2. You can download the .zip file for the SDK (don&amp;#39;t use pack) here.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Just tried ble_app_proximity example; it make s110 continuely tried to connect and bond iPhone5s , (with nRFready Proximity App to test), although it has whitelist advertising status, we&amp;#39;re not sure if it really work on whitelist advertising... it seems that it cannot save bonded device with the exmaple setting.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;we use &amp;quot;nRF51-ble-app-uart-static-passkey-master.zip&amp;quot; on gitHub to be our base.&lt;/p&gt;
&lt;p&gt;-Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: irk saved but android 5.0 cannot reconnect to s110</title><link>https://devzone.nordicsemi.com/thread/28369?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2015 10:04:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f56116a3-dab3-4266-bc40-3b235d7e8d41</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Now:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/snip_5F00_07_5F00_13.PNG" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;From the sniffer trace you sent, as shown in the picture, what I can tell is:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The master (the tablet) is managed to connect. Which meant it went throught the whitelist successfully .&lt;/li&gt;
&lt;li&gt;The master tried to rebond, this is strange, because you mentioned that you erased bond information (forget the device in Bluetooth setting). I don&amp;#39;t know why the tablet still want to rebond. You can find the LL_ENC_REQ sent from the master. This is not normal. When the bond information is deleted from the tablet, it should not sent this request.
After this, the slave tried to start the encryption (LL_START_ENC_REQ), but the master encrypted response (LL_START_ENC_RSP) was most likely wrong. So we can see the central keep retrying until it&amp;#39;s timed out.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;What did you do to erase bonding information on the Nexus 7 ? Which app did you use to test?&lt;/p&gt;
&lt;p&gt;Could you try to use the nRF Master Control panel app for testing ?&lt;/p&gt;
&lt;p&gt;Could you also attach the trace for iPhone 5 ?&lt;/p&gt;
&lt;p&gt;You can try SDK v6.x with S110 v7.x for testing with XLR2. You can download the .zip file for the SDK (don&amp;#39;t use pack) &lt;a href="http://developer.nordicsemi.com/nRF51_SDK/nRF51_SDK_v6.x.x/"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: irk saved but android 5.0 cannot reconnect to s110</title><link>https://devzone.nordicsemi.com/thread/28367?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2015 08:14:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e31b50af-ebdb-4e4c-b7d8-10b342df520c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Now: I was on a biz trip last week. I will try to have a look into your case asap today.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: irk saved but android 5.0 cannot reconnect to s110</title><link>https://devzone.nordicsemi.com/thread/28368?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2015 05:57:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8a25606-db01-44d3-861f-7b315effd334</guid><dc:creator>Now</dc:creator><description>&lt;p&gt;@Hung, do you have any suggestion for this issue? Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: irk saved but android 5.0 cannot reconnect to s110</title><link>https://devzone.nordicsemi.com/thread/28366?ContentTypeID=1</link><pubDate>Thu, 09 Jul 2015 05:41:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eca71526-8b00-40c1-8a99-8e2ab297d137</guid><dc:creator>Now</dc:creator><description>&lt;p&gt;Hi Hung, two sniffer log files are uploaded, we did re-bonding after deleting the device in android phone, and capture re-bond log file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: irk saved but android 5.0 cannot reconnect to s110</title><link>https://devzone.nordicsemi.com/thread/28365?ContentTypeID=1</link><pubDate>Thu, 09 Jul 2015 05:39:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a461137a-79ea-4fcb-ad5f-796c4b038f13</guid><dc:creator>Now</dc:creator><description>&lt;p&gt;re-bond,fail - &lt;a href="https://drive.google.com/file/d/0B6OFbawCDPeTSUtMZ2J3QlpvWTA/view?usp=sharing"&gt;drive.google.com/.../view&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: irk saved but android 5.0 cannot reconnect to s110</title><link>https://devzone.nordicsemi.com/thread/28364?ContentTypeID=1</link><pubDate>Thu, 09 Jul 2015 05:38:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3313e164-e79e-44a0-b253-504047f5c472</guid><dc:creator>Now</dc:creator><description>&lt;p&gt;1st bond,ok - &lt;a href="https://drive.google.com/file/d/0B6OFbawCDPeTc09OZ2hOUGdscEE/view?usp=sharing"&gt;drive.google.com/.../view&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: irk saved but android 5.0 cannot reconnect to s110</title><link>https://devzone.nordicsemi.com/thread/28362?ContentTypeID=1</link><pubDate>Wed, 08 Jul 2015 08:36:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03b20160-880c-43fd-9a23-2ca0567e13d3</guid><dc:creator>Now</dc:creator><description>&lt;p&gt;Hi Hung, dongle can work now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: irk saved but android 5.0 cannot reconnect to s110</title><link>https://devzone.nordicsemi.com/thread/28363?ContentTypeID=1</link><pubDate>Wed, 08 Jul 2015 08:03:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcbf04b9-ff11-4e28-bac7-8b9fc4e04604</guid><dc:creator>Now</dc:creator><description>&lt;p&gt;@Hung, we use PCA10000, but still cannot work after plugging/unplugging. We&amp;#39;ll try proximity example and check dongle later. One question about your test, could you help check if you can re-connect to S110 with whitelist advertising after re-bonding? We can re-connect to S110 after re-bonding if S110 advertises without whitelist, but fails if with whitelist.  Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: irk saved but android 5.0 cannot reconnect to s110</title><link>https://devzone.nordicsemi.com/thread/28359?ContentTypeID=1</link><pubDate>Tue, 07 Jul 2015 09:57:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb6462b2-e29e-4488-b415-fa20e843d0e6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Now: Which dongle do you have ? You can either use the dongle or use the nRF51 DK to act as the sniffer. You may want to unplug (wait 5 seconds) and plug the dongle in and out on the USB port.&lt;/p&gt;
&lt;p&gt;My Nexus 7 running Android v5.1.1&lt;/p&gt;
&lt;p&gt;I would suggest you to test with the proximity example in our SDK .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: irk saved but android 5.0 cannot reconnect to s110</title><link>https://devzone.nordicsemi.com/thread/28361?ContentTypeID=1</link><pubDate>Tue, 07 Jul 2015 09:11:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34a5563f-8b64-4398-9bf5-ea2ec19e75f3</guid><dc:creator>Now</dc:creator><description>&lt;p&gt;ble-sniffer_win_1.0.1_1111_Sniffer cannot find dongle on my win7, but I&amp;#39;ve already update firmware by nRfGo and download program by ble-sniffer_win_1.0.1_1111_Sniffer + control-R. Even following the answer of debug  guide - &amp;quot;The Sniffer is connected to the computer and it says “Finding Sniffer Dongle” but it is taking a while to find the dongle.&amp;quot;, it still cannot find dongle. But in the procedure, I cannot find sniffer.cfg in sniffer folder or Wireshark folder.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: irk saved but android 5.0 cannot reconnect to s110</title><link>https://devzone.nordicsemi.com/thread/28360?ContentTypeID=1</link><pubDate>Tue, 07 Jul 2015 07:13:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37941b0c-6dad-4cb9-b91e-1bc003ef8e1e</guid><dc:creator>Now</dc:creator><description>&lt;p&gt;Hi Hung,
Does your Nexus 7 run on Android L? We checked IRK value when irk_count = 2, and two irk values are the same. We&amp;#39;ll try get sniffer log later, since we need time to get dongle.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: irk saved but android 5.0 cannot reconnect to s110</title><link>https://devzone.nordicsemi.com/thread/28357?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2015 14:48:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:567f41c8-9650-453d-b66c-f25390d2ee0b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Now: I just checked here, my memory was wrong, on SDK v6.1 we update the old bond information when the central request bonding again. So you should only see irk_count = 1. If you still use the same device.&lt;/p&gt;
&lt;p&gt;I checked with my Nexus7 here and confirm that. I would need the sniffer trace from you to know what could be wrong here. Have you check the irk list to see if both of them are the same IRK ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: irk saved but android 5.0 cannot reconnect to s110</title><link>https://devzone.nordicsemi.com/thread/28356?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2015 07:52:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:981e00bb-9fc5-4671-9822-c843ce0f2849</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Now: On SDK v6.x we will create a new bond (treat it as a new central) when previously bonded device connect and request bonding again.&lt;/p&gt;
&lt;p&gt;Regarding irk_counter is increased, I need to have a sniffer trace to be able to know if the Nexus tablet changes the irk when delete bonding or keeps the old one but the nRF51 couldn&amp;#39;t detect it.&lt;/p&gt;
&lt;p&gt;I will try to reproduce the issue here with my Nexus 7 to see if it worked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: irk saved but android 5.0 cannot reconnect to s110</title><link>https://devzone.nordicsemi.com/thread/28355?ContentTypeID=1</link><pubDate>Wed, 01 Jul 2015 16:31:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fe24a9a-335d-44cb-bd46-77f1e33ac045</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Now: If you could provide a &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF-Sniffer/(language)/eng-GB"&gt;sniffer trace&lt;/a&gt;, it would be easier to find what could be wrong here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: irk saved but android 5.0 cannot reconnect to s110</title><link>https://devzone.nordicsemi.com/thread/28358?ContentTypeID=1</link><pubDate>Wed, 01 Jul 2015 07:41:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7c548d0-cb51-44c2-9467-9946f0c8702a</guid><dc:creator>Now</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure if the same android device do rebonding, irk_counter should increase.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>