We are reading from NOKIA 5110 using data cable using java com API.
Now the problem
Usually, we receive the message in the format
+CMT: "+919810030301" ,,"02/09/11,16:32:44+00"
How are you?
which is sent to TE (Terminal end)
But yesterday it came in the format shown below.
+ CMTI: "SM",1
+ CMTI: "SM",2
and the SMS were stored in the phone itself. Which means, messages are stored in memory locations 1 and 2 and are of class 2.
On analyzing I found that I issued, AT+CNMI=1,2,0,0,0
Which means that send incoming messages TE (terminal end) except messages in CLASS 2 format. And above messages were in format CLASS 2.
If I do AT+CNMI=1,1,0,0,0
then no message will be sent to TE, and all messages will be stored in phones memory
If I do AT+CNMI=1,3,0,0,0
It is same as AT+CNMI=1,2,0,0, but class is 3 also
So when messages of type 2 and 3 comes? and how to instruct the GSM phone to send those messages to TE even if they are class 2 or 3.