Hi,
I am developing an application in C#.NET , for transferring data between two PC's using RS232 protocol.
For communication, i m using "SerialPort" class of "System.IO.Ports" namespace. when data is received on serial port, an event is fired where, i m reading data available on port using "ReadExisting()" method of SerialPort class.
My problem is, sometimes the method reads "\0\0?\0??\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0?\0\0\0" charactes, instead of valid input string like "Hello".
can anybody help me on this issue?
Reading contents of serial port
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Devin21 reputationPosted Jun 19, 2009, 12:01 PM EDT
-Devin
Pravara Patil37 reputationPosted Jun 21, 2009, 7:44 PM EDT
Thanks for your reply, the problem is solved. i was opening the ports with different baud rates. because of which the port having more baud rate was not reading data properly.