Click here to Skip to main content
15,887,875 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I want the complete syntax for using (at commands ) to read messages from phone in c# windows application.

Here is the starting code, please complete it to me if you can:
C#
SerialPort port = new SerialPort();
if (sp.IsOpen)
{
    sp.Close();
}

sp.PortName = "COM14";
sp.BaudRate = 9600;
sp.Parity = Parity.None;
sp.DataBits = 8;
sp.StopBits = StopBits.One;
sp.Handshake = Handshake.XOnXOff;
sp.DtrEnable = true;
sp.RtsEnable = true;


sp.Open();

if (!sp.IsOpen)
{
    MessageBox.Show("Serial port is not opened");
    return;
}
Posted
Updated 25-Apr-13 22:55pm
v3

Here is a good article for you to read as a starter to get the basic idea: How to Receive SMS Messages Using a Computer / PC?[^]
And example thread to give you a sample code: receiving SMS using AT COMMANDS[^]

Good luck,
OI
 
Share this answer
 
sorry but i tried to use that but I don't know how to continue ,,, I will show you the starting code and please complete it to me if you can.


[EDIT]Code block moved to question.[/EDIT]
 
Share this answer
 
v2
Dear SoMad
firstly ,I wanna thank you for your notice although you seem angry.
secondly , you interested in commenting on my way of writing but you didn't help me about my main topic.

finally thanks again and please if you have a good help for my question please give me your help.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900