Tuesday, October 9, 2012

Send and Read SMS through a GSM Modem using AT Commands

Author : By

 


There are many different kinds of applications SMS applications in the market today, and many others are being developed. Applications in which SMS messaging can be utilized are virtually unlimited. Some common examples of these are given below:
  • Person-to-person text messaging is the most commonly used SMS application, and it is what the SMS technology was originally designed for.
  • Many content providers make use of SMS text messages to send information such as news, weather report, and financial data to their subscribers.
  • SMS messages can carry binary data, and so SMS can be used as the transport medium of wireless downloads. Objects such as ringtones, wallpapers, pictures, and operator logos can be encoded in SMS messages.
  • SMS is a very suitable technology for delivering alerts and notifications of important events.
  • SMS messaging can be used as a marketing tool.
In general, there are two ways to send SMS messages from a computer / PC to a mobile phone:
  1. Connect a mobile phone or GSM/GPRS modem to a computer / PC. Then use the computer / PC and AT commands to instruct the mobile phone or GSM/GPRS modem to send SMS messages.
  2. Connect the computer / PC to the SMS center (SMSC) or SMS gateway of a wireless carrier or SMS service provider. Then send SMS messages using a protocol / interface supported by the SMSC or SMS gateway.
In this article, I will explain the first way to send, read, and delete SMS using AT commands. But before starting, I would like to explain a little bit about AT commands.

AT Commands

AT commands are instructions used to control a modem. AT is the abbreviation of ATtention. Every command line starts with "AT" or "at". That's why modem commands are called AT commands. There are two types of AT commands:
  1. Basic commands are AT commands that do not start with a "+". For example, D (Dial), A (Answer), H (Hook control), and O (Return to online data state) are the basic commands.
  2. Extended commands are AT commands that start with a "+". All GSM AT commands are extended commands. For example, +CMGS (Send SMS message), +CMGL (List SMS messages), and +CMGR (Read SMS messages) are extended commands.
If you want to get more information about AT commands, then you can get it on my other article on CodeProject here: http://www.codeproject.com/KB/system/IntroductiontoATcommands.aspx.

6 comments:

  1. excellent piece of information, I had come to know about your website from my friend kishore, pune,i have read atleast 8 posts of yours by now, and let me tell you, your site gives the best and the most interesting information. This is just the kind of information that i had been looking for, i'm already your rss reader now and i would regularly watch out for the new posts, once again hats off to you! Thanx a lot once again, Regards, bulk sms hyderabad

    ReplyDelete
  2. The blog is truly inspiring and contains various informative articles. Thanks for posting wonderful information in the blog.
    Bulk SMS Services in Indore

    ReplyDelete
  3. I enjoyed reading your informative article and considering the points you made. Thank you for such an informative post
    bulk sms service provider in india

    ReplyDelete
  4. Awesome Blog! You have defined detailed analysis of Bulk SMS Services campaign at the time of election where for the promotion People usually miss use the telecommunication services.

    ReplyDelete
  5. Hey nice blog for SMS through a GSM Modem, Thank you for sharing some useful information.
    Being a leading SMS Gateway Provider, TeleOss is providing worldwide SMS Gateway services, VAS Services, Bulk SMS Gateway Software, USSD services etc.

    ReplyDelete
  6. Awesome Blog! If you are looking for the best website design company in Indore, Visit our website.

    ReplyDelete