Additional information:
main:
serout2 tx,baud,["AT^SMGR=1",13] ' I have tried it with AT+CMGR=1
Serin2 rx,baud,5000,main,[WAIT("REC UNREAD")] ' I have tried this string with REC READ, STO UNSENT, STO SENT - Nothing works!
portc=255
end
Additional information:
main:
serout2 tx,baud,["AT^SMGR=1",13] ' I have tried it with AT+CMGR=1
Serin2 rx,baud,5000,main,[WAIT("REC UNREAD")] ' I have tried this string with REC READ, STO UNSENT, STO SENT - Nothing works!
portc=255
end
Try to short the qualifier string and maintain the same AT comand:
Al.Code:serout2 tx,baud,["AT^SMGR=1",13] Serin2 rx,baud,5000,main,[WAIT("UNREAD")]
Last edited by aratti; - 2nd October 2009 at 10:54.
All progress began with an idea
Finally one step forward: The following code worked but of course this is not the target... but dont know where to go from here to check the messege and check the content & number...
main:
gosub two
serout2 tx,baud,["AT+CMGR=1",13]
Serin2 rx,baud,40000,main,[WAIT("+CMGR")]
portc=255
end
Now you need hyperterminal. You will download a typical sms on the screen and then you can count where the data that interest you commence, so you can plan the number of skips, their dimention as well as the string that should capture your data.Finally one step forward: The following code worked but of course this is not the target... but dont know where to go from here to check the messege and check the content & number...
The other way is to use a large array and sent it to a LCD to do the same job.
Al.
All progress began with an idea
Ok, Downloaded the hyperterminal for vista and bought the serial to usb cable.
Progress:
Checked all locations using at+cmgl=" REC READ", "REC UNREAD" STO SENT & UNSENT.
All show no sign of an remaining sms.
After that:
Sent an sms to my phone. Did at+cmgr=1, but it shows +cmgr: 0, ,0
Then I did at+cmgl="REC UNREAD" - - - Result is only OK ( No sign of an received sms at all.
What settings should be used for CPMS & CNMI?
I have got cpms as sm, sm, sm & CNMI as 2,0,0,1 - Are these correct?
Last edited by financecatalyst; - 2nd October 2009 at 19:17.
Its working now: this is what I did:
CNMI=00001
CNMS=me, me, mt ' stores and reads from TA memory & NOT sim
What I would like to do is change it to store, read, delete from sim only. I know I have to change CNMS=SM, SM, SM but for this to take effect I need help in changing value of CNMI (Which I am unable to figure out)
Any advise on CNMI values?
Thanks
Any advise on CNMI values?
I have never used the sim memory. There are problem with the reading of incoming sms.
It will work pretty well with "MT". Remember that you will delete the sms immediatly after reading it. Otherwise you will not be able to locate it.
Al.
Last edited by aratti; - 5th October 2009 at 00:23.
All progress began with an idea
Bookmarks