<?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>Proximity profile on nRF51822 with iOS app. Failed to connect.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1036/proximity-profile-on-nrf51822-with-ios-app-failed-to-connect</link><description>I&amp;#39;ve just flashed the softdevice 5.2.1 and BLE Proximity sample app to my nRF51822. I presume any previous bond state on the device should have been wiped by doing this. 
 If I now start the nRF Proximity iOS app and try to connect to the device, I get</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Dec 2013 16:55:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1036/proximity-profile-on-nrf51822-with-ios-app-failed-to-connect" /><item><title>RE: Proximity profile on nRF51822 with iOS app. Failed to connect.</title><link>https://devzone.nordicsemi.com/thread/4915?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2013 16:55:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1360acc0-f694-4dfc-9f51-8f0cb326cb6e</guid><dc:creator>Eliot Stock</dc:creator><description>&lt;p&gt;Sorry, to answer your earlier questions, I&amp;#39;m running iOS 7.0.4 and I don&amp;#39;t see the pairing question at all. I&amp;#39;ve since found the source code for the nRF Proximity iOS app and thanks also for the link to the SDK docs. Between those I should be able to make some progress.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Proximity profile on nRF51822 with iOS app. Failed to connect.</title><link>https://devzone.nordicsemi.com/thread/4914?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2013 13:12:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53670c1b-d8c1-4690-b87a-a987c95f06d8</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;It&amp;#39;s a little unclear to me exactly what you&amp;#39;re seeing, and you don&amp;#39;t state whether or not you get the pairing question from iOS. If you do, you should be able to tap the device in Bluetooth settings, and delete bond information. Note that you must tap the small i, not just on the row of the device.&lt;/p&gt;
&lt;p&gt;Also note that removing a device from nRF Proximity itself does not remove bonding information, since that is impossible for the app both to know and do anything about; removing it from the app will only make nRF Proximity not initiate any further connections to it.&lt;/p&gt;
&lt;p&gt;In general, you should be able to avoid this kind of problems by making sure you don&amp;#39;t delete bond information unless you really want to. It will often make sense to only delete the bond information for the old Central once you have successfully bonded again with a new Central, or it might make sense to keep bonding information for all devices. If so, you need to make a decision on what to do if your user bonds with too many devices. Either way, I&amp;#39;d recommend you to pass an event handler in the bond_manager_init() function and use those events to behave appropriately.&lt;/p&gt;
&lt;p&gt;Also, you should also consider whether you actually need bonding at all. If you can, you make some things easier by just using an open link.&lt;/p&gt;
&lt;p&gt;For general information on what bonding is and how it works, &lt;a href="https://devzone.nordicsemi.com/documentation/nrf51/5.0.0/html/ble_pairing_guide.html"&gt;this guide&lt;/a&gt; may be useful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Proximity profile on nRF51822 with iOS app. Failed to connect.</title><link>https://devzone.nordicsemi.com/thread/4913?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2013 00:33:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2670eac-a170-4e41-a278-418cae58f763</guid><dc:creator>Eliot Stock</dc:creator><description>&lt;p&gt;I haven&amp;#39;t figured out how I&amp;#39;m able to get the device into this state, but my dev kit now flickers between two states on an interval of about a second:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;LEDs 0 and 6 on, all others off. Bluetooth settings on iOS device show &amp;quot;Not connected&amp;quot;&lt;/li&gt;
&lt;li&gt;LEDs 1 and 5 on, all others off. Bluetooth settings on iOS device show &amp;quot;Connected&amp;quot;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;You cannot forget the device from the iOS Bluetooth settings in this state, because you can&amp;#39;t click on it. However, you can use the nRF Proximity app to pair with the device and it will settle into the  second state. From there, you can use the trash can button in the app to forget the device and it will go back to advertising, correctly.&lt;/p&gt;
&lt;p&gt;How does the device get into this state? How do I avoid that in my own iOS app code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Proximity profile on nRF51822 with iOS app. Failed to connect.</title><link>https://devzone.nordicsemi.com/thread/4912?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2013 12:01:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e01637a4-e54f-41dc-905e-ec9e231f40a5</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;I just tested this with an iPhone running iOS 7.0.4, and I don&amp;#39;t see any problems; the device comes up in the list and then the question from iOS whether you want to pair comes up. Accepting this, things seems to work.&lt;/p&gt;
&lt;p&gt;However, on another phone, running iOS 7.1 beta, I do see this error popping up several times, but in between them the pairing question also comes. When accepting this, things also seems to work correctly. I will however try to get this bug fixed for a future version.&lt;/p&gt;
&lt;p&gt;Which iOS version are you using? Do you not see this pairing question at all?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Proximity profile on nRF51822 with iOS app. Failed to connect.</title><link>https://devzone.nordicsemi.com/thread/4911?ContentTypeID=1</link><pubDate>Mon, 02 Dec 2013 23:48:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:109c4c72-dc6b-4f53-875e-33631e2439ce</guid><dc:creator>Eliot Stock</dc:creator><description>&lt;p&gt;Fine, but with the advertising device (the dev kit) off, there are no devices listed in the iOS Bluetooth settings at all.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Proximity profile on nRF51822 with iOS app. Failed to connect.</title><link>https://devzone.nordicsemi.com/thread/4910?ContentTypeID=1</link><pubDate>Mon, 02 Dec 2013 13:48:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e9d19c4-0eb7-40aa-8441-03eaa2a6b970</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;It does refer to iOS&amp;#39;s Bluetooth settings. I&amp;#39;d recommend you to turn off the advertising device, and then go back into the settings following &lt;a href="https://www.nordicsemi.com/chi/Nordic-FAQ/Silicon-Products/nRF8002/Why-does-my-iPhone-immediately-disconnect-from-my-nRF8001-nRF8002"&gt;this procedure&lt;/a&gt;. Even though this is shown for iOS 5.1 and nRF8002, the procedure is the same also for later iOS versions and nRF51822.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>