hello every body
i'm working on sms remote control and i'm using at89s52 i bought the at89s52 training kit i'm using t290i ericsson mobile it wotks well with at command but the problem is that when i write at+cmgr=1 it read the first recieved sms if i send a new sms and write at+cmgr=1 it doesn't read the last recieved sms it read the previous.some ppl suggest me to delete every sms once i recieved it but i won't be home when i send sms to mobile to switch on/off device.
so plz till now let's say it'll be only one sms on the mobile recieved i just wanna code to test it if there is another problem facec me in connecxtion so i want a code that read the recieved sms from the MCU coz i want to connect the mobile to the kit then test if the connection is good or there is problem so plz i need this code as soon as possible and plz say that i'll connect the device that i want to control on pin 2.0
and the sms is switch 1 off or switch 1 on.
i wish i could explain.
"the problem is that when i write at+cmgr=1 it read the first recieved sms if i send a new sms and write at+cmgr=1 it doesn't read the last recieved sms it read the previous"
No, that is not a problem - that is the correct operation!
You need to check the documentation for the AT+CMGR command, and understand what the '1' means in AT+CMGR=1 ...
thanks for your replay Mr.andy
but how i could read the last recieved sms if i'm away from home say i send sms to switch off device 1 and after few while i send another sms to switch on another device how can i write this in the code.
so do you know a simple program to test the mobile
so i can connenct the mobile to the kit then send it msg the the device switches off.plz i need to test the mobile.
u just read new sms and then after delete that sms and always read 1st sms it is the best solution of this chk delete At command ...... and your problem will be solved