so far i was able to send A TEST sms via the pic from the gsm modem no max232 4mhz 16F877 below is the code:
MAIN:
Serout2 PORTC.6,16468, ["AT",13,10]
SERIN2 PORTC.7,16468,[WAIT ("OK")]
LCDOUT $FE,$C0
LCDOUT "SENDING MESSAGE..."
SEROUT2 PORTC.6,16468,["AT+CMGS=",34,"18155295213",34,13,10]
PAUSE 1000
SEROUT2 PORTC.6,16468,["TEST FROM PIC",13,10]
PAUSE 1000
SEROUT2 PORTC.6,16468,[26]
LCDOUT $FE,$C0
LCDOUT "MESSAGE SENT "
PAUSE 1000
END
Now corredct me if i'm wrong the pic will not pass the second line of the code(SERIN2 PORTC.7,16468,[WAIT ("OK")]) unless it received OK is that coreect? That means that the pic is receiving the correct chars from the gsm correct?
will try to send and read to an array.
Thanks for any response or help....
Best regards,
Joe
Bookmarks