Click to See Complete Forum and Search --> : Serial Communication Problem


msole
May 24th, 2004, 09:43 PM
Hi,
I am have a program that uses serial port to transfer data from one machine to another. My program is actually running fine except for the problem that I have an intermittent scrambling of data received from the serial port. The bytes are actually interchanged position. Does anyone of you who knows this kind of problem ? Here is the sample data transmitted from the other machine. "test message" the data received by my program is like this "tets messgae"
then if I repeat it, sometimes the data is correct.
Any help is highly appreciated.!

Thanks,

Mar
:cry:

kuphryn
May 26th, 2004, 05:41 PM
What I/O model does the program utilize?

Kuphryn

msole
May 28th, 2004, 01:20 AM
Hi,
Thanks for the reply, actually I have already checked it again and found out that the problem is in the OS. We developed it in WinXP and works fine in it while when we tried to run it in WinNT, the problem occurs. We are using the class that we have downloaded from code guru site. I have included the .cpp and .h file for you to see.

Thanks,

Mar

kuphryn
May 28th, 2004, 07:20 PM
Check out MSDN. There is a really good example of serial port I/O. I'd stay away from wrapper classes.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnfiles/html/msdn_serial.asp

Kuphryn