.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Articles >> C# >> Post New Resource Bookmark and Share   

 Subscribe to Articles

Sending mesage through gsm mode

Posted By:Gowthammanju       Posted Date: July 01, 2011    Points: 200    Category: C#    URL: http://www.dotnetspark.com  

This article explains about sending and reading of messages from mobile phone through gsm mode
 

Hi

  In previous Article i had provide a way to send free sms from our aspx page to mobile trough way2sms.com


Now in these article,

        let see how can we read the sms of mobile and to send sms to destination mobiles through c#.net


Let us follow the steps as:


1)Send sms with mobile using c#,gsmcomm a free library available which can be obtained from the following web.


www.download.com/GSMComm/3000-2070_4-10409993.html


2)   Create the following form as


1. Port


2. Baud rate you can add values ranging from 1..15 in port combo box


Note: 

    -> you need to download the library and add reference to your project.
    -> all you need is to have a GSM enabled mobile.
    -> For testing the connection with your mobile 
    -> create a object for the class GsmCommMain


For baud speed rate use coding as

 Form1_Load()
  {
  public static GsmCommMain comm;
  comm = new GsmCommMain(Comm_Port, Comm_BaudRate); //comm_port id of the combobox
  comm.Open();
  }
For sending sms you have to design a windows form


with the destination number and message field and a button named send

//Header files

using GsmComm.GsmCommunication;
 using GsmComm.Interfaces;
 using GsmComm.PduConverter;
 using GsmComm.Server;

//codings in click event fo button as


 pdu = new SmsSubmitPdu(txmessage.Text, txdestination.Text, "");
And finally u need to connect to the mobile using gsm

and execute it


look the below screen shots as



finally for more clarifications 

please find attachment here


Thanks and regards,

Gowthammanju


 Subscribe to Articles

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend