<?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 not found</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16075/ancs-not-found</link><description>Hello 
 I&amp;#39;m using nRF51822 with S10 softdevice. SD S110 8
 QQ图片20160830150431.png</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 31 Aug 2016 03:58:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16075/ancs-not-found" /><item><title>RE: ANCS not found</title><link>https://devzone.nordicsemi.com/thread/61312?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2016 03:58:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40138301-1430-47a4-977c-831d05da8813</guid><dc:creator>qinhao</dc:creator><description>&lt;p&gt;put the ancs service init at the first line on function gap_init .
it is works! thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS not found</title><link>https://devzone.nordicsemi.com/thread/61311?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2016 02:03:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca2a56af-b3d6-49b6-9808-0f29289f952f</guid><dc:creator>Coldson</dc:creator><description>&lt;p&gt;Ok, u can try my post. I think it&amp;#39;s the same issue. Can u put ance service init before nus_init and give it a try?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS not found</title><link>https://devzone.nordicsemi.com/thread/61314?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2016 01:51:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:567beb26-c4b7-481d-90e0-5d46c3b10f2f</guid><dc:creator>qinhao</dc:creator><description>&lt;p&gt;I disable the  funcition ble_nus_init(&amp;amp;m_nus, &amp;amp;nus_init) on void services_init(void);
ANCS has been discovered.&lt;/p&gt;
&lt;p&gt;ble_nus_init and ble_ancs_c_init , nus  is  works.  ancs isn&amp;#39;t found.&lt;/p&gt;
&lt;p&gt;I am using SDK v10  + s110 v8.0,following is my services_init():&lt;/p&gt;
&lt;p&gt;static void services_init(void)
{
//@add&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint32_t       err_code;
ble_nus_init_t nus_init;

dis_init();
bas_init();
hids_init();

memset(&amp;amp;nus_init, 0, sizeof(nus_init));

nus_init.data_handler = nus_data_handler;

err_code = ble_nus_init(&amp;amp;m_nus, &amp;amp;nus_init);
APP_ERROR_CHECK(err_code);	

	app_acns_service_init();
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS not found</title><link>https://devzone.nordicsemi.com/thread/61310?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2016 01:46:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2347de2-8c0a-47d6-82e4-1ab7b05b6f99</guid><dc:creator>qinhao</dc:creator><description>&lt;p&gt;I disable the  funcition ble_nus_init(&amp;amp;m_nus, &amp;amp;nus_init) on void services_init(void);
ANCS has been discovered.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS not found</title><link>https://devzone.nordicsemi.com/thread/61309?ContentTypeID=1</link><pubDate>Tue, 30 Aug 2016 17:15:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c78f5154-5bd0-4695-8db4-89e8cadb420e</guid><dc:creator>Coldson</dc:creator><description>&lt;p&gt;Hi Qinhao:&lt;/p&gt;
&lt;p&gt;Can u put the ancs service init at the first line on function gap_init or whatever.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure u facing the same issue as I dealing with, maybe sniffer it will help u to show more detail to me.&lt;/p&gt;
&lt;p&gt;U can try my post :&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/78236/ancs-with-some-custom-service-get-gatt-status-0x010a/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And as Hung Bai&amp;#39;s post, maybe u have to use newest SDK and try again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS not found</title><link>https://devzone.nordicsemi.com/thread/61313?ContentTypeID=1</link><pubDate>Tue, 30 Aug 2016 09:13:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:732fa40d-9112-4021-952e-e3ea4dee6dbf</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Qinhao,&lt;/p&gt;
&lt;p&gt;Which SDK are you using ? We suggest to use SDK v10 if you are using S110 v8.0. There are some bugfixes for ANCS in that SDK.&lt;/p&gt;
&lt;p&gt;Regarding your issue, as you can find &lt;a href="https://developer.apple.com/library/ios/documentation/CoreBluetooth/Reference/AppleNotificationCenterServiceSpecification/Specification/Specification.html#//apple_ref/doc/uid/TP40013460-CH1-SW7"&gt;here&lt;/a&gt;, :
&lt;em&gt;Only one instance of the ANCS may be present on an NP. Due to the nature of iOS, the ANCS is not guaranteed to always be present. As a result, the NC should look for and subscribe to the Service Changed characteristic of the GATT service in order to monitor for the potential publishing and unpublishing of the ANCS at any time.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;You should either subscribe to service changed indication and wait for that or can also simply retrying after a delay of a few second until the service becomes available.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>