We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
"the Wavecom Classic module"
What is that? This is a forum for discussing Keil products - you should not expect people just to know what unrelated products are! How about posting a link to a description or, preferably, a datasheet?
"When I try to receive the Message from the Module, I am failing."
In what way are you failing?
See: http://www.keil.com/forum/docs/thread9644.asp
I send the AT comand to the module and the responce from the module has to be captured in a buffer. But I am not able to receive that responce string to the buffer
That is just a GSM module. i am using a keil product only. 8051 controller and writing the code in keil compiler. I want to control the module with 8051.
"But I am not able to receive that responce string to the buffer"
Why not?
How are you sure that the modem is sending any response at all?
See the steps in your other thread: http://www.keil.com/forum/docs/thread9644.asp
If you send commands over the serial like this
printf("AT\n");
and wait fot the response like this:
gets (buf, sizeof(buf)-1);
buf will probably be empty and you will conclude you didn't receive anything. But 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".
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."
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...