hello
here is my problem, i want to read sms message from nokia phone and if sms message is present, activate some output pin on pic. here is some sample code that was faound on som previous thread on this forum
checksms:
HSerout ["AT",13,10]' start modem
Pause 1000
HSerout ["AT+CMGF=1",13,10]'set text mod
Pause 500
'hserout ["AT+CPMS=SM",13,10]'optional set memory location
loop:
HSerout ["AT+CMGL",13,10]'list new sms msg
pause 500
' read
HSerin 1800,loop,[wait("REC UNREAD"),skip 3,STR CALL\13,skip 4,STR GSMT\17,skip 6, STR GSMMSG\16\13]
if gsmmsg(1)=$41 THEN' msg sent to phone is leter A
HIGH PORTB.6
PAUSE 1000
ENDIF
GOTO LOOP
end
thx in advance for any help!!!!!!!!!!!!!
Bookmarks