Re: problem with COMTIMEOUTS

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Alexander Grigoriev (alegr_at_earthlink.net)
Date: 07/28/04


Date: Wed, 28 Jul 2004 07:20:18 -0700

Too small is too close to the normal duration.

"david d" <davidd@discussions.microsoft.com> wrote in message
news:9AEEB3A7-4ABE-467B-A628-E6F20946DA5E@microsoft.com...
> Thanks Alexander .
> What you mean "too small" ?
>
> "Alexander Grigoriev" wrote:
>
> > You should only use TX timeouts to recover from unusual delays (like
when
> > the flow control stalls). Because the actual timeout is not exact, you
can
> > have problems if you set it too small.
> >
> > "david d" <davidd@discussions.microsoft.com> wrote in message
> > news:3199EC1E-DF48-4CDE-BEDB-32CEC2EB9757@microsoft.com...
> > > Hi (I'm sory about my poor English).
> > > I open serial port to sending and receiving data :
> > > CreateFile("COM1",GENERIC_READ | GENERIC_WRITE,
> > > 0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL |
FILE_FLAG_OVERLAPPED,NULL);
> > >
> > > Initiate the COMMTIMEOUTS structure
> > > CommTimeOuts.WriteTotalTimeoutMultiplier = 1;
> > > Everything work well (sending and receiving data)
> > > Until , I send 15 bytes (exactly), in this case (sometimes )the last
byte
> > disappear.
> > > Actually, doesn't get out from the port at all (observing with
external
> > monitor).
> > > (With baud rate of 9600 the problem occur more frequency then 9600.)
> > > When I change to :
> > > CommTimeOuts.WriteTotalTimeoutMultiplier = 2;
> > > Everything work well.
> > > What's wrong here ?
> > > David d
> > >
> > >
> >
> >
> >



Relevant Pages

  • Re: problem with COMTIMEOUTS
    ... "Alexander Grigoriev" wrote: ... > the flow control stalls). ... Because the actual timeout is not exact, ...
    (microsoft.public.win32.programmer.kernel)
  • Re: [PATCH] i386: Selectable Frequency of the Timer Interrupt
    ... >> will be exact, the second will be accumulating an error. ... Using schedule timeout as an argument against it doesn't hold for me. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: alt text message timeout?
    ... > Is there any way to make the exact same type of 'floating' dialog box ... > that you can control the timeout on or set to close onmouseout? ...
    (microsoft.public.frontpage.client)
  • Re: cgi timeout
    ... The server does however still timeout after 300 sec. ...
    (microsoft.public.inetserver.iis)
  • Re: Adding FTP connection without setting credentials
    ... Actually we can't find exact steps that should be tacken to reproduce the ... > Alexander S. Koumzerov wrote: ...
    (microsoft.public.inetserver.iis)