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.
Do you know anything about the SMS protocol?
i didnt understand. can you explain this.
in vb6 ,at commands are used for sms sending . now i dont know what is in c#.net
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
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
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)
thank you soo much dear,
can you tell me other ones help about making an application for tracking a gps device?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks