Hi everybody !
Here I'm again.
I moved to pic 16F876A + Crystal 20MHZ
Here is the code:
DEFINE OSC 20
DEFINE HSER_TXSTA 24h
DEFINE HSER_RCSTA 90h
DEFINE HSER_BAUD 19200
DEFINE HSER_SPBRG 64 ' 19200 Bauds
DEFINE HSER_CLROERR 1
Caller VAR BYTE[5]
HSerout ["AT",13,10]
Pause 1000
HSerout ["AT+CMGF=1",13,10] 'Set Text Mode
Pause 1000
Loop:
HSerout ["AT+CMGL",13,10]
Pause 1000
HSerin 5000,loop,[wait("REC READ"),STR Caller\5]
HSerout [STR Caller,13,10]
End
Here is what i get on monitor:
AT
OK
AT+CMGF=1
OK
AT+CMGL
+CMGL: 1,"REC READ","44544",,"05/05/31,16:58:21+08"
Super! Viel Gluck in der Verlosung! - Bonne chance au tirage au sort! - Buona fortuna per l'estrazione! Swisscom Mobile
OK
And it loops endless.
There is only one sms, and it has REC READ
I'm waiting to see something after the OK, it should be "44544" or anything else but it should !!
Am I right or not ?
Please help me !
Thanks
Lotondo




Bookmarks