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?
Loading
Pravara PatilPosted Jun 21, 2009, 11:44 PM
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.
DevinPosted Jun 19, 2009, 4:01 PM
-Devin