Closed Thread
Results 1 to 8 of 8

Thread: sending sms or recieving sms from gsm modem to tracking unit

  1. #1
    maifs is offline Newbie
    Join Date
    Sep 2008
    Posts
    6
    Rep Power
    0

    sending sms or recieving sms from gsm modem to tracking unit

    i want to make an application which can send sms or recieve sms from gsm modem to tracking unit device.

    i want to write my own whole code means no outer libraries have to use within it.

    i want to write it my ownself .

    i have to made not for mobile device,
    i attached gsm modem with my computer through PCM slot.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2006
    Posts
    16,494
    Blog Entries
    75
    Rep Power
    143

    Re: sending sms or recieving sms from gsm modem to tracking unit

    Do you know anything about the SMS protocol?
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  4. #3
    maifs is offline Newbie
    Join Date
    Sep 2008
    Posts
    6
    Rep Power
    0

    Re: sending sms or recieving sms from gsm modem to tracking unit

    i didnt understand. can you explain this.

  5. #4
    maifs is offline Newbie
    Join Date
    Sep 2008
    Posts
    6
    Rep Power
    0

    Re: sending sms or recieving sms from gsm modem to tracking unit

    in vb6 ,at commands are used for sms sending . now i dont know what is in c#.net

  6. #5
    VeeraPallati is offline Newbie
    Join Date
    Apr 2009
    Posts
    4
    Rep Power
    0

    Re: sending sms or recieving sms from gsm modem to tracking unit

    Hi
    you didn't mention the GSM type(is it WAVECOM or ZTE). Basically all GSM modem are conneted to serial port. After connecting the gsm modem to the pc.


    The following commands can be used to send and Receive SMS.
    - AT+CMGS = "phone Number" <CR><LF>
    - > <Message Content> < Ctrl+Z>
    - After typing the AT+CMGS = "phone Number" <CR><LF> it will display ">", after that you can type your message content and then type ctrl+z to send.

    AT+CMGR = 1 to read the received sms from GSM modem.
    Let me know If you need the code to send and receive the sms

    thanks
    Veera Pallati

  7. #6
    maifs is offline Newbie
    Join Date
    Sep 2008
    Posts
    6
    Rep Power
    0

    Re: sending sms or recieving sms from gsm modem to tracking unit

    thank alot dear.
    my gsm type is wavecom, yes i want sone code.

    i also want to tracking a device from it.
    if you can explain that then plz guide me more.

    thanks a lot

  8. #7
    VeeraPallati is offline Newbie
    Join Date
    Apr 2009
    Posts
    4
    Rep Power
    0

    Re: sending sms or recieving sms from gsm modem to tracking unit

    Code:
    SerialPort mport =  new SerialPort("COM1",9600,Parity.None,8,StopBits.One);
                mport.DtrEnable = true;
                mport.RtsEnable = true;
                mport.ReadBufferSize = 1024;
                mport.WriteBufferSize = 1024;
                if (!mport.IsOpen)
                    mport.Open();
    
                // Senidng SMS.
                mport.Write("AT+CMGS=\"9895098950\"\n\r");
                while (true)
                {
                    string str = mport.ReadExisting();
                    if(str.Contains(">"))
                        break;
                }
                mport.Write("Hi This is the message from the Wavecom modem" + 0x1a);// Sending (CTRL+Z - 26 or 0x1a);
                
                // Reading SMS
                mport.Write("AT+CMGR=1\n\r");
                System.Threading.Thread.Sleep(1000);
                String sms = mport.ReadExisting();
    Last edited by WingedPanther; 05-11-2009 at 08:16 AM. Reason: add code tags (the # button)

  9. #8
    maifs is offline Newbie
    Join Date
    Sep 2008
    Posts
    6
    Rep Power
    0

    Re: sending sms or recieving sms from gsm modem to tracking unit

    thank you soo much dear,
    can you tell me other ones help about making an application for tracking a gps device?

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Things to do with a modem
    By AdvMutant in forum Technology Ramble
    Replies: 4
    Last Post: 11-06-2010, 10:01 PM
  2. how to connect to a USB modem?
    By ahrex in forum C# Programming
    Replies: 1
    Last Post: 11-02-2010, 09:30 PM
  3. transferring and recieving encryted objects over a network
    By Nuclare2009 in forum C# Programming
    Replies: 1
    Last Post: 07-26-2009, 05:24 AM
  4. dial-up modem triggering
    By nomad19 in forum C# Programming
    Replies: 1
    Last Post: 06-26-2009, 06:41 AM
  5. Tweaking your 56k dial-up modem!
    By pranky in forum Tutorials
    Replies: 2
    Last Post: 01-25-2007, 09:07 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts