hi, everyone .
if i setup in this way :
adl_atCmdCreate ( “AT+CNMI=2,1,0,0,0”, FALSE, ( adl_atRspHandler_t ) NULL, NULL );
adl_atUnSoSubscribe ( “+CMTI:”, incomplete_message_disposal );//fail to read the content
inside the function incomplete_message_disposal, i call the follow function;
void select_message(u8 messageLocation)
{
switch(messageLocation)
{
case 1: adl_atCmdCreate ( “AT+CMGR=1”, FALSE, ( adl_atRspHandler_t ) read_message,"+CMGR: “, NULL ); break;
case 2: adl_atCmdCreate ( “AT+CMGR=2”, FALSE, ( adl_atRspHandler_t ) read_message,”+CMGR: “, NULL ); break;
case 3: adl_atCmdCreate ( “AT+CMGR=3”, FALSE, ( adl_atRspHandler_t ) read_message,”+CMGR: “, NULL ); break;
…
}
}
the message response in this way:
+CMGR: “REC READ”,”+8613148842706",“08/05/16,20:05:23+32”
no message content in it at all, why?
if i setup in this way:
adl_atCmdCreate ( “AT+CNMI=2,2,0,0,0”, FALSE, ( adl_atRspHandler_t ) NULL, NULL );
adl_atUnSoSubscribe ( “+CMT:”, message_disposal );
i get the message content :
+CMT: “+8613148842706”,“08/05/17,11:22:21+32”
678
Hi carlson,
When you config the CNMI = 2,1 after that you read the meassage via AT+CMGR = index … you get the result :
+CMGR: “REC READ”,"+8613148842706",“08/05/16,20:05:23+32”
I think it will be +CMGR: “REC UNREAD”,"+8613148842706",“08/05/16,20:05:23+32”
Do you try to read this message by hyper terminal?
ttt