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. sms using sending and receiving GSM Modem

sms using sending and receiving GSM Modem

Scheduled Pinned Locked Moved C#
6 Posts 5 Posters 0 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.
  • R Offline
    R Offline
    rameshidiot
    wrote on last edited by
    #1

    Hi to all........ User first send sms to server system(GSM Connect) from their mobile(it's done successfully). Here the problem occured. while server reconize the user request query and automatic reply the corresponding user.example ( For asking cricket news type 'CRICKET NEWS' to 56547. After sending the message they will send the reply to our moblie) Like that I want to send the information for the user from database(SQL)

    M N K 3 Replies Last reply
    0
    • R rameshidiot

      Hi to all........ User first send sms to server system(GSM Connect) from their mobile(it's done successfully). Here the problem occured. while server reconize the user request query and automatic reply the corresponding user.example ( For asking cricket news type 'CRICKET NEWS' to 56547. After sending the message they will send the reply to our moblie) Like that I want to send the information for the user from database(SQL)

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      Ramesh - Idiot ? I hope your are not a troll and I am guilty of feeding. Your english needs some work, your post does not contain a question - it is generally accepted that the forum ANSWERS questions about coding\development problems.

      Never underestimate the power of human stupidity RAH

      1 Reply Last reply
      0
      • R rameshidiot

        Hi to all........ User first send sms to server system(GSM Connect) from their mobile(it's done successfully). Here the problem occured. while server reconize the user request query and automatic reply the corresponding user.example ( For asking cricket news type 'CRICKET NEWS' to 56547. After sending the message they will send the reply to our moblie) Like that I want to send the information for the user from database(SQL)

        N Offline
        N Offline
        Nagy Vilmos
        wrote on last edited by
        #3

        Your 'question' is wrong on so many levels, I just don't know where to start: - what is going wrong? - what have you tried? - when is your homework due?


        Panic, Chaos, Destruction. My work here is done.

        1 Reply Last reply
        0
        • R rameshidiot

          Hi to all........ User first send sms to server system(GSM Connect) from their mobile(it's done successfully). Here the problem occured. while server reconize the user request query and automatic reply the corresponding user.example ( For asking cricket news type 'CRICKET NEWS' to 56547. After sending the message they will send the reply to our moblie) Like that I want to send the information for the user from database(SQL)

          K Offline
          K Offline
          King Julien
          wrote on last edited by
          #4

          Ramesh!!! Let me Re-Frame the question for you!!! you need to develop a GSMcommunication application, in which a gsm modem(probably a cell phone)is connected to a computer, and when you receive an SMS from a sender say(XYZ) your system should recognize the sms content and send some data to the xyz number from the database according to the content... right??? In that case you need to study about following things... 1.SMS details 2.SMS centre 3.SMS Gateway 4.Encryption or encoding Methods 5.AT commands for Gsm MObiles. Do a little research in this and post only your problems if you face any... Ella Pugazhum Iraivan Oruvanukkae...

          Have a Happy Coding.....

          J 1 Reply Last reply
          0
          • K King Julien

            Ramesh!!! Let me Re-Frame the question for you!!! you need to develop a GSMcommunication application, in which a gsm modem(probably a cell phone)is connected to a computer, and when you receive an SMS from a sender say(XYZ) your system should recognize the sms content and send some data to the xyz number from the database according to the content... right??? In that case you need to study about following things... 1.SMS details 2.SMS centre 3.SMS Gateway 4.Encryption or encoding Methods 5.AT commands for Gsm MObiles. Do a little research in this and post only your problems if you face any... Ella Pugazhum Iraivan Oruvanukkae...

            Have a Happy Coding.....

            J Offline
            J Offline
            joey_go
            wrote on last edited by
            #5

            // Written by Joseph Goldburg mobile 61 412 750 765 email joe.g@optusnet.com.au // // Version 0.1 beta only // // // This Program takes a input text file GSM AT commands and send them to the serial port // command line options are // // ConsoleApplication1 COMx INPUT_FILE LOG_FILE PAUSE // Where // COMx is COM1 COM2 COM3 serial port etc // // INPUT_FILE is the input AT text file name file name but be 8.3 dos file format // // LOG_FILE text file for the log output file name must be 8.3 dos file format // // PAUSE if any character then the program will wait until keypress to exit // // Example calling the command line // // ConsoleApplication1 COM1 AT.txt log.txt // // Example of INPUT_FILE AT.txt for sending SMS's // // AT+CMGS="61412750765" // Sending text messages is easy^z // AT+CMGS="61412750765" // Sending another SMS message^z // AT+CMGS="61412750765" // Yet another text message^z // ATZ // // Any AT commands can be sent, jst add them to the text file // // Special consideration is given to ascii characters "^Z" or "^z" these are turned in to ascii control characters // Baud rate fixed at 115200 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO.Ports; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { for (int i = 0; i < args.Length; i++) { System.Console.Write("Arg[{0}] = [{1}] ", i, args[i]); }; Console.WriteLine(); Console.WriteLine(); Console.WriteLine("Written by Joseph Goldburg Phone 0412 750 765 joe.g@optusnet.com.au"); Console.WriteLine(); if (args.Length < 3) { Console.WriteLine("*** Error in command line arguments ***\n"); Console.WriteLine("3 arguments required COMx inputfile logfile [Pause]\n\n"); Console.WriteLine("Press any key to continue..."); Console.ReadKey(true); System.Environment.Exit(1); } // 3 arguments COM1 Input file and output file // files must be in dos compressed formant 8.3 // Arg[0] is the comport selection comport // Arg[1] is INPUT_FILE inputfile // Arg[2] is LOG_File

            K 1 Reply Last reply
            0
            • J joey_go

              // Written by Joseph Goldburg mobile 61 412 750 765 email joe.g@optusnet.com.au // // Version 0.1 beta only // // // This Program takes a input text file GSM AT commands and send them to the serial port // command line options are // // ConsoleApplication1 COMx INPUT_FILE LOG_FILE PAUSE // Where // COMx is COM1 COM2 COM3 serial port etc // // INPUT_FILE is the input AT text file name file name but be 8.3 dos file format // // LOG_FILE text file for the log output file name must be 8.3 dos file format // // PAUSE if any character then the program will wait until keypress to exit // // Example calling the command line // // ConsoleApplication1 COM1 AT.txt log.txt // // Example of INPUT_FILE AT.txt for sending SMS's // // AT+CMGS="61412750765" // Sending text messages is easy^z // AT+CMGS="61412750765" // Sending another SMS message^z // AT+CMGS="61412750765" // Yet another text message^z // ATZ // // Any AT commands can be sent, jst add them to the text file // // Special consideration is given to ascii characters "^Z" or "^z" these are turned in to ascii control characters // Baud rate fixed at 115200 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO.Ports; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { for (int i = 0; i < args.Length; i++) { System.Console.Write("Arg[{0}] = [{1}] ", i, args[i]); }; Console.WriteLine(); Console.WriteLine(); Console.WriteLine("Written by Joseph Goldburg Phone 0412 750 765 joe.g@optusnet.com.au"); Console.WriteLine(); if (args.Length < 3) { Console.WriteLine("*** Error in command line arguments ***\n"); Console.WriteLine("3 arguments required COMx inputfile logfile [Pause]\n\n"); Console.WriteLine("Press any key to continue..."); Console.ReadKey(true); System.Environment.Exit(1); } // 3 arguments COM1 Input file and output file // files must be in dos compressed formant 8.3 // Arg[0] is the comport selection comport // Arg[1] is INPUT_FILE inputfile // Arg[2] is LOG_File

              K Offline
              K Offline
              King Julien
              wrote on last edited by
              #6

              Hi... This seems to be a little old post.. :) anyway thanks for your code.. i will try it out sometimes....

              Have a Happy Coding.....

              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