Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to receiving an incoming SMS message? in C#

How to receiving an incoming SMS message? in C#

Scheduled Pinned Locked Moved C#
tutorialquestioncsharp
4 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Md Ali Naser Khan
    wrote on last edited by
    #1

    I am using AT command CNMI to enable forward incoming message to computer. But how can I receive incoming message? I need an example in C#

    R G 2 Replies Last reply
    0
    • M Md Ali Naser Khan

      I am using AT command CNMI to enable forward incoming message to computer. But how can I receive incoming message? I need an example in C#

      R Offline
      R Offline
      Rajesh Anuhya
      wrote on last edited by
      #2

      AT commands for read SMS AT+CMGL="ALL" Get the total SMSs. AT+CMGL="REC UNREAD" Get Un-read SMS AT+CMGL="REC READ" Get Read SMS AT+CMGR=3 Get 3 position SMS. Actually These commands are used to read the SMS , After Landing on your Phone/Modem. But if you want to get a alert in your application while SMS landing on your Phone/Modem, u have to write a handlers. on port receive data , and check for the specific indication of SMS Landing." phone/modem will give a indication when SMS lands on your phone/modem. Ex: SM: CNMI : 3 +CMTI:”SM”,3

      Rajesh B --> A Poor Workman Blames His Tools <--

      M 1 Reply Last reply
      0
      • M Md Ali Naser Khan

        I am using AT command CNMI to enable forward incoming message to computer. But how can I receive incoming message? I need an example in C#

        G Offline
        G Offline
        Giorgi Dalakishvili
        wrote on last edited by
        #3

        Here you are: SMS libraries (for GSM phones)[^]

        Giorgi Dalakishvili #region signature My Articles Asynchronous Registry Notification Using Strongly-typed WMI Classes in .NET [^] My blog #endregion

        1 Reply Last reply
        0
        • R Rajesh Anuhya

          AT commands for read SMS AT+CMGL="ALL" Get the total SMSs. AT+CMGL="REC UNREAD" Get Un-read SMS AT+CMGL="REC READ" Get Read SMS AT+CMGR=3 Get 3 position SMS. Actually These commands are used to read the SMS , After Landing on your Phone/Modem. But if you want to get a alert in your application while SMS landing on your Phone/Modem, u have to write a handlers. on port receive data , and check for the specific indication of SMS Landing." phone/modem will give a indication when SMS lands on your phone/modem. Ex: SM: CNMI : 3 +CMTI:”SM”,3

          Rajesh B --> A Poor Workman Blames His Tools <--

          M Offline
          M Offline
          Md Ali Naser Khan
          wrote on last edited by
          #4

          Thank you Rajesh. There is a event handler named 'DataReceived' of SerialPort object. But I don't know what will be the parameter and how to handle the parameter to receive the message. Could you please send a sample 'DataReceived' function?

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups