I'm able to send AT commands to GSM modem,
but i am not able interface my 8051 to GSM model.
can i get sample inerfacing code for 8051 micro controller.
Once more somebody is under the impression that "testing" proves diddlysquat.
Just a case of poor test procedures, actually. Test plans can have bugs in them just like code. When you test, you need to make sure that you actually look at all of the important behavior, both positive (it does what I want) and negative (it doesn't do anything else). In this case, for example, good testing would have included test cases for the modem control signals. Put a scope on them and verify that they are set properly.
"Try it a couple of times and it looks like it works" is not testing.
Other means of validating the system, such as inspection and analysis, are also useful, and should be combined with testing. Each has its weak spots, which tend to overlap with the strengths of other approaches.
I have no beef whatsoever with "testing" I do it all the time.
What I have a beef with is that "it worked" qualifies as "testing" and a guarantee that everything is correct.
succesful testing does not prove the abscence of bugs, it ONLY proves the abscence of KNOWN bugs
Erik
Yes Mr.Andy, you are right.. We got to know that we have to use handshaking signals.We have written program for that but modem is not responding properly. Can you send some details regarding this? Thank you.
"modem is not responding properly"
In what way is it "not responding properly"? What precisely is "improper" about it?
How have you confirmed that it's the modem that is not responding "properly", rather than your code that is not sending the commands properly, and/or not handling the responses properly?
Have you fully checked your hardware - is the baud rate corect? Are all the control signals correct? Is the cable good? Are the voltage levels correct?
"Can you send some details regarding this?"
Details of what, exactly? You haven't even said what modem you're using, so how can anyone give you anything detailed without that basic knowledge?!
As I said before:
Have you read the Manual for your GSM modem? Have you visited the manufacturer's website, and reviewed the available support materials - Application Notes, examples, reference designs, etc?
Have you run your code in the Keil Simulator, connected to your modem?
Again, You need to adopt a methodical approach to debugging this - take one step at a time, so that you know exactly what does and does not work.
Thank you MR. Andy, as you said, modem(WAVECOM) is responding properly. The problem was improper handshaking signals. Now we are sending DTR and RTS signal to modem, for which it is responding properly. Thank you for your support.
Please can u send me the code what you have solved for the interface for 8051 with gsm modem because i am facing same problem what you has posted . please send tha code. this is for my college project purpose
"please send tha code. this is for my college project"
Surely the whole point of a college project is to demonstrate that you can solve the problem yourself?
After reading this thread, you should have sufficient information & resources to enable you to complete your project.
If you have specific questions, then ask them - but don't just cheat your course by copying someone else's work!
I agree with you Andy. How dare you to ask for the code?? Get up and do some work.