<?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>ANCS Sample doesn&amp;#39;t work after rebooting iOS Device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1131/ancs-sample-doesn-t-work-after-rebooting-ios-device</link><description>I&amp;#39;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&amp;#39;t work. 
 After delete bonding both evaluation board and iOS Device, it works</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 Jun 2015 15:00:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1131/ancs-sample-doesn-t-work-after-rebooting-ios-device" /><item><title>RE: ANCS Sample doesn't work after rebooting iOS Device</title><link>https://devzone.nordicsemi.com/thread/5303?ContentTypeID=1</link><pubDate>Tue, 30 Jun 2015 15:00:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e15e0d0-ecdd-4a8c-8ff8-18a945458196</guid><dc:creator>chd</dc:creator><description>&lt;p&gt;Hi Ole, I also faced the same problem as Nori. After the paring, my device can receive notifications from my iPhone. But when the connection terminates (devices are outranged or bluetooth on phone is toggled on/off) and then the two devices auto reconnect successfully, the notification no longer works.&lt;/p&gt;
&lt;p&gt;I agree with you that the BLE_GAP_EVT_CONN_PARAM_UPDATE only comes when the connection params are changed thus the workaround cannot solve this problem if the connection params are unchanged after reconnection. Even when the params get changed, we might get some delay (~10 sec in my case) before the event comes.&lt;/p&gt;
&lt;p&gt;So, again... any solution for this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS Sample doesn't work after rebooting iOS Device</title><link>https://devzone.nordicsemi.com/thread/5304?ContentTypeID=1</link><pubDate>Wed, 06 May 2015 11:55:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7524aa3-1e35-49d3-b8e0-fcace9f973d4</guid><dc:creator>Kyu</dc:creator><description>&lt;p&gt;is it solved? or is this problem still on iOS?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS Sample doesn't work after rebooting iOS Device</title><link>https://devzone.nordicsemi.com/thread/5280?ContentTypeID=1</link><pubDate>Mon, 21 Jul 2014 11:45:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:876b9b45-de12-4923-b521-3f92372e648d</guid><dc:creator>Oleh</dc:creator><description>&lt;p&gt;Hello Ole,&lt;/p&gt;
&lt;p&gt;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&amp;#39;s site? thank you. Oleh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS Sample doesn't work after rebooting iOS Device</title><link>https://devzone.nordicsemi.com/thread/5302?ContentTypeID=1</link><pubDate>Mon, 28 Apr 2014 11:50:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5e58d99-bac3-46fe-ab86-d6a72a507da1</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;You&amp;#39;ll only receive such update event if the connection parameters are actually changed. If the iOS device already connects with suitable parameters, you won&amp;#39;t get it.&lt;/p&gt;
&lt;p&gt;However, it&amp;#39;s not quite clear to me what exactly you want to happen and what doesn&amp;#39;t work. I&amp;#39;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?&lt;/p&gt;
&lt;p&gt;Have you tried using a sniffer to see what happens on-air?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS Sample doesn't work after rebooting iOS Device</title><link>https://devzone.nordicsemi.com/thread/5297?ContentTypeID=1</link><pubDate>Sat, 19 Apr 2014 00:24:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8e0daef-5a32-415b-8d50-1ceb6c316f41</guid><dc:creator>Wes</dc:creator><description>&lt;p&gt;Using the SDK 5.2&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t get any BLE_GAP_EVT_CONN_PARAM_UPDATE event, and the reconnect discovery succeeds.&lt;/p&gt;
&lt;p&gt;Is there something else to change in order to get the PARAM_UPDATE event?&lt;/p&gt;
&lt;p&gt;Also, I have tried calling apple_notification_setup() after discovery completes. I believe the CCCDs get set successfully, yet I receive no notifications.&lt;/p&gt;
&lt;p&gt;I can also see that a Bondmanager encrypted event occurs.&lt;/p&gt;
&lt;p&gt;What else could I try?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS Sample doesn't work after rebooting iOS Device</title><link>https://devzone.nordicsemi.com/thread/5290?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2014 21:58:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:855a45e2-f738-4e68-832e-ff54f1fc15f7</guid><dc:creator>Fab</dc:creator><description>&lt;p&gt;Thanks Paul! Sorry, just got confused because some posts above I read the following:
&amp;quot;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.&lt;/p&gt;
&lt;p&gt;However, alerts still do not work after the iPhone has been turned off and back on again!&amp;quot;&lt;/p&gt;
&lt;p&gt;It didn&amp;#39;t seem right and in fact none of the 2 problems was fixed with only that simple change... :)&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll try your complete fix. Thanks again!&lt;/p&gt;
&lt;p&gt;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)?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS Sample doesn't work after rebooting iOS Device</title><link>https://devzone.nordicsemi.com/thread/5289?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2014 21:45:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:187035e9-d8f5-4903-8145-f9f275294c12</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;Fabio: no, it required BOTH snippets in this post. i.e. also the bit adding the retry timer to event_discover_rsp. You will need to do this differently as you do not have my &amp;#39;start_new_timer&amp;#39; function, but perhaps you can use Nordics app_timer or write your own timer to call the function after 1 second. I don&amp;#39;t think I needed whitelisting (if I remember correctly).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS Sample doesn't work after rebooting iOS Device</title><link>https://devzone.nordicsemi.com/thread/5288?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2014 17:09:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:deabeaf1-be2a-468e-9a83-17d03ef3008e</guid><dc:creator>Fab</dc:creator><description>&lt;p&gt;Hi Paul/Ole,&lt;/p&gt;
&lt;p&gt;Not sure if I correctly understood here. Are you saying that with ONLY the following change:&lt;/p&gt;
&lt;p&gt;case BLE_GAP_EVT_CONN_PARAM_UPDATE: // &amp;lt;- this line
case BLE_GAP_EVT_AUTH_STATUS:
apple_notification_setup();
break;&lt;/p&gt;
&lt;p&gt;we can workaround the problem of not getting notifications after turning OFF and ON again the Bluetooth on iPhone? Or we also need the whitelisting?
If that&amp;#39;s the case could you please elaborate more?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS Sample doesn't work after rebooting iOS Device</title><link>https://devzone.nordicsemi.com/thread/5296?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2014 16:24:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2153a66f-775f-40ab-a489-fa9cb085b1a4</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;It&amp;#39;s very hard to help you when you don&amp;#39;t provide more information on what doesn&amp;#39;t work with MAX_BONDED_CENTRALS set to 2. Also, this change seems meaningless, and I&amp;#39;m not sure I understand how you&amp;#39;d expect this to work.&lt;/p&gt;
&lt;p&gt;If you have further problems, I suggest you either post it as a support case, including your complete application, or find specific questions and post them separately. Continuing here seems to just get messy, with lots of unrelated problems mixed together.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS Sample doesn't work after rebooting iOS Device</title><link>https://devzone.nordicsemi.com/thread/5295?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2014 11:15:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61c9fde7-23f5-4b0c-ad09-6abc3d470601</guid><dc:creator>sherin</dc:creator><description>&lt;p&gt;I am not able to handle two device and I see that irk_match is not 1. Why is this? Is it because, by the time I connect to my iOS#2 the iOS#1 might have already changed its private address, i.e, IRK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS Sample doesn't work after rebooting iOS Device</title><link>https://devzone.nordicsemi.com/thread/5301?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2014 11:09:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd2defb8-af0b-4c77-bd56-3f5dcd64f7e5</guid><dc:creator>sherin</dc:creator><description>&lt;p&gt;I am not able to handle two device and I see that  irk_match is not 1. Why is this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS Sample doesn't work after rebooting iOS Device</title><link>https://devzone.nordicsemi.com/thread/5294?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2014 11:07:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0703737d-4890-4c85-bfa5-32d8c0900192</guid><dc:creator>sherin</dc:creator><description>&lt;p&gt;Hi Ole,&lt;/p&gt;
&lt;p&gt;I just changed the number of BLE_BONDMNGR_MAX_BONDED_CENTRALS to 2.
In this case, shouldn&amp;#39;t I be able to handle bonding info of two iOS devices? But I am not able to.&lt;/p&gt;
&lt;p&gt;Now, another workaround I did is
And I changed this piece of code in ble_bondmngr.c&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;if (m_centrals_in_db_count &amp;gt;= BLE_BONDMNGR_MAX_BONDED_CENTRALS)
{
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;//  			return NRF_ERROR_NO_MEM;
m_centrals_in_db_count = 0;
}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS Sample doesn't work after rebooting iOS Device</title><link>https://devzone.nordicsemi.com/thread/5292?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2014 10:51:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73f7c249-e9e5-40e3-8e82-a8c5d704f6e9</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;You have no way of knowing when the iOS device forgets the bonding information for your device. If the iOS device loses bond information and then reconnects, it will most likely be seen as a completely new device, since it switches addresses every 15 minutes or so. If the nRF51822 loses bond information, the iOS device will however most likely not work properly afterwards, without the user explicitly also deleting bond information on the phone. This is by design.&lt;/p&gt;
&lt;p&gt;In summary, you should just store information on whatever new device bonds with you, and when bonding storage is full, you should take a conscious choice on which device to delete. You should not normally delete all bond information, unless the user explicitly wants it, since this will cause problems for all previously bonded devices.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS Sample doesn't work after rebooting iOS Device</title><link>https://devzone.nordicsemi.com/thread/5293?ContentTypeID=1</link><pubDate>Wed, 12 Feb 2014 08:15:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:804c38a5-1929-4ddc-9f68-281daa78df7b</guid><dc:creator>sherin</dc:creator><description>&lt;p&gt;How do i take  a decision whether to store bonds or to delete them based on iOS forgetting the device  or ble off/on respectively?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS Sample doesn't work after rebooting iOS Device</title><link>https://devzone.nordicsemi.com/thread/5291?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2014 14:26:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9f2cd31-8dc2-4bde-bb21-27832a706c7b</guid><dc:creator>sherin</dc:creator><description>&lt;p&gt;i have a question here.
i want present some cases.
Case1:
I have changed the following code in on_ble_evt from:&lt;/p&gt;
&lt;p&gt;case BLE_GAP_EVT_AUTH_STATUS:
apple_notification_setup();
break;&lt;/p&gt;
&lt;p&gt;to:&lt;/p&gt;
&lt;p&gt;case BLE_GAP_EVT_CONN_PARAM_UPDATE:
case BLE_GAP_EVT_AUTH_STATUS:
apple_notification_setup();
break;&lt;/p&gt;
&lt;p&gt;i pair with my ancc device.
It reconnects automatically on ble turn off, then ble on.
it reconnects automatically on board turn off and on.
But when i &amp;#39;forget device&amp;#39; and then repair, client goes to connected state. But sever remains unconnected.&lt;/p&gt;
&lt;p&gt;Case2:
I make no changes in on_ble_evt. it is as in the given example by nordic.&lt;/p&gt;
&lt;p&gt;i pair with my ancc device.
It reconnects automatically on ble turn off, then ble on.
it reconnects automatically on board turn off and on.
But when i &amp;#39;forget device&amp;#39; and then repair, client goes to connected state. But sever remains unconnected.&lt;/p&gt;
&lt;p&gt;Case 3:
I dont store bonds. Instead i delete all bonds.&lt;/p&gt;
&lt;p&gt;instead of
err_code = ble_bondmngr_bonded_centrals_store();
APP_ERROR_CHECK(err_code);
i write				
err_code = ble_bondmngr_bonded_centrals_delete();
APP_ERROR_CHECK(err_code);
Here I connect and pair to iOS device.
I forget device, then repair everything is fine.
I turn off ble, then on. Both client and server jumps back and forth from connected to unconnected. But when i tap on the device name i am able to reconnect.
Same behavior exists on board turn off and on.&lt;/p&gt;
&lt;p&gt;What is a solution to handle all three cases:1. forget device and repair, 2. ble off/on, 3. board turn off/on?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS Sample doesn't work after rebooting iOS Device</title><link>https://devzone.nordicsemi.com/thread/5287?ContentTypeID=1</link><pubDate>Mon, 03 Feb 2014 10:55:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19a6d9df-475f-40e0-82d1-01d09912388d</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;This doesn&amp;#39;t seem too bad, but I would consider to just retry a limited number of times, to limit current consumption in case the service is actually not there.&lt;/p&gt;
&lt;p&gt;Also, I can&amp;#39;t really give a proper verification of the code, so I suggest that you test this thoroughly yourself, to be confident that it works as expected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS Sample doesn't work after rebooting iOS Device</title><link>https://devzone.nordicsemi.com/thread/5286?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2014 16:18:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44d0a528-a92c-4279-9e49-c6cfd91435de</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;Hi Ole,&lt;/p&gt;
&lt;p&gt;I found that I had to keep my code mentioned above:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;case BLE_GAP_EVT_CONN_PARAM_UPDATE:
case BLE_GAP_EVT_AUTH_STATUS:
apple_notification_setup();
break;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and, add the following:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ble_ancs_c_t * timer_p_ancs;

void timer_service_discovery(void)
{
    service_disc_req_send(timer_p_ancs);
}

static void event_discover_rsp(ble_ancs_c_t * p_ancs, const ble_evt_t * p_ble_evt)
{
    if (p_ble_evt-&amp;gt;evt.gattc_evt.gatt_status != BLE_GATT_STATUS_SUCCESS)
    {
        // ignore failure - retry in one second
        //handle_discovery_failure(p_ancs, p_ble_evt-&amp;gt;evt.gattc_evt.gatt_status);

        timer_p_ancs = p_ancs;
        // call function timer_service_discovery in 1000ms, don&amp;#39;t repeat
        start_new_timer(timer_service_discovery, 1000, false);
...

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This seems to allow notifications after bluetooth has been turned off and on, AND after the iPhone has been turned off and on.&lt;/p&gt;
&lt;p&gt;Please let me know if you think this is a suitable work-around, or what needs changing and where about in the source.&lt;/p&gt;
&lt;p&gt;Thank you for all your help so far,
Paul.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS Sample doesn't work after rebooting iOS Device</title><link>https://devzone.nordicsemi.com/thread/5300?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2014 13:38:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f77cc98e-feed-4ff2-85d1-297f9d2500cc</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Can I recommend re-reading point 2. in my answer? The easiest workaround is most likely to start a timer when the first service discovery fails, to retry after some seconds, when the iOS device is fully up and running.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS Sample doesn't work after rebooting iOS Device</title><link>https://devzone.nordicsemi.com/thread/5285?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2014 13:36:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1af2c69b-a086-40bd-9d25-32d91b43f81b</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;Hi Ole,&lt;/p&gt;
&lt;p&gt;Thanks again for your help. I am now halfway there...&lt;/p&gt;
&lt;p&gt;I have changed the following code in on_ble_evt from:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;case BLE_GAP_EVT_AUTH_STATUS:
apple_notification_setup();
break;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;case BLE_GAP_EVT_CONN_PARAM_UPDATE:
case BLE_GAP_EVT_AUTH_STATUS:
apple_notification_setup();
break;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This causes alerts to work after Bluetooth is turned off (on the iPhone) and back on again.&lt;/p&gt;
&lt;p&gt;However, alerts still do not work after the iPhone has been turned off and back on again!&lt;/p&gt;
&lt;p&gt;(although turning Bluetooth off (on the iPhone) and back on, will start it working again).&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure why yet, but perhaps it is because after a reboot of the iPhone, there are no events for BLE_GATTC_EVT_CHAR_DISC_RSP or BLE_GATTC_EVT_DESC_DISC_RSP.&lt;/p&gt;
&lt;p&gt;I am using the following to check for events:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
extern uint16_t live_event;
void ble_evt_dispatch(ble_evt_t * p_ble_evt)
{
live_event = p_ble_evt-&amp;gt;header.evt_id;
...

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
uint16_t live_event = 0;
int main(void)
{
...
...
...
    while (true)
    {
        if (live_event != 0)
        {
            char text[20];
            sprintf(text, &amp;quot;%04x \r\n&amp;quot;, live_event);
            simple_uart_putstring((const uint8_t *) text);	
            live_event = 0;
        }
}

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;How can I re-enable notifications after an iPhone has been turned off and back on?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS Sample doesn't work after rebooting iOS Device</title><link>https://devzone.nordicsemi.com/thread/5299?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2014 11:38:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20dbc865-bf0b-4c2a-bb38-3f790b74faf5</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Whitelisting is not part of the advertising data, but of the advertising parameters. Take a look at ble_app_proximity which uses whitelisting.&lt;/p&gt;
&lt;p&gt;As for writing CCCDs, this can be done with the ble_ancs_c_enable_notif* functions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS Sample doesn't work after rebooting iOS Device</title><link>https://devzone.nordicsemi.com/thread/5284?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2014 11:27:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2b4c401-719e-4578-bee9-21c4f8c9e914</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;Hi Ole, how can I write the CCCDs on reconnection? I&amp;#39;ve no idea how to do this and where.&lt;/p&gt;
&lt;p&gt;Also, how do I use whitelisting when advertising? I couldn&amp;#39;t find any mention in ble_advdata.c/.h.&lt;/p&gt;
&lt;p&gt;Thanks again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS Sample doesn't work after rebooting iOS Device</title><link>https://devzone.nordicsemi.com/thread/5298?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2014 11:11:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b654aba3-20e6-434c-af43-7bdd6ba22696</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;I haven&amp;#39;t heard anything back from Apple regarding this, and the issue is just marked as Open, but as I said, you can work around it by writing the CCCDs on reconnection.&lt;/p&gt;
&lt;p&gt;Regarding the BLE_BONDMNGR_EVT_CONN_TO_BONDED_CENTRAL event, beware that with the current bond manager, you will unfortunately not get this event if you don&amp;#39;t use whitelisting when advertising. This is a limitation that will most likely be fixed in a future SDK version.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS Sample doesn't work after rebooting iOS Device</title><link>https://devzone.nordicsemi.com/thread/5283?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2014 11:06:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:733ad269-2dd0-42f6-bcf1-737feee8e346</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;Hi Ole,&lt;/p&gt;
&lt;p&gt;thank you for your swift response!&lt;/p&gt;
&lt;p&gt;Do you know if/when there may be a work-around?&lt;/p&gt;
&lt;p&gt;When investigating, I thought I may have found the cause slightly earlier on in the chain of events.&lt;/p&gt;
&lt;p&gt;I noticed that in the function ble_ancs_c_on_bondmgmr_evt, when the initial bond is made then event BLE_BONDMNGR_EVT_NEW_BOND occurs.&lt;/p&gt;
&lt;p&gt;However, after Bluetooth is turned off (on the iPhone) and back on again, there is no event BLE_BONDMNGR_EVT_CONN_TO_BONDED_CENTRAL.&lt;/p&gt;
&lt;p&gt;I would have expected the second event to fire after connecting to a previously bonded iPhone.&lt;/p&gt;
&lt;p&gt;This can be easily checked by setting a breakpoint after the second event.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS Sample doesn't work after rebooting iOS Device</title><link>https://devzone.nordicsemi.com/thread/5282?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2014 10:05:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef5e75b1-1e21-4aca-a019-ef7871899242</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;I edited my answer above, as I&amp;#39;ve now managed to reproduce this. Please take a look.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS Sample doesn't work after rebooting iOS Device</title><link>https://devzone.nordicsemi.com/thread/5281?ContentTypeID=1</link><pubDate>Thu, 30 Jan 2014 22:53:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0945be29-2100-4862-abf6-2bd6d697d60d</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;Nori, did you find a solution to this?&lt;/p&gt;
&lt;p&gt;I have noticed the same problem (using sdk 5.0.0 - i don&amp;#39;t think ancs code changed in 5.1.0).&lt;/p&gt;
&lt;p&gt;The sequence of events is this:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;erase flash, program soft device, program ancs example&lt;/li&gt;
&lt;li&gt;on iphone, make sure bluetooth is on, select &amp;#39;ANCS&amp;#39; device, and pair.&lt;/li&gt;
&lt;li&gt;dev board led&amp;#39;s show advertising stops, and connetion on.&lt;/li&gt;
&lt;li&gt;send an SMS to the iphone (with another phone), iphone gets text and notification.&lt;/li&gt;
&lt;li&gt;devboard says &amp;#39;Social&amp;#39; and &amp;#39;Added 00000000&amp;#39;&lt;/li&gt;
&lt;li&gt;clear the notification on the iPhone.&lt;/li&gt;
&lt;li&gt;devboard says &amp;#39;Social&amp;#39; and &amp;#39;Removed 00000000&amp;#39;&lt;/li&gt;
&lt;li&gt;in iPhone settings, turn bluetooth off.&lt;/li&gt;
&lt;li&gt;devboard leds show connection &amp;#39;off&amp;#39; and advertising starts.&lt;/li&gt;
&lt;li&gt;on the iPhone, turn bluetooth  back on&lt;/li&gt;
&lt;li&gt;devboard leds show advertising stops, and connection back &amp;#39;on&amp;#39;&lt;/li&gt;
&lt;li&gt;send another SMS to the iphone (with another phone), iphone gets text and notification.&lt;/li&gt;
&lt;li&gt;no message on devboard this time.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;As Nori said, selecting the ANCS device in iPhone bluetooth settings, and then clicking &amp;#39;Forget device&amp;#39; 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.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>