<?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 access iOS7&amp;#39;s ANCS on nRF51822?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/835/how-to-access-ios7-s-ancs-on-nrf51822</link><description>hi,
i want to get the Email,MissedCall,Other(SMS) from Apple(ios7) to my device. 
 i survey that , ANCS(Apple Notification Center Service ) at the the Latest iOS7
and access to Notification Center, allowing Bluetooth devices to automatically receive</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Nov 2013 13:21:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/835/how-to-access-ios7-s-ancs-on-nrf51822" /><item><title>RE: how to access iOS7's ANCS on nRF51822?</title><link>https://devzone.nordicsemi.com/thread/4135?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2013 13:21:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68cb3b6d-3e50-4ae2-be43-969ea7de7052</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Just for your reference, SDK version 5.0.0 includes an experimental example of how ANCS can be used from an nRF51822 Peripheral. Look in Boards/nrf6310/ble/experimental/ble_app_ancs/.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to access iOS7's ANCS on nRF51822?</title><link>https://devzone.nordicsemi.com/thread/4134?ContentTypeID=1</link><pubDate>Thu, 28 Nov 2013 12:40:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93667681-3b01-41a1-b3fc-f1c8d8c9447f</guid><dc:creator>Guest</dc:creator><description>&lt;p&gt;hi,
you have to check:
have show the pairing windows?
press the button 2 to subscribe the notification service?
(check output message from uart)
because ANCS is not designed to be a complete synchronization service.
you have try service(mail/sms/incoming) again and again.
and i don&amp;#39;t show any message on board,
i have only show the message on uart(115200 bit rate)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to access iOS7's ANCS on nRF51822?</title><link>https://devzone.nordicsemi.com/thread/4131?ContentTypeID=1</link><pubDate>Thu, 28 Nov 2013 12:40:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93976b9f-7199-4fef-8261-2549db0bad8b</guid><dc:creator>Bastiaan</dc:creator><description>&lt;p&gt;hi,
you have to check:
have show the pairing windows?
press the button 2 to subscribe the notification service?
(check output message from uart)
because ANCS is not designed to be a complete synchronization service.
you have try service(mail/sms/incoming) again and again.
and i don&amp;#39;t show any message on board,
i have only show the message on uart(115200 bit rate)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to access iOS7's ANCS on nRF51822?</title><link>https://devzone.nordicsemi.com/thread/4130?ContentTypeID=1</link><pubDate>Thu, 28 Nov 2013 11:38:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b0a0987-d31c-49b8-9d18-f0834a03e06e</guid><dc:creator>Bastiaan</dc:creator><description>&lt;p&gt;Still doesn&amp;#39;t work...I can read Battery status Ok but nothing happens even after pressing the button. No errors but no LEDs are lighting either (besides LED2 when it connects).&lt;/p&gt;
&lt;p&gt;Have you tried the BLE ANCS APP from new SDK btw?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to access iOS7's ANCS on nRF51822?</title><link>https://devzone.nordicsemi.com/thread/4133?ContentTypeID=1</link><pubDate>Thu, 28 Nov 2013 11:38:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93e54ce2-bcc8-443c-bc39-b29da31ce38d</guid><dc:creator>Guest</dc:creator><description>&lt;p&gt;Still doesn&amp;#39;t work...I can read Battery status Ok but nothing happens even after pressing the button. No errors but no LEDs are lighting either (besides LED2 when it connects).&lt;/p&gt;
&lt;p&gt;Have you tried the BLE ANCS APP from new SDK btw?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to access iOS7's ANCS on nRF51822?</title><link>https://devzone.nordicsemi.com/thread/4129?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2013 13:05:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ff65102-4ff1-46cb-a7ad-fce2c38d059a</guid><dc:creator>steven</dc:creator><description>&lt;p&gt;BLE_UUID_ALERT_NOTIFICATION_SERVICE is not SIG UUID;
this is BLE_UUID_ALERT_NOTIFICATION_SERVICE (ANCS) uuid which is 0xF431.
you can reference the attachment.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to access iOS7's ANCS on nRF51822?</title><link>https://devzone.nordicsemi.com/thread/4132?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2013 11:18:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:053214ae-8551-4699-90f7-2e2ebea9b58b</guid><dc:creator>Guest</dc:creator><description>&lt;p&gt;I forgot to mention (maybe you guys would be interested) that if I use Lightblue on my MAC (Mavericks) and pair it with my iPhone (no Dev Kit involved) I can subscribe to the the Notification Centre and see the Notifications of Calls, SMSs, Emails...That is cool! ;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to access iOS7's ANCS on nRF51822?</title><link>https://devzone.nordicsemi.com/thread/4128?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2013 11:18:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8409bc97-c250-4b93-b9bd-841eec5eb1e2</guid><dc:creator>Bastiaan</dc:creator><description>&lt;p&gt;I forgot to mention (maybe you guys would be interested) that if I use Lightblue on my MAC (Mavericks) and pair it with my iPhone (no Dev Kit involved) I can subscribe to the the Notification Centre and see the Notifications of Calls, SMSs, Emails...That is cool! ;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to access iOS7's ANCS on nRF51822?</title><link>https://devzone.nordicsemi.com/thread/4127?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2013 10:47:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27905d59-b93c-4f97-832f-513e59c53e95</guid><dc:creator>Mark</dc:creator><description>&lt;p&gt;Hi Steven,&lt;/p&gt;
&lt;p&gt;Thanks a lot for your reply. I was referring to the code snippet you posted above:&lt;/p&gt;
&lt;p&gt;BLE_UUID_CUS_ASSIGN(ans_uuid,  BLE_UUID_ALERT_NOTIFICATION_SERVICE);&lt;/p&gt;
&lt;p&gt;Where did you define BLE_UUID_ALERT_NOTIFICATION_SERVICE? I understand that the base_uuid is what you posted (7905F431-B5CE-4E99-A40F-4B1E122D00D0) but not sure I understand what BLE_UUID_ALERT_NOTIFICATION_SERVICE is. Looking at the Bluetooth 4.0 specs this should be 0x1811, but what&amp;#39;s the value of that for Apple?&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have the board with me right now, but I&amp;#39;ll try to follow your procedure in order to pair and discover the Notification Centre&amp;#39;s services.&lt;/p&gt;
&lt;p&gt;Btw, I have the Dev Kit 51822-DK + Motherboard nRF6310 (and not the Ev Kit)...I guess button2 is still button2 also for me...&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to access iOS7's ANCS on nRF51822?</title><link>https://devzone.nordicsemi.com/thread/4126?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2013 07:05:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b759b0f1-4c1e-4e50-a932-d79704839e80</guid><dc:creator>steven</dc:creator><description>&lt;p&gt;hi,mark
1.
the notification service at ANCS.c , 848
ans_base_uuid
7905F431-B5CE-4E99-A40F-4B1E122D00D0&lt;/p&gt;
&lt;ol start="2"&gt;
&lt;li&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;A.
yes, use the Lightblue app have only see the battery services.
the ANCS(apple notification center service) is at iOS  , the device(nRF51)
not advertising but also to discover services.
the battery as my describe which use to trigger the pairing(you should be other service)
( so you have to enter battery level characteristics, do this to read and to pairing)&lt;/p&gt;
&lt;p&gt;B.then you have to press Ev board button 2 subscribe the NS and ND ,
you can see other in &lt;a href="https://developer.apple.com/Library/ios/documentation/CoreBluetooth/Reference/AppleNotificationCenterServiceSpecification/Specification/Specification.html#//apple_ref/doc/uid/TP40013460-CH1-SW7"&gt;apple doc&lt;/a&gt;(Example Diagrams)&lt;/p&gt;
&lt;p&gt;C. the attachment file is not Complete,about how to control the CP(control point ) and ND(notification data)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to access iOS7's ANCS on nRF51822?</title><link>https://devzone.nordicsemi.com/thread/4125?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2013 04:06:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0471df0b-37a1-4b5f-88fc-53d69fc8b02e</guid><dc:creator>Mark</dc:creator><description>&lt;p&gt;Hi Steven (&amp;amp; Nordic),&lt;/p&gt;
&lt;p&gt;What value did you assign to BLE_UUID_ALERT_NOTIFICATION_SERVICE?&lt;/p&gt;
&lt;p&gt;I am trying to follow your approach but I can only get the battery status&lt;/p&gt;
&lt;p&gt;69D1D8F3-45E1-49A8-9821-9BBDFDAAD9D9
2A19&lt;/p&gt;
&lt;p&gt;Btw, I am using purely Lightblue to connect to the peripheral.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to access iOS7's ANCS on nRF51822?</title><link>https://devzone.nordicsemi.com/thread/4124?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2013 04:21:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36538539-924e-4b3e-a231-83f878b0d23f</guid><dc:creator>steven</dc:creator><description>&lt;p&gt;hi ,
when i subscribe to GATT Servers (NS and DS) call sd_ble_gattc_write() function to subscribe NS(notification source and data source) ,it will return error code (NRF_ERROR_BUSY Client procedure already in progress).but the NS and DS &amp;#39;s CCCD is setting correctly.&lt;/p&gt;
&lt;p&gt;how to solve it ? what is it mean?&lt;/p&gt;
&lt;p&gt;//update...&lt;/p&gt;
&lt;p&gt;hi,i found the error is the no pairing.
you can add another service and iOs to discover and read the Protection characteristic to trigger the pairing.
when i finish that you can get the notification(get it by uart) from master(iOS)&lt;/p&gt;
&lt;p&gt;Testing platform :
nRF6310, and iOS device.
output the LED and uart.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_ANCS.7z"&gt;ble_ANCS.7z&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/-8.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3343.BTLE_5F00_Transfer_2D00_3.zip"&gt;BTLE_Transfer-3.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to access iOS7's ANCS on nRF51822?</title><link>https://devzone.nordicsemi.com/thread/4123?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2013 13:52:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca3e09e5-f593-4ab9-841d-3c81a43ab38e</guid><dc:creator>steven</dc:creator><description>&lt;p&gt;this is my miss,but that is OK to work.
or you can download the file from link(that contain ANCS sample)
&lt;a target="_blank" href="https://github.com/reinforce-lab/CoreBluetooth_samples/archive/master.zip" rel="nofollow"&gt;https://github.com/reinforce-lab/CoreBluetooth_samples/archive/master.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to access iOS7's ANCS on nRF51822?</title><link>https://devzone.nordicsemi.com/thread/4122?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2013 10:55:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7bdb0bf-9eb0-44c1-a5d8-a26406668267</guid><dc:creator>cocoa</dc:creator><description>&lt;p&gt;Hi,
quick look to xcode project, maybe I&amp;#39;m wrong, but  opening it appears to be an old version,   Xcode 4 with iOS Deployment 6.0 and target 6.0&lt;/p&gt;
&lt;p&gt;If so upgrade it to 5 and iOS7.&lt;/p&gt;
&lt;p&gt;ANCS is iOS7.&lt;/p&gt;
&lt;p&gt;Let me know.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to access iOS7's ANCS on nRF51822?</title><link>https://devzone.nordicsemi.com/thread/4121?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2013 03:20:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb432fd5-562d-4f9b-9efa-c5c1b4bab16f</guid><dc:creator>steven</dc:creator><description>&lt;p&gt;hi,
thank you for your reply.
A.
the BLE test app ,i use attatch file(*1) to simulator peripheral device.
but this app is not for ANCS ,but it will see the ANCS services(*2)
(so i can&amp;#39;t use xcode to debug any message,it is System level.
i don&amp;#39;t need write any code for ANCS(*3))
B.
An ANCS session begins when an NC subscribes to the Notification Source(NS) characteristic on an NP. But when i subscribes  NS it get the length is zero.
(*the ble_handle.png is iOS and dongle setup message)&lt;/p&gt;
&lt;p&gt;Thank you for considering my request.&lt;/p&gt;
&lt;p&gt;1.attatch file:
use app &amp;quot;BTLE_Transfer-3.zip &amp;quot; to dump the iphone services(ANCS)&lt;/p&gt;
&lt;ol start="2"&gt;
&lt;li&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Should I see iPhone 4S in Master Control Panel?
The iPhone will not do this by default, but it has APIs that allows an app to start such advertisement.
&lt;a href="https://devzone.nordicsemi.com/index.php/should-i-see-iphone-4s-in-master-control-panel#reply-2018"&gt;devzone.nordicsemi.com/.../should-i-see-iphone-4s-in-master-control-panel&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;3.The Apple Notification Center Service: or WTF is Central, Peripheral, Client, Server
&lt;a href="http://blog.punchthrough.com/post/63658238857/the-apple-notification-center-service-or-wtf-is"&gt;blog.punchthrough.com/.../the-apple-notification-center-service-or-wtf-is&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/attachment/505414cfde2753bf3d947f41b031e7f6"&gt;IMG_0036[1].PNG&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ancs.png" alt="ancs.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/BTLE_5F00_Transfer_2D00_3.zip"&gt;BTLE_Transfer-3.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4377.ble_5F00_app_5F00_alert_5F00_notification.zip"&gt;ble_app_alert_notification.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_handle.png" alt="ble_handle.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to access iOS7's ANCS on nRF51822?</title><link>https://devzone.nordicsemi.com/thread/4120?ContentTypeID=1</link><pubDate>Wed, 13 Nov 2013 17:10:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7db849c-4ad5-4445-967f-2b2eb6360986</guid><dc:creator>cocoa</dc:creator><description>&lt;p&gt;Hi,
do you connect peripheral device using a BLE test app like lightblue/BLExplr or have you wrote an iOS app ?&lt;/p&gt;
&lt;p&gt;Can you send a screen capture of what is shown by the iOS app (lightblue/BLExplr etc...) you are using to try connection ?&lt;/p&gt;
&lt;p&gt;Unfortunately I not work with  Keil and windows, so I can&amp;#39;t check your code immediately.&lt;/p&gt;
&lt;p&gt;If you have a mac you can simulate a Bluetooth peripheral in Xcode (as is your  nRF51 device)  test and debug it in realtime using native BT framework.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to access iOS7's ANCS on nRF51822?</title><link>https://devzone.nordicsemi.com/thread/4119?ContentTypeID=1</link><pubDate>Wed, 13 Nov 2013 13:23:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed79fde7-0137-489f-94b7-bdd9282bf473</guid><dc:creator>steven</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;Q.
how your ble_app_alert_notification should be able to connect to ANCS?&lt;/p&gt;
&lt;p&gt;A. i think the ble_app_alert_notification  sample as same as the NP/NC stack.
so ,i build the ANCS(apple notification center servicer) profile by this example.&lt;/p&gt;
&lt;p&gt;Now,i connect the iOS ,and discover the ANCS Characteristic and Descriptor .
But the iOS, have not notification any message to my device(nRF51).
Do you have any idea about it ?
(how to debug it or any Explanation for ANCS)&lt;/p&gt;
&lt;p&gt;P.s:
1.attatch:
use apple &lt;a href="https://developer.apple.com/library/ios/samplecode/BTLE_Transfer/Listings/BTLE_Transfer_BTLEPeripheralViewController_m.html#//apple_ref/doc/uid/DTS40012927-BTLE_Transfer_BTLEPeripheralViewController_m-DontLinkElementID_8"&gt;BTLE_Transfer&lt;/a&gt; to dump the iphone services&lt;/p&gt;
&lt;ol start="2"&gt;
&lt;li&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;the difference Base UUID ,
call the sd_ble_uuid_vs_add by difference base uuid
err_code = sd_ble_uuid_vs_add(&amp;amp;ans_base_uuid, &amp;amp;p_ans-&amp;gt;uuid_type);&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4214.ble_5F00_app_5F00_alert_5F00_notification.zip"&gt;ble_app_alert_notification.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/apple_5F00_ancs.png" alt="apple_ancs.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to access iOS7's ANCS on nRF51822?</title><link>https://devzone.nordicsemi.com/thread/4118?ContentTypeID=1</link><pubDate>Mon, 11 Nov 2013 08:32:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c61f664-ec4c-4d7d-a389-f75191fd589d</guid><dc:creator>steven</dc:creator><description>&lt;p&gt;hi,
1.The device that is accessing ANCS needs to run a GATT Client.
Are you running it ?&lt;/p&gt;
&lt;p&gt;A: No, i not run ANCS on device(i will program that reference ble_app_alert_notification sample).
the device(nRF51) work ble_app_alert_notification now,i create a central app(for alert_notification  ) at first in iOS . But it not work correctly.(i think it is the iOS don&amp;#39;t alert_notification service, and i can&amp;#39;t create it)&lt;/p&gt;
&lt;ol start="2"&gt;
&lt;li&gt;now ,i write ANCS on device.
The The Apple Notification Center Service,the service UUID and characteristics UUID(on difference base UUID)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Q.How to use four vendor specific UUID?
(use macro BLE_UUID_BLE_ASSIGN is Bluetooth SIG UUID)&lt;/p&gt;
&lt;p&gt;i try the follow code:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
    ble_uuid_t ble_uuid;
    ble_uuid128_t ans_base_uuid = {0xD0, 0x00, 0x2D, 0x12, 0x1E, 0x4B,0x0F, 0xA4, 0x99, 0x4E, 0xCE, 0xB5,0, 0, 0x05,0x79};
    // Add custom base UUID
    err_code = sd_ble_uuid_vs_add(&amp;amp;ans_base_uuid, &amp;amp;p_ans-&amp;gt;uuid_type);
    if (err_code != NRF_SUCCESS)
    {
        return err_code;
    }		
//------
/** @brief Set .type and .uuid fields of ble_uuid_struct to specified uuid value. */
#define BLE_UUID_CUS_ASSIGN(instance, value) do {\
            instance.type = BLE_UUID_TYPE_VENDOR_BEGIN; \
            instance.uuid = value;} while(0)

BLE_UUID_CUS_ASSIGN(ans_uuid,  BLE_UUID_ALERT_NOTIFICATION_SERVICE);


&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;ref:
ANCS
service UUID :7905F431-B5CE-4E99-A40F-4B1E122D00D0
Notification Source: UUID 9FBF120D-6301-42D9-8C58-25E699A21DBD
Control Point: UUID 69D1D8F3-45E1-49A8-9821-9BBDFDAAD9D9
Data Source: UUID 22EAC6E9-24D6-4BB5-BE44-B36ACE7C7BFB&lt;/p&gt;
&lt;p&gt;The Apple Notification Center Service: or WTF is Central, Peripheral, Client, Server
ref,&lt;a href="http://blog.punchthrough.com/post/63658238857/the-apple-notification-center-service-or-wtf-is"&gt;blog.punchthrough.com/.../the-apple-notification-center-service-or-wtf-is&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Should I see iPhone 4S in Master Control Panel?
&lt;a href="https://devzone.nordicsemi.com/index.php/should-i-see-iphone-4s-in-master-control-panel#reply-2018"&gt;devzone.nordicsemi.com/.../should-i-see-iphone-4s-in-master-control-panel&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;How can I use a vendor specific UUID?
&lt;a href="https://devzone.nordicsemi.com/index.php/how-can-i-use-a-vendor-specific-uuid#reply-640"&gt;devzone.nordicsemi.com/.../how-can-i-use-a-vendor-specific-uuid&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to access iOS7's ANCS on nRF51822?</title><link>https://devzone.nordicsemi.com/thread/4117?ContentTypeID=1</link><pubDate>Fri, 08 Nov 2013 16:33:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d71edaf-708a-4597-acc8-96768f742572</guid><dc:creator>cocoa</dc:creator><description>&lt;p&gt;The device that is accessing ANCS needs to run a GATT Client.
Are you running it ?&lt;/p&gt;
&lt;p&gt;But I cannot understand how your ble_app_alert_notification should be able to connect to ANCS.&lt;/p&gt;
&lt;p&gt;-c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to access iOS7's ANCS on nRF51822?</title><link>https://devzone.nordicsemi.com/thread/4116?ContentTypeID=1</link><pubDate>Fri, 08 Nov 2013 13:50:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:342b9356-5b99-4ac6-b2f1-74d9aeb46cd6</guid><dc:creator>steven</dc:creator><description>&lt;p&gt;excuse me,i describe have some miss.
i want to program an App on iOS device with nRF51(ble_app_alert_notification )
but when NC(nRF51) connect NP(iOS,custom profile),
the NC have an error response on service discovery function
the p_ble_evt-&amp;gt;evt.gattc_evt.gatt_status is BLE_GATT_STATUS_ATTERR_ATTRIBUTE_NOT_FOUND .&lt;/p&gt;
&lt;p&gt;Can you give me a director.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to access iOS7's ANCS on nRF51822?</title><link>https://devzone.nordicsemi.com/thread/4115?ContentTypeID=1</link><pubDate>Fri, 08 Nov 2013 12:30:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0bf2d40-edc5-429f-9748-458dbadccfc4</guid><dc:creator>cocoa</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;ANCS is a primary service, predefined by Apple with UUID  (see Apple doc).&lt;/p&gt;
&lt;p&gt;Your device must play only with the service and characteristics provided by ANCS.&lt;/p&gt;
&lt;p&gt;ANCS exposes three characteristics:&lt;/p&gt;
&lt;p&gt;(See Apple doc)&lt;/p&gt;
&lt;p&gt;An ANCS session begins when an NC (nRF51)  subscribes to the Notification Source characteristic on an NP and ends when the NC either unsubscribes from the same characteristic or disconnects from the NP.&lt;/p&gt;
&lt;p&gt;From the ANCS point of view, ble_app_alert_notification is a perfect stranger (unknown UUIDs) .&lt;/p&gt;
&lt;p&gt;-c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to access iOS7's ANCS on nRF51822?</title><link>https://devzone.nordicsemi.com/thread/4114?ContentTypeID=1</link><pubDate>Fri, 08 Nov 2013 08:34:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef89d70f-3dbb-41f4-a54b-40c728b5fa80</guid><dc:creator>steven</dc:creator><description>&lt;p&gt;hi,
i have some question , Can you give me a director.&lt;/p&gt;
&lt;p&gt;now i try to build the ANCS which reference SDK sample &amp;quot;ble_app_alert_notification&amp;quot;
and porting the Master Control panel -setup server to iOS device.&lt;/p&gt;
&lt;p&gt;&amp;quot;follow your answer ,when nRF51(NC) and iOS(NP) connect,
NP acts as Client  to discover services and characteristics and subscribing them(NC provide the services and characteristics),
after this setup the NC takes the role of Client and starts to discover all characteristics and services on the NP.&amp;quot;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;when my iOS device connect the sample(ble_app_alert_notification)
the peripheral (nRF51) failing on response on service discovery function.
the p_ble_evt-&amp;gt;evt.gattc_evt.gatt_status is not BLE_GATT_STATUS_SUCCESS.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;BLE_GATT_STATUS_ATTERR_ATTRIBUTE_NOT_FOUND&lt;br /&gt;
(the central(iOS) and peripheral(nRF51)  do service discover  at the same time?)&lt;/p&gt;
&lt;p&gt;I hope you will be able to provide the information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to access iOS7's ANCS on nRF51822?</title><link>https://devzone.nordicsemi.com/thread/4113?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2013 08:51:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5a87464-67d8-4a61-966a-dfd6f05a65ca</guid><dc:creator>cocoa</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;nRF51822  as peripheral (it, unfortunately,  cannot be a central, complicating life!! ) and GATT Client or Server (role switching).&lt;/p&gt;
&lt;p&gt;The NP - Notification Provider - (Apple ANCS) acts as a Central, starts discovering nRF51822 peripheral and initiates a connection.&lt;/p&gt;
&lt;p&gt;With connection established, nRF51822 is now called NC -Notification Consumer-.&lt;/p&gt;
&lt;p&gt;From now, NP acts as Client and starts to discover services and characteristics and subscribing them.&lt;/p&gt;
&lt;p&gt;Done this step, NC takes the role of Client and starts to discover all characteristics and services on the NP.&lt;/p&gt;
&lt;p&gt;The role switching may happen many times during connection.&lt;/p&gt;
&lt;p&gt;If NP sends notifications is a server, if NC requests to read a characteristic is a client and nRF51 switches to server role.&lt;/p&gt;
&lt;p&gt;-c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>