amit_dhanawade
Junior Member level 1
hello,
I want to read received message in the modem.
sending SMS is working well, but reading the received mess is where i have a problem.
i initialized modem using
ATZ
ATE0 // disable echo
AT+CMGF=1
AT+CMGR=1 /// these are the command which i have sent (there is no issue in communication i.e.of UART)
After this command i suppose to get a string, which i am getting when connected to hiper terminal....
(+CMGR: "REC READ","+919762351719",,"11/03/28,12:33:07+22"
LLLLL)
but when i connect with PIC16F877A it gets hanged while receiving this string, i am not receiving it using interrupt, i am using HI-TECH compiler
while(!RCIF);
mess = RCREG;
these are the lines in the code which are used to read internal buffer
my crystal is 16MHz
do anybody know what is the problem, i need to find solution as soon as possible
I want to read received message in the modem.
sending SMS is working well, but reading the received mess is where i have a problem.
i initialized modem using
ATZ
ATE0 // disable echo
AT+CMGF=1
AT+CMGR=1 /// these are the command which i have sent (there is no issue in communication i.e.of UART)
After this command i suppose to get a string, which i am getting when connected to hiper terminal....
(+CMGR: "REC READ","+919762351719",,"11/03/28,12:33:07+22"
LLLLL)
but when i connect with PIC16F877A it gets hanged while receiving this string, i am not receiving it using interrupt, i am using HI-TECH compiler
while(!RCIF);
mess = RCREG;
these are the lines in the code which are used to read internal buffer
my crystal is 16MHz
do anybody know what is the problem, i need to find solution as soon as possible