Results 1 to 2 of 2

Thread: Reading comm port problem

  1. #1

    Thread Starter
    Member
    Join Date
    May 2005
    Posts
    59

    Question 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.

  2. #2
    New Member
    Join Date
    Feb 2006
    Posts
    4

    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
  •  



Click Here to Expand Forum to Full Width