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

  • Thanks Paul! Sorry, just got confused because some posts above I read the following: "I have changed the following code in on_ble_evt from: .... This causes alerts to work after Bluetooth is turned off (on the iPhone) and back on again.

    However, alerts still do not work after the iPhone has been turned off and back on again!"

    It didn't seem right and in fact none of the 2 problems was fixed with only that simple change... :)

    I'll try your complete fix. Thanks again!

    Ole: Do you have any particular suggestions on how to use only Nordic functions for the timer (code snippets would be very much appreciated of course :D)?

    Thanks.

  • Using the SDK 5.2

    I don't get any BLE_GAP_EVT_CONN_PARAM_UPDATE event, and the reconnect discovery succeeds.

    Is there something else to change in order to get the PARAM_UPDATE event?

    Also, I have tried calling apple_notification_setup() after discovery completes. I believe the CCCDs get set successfully, yet I receive no notifications.

    I can also see that a Bondmanager encrypted event occurs.

    What else could I try?

  • You'll only receive such update event if the connection parameters are actually changed. If the iOS device already connects with suitable parameters, you won't get it.

    However, it's not quite clear to me what exactly you want to happen and what doesn't work. I'd recommend you to post this question separately and make sure to include a little more information. Does it for instance work when you connect the first time, after having deleted bond info on both devices?

    Have you tried using a sniffer to see what happens on-air?

  • Hello Ole,

    are there any updates on this issue? We are facing the same. could you please share the link to the issue filled on the apple's site? thank you. Oleh

Related