kasamiko
Full Member level 3
- Joined
- May 23, 2004
- Messages
- 154
- Helped
- 16
- Reputation
- 32
- Reaction score
- 18
- Trophy points
- 1,298
- Location
- Philippines
- Activity points
- 1,121
pic16f84a nokia
Hi,
I've succesfully sent an SMS message "TEST" endlessly using the circuit attached.
I used this code on PIC16F84A:
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
Now I got lost reading the UNREAD message like this one:
+CMGR: "REC READ","+SenderNumber",,"05/05/26,17:19:23+00"
GOOD
OK
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..
I'd tried this code..Is this correct?
DIM Message AS BYTE
SerIn2 PORTA.0, 84,[Message]
Any help will be appriciated.
BTW:
My resources are LIMITED only to PIC16F84 and Nokia's 6210 cellphone.
TIA
Hi,
I've succesfully sent an SMS message "TEST" endlessly using the circuit attached.
I used this code on PIC16F84A:
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
Now I got lost reading the UNREAD message like this one:
+CMGR: "REC READ","+SenderNumber",,"05/05/26,17:19:23+00"
GOOD
OK
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..
I'd tried this code..Is this correct?
DIM Message AS BYTE
SerIn2 PORTA.0, 84,[Message]
Any help will be appriciated.
BTW:
My resources are LIMITED only to PIC16F84 and Nokia's 6210 cellphone.
TIA