<?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>IOS Disconnects after exactly 33 seconds with NRF Connect not other app, Android no issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35078/ios-disconnects-after-exactly-33-seconds-with-nrf-connect-not-other-app-android-no-issue</link><description>Trying to track down an issue with IOS disconnecting shortly after connection when using NRF Connect, LightBlue doesn&amp;#39;t connect at all. 
 
 
 We have a few GATT chars with 20 bytes and static data, and two with read/write/notify enabled. 
 The iPhone8</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Jun 2018 07:14:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35078/ios-disconnects-after-exactly-33-seconds-with-nrf-connect-not-other-app-android-no-issue" /><item><title>RE: IOS Disconnects after exactly 33 seconds with NRF Connect not other app, Android no issue</title><link>https://devzone.nordicsemi.com/thread/135064?ContentTypeID=1</link><pubDate>Thu, 07 Jun 2018 07:14:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb594504-7af2-42d6-b242-43c064d45570</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Unfortunately, I expect that there will always be some bugs with some of the examples. However, we try to fix the issues (big or small) when they are found, and include the fixes in future SDK releases.&lt;/p&gt;
&lt;p&gt;Which example in which SDK version have you based your code on?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IOS Disconnects after exactly 33 seconds with NRF Connect not other app, Android no issue</title><link>https://devzone.nordicsemi.com/thread/135001?ContentTypeID=1</link><pubDate>Wed, 06 Jun 2018 17:57:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99fcb176-7494-425c-b464-2ecc32802916</guid><dc:creator>SRA</dc:creator><description>&lt;p&gt;Ok, that explains nrfConnect. But not why I&amp;#39;m missing an attribute on my handle 15 but not it&amp;#39;s identical copy.&lt;/p&gt;
&lt;p&gt;It also doesn&amp;#39;t explain or excuse that Nordic plays really fast and loose with event handling. SOMETIMES an event is handled in the examples, SOMETIMES it&amp;#39;s not. This is pretty unacceptible to me. The firmware should always be ready to handle anything the softdevice comes up with. You just have to hope you based your code on &amp;quot;the right&amp;quot; example.&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IOS Disconnects after exactly 33 seconds with NRF Connect not other app, Android no issue</title><link>https://devzone.nordicsemi.com/thread/134924?ContentTypeID=1</link><pubDate>Wed, 06 Jun 2018 11:59:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:772ba4d7-4a9f-407c-9e83-178a66c05450</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I just discussed with one of the developers of nRF Connect for iOS. nRF Connect will do a service discovery after connection, and try to read all characteristics. This is a choice they made for nRF Connect&amp;nbsp; which you can always discuss (and Apparently&amp;nbsp;LightBlue does it differently), but&amp;nbsp;there is nothing illegal about it with regard to the BLE specification as far as I can see. The reason it caused problems in the first case in this thread was the incorrect implementation on the nRF side (not handling the &lt;code&gt;BLE_GATTS_EVT_SYS_ATTR_MISSING&lt;/code&gt; event).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IOS Disconnects after exactly 33 seconds with NRF Connect not other app, Android no issue</title><link>https://devzone.nordicsemi.com/thread/134789?ContentTypeID=1</link><pubDate>Tue, 05 Jun 2018 16:24:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7277421-da4f-4016-b6ea-b4136e3ea691</guid><dc:creator>SRA</dc:creator><description>&lt;p&gt;Why would phone try and do that though?&lt;/p&gt;
&lt;p&gt;I have three errors like this in my log, at least one is associated to a real handle with a CCCD that is defined exactly like another one next to it, that one has no errors during this service discovery. So it sure seems like maybe I&amp;#39;m missing a descriptor or something.&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IOS Disconnects after exactly 33 seconds with NRF Connect not other app, Android no issue</title><link>https://devzone.nordicsemi.com/thread/134688?ContentTypeID=1</link><pubDate>Tue, 05 Jun 2018 09:26:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0164620a-e818-4c08-bfe6-ec8f64d14f93</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;Attribute Not Found is because the iPhone (nRF Connect app) attempts to read a handle (in a range) which does not exist. This is not illegal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IOS Disconnects after exactly 33 seconds with NRF Connect not other app, Android no issue</title><link>https://devzone.nordicsemi.com/thread/134624?ContentTypeID=1</link><pubDate>Mon, 04 Jun 2018 23:32:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5075a5cf-f44a-42d7-a03f-7e8d2206f951</guid><dc:creator>SRA</dc:creator><description>&lt;p&gt;While I&amp;#39;d still like to see what someone from Nordic has to say about Attribute Not Found... I fixed the 33 second issue and NRF Connect and LightBlue not working - the events BLE_GAP_EVT_CONN_PARAM_UPDATE and BLE_GATTS_EVT_SYS_ATTR_MISSING in the on_ble_event handler weren&amp;#39;t being handled.&lt;/p&gt;
&lt;p&gt;Most of the fix in my case seems to have been BLE_GATTS_EVT_SYS_ATTR_MISSING to which all I do now is sd_ble_gatts_sys_attr_set(p_ble_evt-&amp;gt;evt.gap_evt.conn_handle, NULL, 0, 0); ... magic, I have no idea what this does yet but it works.&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>