<?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>ANCS  problem in SDK15.0 of disconnect by the reason of 0x13</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36312/ancs-problem-in-sdk15-0-of-disconnect-by-the-reason-of-0x13</link><description>Hi, nordic 
 I get some problem when developing the ancs with SDK15.0. 
 I run the demo with ble_app_ancs_c on the board of PCA10040. 
 First of all, after my iphoneX (system version 11.3.1) connected to the ble device, with bond,the ancs works well.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Sep 2018 13:29:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36312/ancs-problem-in-sdk15-0-of-disconnect-by-the-reason-of-0x13" /><item><title>RE: ANCS  problem in SDK15.0 of disconnect by the reason of 0x13</title><link>https://devzone.nordicsemi.com/thread/149466?ContentTypeID=1</link><pubDate>Wed, 19 Sep 2018 13:29:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba5ac09c-4513-457b-8419-3db374afe7e1</guid><dc:creator>OPQ</dc:creator><description>&lt;p&gt;using SDK15.0, I also have the same problem but apparently is not solved by commenting out nrf_ble_gatts_c_init() in main.c.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS  problem in SDK15.0 of disconnect by the reason of 0x13</title><link>https://devzone.nordicsemi.com/thread/145965?ContentTypeID=1</link><pubDate>Mon, 27 Aug 2018 14:08:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0aa47f42-0a5a-4a6a-8800-cb393423f6cc</guid><dc:creator>RF_Beekeeper</dc:creator><description>&lt;p style="color:black;font-family:Arial;font-size:9.0pt;margin:0in;"&gt;Hello Mttrinh,&lt;/p&gt;
&lt;p style="color:black;font-family:Arial;font-size:9.0pt;margin:0in;"&gt;&lt;span lang="en-US"&gt;I have the same problem but apparently is not solved by commenting out&amp;nbsp;&lt;/span&gt;&lt;span lang="it"&gt;nrf_ble_gatts_c_init() in main.c. Every 30 seconds&amp;nbsp;i&amp;nbsp;receive a disconnect reasoned by a 0x13 (19 decimal). I have browsed through all the threads but couldn&amp;#39;t find anything relevant, has there been any progress on this issue? I have not been able to sniff the RF yet due to my company firewall (apparently&amp;nbsp;wireshark&amp;nbsp;doesn&amp;#39;t like it)..&amp;nbsp;I will&amp;nbsp;setup&amp;nbsp;a laptop but I am pretty sure I will just see a disconnect event from IoS with no apparent reason. I am running the ANCS demo to which I added multimedia control, battery service&amp;nbsp;and&amp;nbsp;other proprietary&amp;nbsp;UUIDS. All of them work well while the system is connected.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="color:black;font-family:Arial;font-size:9.0pt;margin:0in;"&gt;thank you.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS  problem in SDK15.0 of disconnect by the reason of 0x13</title><link>https://devzone.nordicsemi.com/thread/140218?ContentTypeID=1</link><pubDate>Mon, 16 Jul 2018 13:27:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:437319cf-017d-4de3-805a-d366d5960788</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The relevant change between SDK 14.2.0 and 15.0.0 is that the ANCS example now subscribes to the service changed characteristic (and perform a service discovery when there is an indication on it). However, the example does not store the GATT database so that it can be reused between connections. Therefor the example also does a service discovery upon every reconnect. This is not the intended use of the service changed characteristic, and it seems that iOS will disconnect in this case, where the peer subscribes to the service changed characteristic but still does service discovery without an indication.&lt;/p&gt;
&lt;p&gt;There are several possible ways to fix this issue:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The simplest is to comment out the call to&amp;nbsp;nrf_ble_gatts_c_init() in main.c of the ANCS example. This will give it the same behavior as in SDK 14.2, where service changed is not subscribed to.&lt;/li&gt;
&lt;li&gt;Properly handle service changed indication, storing the database between connections. You can see how this is implemented in the&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/ble_sdk_app_gatts_c.html?cp=4_0_0_4_1_2_10"&gt;GATT Service Client Example Application&lt;/a&gt;&amp;nbsp;and use that as a reference if you want to implement this for ANCS.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS  problem in SDK15.0 of disconnect by the reason of 0x13</title><link>https://devzone.nordicsemi.com/thread/140110?ContentTypeID=1</link><pubDate>Sat, 14 Jul 2018 02:49:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9b898f8-bb53-4164-beef-a77c2503f060</guid><dc:creator>kingwheat</dc:creator><description>&lt;p&gt;Thank you so much!&lt;/p&gt;
&lt;p&gt;My project is &amp;nbsp;blocking by this problem, although i have try what i can.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS  problem in SDK15.0 of disconnect by the reason of 0x13</title><link>https://devzone.nordicsemi.com/thread/140062?ContentTypeID=1</link><pubDate>Fri, 13 Jul 2018 12:32:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73e47a69-2d97-4da3-9115-70cbf3a0b418</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I managed to reproduced this issue. I will report this internally.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry for the inconvenience.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS  problem in SDK15.0 of disconnect by the reason of 0x13</title><link>https://devzone.nordicsemi.com/thread/140039?ContentTypeID=1</link><pubDate>Fri, 13 Jul 2018 09:49:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acee4252-7a2d-414a-a53e-9915225f4aad</guid><dc:creator>kingwheat</dc:creator><description>&lt;p&gt;My problem still can&amp;#39;t slove, but I find out someone has the problem like me :&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/11837/automatically-disconnection-ios?ReplySortBy=CreatedDate&amp;amp;ReplySortOrder=Ascending"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/11837/automatically-disconnection-ios?ReplySortBy=CreatedDate&amp;amp;ReplySortOrder=Ascending&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And i change the connect interval both the min and the max to 20ms -- 75ms&lt;/p&gt;
&lt;p&gt;but it seems nothing different , that still disconnected every 30 second.&lt;/p&gt;
&lt;p&gt;Fisrt of all ,i think the system get into sleep mode , but i set the break point in the debug mode, it didn&amp;#39;t jump in the sleep mode ..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>