Hi,
Its supposed to send:
at+cpms="SM" 'and get:
+CPMS: 1,15,1,15,1,15
OK
then its supposed to send:
AT+CMGR=1 ' and get:
+CMGR: 1,,23
0791539126010000240C915391663921010000807070819341 400453FA1B0E
OK
By put the code like this
.................................................
LOOP:
HSEROUT["at+cpms=",34,"SM",34,13]
HSERIN 2000,IP,[WAIT("OK")]
IP:
HSEROUT["AT+CMGR=1",13,10]
HSERIN 2000,LI,[WAIT("OK")]
LI:
HSERIN 2000,POR,[WAIT("OK"),STR myarray\62]
POR:
if myarray[0]="0"then
'pdu sms in the phone 0791539126010000240C915391663921010000807070819341 400453FA1B0E
goto success
endif
goto LOOP
success:
High PortD.2
End
.......................
Its give on hterminal the good info
at+cpms="SM"
+CPMS: 1,15,1,15,1,15
OK
AT+CMGR=1
+CMGR: 1,,23
0791539126010000240C915391663921010000807070819341 400453FA1B0E
OK
But still cand find the myarray[0]="0" to high the led
Bookmarks