<?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>Apple Notification Center Service (ANCS) in Zephyr OS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86663/apple-notification-center-service-ancs-in-zephyr-os</link><description>Hello everyone! 
 Has anyone ever implemented ANCS (Apple Notification Center Service) in ZephyrOS? 
 We are using nRF51822 SoC with the goal to connect to the smartphone running iOS and exchange data. Do we need to implement ANCS in the code even though</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 Apr 2022 13:06:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86663/apple-notification-center-service-ancs-in-zephyr-os" /><item><title>RE: Apple Notification Center Service (ANCS) in Zephyr OS</title><link>https://devzone.nordicsemi.com/thread/362869?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2022 13:06:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a24b72b2-0994-41e2-8925-21931eedc912</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello Bojan,&lt;/p&gt;
&lt;p&gt;The ANCS client service is a part of the nrf repo so you would have to copy it to your project as you are not using the nRF connect SDK. The implementation can be found here: &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/subsys/bluetooth/services/ancs_client.c"&gt;https://github.com/nrfconnect/sdk-nrf/blob/main/subsys/bluetooth/services/ancs_client.c&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;Same goes for the &lt;a class="reference internal" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/libraries/bluetooth_services/gatt_dm.html"&gt;GATT Discovery Manager&lt;/a&gt; and the &lt;a class="reference internal" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/libraries/bluetooth_services/services/gattp.html"&gt;Generic Attribute (GATT) Profile&lt;/a&gt; module if you want to include those.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Apple Notification Center Service (ANCS) in Zephyr OS</title><link>https://devzone.nordicsemi.com/thread/362867?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2022 12:57:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4834384-9382-4924-bbba-00492c60d50a</guid><dc:creator>bojan</dc:creator><description>&lt;p&gt;Hello, &lt;a href="https://devzone.nordicsemi.com/members/vibe"&gt;Vidar Berg&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Thanks for the useful info. I am using Zephyr v2.6.0 and the &lt;em&gt;&lt;strong&gt;&lt;span style="background-color:#ccffff;"&gt;west&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt; tool for compilation (so it&amp;#39;s not &lt;a href="https://www.nordicsemi.com/Products/Development-software/nrf-connect-sdk" rel="noopener noreferrer" target="_blank"&gt;nRF Connect &lt;/a&gt;SDK-based environment).&lt;/p&gt;
&lt;p&gt;When I included the following ANCS-related things from the &lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/main/samples/bluetooth/peripheral_ancs_client" rel="noopener noreferrer" target="_blank"&gt;peripheral_ancs_client&lt;/a&gt; example into the &lt;strong&gt;&lt;em&gt;&lt;span style="background-color:#ccffff;"&gt;prj.conf&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt; file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;CONFIG_BT=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_DEVICE_NAME=&amp;quot;ANCS&amp;quot;
CONFIG_BT_SMP=y
CONFIG_BT_GATT_CLIENT=y
CONFIG_BT_GATT_DM=y

# Enable ANCS client
CONFIG_BT_ANCS_CLIENT=y

# Enable GATT Service client
CONFIG_BT_GATTP=y

# Enable bonding
CONFIG_BT_SETTINGS=y
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_NVS=y
CONFIG_SETTINGS=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and tried to compile, I got the following errors:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;prj.conf:39: warning: attempt to assign the value &amp;#39;y&amp;#39; to the undefined symbol BT_GATT_DM
prj.conf:42: warning: attempt to assign the value &amp;#39;y&amp;#39; to the undefined symbol BT_ANCS_CLIENT
prj.conf:45: warning: attempt to assign the value &amp;#39;y&amp;#39; to the undefined symbol BT_GATTP

error: Aborting due to Kconfig warnings
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Do you have any idea what I am missing here?&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;Cheers &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f37b.svg" title="Beers"&gt;&amp;#x1f37b;&lt;/span&gt;!&lt;/p&gt;
&lt;p&gt;Bojan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Apple Notification Center Service (ANCS) in Zephyr OS</title><link>https://devzone.nordicsemi.com/thread/362066?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 11:42:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:773d3e96-1300-4813-8365-f6651e74e8e6</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Yes, the ANCS GATT server is on the phone, and you need to implement the client for it on the nRF side. While we generally do not recommended using the 51 series with Zephyr (&lt;span&gt;&lt;a title="Compatibility matrix" href="https://infocenter.nordicsemi.com/topic/comp_matrix_nrf51/COMP/nrf51/nrf51_comp_matrix.html?cp=5_0"&gt;Compatibility matrix&lt;/a&gt;&lt;/span&gt;), I don&amp;#39;t see any reasons for why it should not work either.&lt;/p&gt;
&lt;p&gt;Have you tried to build our ANCS sample with your Zephyr installation?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/main/samples/bluetooth/peripheral_ancs_client"&gt;https://github.com/nrfconnect/sdk-nrf/tree/main/samples/bluetooth/peripheral_ancs_client&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Apple Notification Center Service (ANCS) in Zephyr OS</title><link>https://devzone.nordicsemi.com/thread/362062?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 11:29:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5d61d60-2d84-4042-8ee4-19a152770f6e</guid><dc:creator>bojan</dc:creator><description>&lt;p&gt;Just to shed more light on the issue...&lt;/p&gt;
&lt;p&gt;It seems we need ANCS implemented in the firmware so that the iOS application running in the background mode can receive notifications from nRF51.&lt;/p&gt;
&lt;p&gt;Can we implement ANCS in nRF51822 running Zephyr OS?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>