Re: problem with COMTIMEOUTS
From: Alexander Grigoriev (alegr_at_earthlink.net)
Date: 07/28/04
- Next message: Slava M. Usov: "Re: vmWare, virtualPC, dedect , ... IN/OUT"
- Previous message: Chuck Chopp: "Re: vmWare, virtualPC, dedect , ... IN/OUT"
- In reply to: david d: "Re: problem with COMTIMEOUTS"
- Next in thread: david d: "Re: problem with COMTIMEOUTS"
- Reply: david d: "Re: problem with COMTIMEOUTS"
- Messages sorted by: [ date ] [ thread ]
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
> > >
> > >
> >
> >
> >
- Next message: Slava M. Usov: "Re: vmWare, virtualPC, dedect , ... IN/OUT"
- Previous message: Chuck Chopp: "Re: vmWare, virtualPC, dedect , ... IN/OUT"
- In reply to: david d: "Re: problem with COMTIMEOUTS"
- Next in thread: david d: "Re: problem with COMTIMEOUTS"
- Reply: david d: "Re: problem with COMTIMEOUTS"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|