🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #2289

Re: Slow Read From Serial Port

#2289
From: Stephan Laska
Date: Wed, 21 Mar 2007 12:34
15 lines
1729 bytes
"Oliver Rutsch" <orutsch@sympatec.com> wrote in message 
news:4600f62f$1@newsgroups.borland.com...
> Hi Phil,

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

assuming you can bash bits on your embedded controller,
one way to insure that your problem only exists with latency
is to have the controller simply immediately return whatever
it receives, essentially turning it into a loopback connection.
send out a character, measure the round trip time, done.
Technical Details
Message-ID: <4601263e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.germany.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <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: "Stephan Laska" <Ask & maybe I'll Tell>
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 08:34:04 -0400
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 69.177.35.14
Message-ID: <4601263e$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1174480446 69.177.35.14 (21 Mar 2007 05:34:06 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.germany.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail