Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
automatic sending of sms using GSM modem
#1

How To Send and Receive SMS using GSM Modem
Introduction:
sending and receiving messages(SMS) is done using an application called the SMS client. It listens for incoming messages to arrive, processes the message if it's in a valid format.The sms will be variously processed depending on the application. The topics given here are:
A) Communication Port Settings
B) Receive Incoming Message
C)Send Messages
D)Read All Messages (Sent by the users)
E) Delete Messages (One or All)

GSMComm Library(visual C++) is used here for Sending and Receiving SMS. The harware required is a GSM modem or phone for sending an SMS.

Using the code
1) Communication Port Settings: CommSetting class is used for storing comm port settings. Comm is an object of type GsmCommMain which is required for sending and receiving messages.Comm port, Baud rate and time out for our comm object of type GsmCommMain have to be specified. The EnterNewSettings() does validation, returns true if valid, and will invoke SetData(port,baud,timeout) for comm setting.

2) Receive Incoming Message :
events for GSMComm object comm here are:
PhoneConnected
This event is invoked when you try to open the Comm port.
MessageReceived
This event is invoked when a message arrives at the GSM phone.

3) Send Message
SMS can be sent by entering the destination phone number and text message. GSMComm object comm has a SendMessage method which will be used for sending SMS .

4) Read All Messages :
Just click on "Read All Messages" button and The message details such as sender, date-time, text message will be displayed on the Data Grid. The method ShowMessage is used for displaying the read message.

5) Delete Messages (One or All)
We can delete a single message by specifying the message index number and all messages can be deleted using delete all.

The full details can be found at:
http://codeprojectKB/cs/SMS.aspx

and some interesting variants of the project can be found at:
http://scamperssteve/sms/samples.htm
Reply

#2
please provide the whole concept of communication of how to send an sms automatically using GSM modem
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Powered By MyBB, © 2002-2024 iAndrew & Melroy van den Berg.