This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

how to access iOS7's ANCS on nRF51822?

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 any notification event from your iOS device.

So, I don't know how to build the ANCS on my client(device) and server(iphone). can you give me a suggestion?

device: create the ANCS client(by the custom UUID,128bit) from ANS client sample. iphone: how to bond the ANCS with my app? how to access the ANCS?

nRF8001 devzone.nordicsemi.com/.../how-to-setup-a-pipe-to-access-ios7-s-ancs

The Apple Notification Center Service developer.apple.com/.../Specification.html

  • this is my miss,but that is OK to work. or you can download the file from link(that contain ANCS sample) https://github.com/reinforce-lab/CoreBluetooth_samples/archive/master.zip

  • 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 's CCCD is setting correctly.

    how to solve it ? what is it mean?

    //update...

    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)

    Testing platform : nRF6310, and iOS device. output the LED and uart.

    ble_ANCS.7z

    BTLE_Transfer-3.zip

  • Hi Steven (& Nordic),

    What value did you assign to BLE_UUID_ALERT_NOTIFICATION_SERVICE?

    I am trying to follow your approach but I can only get the battery status

    69D1D8F3-45E1-49A8-9821-9BBDFDAAD9D9 2A19

    Btw, I am using purely Lightblue to connect to the peripheral.

    Thanks

  • hi,mark 1. the notification service at ANCS.c , 848 ans_base_uuid 7905F431-B5CE-4E99-A40F-4B1E122D00D0

    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)

    B.then you have to press Ev board button 2 subscribe the NS and ND , you can see other in apple doc(Example Diagrams)

    C. the attachment file is not Complete,about how to control the CP(control point ) and ND(notification data)

  • Hi Steven,

    Thanks a lot for your reply. I was referring to the code snippet you posted above:

    BLE_UUID_CUS_ASSIGN(ans_uuid, BLE_UUID_ALERT_NOTIFICATION_SERVICE);

    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's the value of that for Apple?

    I don't have the board with me right now, but I'll try to follow your procedure in order to pair and discover the Notification Centre's services.

    Btw, I have the Dev Kit 51822-DK + Motherboard nRF6310 (and not the Ev Kit)...I guess button2 is still button2 also for me...

    Thanks

Related