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

ANCS Sample doesn't work after rebooting iOS Device

I'm testing ble_app_ancs experimental sample.

It seems working first connection. But after rebooting iOS Device, or Turn Off/On bluetooth function on iOS Device, ANCS does't work.

After delete bonding both evaluation board and iOS Device, it works again. Is there any infomation about this issue?

Testing Environment

iOS Device iPod touch 5th Gen. iOS 7.0.3 iPhone 5 iOS 7.0.3

BLE Board nrf6310 Rev 1.4 nrf6350 Rev 2.0 PCA10004 Rev 2.1.0 Softdevice 6.0.0-5beta

Parents
  • Nori, did you find a solution to this?

    I have noticed the same problem (using sdk 5.0.0 - i don't think ancs code changed in 5.1.0).

    The sequence of events is this:

    1. erase flash, program soft device, program ancs example
    2. on iphone, make sure bluetooth is on, select 'ANCS' device, and pair.
    3. dev board led's show advertising stops, and connetion on.
    4. send an SMS to the iphone (with another phone), iphone gets text and notification.
    5. devboard says 'Social' and 'Added 00000000'
    6. clear the notification on the iPhone.
    7. devboard says 'Social' and 'Removed 00000000'
    8. in iPhone settings, turn bluetooth off.
    9. devboard leds show connection 'off' and advertising starts.
    10. on the iPhone, turn bluetooth back on
    11. devboard leds show advertising stops, and connection back 'on'
    12. send another SMS to the iphone (with another phone), iphone gets text and notification.
    13. no message on devboard this time.

    As Nori said, selecting the ANCS device in iPhone bluetooth settings, and then clicking 'Forget device' will erase the bond in the iPhone, and reconnecting will create a new bond and everything will work. It only seems to be re-using an existing bond that causes notifications not to work.

  • I edited my answer above, as I've now managed to reproduce this. Please take a look.

Reply Children
No Data
Related