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#
csharptutorialquestion
5 Posts 3 Posters 2 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 "AT+CNMI=2,3,2,1,0" to 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?

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

      I am using AT Command "AT+CNMI=2,3,2,1,0" to 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?

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You want to recieve an SMS message from where ? How is your phone connected to a mobile phone number, is it attached to a phone ?

      Christian Graus Driven to the arms of OSX by Vista. Please read this[^] if you don't like the answer I gave to your question. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.

      M 1 Reply Last reply
      0
      • C Christian Graus

        You want to recieve an SMS message from where ? How is your phone connected to a mobile phone number, is it attached to a phone ?

        Christian Graus Driven to the arms of OSX by Vista. Please read this[^] if you don't like the answer I gave to your question. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.

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

        My mobile is connected to my PC by a data cable. I want to get mobile incoming message to my PC.I just want an example of DataReceived event handler of SerialPort object.

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

          My mobile is connected to my PC by a data cable. I want to get mobile incoming message to my PC.I just want an example of DataReceived event handler of SerialPort object.

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Are you sure this will fire when you get an SMS message ?

          Christian Graus Driven to the arms of OSX by Vista. Please read this[^] if you don't like the answer I gave to your question. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.

          1 Reply Last reply
          0
          • M Md Ali Naser Khan

            I am using AT Command "AT+CNMI=2,3,2,1,0" to 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?

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

            I have already answered you here: http://www.codeproject.com/Messages/3062193/Re-How-to-receiving-an-incoming-SMS-message-in-Csharp.aspx[^]

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

            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