Hi, I am using the Wavecom Classic module. I am able to control this module using 8051 for sending the SMS. When I try to receive the Message from the Module, I am failing. I know all the AT commands. What I need is how I can recive the data coming from module. There is no serial error or buad rate error. B'cos it is working for sending SMS. If any boday have a small part of teh code to receive the OK at aleast from the Modem..please advise me. Thank you
If you send commands over the serial like this
printf("AT\n");
If you send commands like that, then your AT Command is incorrectly terminated!
See my post titled "AT Command Termination Character" (21-Mar-2007 20:14) in this thread: http://www.keil.com/forum/docs/thread9483.asp
"...this may be because the modem echoes back the '\n' (which ends the 'gets' operation) before sending the reply you are waiting for, e.g. 'OK'"
That would be Number 6 on my previous list:
"6. The controller sent the command, the modem received it, sent a valid response, it reached the controller, but your software didn't correctly handle it."
See: http://www.keil.com/forum/docs/thread9644.asp
As previously noted, SIVA RAMA PRASAD S (aka "Ram siva"?) needs to put the work in to determining exactly what is and is not happening in his/her system...