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.
How can I use 8051 to control a GSM modem
I am doing a project on Controling and Monitoring System using GSM Modem. Can I use Keil and 8051 to do make such a system?
Can I use Keil and 8051 to do make such a system? yes
and a search here will give you all the answers you need, you are about the 4711th to post this question.
Erik
Not completely true, Erik :)
If the question is "Can a 8051 be used to..." then the answer is quite often yes.
If the question is "Can I use a 8051 to..." then the answer is quite often false.
The recommended question to ask, should normally be: Would you recommend that I use a specific derivative of a '51 or do you recommend that I look at a different processor family instead?
"If the question is 'Can I use a 8051 to...' then the answer is quite often false." (my emphasis).
Yes, indeed!
And the fact that the original question is so clearly devoid of almost all relevant details strongly suggests that the OP is not (yet) prepared to tackle such a problem...
Hi Fahad,
As the other guys were pointing out (in their own way) you will need to provide some more details if you are to get any help with this - it's a rather open-ended question.
As a matter of course when posting to a forum such as this I always find it useful to know a) what processor family / type is being used and b) some breif overview of the intended application.
To try and answer your question with something useful, I would have thought that controlling your GSM/GPRS modem using your 8051-derivative is possible. The modem we are using here is controlled via a handful of GPIOS and a serial interface over which AT commands / repsponses are sent to and fro. I must add that the modem NOT being controlled by an 8051 (or derivative thereof) in this particular application.
One thing to bear in mind is that setting-up the hardware for basic comms is one thing - writing a driver to control a modern GSM/GPRS modem should not be underestimated. These devices have become very powerful/capable beasts over the recent years. The AT command spec for the modem we have here is several hundred pages thick!
So, the more you can help with providing some detail in your positing, the more you will be helping yourself.
Cheers
Andy
"One thing to bear in mind is that setting-up the hardware for basic comms is one thing - writing a driver to control a modern GSM/GPRS modem should not be underestimated."
Absolutely!
Serial coms is serial coms, whether you're talking to a PSTN modem, a GSM modem, another microcontroller, a terminal, or a PC. So the first step is obviously to get serial coms working!
Once you have basic serial coms working, then you can start sending commands to the modem, and receiving responses from the modem. Don't forget that you may receive unsolicited "responses" from the modem...
Obviously, you will have to read the modem's Manual to determine what commands are supported, and what responses may be generated.
As to actually using the modem, you have 3 possible methods of communication: 1. SMS (Text Messages); 2. Data Call; 3. GPRS.
With no details of your application, requirements, and constraints it is impossible to even guess at which may be more suitable...
An important point to note is that the decision is not entirely technical: you also need to consider the available tariffs - as these might render a technically "elegant" solution financially unviable!