Article View: borland.public.cppbuilder.nativeapi
Article #6454Re: Response not in que?
From: Neil P.
Date: Mon, 09 May 2005 20:31
Date: Mon, 09 May 2005 20:31
20 lines
1683 bytes
1683 bytes
I use ClearCommError(hComm, &dwErrorMask, & Comstat) to view what is coming in the cbInQue, Once, I detect there is something in the que, I use ReadFile(hComm, inbuff, nBytes, &nBytesRead, &overlapped), I am in this routine upto 2 times the amount of bytes coming in, using my baudrate 9600. So I beleive there is plenty of time so that byte can be placed in the que buffer. If the unit sending the byte responds ( in a millisecond), then how long is it before Windows reports to the ClearCommError or to the struct_COMSTAT that there is a byte waiting? Does Windows take more than a second to place it on the que? By the way the unit is always responding with one byte, because is the response of what I am sending it. Thank you, Neil P.
Technical Details
Message-ID:
<427fca8b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.sovam.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<427fa27e@newsgroups.borland.com> <vugv711ona1kdbekucqqkg6csqkcd4agrd@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,369fa724017da622 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Neil P." <nporve01@hotmail.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <427fa27e@newsgroups.borland.com> <vugv711ona1kdbekucqqkg6csqkcd4agrd@4ax.com> Subject: Re: Response not in que? Date: Mon, 9 May 2005 16:31:31 -0400 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 68.209.111.59 Message-ID: <427fca8b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1115671179 68.209.111.59 (9 May 2005 13:39:39 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.sovam.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail