Muthamizhselvan.ram
Newbie level 3
I have two questions,
:?:first, i want to map the current location of a mobile number from which i receive a call.i want to do this using C#.NET.map the location on a google map.
plz help me.......
:?:second, my NOKIA 6300 mobile phone didn't support the AT command for read and list received messages.It produces an ERROR .plz help me .....
very urgent................
and one more question, I have a problem in my C#.NET coding to send msgs using Serial port communication,
I attached my coding below.
there is no error in coding.but every time i run the code,it shows "port is not connected".plz send me the correct coding.
coding:
SerialPort p=new SerialPort();
private void Form1_Load(object sender, EventArgs e)
{
try
{
p.PortName = "COM9";
p.BaudRate = 460800;
p.DataBits = 8;
p.StopBits = StopBits.One;
p.Parity = Parity.None;
p.ReadTimeout = 300;
p.WriteTimeout = 300;
p.Open();
p.DtrEnable = true;
p.RtsEnable = true;
}
catch (Exception ex)
{
throw ex;
}
p.Write("AT\r\n");
String s1 = p.ReadLine();
if (s1.Equals ("OK"))
{
MessageBox.Show("Port is connected");
}
else
MessageBox.Show("Port is not connected");
}
private void button1_Click(object sender, EventArgs e)
{
// p.write("");
p.Write("at+cmgf=1\r\n");
p.Write("at+cmgs=\"+919842798108\"\r\n");
p.Write("Test message ");
SendKeys.Send("^(z)");
String s2 = p.ReadLine();
if (s2.Equals("OK"))
{
MessageBox.Show("Message Sent");
}
else
MessageBox.Show("Message not sent");
}
}
}
:?:first, i want to map the current location of a mobile number from which i receive a call.i want to do this using C#.NET.map the location on a google map.
plz help me.......
:?:second, my NOKIA 6300 mobile phone didn't support the AT command for read and list received messages.It produces an ERROR .plz help me .....
very urgent................
and one more question, I have a problem in my C#.NET coding to send msgs using Serial port communication,
I attached my coding below.
there is no error in coding.but every time i run the code,it shows "port is not connected".plz send me the correct coding.
coding:
SerialPort p=new SerialPort();
private void Form1_Load(object sender, EventArgs e)
{
try
{
p.PortName = "COM9";
p.BaudRate = 460800;
p.DataBits = 8;
p.StopBits = StopBits.One;
p.Parity = Parity.None;
p.ReadTimeout = 300;
p.WriteTimeout = 300;
p.Open();
p.DtrEnable = true;
p.RtsEnable = true;
}
catch (Exception ex)
{
throw ex;
}
p.Write("AT\r\n");
String s1 = p.ReadLine();
if (s1.Equals ("OK"))
{
MessageBox.Show("Port is connected");
}
else
MessageBox.Show("Port is not connected");
}
private void button1_Click(object sender, EventArgs e)
{
// p.write("");
p.Write("at+cmgf=1\r\n");
p.Write("at+cmgs=\"+919842798108\"\r\n");
p.Write("Test message ");
SendKeys.Send("^(z)");
String s2 = p.ReadLine();
if (s2.Equals("OK"))
{
MessageBox.Show("Message Sent");
}
else
MessageBox.Show("Message not sent");
}
}
}