|
-
Sep 4th, 2005, 03:57 PM
#1
Thread Starter
Member
Reading comm port problem
Hi .
I try to read data from comm port using MSComm library. The settings are 1200,N,8,1. The input property is default.The input mode - binary.
The problem is that some bytes are missing. It can be one byte in the middle or sequence of bytes in the very begining of data.
Does it has something to do with ReadIntervalTimeout, ReadTotalTimeoutMultiplier and ReadTotalTimeoutConstant properties?What values should i set in? Is the values differ from Operating System to Operating System?
In case the data is written to comm port and i'm not on time to read it , is it gone? Is the new bytes are placed on old ones?
Thanks,
anastacia.
-
Feb 22nd, 2006, 11:58 PM
#2
New Member
Re: Reading comm port problem
I don't know exactly the reason for this problem. I've been stuck in this. But I can get out of this by putting a short delay time (only about 50 milisecond) at the beginning of the OnComm event. You can try it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|