I just finished my circuit below a PIC to cellphone interface to send text messages..I can succesfully SEND a pre-programmed text message using this code:
Device 16F84A
Declare Xtal = 4
Start:
LOW LED
DelayMS 1000
SerOut2 PORTB.1, 84,["AT+CMGS=",34,"MyNumber",34,13]
DelayMS 1000
SerOut2 PORTB.1, 84,["TEST",13]
DelayMS 1000
SerOut2 PORTB.1, 84,[26]
DelayMS 3000
GOTO Start
I can send an endless "TEST" text messages to "MyNumber" but I can't make it work to read received text messages..
I need a code sample that will READ the received text message and will text back to the sender the word "GOOD"
I don't have the idea how to strip the sender phone number and the sent text message "GOOD" from the example below using SERIN command..
+CMGR: "REC READ","+xx1234567890",,"05/05/26,17:19:23+00"
GOOD
OK
I'd look at this code:
HSerin 5000, Loop, [Wait("UNREAD"), skip 3, STR Caller\12, skip 4, STR GSMTime\17, skip 4, STR GSMbuffer\12]
But I can't "SAY" it using SERIN command using PIC16F84..
Thanks for any info..
Bookmarks