<?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>Suddenly I&amp;#39;m seeing spontaneous disconnects in my iOS 7 app from my nRF51822 peripheral</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/664/suddenly-i-m-seeing-spontaneous-disconnects-in-my-ios-7-app-from-my-nrf51822-peripheral</link><description>Suddenly my app, running on iOS 7, is reporting lots of spontaneous disconnects by the peripheral device, an nRF51822, indicating a timeout: 
 didDisconnectPeripheral: Peripheral with UUID = 2F82C038-59AF-FA33-1963-644155D9CD09 disconnected, error =</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Dec 2019 10:17:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/664/suddenly-i-m-seeing-spontaneous-disconnects-in-my-ios-7-app-from-my-nrf51822-peripheral" /><item><title>RE: Suddenly I'm seeing spontaneous disconnects in my iOS 7 app from my nRF51822 peripheral</title><link>https://devzone.nordicsemi.com/thread/225840?ContentTypeID=1</link><pubDate>Tue, 17 Dec 2019 10:17:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7deef149-2918-4bb6-b0c4-1264baabbf95</guid><dc:creator>SorenKonekt</dc:creator><description>&lt;p&gt;same issue here. seems like most of the issues like this one end up without any apparent solution. Is this because poster resolve this through private support tickets, or is there a core issue between some versions of IOS and NRF Bluetooth stack that no one really undestands? Worries me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Suddenly I'm seeing spontaneous disconnects in my iOS 7 app from my nRF51822 peripheral</title><link>https://devzone.nordicsemi.com/thread/3359?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2013 09:01:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d29b123d-7ca7-4476-b5fe-d9093a53a651</guid><dc:creator>Masamine Someha</dc:creator><description>&lt;p&gt;Was this issue resolved?  I have a similar situation where the connection disconnects when it is trying to discover the services.  It seems to be connected to using an active oscillator from another processor.  But all the bluetooth connection works once the service discovery completes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Suddenly I'm seeing spontaneous disconnects in my iOS 7 app from my nRF51822 peripheral</title><link>https://devzone.nordicsemi.com/thread/3358?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2013 11:46:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09c1ad5f-4faa-4f65-a823-7d6c52e9f50a</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Hi Ole,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll let Don address creating the support case and providing the sniffer trace.&lt;/p&gt;
&lt;p&gt;I can answer your question regarding Master Control Panel. I use the Master Control Panel extensively as I develop our embedded FW. The problem does not appear with the Master Control Panel. It appears to be some sort of interaction between the iOS Core Bluetooth and the Soft Device Stack. One observation I have made is that the Master Control Panel and Core Blue tooth have different methods to read out the services and characteristics immediately after the connection request/response.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Suddenly I'm seeing spontaneous disconnects in my iOS 7 app from my nRF51822 peripheral</title><link>https://devzone.nordicsemi.com/thread/3357?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2013 09:12:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f53c673b-2a8a-48fe-822f-cf0dad8f7b9f</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;It&amp;#39;s hard to be specific on issues like these, but having access to the sniffer trace and/or source code would be useful. Have you tried recreating the problem with Master Control Panel?&lt;/p&gt;
&lt;p&gt;Anyway, it seems that this isn&amp;#39;t a good fit for this kind of question-and-answer site, so maybe it would have been easier if you could post this as a regular support case. Please include the sniffer trace when you do.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Suddenly I'm seeing spontaneous disconnects in my iOS 7 app from my nRF51822 peripheral</title><link>https://devzone.nordicsemi.com/thread/3356?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2013 16:08:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02c93953-5fc0-4084-8f25-711be9a28aa2</guid><dc:creator>Don</dc:creator><description>&lt;p&gt;Never mind part of that last post, that particular disconnect occurred because the device had not seen any traffic in 15 seconds and disconnected on it&amp;#39;s own.  The earlier disconnect described occurred spontaneously.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Suddenly I'm seeing spontaneous disconnects in my iOS 7 app from my nRF51822 peripheral</title><link>https://devzone.nordicsemi.com/thread/3354?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2013 16:06:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43a67e5d-cf9d-4cbb-9c9e-67a1c0c533ce</guid><dc:creator>Bastiaan</dc:creator><description>&lt;p&gt;I have a sniffer log file from a ComProbe sniffer that shows a termination happening, initiated by the peripheral.  I could provide that, or a printout of a section of the trace, or a screenshot.  Is there a way to upload files associated with this thread?  (the editing tools plug in URL&amp;#39;s but this file isn&amp;#39;t available via URL)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Suddenly I'm seeing spontaneous disconnects in my iOS 7 app from my nRF51822 peripheral</title><link>https://devzone.nordicsemi.com/thread/3355?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2013 16:06:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eeb2b87b-915e-41a4-af6c-44f68dd04a6e</guid><dc:creator>Guest</dc:creator><description>&lt;p&gt;I have a sniffer log file from a ComProbe sniffer that shows a termination happening, initiated by the peripheral.  I could provide that, or a printout of a section of the trace, or a screenshot.  Is there a way to upload files associated with this thread?  (the editing tools plug in URL&amp;#39;s but this file isn&amp;#39;t available via URL)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Suddenly I'm seeing spontaneous disconnects in my iOS 7 app from my nRF51822 peripheral</title><link>https://devzone.nordicsemi.com/thread/3353?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2013 15:58:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81b6dc9d-1f9f-47fe-8000-51269bec8079</guid><dc:creator>Don</dc:creator><description>&lt;p&gt;Hi Ole.  John has answered questions 1 &amp;amp; 3, I&amp;#39;ll answer # 2.  The disconnect happens at random locations/times.  Earlier today I had a disconnect occur in the midst of the connection attempt (Core Bluetooth told to connect, started that process but then disconnected).  Here are the lines from our log file:
2013-10-21 09:32:34.604 HOBOmobile[164:4703] MXBLEDevice.m:(1182) connectPeripheral: Tell the Central Manager to connect to the target peripheral
2013-10-21 09:32:34.645 HOBOmobile[164:1f6f] MXBLEDevice.m:(1841) didConnectPeripheral: Connection to peripheral with UUID = D93F9E39-89AA-BC5F-B0FA-30745532D7EA successful
2013-10-21 09:32:34.647 HOBOmobile[164:1f6f] MXBLEDevice.m:(1844) didConnectPeripheral: Active peripheral is now = &amp;lt;CBPeripheral: 0x175c5800 identifier = D93F9E39-89AA-BC5F-B0FA-30745532D7EA, Name = &amp;quot;MX1101&amp;quot;, state = connected&amp;gt;
2013-10-21 09:32:34.648 HOBOmobile[164:1f6f] MXBLEDevice.m:(1854) PID = 9218, is a supported Onset device, created MXLoggerMX1101 logger object
2013-10-21 09:32:35.068 HOBOmobile[164:1f6f] MXBLEDevice.m:(1880) didDisconnectPeripheral: Peripheral with UUID = D93F9E39-89AA-BC5F-B0FA-30745532D7EA disconnected, error = Error Domain=CBErrorDomain Code=6 &amp;quot;The connection has timed out unexpectedly.&amp;quot; UserInfo=0x175dcf00 {NSLocalizedDescription=The connection has timed out unexpectedly.}
2013-10-21 09:32:35.073 HOBOmobile[164:1f6f] MXBLEDevice.m:(1887) didDisconnectPeripheral: Unexpected disconnection detected - cleaning up&lt;/p&gt;
&lt;p&gt;In another test I encountered another disconnect that happened spontaneously after the connection was fully established and there had been some other communication with the peripheral.  Suddenly, from the app&amp;#39;s point of view, a spontaneous disconnect occurred.  The last communication with the device happened at 11:14:36.839, then there was some idle time, then the disconnect. Here are the log lines for that one - the didDisconnectPeripheral method is the callback from Core Bluetooth:&lt;/p&gt;
&lt;p&gt;2013-10-21 11:14:51.881 HOBOmobile[188:1f0b] MXBLEDevice.m:(1880) didDisconnectPeripheral: Peripheral with UUID = D93F9E39-89AA-BC5F-B0FA-30745532D7EA disconnected, error = Error Domain=CBErrorDomain Code=0 &amp;quot;Unknown error.&amp;quot; UserInfo=0x16d9c820 {NSLocalizedDescription=Unknown error.}
2013-10-21 11:14:51.884 HOBOmobile[188:1f0b] MXBLEDevice.m:(1887) didDisconnectPeripheral: Unexpected disconnection detected - cleaning up&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Suddenly I'm seeing spontaneous disconnects in my iOS 7 app from my nRF51822 peripheral</title><link>https://devzone.nordicsemi.com/thread/3352?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2013 15:27:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc78d938-b66e-455a-8968-e1fdfa2258a8</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Hi Ole,&lt;/p&gt;
&lt;p&gt;I am working on the embedded FW portion of the project Don is asking about. I can answer questions 1 &amp;amp; 3 for you.&lt;/p&gt;
&lt;p&gt;Currently the app_error_handler is doing a reset. I will modify the code to assert and lock up so we can catch it in the debugger easily.&lt;/p&gt;
&lt;p&gt;Our low frequency oscillator is +/- 20 PPM for its accuracy at 25C. When I call BLE_STACK_HANDLER_INIT, I pass it NRF_CLOCK_LFCLKSRC_XTAL_20_PPM.&lt;/p&gt;
&lt;p&gt;Regards,
John&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Suddenly I'm seeing spontaneous disconnects in my iOS 7 app from my nRF51822 peripheral</title><link>https://devzone.nordicsemi.com/thread/3351?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2013 14:25:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d50ba2cf-82e9-4453-9a40-59270a0ff069</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;This error is just a general connection timeout error, which can be caused by a lot of factors. First of all, I&amp;#39;d recommend you to make sure that app_error_handler does not contain a reset, since this will easily mask errors that could be returned by the softdevice.&lt;/p&gt;
&lt;p&gt;Secondly, it would be interesting to know if there is anything in particular that is happening when you see this kind of problems. Is it close to some specific time (5 s, 10 s, 30 s or similar) after connection, or is it just random?&lt;/p&gt;
&lt;p&gt;Third, this can happen if your clock source is not precise enough. What kind of low-frequency clock do you use?&lt;/p&gt;
&lt;p&gt;The only change I&amp;#39;ve noticed from iOS 6 to 7 affecting applications is that iOS no longer seems to downgrade a write to a write without response, but instead just fails to transmit the data. This can be a problem if you have a characteristic that have the Write Without Response property, but your app tries to do a normal Write. In this case, it seems to me that iOS 6 will &amp;quot;downgrade&amp;quot; the Write to a Write Without Response, while iOS 7 will just not transfer the data. This should however not cause a disconnection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Suddenly I'm seeing spontaneous disconnects in my iOS 7 app from my nRF51822 peripheral</title><link>https://devzone.nordicsemi.com/thread/3350?ContentTypeID=1</link><pubDate>Wed, 16 Oct 2013 21:47:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e5d3606-9640-417f-bd52-9de1232ad168</guid><dc:creator>Rich</dc:creator><description>&lt;p&gt;We are seeing some kind of iO7 issue as well.  An app that worked perfectly well in iOS with regard to core bluetooth is now unable to maintain connection.  Unfortunately, I am working from the BTLE firmware side and don&amp;#39;t know what the app is indicating.  I would be interested in hearing about any resolutions you find.
Rich&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>