HELP IN TURNING OFF ECHO IN SERIAL PORT IN CSHARP

  • Thread starter Thread starter Nasif
  • Start date Start date
N

Nasif

HELLO ALL

I am new in serial port programming. I am currently doing a program
that communicates to DSP board through COM1 port. But I am using
Microsoft Visual Studio 2005. The language that I am using is C#. I am
using the built in class SerialPort provided by Microsoft. When I send
some bytes to the output buffer they always appear somewhat later at
the input buffer...
This is really frustrating.I know how to turn off the local echo in
the Hyperterminal, but there seems to be no method for doing this in
Microsoft Visual Studio.

Please help me to resolve this problem

Thanks in advance
Nasif
 
Are you sure that it is not your DSP echoing the data?

Indeed, that seems by far the most likely explanation to me. "Local
echo" in hyperterminal etc is something that is explicitly performed
by the client program, as I understand it. It's not part of the
communications itself.

Jon
 
Indeed, that seems by far the most likely explanation to me. "Local
echo" in hyperterminal etc is something that is explicitly performed
by the client program, as I understand it. It's not part of the
communications itself.

Jon

Is there any sample code fragment that discards echos ?
 
Nasif said:
Is there any sample code fragment that discards echos ?

No, you'd have to detect what's an echo and what's truly generated by
the other end as meaningful data.

You should look in the documentation for the DSP board - I suspect
there are options there to turn it off.
 
Back
Top