<?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>how to setup a pipe to access iOS7&amp;#39;s ANCS?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/488/how-to-setup-a-pipe-to-access-ios7-s-ancs</link><description>Hi, 
 I&amp;#39;m going to try not to get into stuff that is under apple&amp;#39;s NDA, but my question is really on the nRF8001 side. Basically, the ANCS is a service that offers three characteristics: NS, CP and DS. I have followed nRFgo documentation, and added UUID</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Sep 2013 13:48:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/488/how-to-setup-a-pipe-to-access-ios7-s-ancs" /><item><title>RE: how to setup a pipe to access iOS7's ANCS?</title><link>https://devzone.nordicsemi.com/thread/2557?ContentTypeID=1</link><pubDate>Thu, 26 Sep 2013 13:48:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0d96620-851f-419f-8fa6-3ddd32207d6d</guid><dc:creator>TIE Fighter</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.apple.com/library/ios/documentation/CoreBluetooth/Reference/AppleNotificationCenterServiceSpecification/Specification/Specification.html"&gt;developer.apple.com/.../Specification.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The Apple Notification Center Service is on the iPhone GATT Server. You need to setup the nRF8001 as a GATT client to access the iPhone GATT server.
Drag and drop the Services you are looking for i.e ANCS on the &amp;quot;Remote&amp;quot; column of the nRFgo studio, this will make the nRF8001 GATT Client look for those Services.
Remember to set the UUIDs correctly.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Use the proximity template for Arduino as the start point to add the ANCS pipes to the &amp;quot;Remote&amp;quot; and do the below modifications&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;nRFgo studio: Set the IO Capability to Display only&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;nRFgo studio: Set the Device Security to Security Required&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Print the ACI_EVT_KEY_REQUEST to the Arduino serial monitor
Type the key printed on serial monitor in the iPhone popup.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The ANCS pipes will not be discovered the first service discovery. Watch the Service Discovery bit in the ACI_EVT_PIPE_STATUS
Look at the datasheet of the nRF8001 for System Events,
&lt;a href="http://www.nordicsemi.com/eng/content/download/2981/38488/file/nRF8001_PS_v1.2.pdf"&gt;www.nordicsemi.com/.../nRF8001_PS_v1.2.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After bonding is successful the ANCS pipes will still NOT be seen.&lt;/p&gt;
&lt;p&gt;Disconnect&lt;/p&gt;
&lt;p&gt;Wait for a few mins&lt;/p&gt;
&lt;p&gt;Re-connect to the iPhone, make sure that some apps are using the ANCS.&lt;/p&gt;
&lt;p&gt;Now the Service Discovery will automatically run and you will see the ANCS pipes in the Closed pipes.&lt;/p&gt;
&lt;p&gt;Open the ANCS Pipes that are closed using the ACI OpenRemotePipe.
You need to wait for the first call to OpenRemotePipe to finish before calling the next OpenRemotePipe (ANCS has 2 Pipes that need to be opened). Additionally wait for Service Discovery to complete before doing the OpenRemotePipe.&lt;/p&gt;
&lt;p&gt;Now ANCS is available and you can have fun.&lt;/p&gt;
&lt;p&gt;Enjoy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>