<?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>Problems with nRFDK not disconnecting from iPhone running nRF Connect App</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86503/problems-with-nrfdk-not-disconnecting-from-iphone-running-nrf-connect-app</link><description>I&amp;#39;m playing around with the \v1.9.1\nrf\samples\bluetooth\peripheral_cts_client example on my nRFDK, and trying to implement something similar in my own code. I&amp;#39;m running Zephyr/VSC with the nRF Connect add-in. 
 What I notice is that once I have connected</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Apr 2022 22:52:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86503/problems-with-nrfdk-not-disconnecting-from-iphone-running-nrf-connect-app" /><item><title>RE: Problems with nRFDK not disconnecting from iPhone running nRF Connect App</title><link>https://devzone.nordicsemi.com/thread/361926?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 22:52:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79fa7990-b3ee-4c51-88dc-fdf3a09743f2</guid><dc:creator>Mike Austin (LPI)</dc:creator><description>&lt;p&gt;If I use the nRF Connect for Desktop on my Windows machine, everything works as expected, and I can get the Peripheral to respond to a disconnect command from the Central when they are paired and bonded - which is the behaviour I would expect.&lt;/p&gt;
&lt;p&gt;Must be something about the App, or iOS devices that prevents this functionality, because I see it on both the nRF Connect App and the LightBlue App.&amp;nbsp; I&amp;#39;m using an iOS device, so not sure if the same behaviour occurs on an Android device&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with nRFDK not disconnecting from iPhone running nRF Connect App</title><link>https://devzone.nordicsemi.com/thread/361832?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 12:19:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a36d33a5-2495-4149-80c2-d1a392ecc04f</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;Again, I guess this is some limitation decided by the iOS or Android system. I do not have a better answer from the BLE peripheral perspective.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with nRFDK not disconnecting from iPhone running nRF Connect App</title><link>https://devzone.nordicsemi.com/thread/361628?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 22:43:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b12454d9-da38-4311-b3ac-8a58eeb2d9b2</guid><dc:creator>Mike Austin (LPI)</dc:creator><description>&lt;p&gt;Hi Charlie,&lt;/p&gt;
&lt;p&gt;Thanks for the confirmation.&amp;nbsp; It only seems to be an issue when the Central and Peripheral are bonded.&amp;nbsp; Why is that?&lt;/p&gt;
&lt;p&gt;If there is a non-bonded connection, the Central can issue the disconnect command and the Peripheral will acknowledge and disconnect.&lt;/p&gt;
&lt;p&gt;But if the connection is bonded, this doesn&amp;#39;t occur.&amp;nbsp; Is this an intentional design feature for bonded connections?&amp;nbsp; Just trying to understand the &amp;quot;why&amp;quot; even though I&amp;#39;ve got a solution to the problem&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with nRFDK not disconnecting from iPhone running nRF Connect App</title><link>https://devzone.nordicsemi.com/thread/361580?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 14:41:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c78e1c3-2525-4772-85e9-a5e6141a0667</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;Yes, the app itself doe not have access to disconnect Bluetooth Device, you need either go to Settings-&amp;gt;Bluetooth-&amp;gt;Forget this device on iOS system level or disconnect from periperial.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with nRFDK not disconnecting from iPhone running nRF Connect App</title><link>https://devzone.nordicsemi.com/thread/361373?ContentTypeID=1</link><pubDate>Sun, 03 Apr 2022 22:09:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:496bcdbb-100b-40b8-a538-30ff6b37a842</guid><dc:creator>Mike Austin (LPI)</dc:creator><description>&lt;p&gt;Had a bit more of a look into this over the weekend.&amp;nbsp; Seems there are plenty of references to this behaviour on the Nordic DevZone, but all are related to Android devices as the Central, not iOS devices.&amp;nbsp; And no-one appears to have provided a reason/solution, beyond forcing the disconnection from the Peripheral side.&amp;nbsp; Seems a bit counter-intuitive for a Peripheral to be severing the connection that a Central has requested though.&lt;/p&gt;
&lt;p&gt;So, I had a play around with that approach and putting in a call to:&lt;/p&gt;
&lt;p&gt;bt_conn_disconnect(cts_c-&amp;gt;conn, BT_HCI_ERR_REMOTE_USER_TERM_CONN);&lt;/p&gt;
&lt;p&gt;once the Peripheral had successfully grabbed the current time.&amp;nbsp; This appears to work.&lt;/p&gt;
&lt;p&gt;Seems like a cludgy work-around to me though.&amp;nbsp; Surely a Peripheral should respond to a disconnect request from a Central, regardless of whether they are bonded or not?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with nRFDK not disconnecting from iPhone running nRF Connect App</title><link>https://devzone.nordicsemi.com/thread/361158?ContentTypeID=1</link><pubDate>Fri, 01 Apr 2022 08:22:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63f47a57-90f8-48d6-b259-1c8b04d0768d</guid><dc:creator>leox</dc:creator><description>&lt;p&gt;Same to me, only affects the bonded devices.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with nRFDK not disconnecting from iPhone running nRF Connect App</title><link>https://devzone.nordicsemi.com/thread/361153?ContentTypeID=1</link><pubDate>Fri, 01 Apr 2022 07:59:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f39f8493-39fa-4e85-aa5c-ca2177d0f7c3</guid><dc:creator>Mike Austin (LPI)</dc:creator><description>&lt;p&gt;No, they&amp;rsquo;re not. Maybe that&amp;rsquo;s the issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with nRFDK not disconnecting from iPhone running nRF Connect App</title><link>https://devzone.nordicsemi.com/thread/361149?ContentTypeID=1</link><pubDate>Fri, 01 Apr 2022 07:47:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37d5ee35-72c9-48be-8c40-642fe170f69c</guid><dc:creator>leox</dc:creator><description>&lt;p&gt;Are other examples bonded with iOS? &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with nRFDK not disconnecting from iPhone running nRF Connect App</title><link>https://devzone.nordicsemi.com/thread/361148?ContentTypeID=1</link><pubDate>Fri, 01 Apr 2022 07:44:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc8c9929-bf6e-4b0d-873a-3597994e0b70</guid><dc:creator>Mike Austin (LPI)</dc:creator><description>&lt;p&gt;Weird thing is, any of the other BLE examples work fine with the iOS nRF Connect App. I can get them to connect and disconnect ok using the App.&lt;/p&gt;
&lt;p&gt;And if I use another BLE App (eg: LightBlue) I see the same behavior where the App wants to disconnect but my code stays connected.&lt;/p&gt;
&lt;p&gt;I can&amp;rsquo;t I understand why it&amp;rsquo;s an issue with this example code and not with any other BLE examples I&amp;rsquo;ve tried&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with nRFDK not disconnecting from iPhone running nRF Connect App</title><link>https://devzone.nordicsemi.com/thread/361146?ContentTypeID=1</link><pubDate>Fri, 01 Apr 2022 07:31:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:766222cc-65a7-406f-92a3-b41181fa05bb</guid><dc:creator>leox</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;I got the same with a iOS device after BLE bonded with the iOS.&amp;nbsp; Android phone is ok. It looks like a issue with the nRF connect app with iOS. &lt;/p&gt;
&lt;p&gt;The peripherial_uart working ok without bonding. please run the following and see if works at your side.&lt;/p&gt;
&lt;p&gt;1: connect the DK to PC, and run command &amp;#39;nrfjprog --recover&amp;#39;&amp;nbsp; in a terminal&amp;nbsp; // to remove the bonding.&lt;/p&gt;
&lt;p&gt;2: compile example &amp;#39;peripherial_uart&amp;#39; and flash it to DK.&lt;/p&gt;
&lt;p&gt;3: try to connect with nRF connect app on mobile, and disconnect.&amp;nbsp; And see if ok to disconnect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>