i have developed an application which reads messages from the mobile phone and process the messages read.
i am using at comands to achieve this.
as we are aware that we have two modes that is the text and pdu mode, and our application runs in both the modes.
i dont have any problem in text mode but in pdu mode when i am reading data from the phone using the at command, at+cmgl=4 in the message part i am loosing some data at the end.
there is no bug in my code because i have the same problem when i tried to read the message on the hyperterminal also.
on the hyperterminal when it is in the text mode it reads the message properly, but when it is in the pdu mode i am loosing data at the end.
i have the hyperterminal log file here for u.
+CMGL: 1,"REC READ","+919845062183",,"04/02/06,13:10:14+00"
Pgjt jadmw tjgp. ad
+CMGL: 2,"REC READ","+919844143034",,"04/02/06,14:59:37+22"
in the first message +cmgl=1,1,36 the message length 13(hex) is correct but it has read only 11(hex) char.
please do tell me why this is happening.....hope i will get solution from u.
i am connecting nokia 7110 phone to my pc.
pl.. tell me as soon as possible.
The length is 0x13=19(dec) characters. The TP-DCS field is 0x00 which means you have 7-bit characters in your sms. Those septets are "packed" in octets as described here: http://www.dreamfabric.com/sms/hello.html