<?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>Cannot disconnect ANCS while quit from App</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20201/cannot-disconnect-ancs-while-quit-from-app</link><description>Dears,
I am developing a ANCS application with nus service on our product. There are a few problems I don&amp;#39;t know how to fix it.
My problem is that :
1. ANCS will not disconnect with iPhone, while App closed. And reopen the App, the App cannot discover</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 May 2017 09:16:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20201/cannot-disconnect-ancs-while-quit-from-app" /><item><title>RE: Cannot disconnect ANCS while quit from App</title><link>https://devzone.nordicsemi.com/thread/78705?ContentTypeID=1</link><pubDate>Wed, 03 May 2017 09:16:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22c151c9-fb3e-499f-b93d-06df14816692</guid><dc:creator>Stanley</dc:creator><description>&lt;p&gt;I am working on SDK v12.0.0 for ANCS application. I will try your comment and let you know if any questions. Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot disconnect ANCS while quit from App</title><link>https://devzone.nordicsemi.com/thread/78702?ContentTypeID=1</link><pubDate>Tue, 18 Apr 2017 12:38:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91f5aea8-28f0-49d1-8360-27fd29ef890f</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;What SDK version are you using? Note that the ANCS example have significant changes and improvements in the newer SDKs.&lt;/p&gt;
&lt;p&gt;When the BLE-connection is disconnected, the nRF51 device will get an event called &lt;code&gt;BLE_GAP_EVT_DISCONNECTED&lt;/code&gt;, and it should automatically start advertising again. Is the system still rebooting? See &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/"&gt;this devzone&lt;/a&gt; post on how to debug your application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot disconnect ANCS while quit from App</title><link>https://devzone.nordicsemi.com/thread/78704?ContentTypeID=1</link><pubDate>Mon, 17 Apr 2017 07:55:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:502cea77-aac9-48c7-b054-89cb2a615818</guid><dc:creator>Stanley</dc:creator><description>&lt;p&gt;Hi Sigurd,
Have any advices?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot disconnect ANCS while quit from App</title><link>https://devzone.nordicsemi.com/thread/78703?ContentTypeID=1</link><pubDate>Sun, 09 Apr 2017 12:17:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f21f54f4-ce13-4749-b447-379667e77bbb</guid><dc:creator>Stanley</dc:creator><description>&lt;p&gt;Yes, you are correct.  The App cannot find the nRF51 device after disconnected. How can the App find out our nRF51 device again? or make the nRF51 device broadcasting again?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot disconnect ANCS while quit from App</title><link>https://devzone.nordicsemi.com/thread/78701?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2017 11:48:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a00c3a4-e003-4088-ad43-ef6ad89983b2</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Yes, it&amp;#39;s possible to merge NUS and ANCS. So if I understand you correctly, your mobile app is not &amp;quot;informed&amp;quot; when the nRF51 disconnects from the mobile-app? So the mobile app thinks that it’s still connected to the nRF51?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot disconnect ANCS while quit from App</title><link>https://devzone.nordicsemi.com/thread/78700?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2017 14:23:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a967af2c-4b75-4bb4-bfb6-d861e2196bff</guid><dc:creator>Stanley</dc:creator><description>&lt;p&gt;There is no advertising happening during ANCS connected with App. I mean the application (the SDK of ANCS with  nus) didn&amp;#39;t know the connection breaking, when pca100028 disconnected from App. I think it could against the behavior when I merged the nus service together. Is it possible to merge the applications of nus and ANCS together?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot disconnect ANCS while quit from App</title><link>https://devzone.nordicsemi.com/thread/78698?ContentTypeID=1</link><pubDate>Wed, 08 Mar 2017 12:50:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:291e36b3-9cdc-493d-b479-4b24d092ad4a</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;You are unable to find the device during advertising, using the nRF-Connect app?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot disconnect ANCS while quit from App</title><link>https://devzone.nordicsemi.com/thread/78699?ContentTypeID=1</link><pubDate>Wed, 08 Mar 2017 07:12:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2129456-5a91-4543-b047-3ce74ccb25bd</guid><dc:creator>Stanley</dc:creator><description>&lt;p&gt;Yes, we are developing App and nRF51822 ANCS device application. Now, iPhone will reconnect device automatically. App(Nordic App or Lightblue) cannot find the device during advertising. However, I will check your commend and see. Thanks for your advice, Sigurd.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot disconnect ANCS while quit from App</title><link>https://devzone.nordicsemi.com/thread/78697?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2017 16:04:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72b92cbd-b68e-4574-a9b5-6e1cf8b3d70d</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;You are developing your own mobile app? See chapter 4 in &lt;a href="https://devzone.nordicsemi.com/attachment/bdd561ff56924e10ea78057b91c5c642"&gt;this document&lt;/a&gt;. Also note that the ANCS example will by default reject pairing request from an already bonded peer for security reasons. However, it is possible to override this by setting the .allow_repairing to true. (See Peer Manager event &lt;code&gt;PM_EVT_CONN_SEC_CONFIG_REQ&lt;/code&gt; in main.c)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>