www.download.com/GSMComm/3000-2070_4-10409993.html */
//you need to download the library and add reference to your project.
// all you need is to have a GSM enabled mobile and Bluetooth dongle.
//For testing the connection with your mobile
//create a object for the class GsmCommMain
//create a windows project add refernce for GSM communication
/*Create 2 combo box for the following
1. Port
2. Baud rate you can add values ranging from 1..15 in port combo box
you have to add the baud speed in the baud rate combo*/
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
you have to import the following namespace in your project
using GsmComm.GsmCommunication;
using GsmComm.Interfaces;
using GsmComm.PduConverter;
using GsmComm.Server; */
//For sending the message, you have to create a object for the SmsSubmitPdu class
// In the send button click you have to write the following code
btnsend_Click()
{
pdu = new SmsSubmitPdu(txmessage.Text, txdestination.Text, "");
}
// Here I have submitted my code. You can make use of it.
No comments:
Post a Comment