How to interface with a GSM Modem to send and receive SMS from a C#.NET 2008 application

Posted on 2011-05-10
Last Modified: 2013-12-09
I need to create an application in C#.NET 2008 environment. This application is supposed to trigger SMS sending based on certain scenarios and conditions that are sensed & trapped by a rule execution / work flow mechanism that would be built as a part of this application. Besides this, I need to receive SMS and respond based on the command read from the text.
Can I use any GSM modem for doing this?
If so, please explain how to interface and send & receive SMS using this.
I need to have my application generic enough so that it can work with any make of GSM modem.
    LVL 16

    Accepted Solution

    for me i didnt use gsm modem till now in my applications
    we are integrating webservices from the provide into our application to send sms
    any way here is some usefull links it may help you
    LVL 12

    Assisted Solution

    Yes, you can use GSM Modem to Send/Receive messages from a .NET application. Basically you need to implement a Serial Communication (you can use .NET Serial Port component) and send/receive AT  commands to the modem.

    More information on SMS Services are below:

    You can enable SMS's from your application in 2 ways:
    1. Using SMSC Gateway (used for large valumms, short codes, costly)
    2. GSM Modem/Mobile Phone (Small valumes, only long codes, cheaper) - THIS IS YOUR OPTION IN QUESTION

    1. Using SMSC Gateway:
       a) Use any third party provider: They have a contact with mobile operators and they will give you a HTTP API/Web service/COM component etc. Where you can have access from your application and use their service.
    Example provider: (Choose from your country)

       b) Setup your own SMSC gateway: For this you need to contact your mobile operator from your country. They will provide the details to connect with them (SMPP, HTTP etc.).
    Example software provider:

    2. GSM Modem/Mobile Phone:
       You buy a GSM modem/Latest Mobile Phone(not symbian)  and connect from your PC. Then you can use AT commands to send/receive messages from your pc. There are some third party components/tools exist to this kind of purpose.


    All the best.



    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    In this article I will describe how to setup a Cisco WLC 5508 to work with Apple's Bonjour protocol across VLANs.  I will also discuss using screen mirroring and Airplay on an AppleTV v3.  This article covers the wireless network only and requires m…
    Using in-flight Wi-Fi when you travel? Business travelers beware! In-flight Wi-Fi networks could rip the door right off your digital privacy portal. That’s no joke either, as it might also provide a convenient entrance for bad threat actors.
    This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
    Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now