Hi friends,
I have written code in asp.net to read or write string in com port(COM1).But when i run the program i am not getting any output .Below is my code .How can i check the string which i have send in com port is available in com port for read.
private SerialPort port = new SerialPort("COM 1", 9600, Parity.None, 8, StopBits.One);
port.Open();
// port.Write("He" );
port.Close();
port.Open();
port.ReadTo("e" );
Console.WriteLi ne(port.ReadLin e());
please reply as soon as possible....... ............... ...Thanx in advance for reply...
I have written code in asp.net to read or write string in com port(COM1).But when i run the program i am not getting any output .Below is my code .How can i check the string which i have send in com port is available in com port for read.
private SerialPort port = new SerialPort("COM 1", 9600, Parity.None, 8, StopBits.One);
port.Open();
// port.Write("He" );
port.Close();
port.Open();
port.ReadTo("e" );
Console.WriteLi ne(port.ReadLin e());
please reply as soon as possible....... ............... ...Thanx in advance for reply...
Comment