Article View: borland.public.cppbuilder.nativeapi
Article #2293Re: Slow Read From Serial Port
From: Phil
Date: Wed, 21 Mar 2007 13:20
Date: Wed, 21 Mar 2007 13:20
18 lines
1936 bytes
1936 bytes
Oliver, > I think your problem is not the GetOverlappedResult function (but I > agree here with Michel's suggestions) but latency issues. It depends on > how you're talking with your device. If you do it in the way "command to > device - wait for answer from device - next command" then the overall > latency is your problem, not the burst speed of the modem connection. The > problem here is that you can't do very much in this case > if you don't want to change the way your device communication works. This > problem is well known and in some protocols like TCP/IP it is resolved > through some sophisticated algorithms like the sliding windows technique. > You'll find a lot of documentation in the net about TCP/IP and maybe you > can adapt some of the techniques used here in your communication protocol. That is how my coummuncications work: send command to device, wait for respoonse, send next command... When you refer to latency, are you referring to latency in the phone system, between the modems? Phil
Technical Details
Message-ID:
<4601310a@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<46002b03$1@newsgroups.borland.com> <4600f62f$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d1cd2b38aa5bb326 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Phil" <phil@camusinc.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <46002b03$1@newsgroups.borland.com> <4600f62f$1@newsgroups.borland.com> Subject: Re: Slow Read From Serial Port Date: Wed, 21 Mar 2007 09:20:04 -0400 Lines: 20 Organization: Camus X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 NNTP-Posting-Host: 216.54.107.58 Message-ID: <4601310a@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1174483210 216.54.107.58 (21 Mar 2007 06:20:10 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail