This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ANCS on CC2541

Other Parts Discussed in Thread: CC2640, BLE-STACK

I am trying to debugging with keyfob and i came across the fact that in my code when an email arrives its not processing the timeAPPIndGattMsg in timeApp.c.When i debug i found that the value of pMsg->method=0x07 and that of ATT_Handle_value_NOTi=27.so it not processing.Can you tell me what i am doing wrong.I am getting the GATT_MSG_EVENT value as 176

static void timeAppProcessGattMsg( gattMsgEvent_t *pMsg )
{

if ( pMsg->method == ATT_HANDLE_VALUE_NOTI ||
pMsg->method == ATT_HANDLE_VALUE_IND )
{
timeAppIndGattMsg( pMsg );
}
if ( ( pMsg->method == ATT_READ_RSP || pMsg->method == ATT_WRITE_RSP ) ||
( pMsg->method == ATT_ERROR_RSP &&
( pMsg->msg.errorRsp.reqOpcode == ATT_READ_REQ ||
pMsg->msg.errorRsp.reqOpcode == ATT_WRITE_REQ ) ) )

  • Hi Don,
    Did you finally solve this issue. I am having a similar issue: in my case the function "timeAppProcessGattMsg()" is not called at all when the iPad I use receives a email. The function is called, for example, when a new hangout videocall or text message in a chat is received, but not with emails.

    I have tested it with iOS 8.2, and now after updating to iOS 9.2 with same results.

    Thank you very much! BR
    José Antonio Martínez
  • Hi all,

    We have added ANCS to an app based on the TimeApp example, running on our custom board with cc2640.

    What is happening (as said here: ) is that we are not receiving notification for incoming emails. Debugging the issue, we see that no gatt message is received at all for this case. We are receiving other ANCS notifications normally (for example the ones in social category: skype videocalls, hangouts, etc..), but nothing for email!.

    We are using an iPad mini with iOS 9.2 (and previously with iOS 8.2 with the same results).

    Has anybody any idea about this issue?

    Thank you. BR

    José Antonio Martínez

  • Hello all,

    (I've merged José's thread into this since they both cover the same topic).

    Have you confirmed, via a BLE air sniffer trace, that the GATT Server (i.e., iPhone) is sending the Notifications? It's easier to correlate BLE-Stack behaviour when a sniffer trace is reviewed in parallel. Also, have you posted on the Apple Dev Forums?

    Best wishes
  • Hi all,
    For the moment, I have used SmartRF Packet Sniffer and checked that effectively no BLE packet is transmitted for the email case (while it is transmitted for the other cases: text chat, videocall, etc.), so it seems that there is something wrong at the iPad side. I am using Apple Dev Forums right now trying to clarify this issue. In the meanwhile, any news are welcome.
    Thank you!.
    José Antonio Martínez.
  • Hi,
    I'm happy to say that this issue was clarified (at least the part that I reported). I found that email notifications are disabled by default (also in the iOS Notification Center), so it is needed to enabled them (in "Settings -> Notifications -> Mail"), as said here: support.apple.com/.../HT201925.

    Thank you very much!
    José Antonio Martínez.
  • Hi All,

    I have used CC2640 ANCS sample code as below link ( processors.wiki.ti.com/.../Cc2640_ANCS_Sample ), and find out iphone ios9.1 ANCS function fault ( include Incooming Call, missed call, message and mail ).
    Somebody can tell me what i am doing wrong, or something setting is wrong ?

    Thank !!!