I have been modifying the TimeApp sample to read ANCS on an iphone using the blog post http://mbientlab.com/blog/ancs-on-ti2541-in-an-afternoon/ .
I have the notification source working and I can receive call backs and view the notification source data.
However I have not been able to subscribe to the data source notification to get more data.
I think the issue is in how the TimeAppDiscAlertNtf switch statement handles the discovery.
From the other forum post: http://e2e.ti.com/support/wireless_connectivity/f/538/t/337594.aspx I have gotten to halfway through the DISC_ANCS_CHAR step and stored the UUID of interest for notification, data, and control point.
I am unsure how to proceed with the next step with is GATT_DiscAllCharDescs. Should this be two steps where I do GATT_DiscAllCharDescs twice? Once for notification and once for data? Or do I just need to send for notification?
Then for finding the CCCD do I need to do twice to find notification and data CCCD or just the one CCCD like it does now?
// CCCD found timeAppHdlCache[HDL_ANCS_NTF_CCCD] = pMsg->msg.findInfoRsp.info.btPair[i].handle;
My last question is about enabling notifications. For the notification source I write a 0x0001 to the timeAppHdlCache[HDL_ANCS_NTF_CCCD] to enable callbacks. Do I need to do a similar process for data source so that when I write to control point I can receive a callback from data source?
So, can anyone share more detail on how to subscribe to data point?