RSS Feed for This PostCurrent Article

Sending SMS through WaveComm GSM/GPRS Modem


Download Source Code

I would like to point out that even though ideally all handsets or GSM modem support AT commands, but implementation may differ across all manufacturers. As such, it is not possible for the library to be used for every mobile phones. As far as I know, Nokia NSeries, e.g. N70, N71, N80, etc do not support quite a lot of AT commands, and there is no way you can use AT commands to send SMS using those models. So be careful, you have to test if your phone model can be used for this purpose.

You can refer to my previous blog Use the .NET SMS Library to Retrieve Phone Setting if you would like to know how to manually connect to your phone to check its capabilities.

I tested retrieving configurations and sending SMS through WaveComm GSM/GPRS modem using the .NET SMS library. It is very straight forward. Below I provided the code snipppet.

oGsmModem = New GSMModemoGsmModem.Port = “COM6″

oGsmModem.BaudRate = 115200

oGsmModem.Parity = Common.EnumParity.None

oGsmModem.StopBits = Common.EnumStopBits.One

oGsmModem.FlowControl = Common.EnumFlowControl.Hardware

oGsmModem.DataBits = 8Try

oGsmModem.Connect()

If oGsmModem.IsConnected Then

MsgBox(oGsmModem.PhoneModel)

MsgBox(oGsmModem.IMEI)

MsgBox(oGsmModem.IMSI)

MsgBox(oGsmModem.SendSMS(“999″, “test msg”))

End If

Catch ex As Exception

MsgBox(ex.Message, MsgBoxStyle.Critical)

End Try

Popularity: 6% [?]


Trackback URL


RSS Feed for This Post24 Comment(s)

  1. Prashant | Oct 17, 2007 | Reply

    Do we require any GSM Modem drivers to run this demo??

  2. admin | Oct 17, 2007 | Reply

    You do not need any driver. You only need .NET 2.0 runtime

  3. Hendry | Nov 29, 2007 | Reply

    can support with PIN Active ?? Thankyou :)

  4. Mahmoud | Mar 30, 2008 | Reply

    I used N82 and tested everything and everything works fine except for sending SMS.
    i couldn’t send the message because of unknown error.
    I also tried to send the message from Hyber terminal and it fails but whe i set the text message mode AT+CMGF=1 it sends the message and everything works.
    So can you please tell me how to do the using the Open Sourse liberary

  5. bondan | Jun 17, 2008 | Reply

    I download the source and run it with visual studio 2008 (framework 3.5), and its need conversion. When converting, it could not convert the “atsms.cd” file. Is there source that comply with framework 3.5? Many thanks.

  6. Meera | Aug 29, 2008 | Reply

    I download the source and run it with visual studio 2008 (framework 3.5), and its need conversion. When converting, it could not convert the “atsms.cd” file. Is there source that comply with framework 3.5? .

  7. sams | Sep 4, 2008 | Reply

    I am using itegno W3800, for sending and receiving sms is ok, then i try to build webservice for sms_ws with asp.net, i got an error something like this when i try to test the function sendsms: String;

    “Object reference not set to an instance of an object.” but it’s not happen when i change the modem with my Nokia 7610.

    help please

  8. angeljason | Sep 24, 2008 | Reply

    hello sam, I have also itegno gsm modem 3800, but I have no luck in receiving and sending messages..can you teach me how to use the library?

  9. Weder | Oct 28, 2008 | Reply

    Exist metod for implement the SMS Library in Borland Delphi ?

  10. Carlo | Feb 13, 2009 | Reply

    i just wont to say thanks. It’s a great library and i can’t wait for v2 :)

    Great work, greetings from croatia :)

  11. Richard | Mar 25, 2009 | Reply

    hello can u help me, i have also itegno gsm modem 3800, and i have a problem in sending there is always an error,

    “Error sending SMS message: Unknown exception in sending command”

    please help me..
    Thank you

  12. gLin | Apr 6, 2009 | Reply

    Can i ask why i run the application there is this error popping out.

    The error is the port ‘COM6′ does not exist.

  13. rat86 | Apr 17, 2009 | Reply

    i also have same problem.

  14. Javaman | Jun 1, 2009 | Reply

    Hi

    Im having 2 issues with the ATSMS libary

    1. when reciving messages, I have problems with the decoding of the messages containg special charters (æøå), any help om this matter?

    MessageStore msgStore = oGsmModem.MessageStore;
    oGsmModem.MessageMemory = EnumMessageMemory.PHONE;
    msgStore.Refresh(MessageStore.EnumMessageType.ReceivedReadMessages);
    for (int i = 0; i < msgStore.Count; i++)
    {
    SMSMessage sms = msgStore[i];
    MessageBox.Show(sms.Text);
    }

    2. Is there a way to sendt long messages over 150 charters?

  15. tiffany & co jewelry | Nov 26, 2009 | Reply

    i also have same problem.

  16. ebisms | Feb 5, 2010 | Reply

    USB GSM/GPRS modem India forsale @ lowest Price

    We are selling GSM Modems in all of india. The price is very less for the USB GSM/GPRS modem.

    SEND unlimited BULK sms. Help provided to set up GSM modem. FREE Bulk SMS Software also provided with Modem.

    Call: +91 93911 62671 (Hyderabad)

    Why use your mobile phone and ruin its battery life when you have much more professional solution available. Buy our imported Modems

    Features:

    1. Allows Two-way SMS
    2. 160 characters per SMS
    3. Faster then Mobile Phone for sending SMS
    4. Directly powered by USB Port (No external power supply or battery required)
    5. Allows faster surfing on GPRS
    6. Best for mobile workforce with Laptops.

    FREE SHIPPING IN INDIA. Modem will dispatched via DTDC to track your order.

    Contact us:
    Tel:- +91-9391162671, +91-40-32962671
    Web:- http://www.ebisms.com/modem.htm Email: [email protected]

  17. Naissuh | Mar 28, 2010 | Reply

    Can any one plz send me software for bulk sms through GSM modem plzzzzzzz its urgetn plzzzzzzzz my email id is
    [email protected]

  18. BeZo Pravin | May 2, 2010 | Reply

    Well, I am using sendsms Application which is Tiny and Works good with no flaws…

  19. Christian louboutin | May 25, 2010 | Reply

    i also have same problem. what can i do ?

  20. Tiffany | Jul 5, 2010 | Reply

    Can any one plz send me software for bulk sms through

  21. Bulk SMS India | Aug 9, 2010 | Reply

    I have Nokia E72. Will this mobile be able to send multiple or bulk sms e.g. 20000 SMS in a single day using this software with any Mobile operator in India?

  22. vignesh | Aug 11, 2010 | Reply

    Do we require any GSM Modem drivers to run this demo??

  23. Secure Wireless Internet | Oct 4, 2010 | Reply

    Alot has changed since this post was written in 2007!!

  24. Andy | Feb 23, 2011 | Reply

    hi,

    i am using a gprs modem so there is no imei.. what should i do?

1 Trackback(s)

  1. From site | Nov 20, 2007

RSS Feed for This PostPost a Comment