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 this data using SERIN command..
+CMGR: "REC READ","+631234567890",,"05/05/26,17:19:23+00"
GOOD
OK
Maybe a STR function will do..
@ice*
PIC16F84A don't a hardware UART.
TIA