Hi Friends,
The project of Camolas is very interesting and i try to create my own device. This device /schematic is posted below/ is based on the source code of Camolas with little changes on the source code.
My GSM cellphone is Sony_ericsson T630. The phone supports AT+CMGF=1.
The USART settings are:
DEFINE OSC 20
DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive
DEFINE HSER_TXSTA 24h ' Enable transmit, BRGH = 1
DEFINE HSER_SPBRG 64 ' 19200 Baud @ 20MHz, 0.16%
DEFINE HSER_CLROERR 1 ' Clear overflow automatically
But i have a problem.
The problem is in Hserin command, i thing that the PIC don't recieve or understand the answer (ok) from cellphone.
for example:
TEST:
HSEROUT["AT",13,10]
HSERIN 10000,TEST,WAIT("OK"), the code hangs here
HSEROUT["ATD0897123456",13,10]
High PortB.0
Please help to solve this....
Thank you
Bookmarks