🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Slow Read From Serial Port

#2295
From: Stephan Laska
Date: Wed, 21 Mar 2007 14:29
45 lines
2979 bytes
"Phil" <phil@camusinc.com> wrote in message 
news:460132f4@newsgroups.borland.com...
> Stephan,
>> 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.
>>
> I can connect directly from my PC to the controller using a serial cable, 
> and a command/response takes about 10ms at 19200.  Using a modem it takes 
> about 125ms.  The code is the same in both cases, which points to an issue 
> with my modem connection.  I just don't know if the issue is in the phone 
> system or in my  modem setup.

this is all stream of consciousness.... not to be read like a essay.


ok phil, you have the latency.
what I was suggesting before is useful for the next step.
with the embedded controller just back looping the data,
do a burst transmission, such as transmit OX or something 512 times,
and time how long it takes to accomplish this.

there are other factors that can slow down transmission, such as line noise
and line bandwidth. check the AT set, maybe the modems have a
signal quality report?

you could try kicking the baud down to 2400, check the round trip
command/response there

one thing that might be an issue is the embedded controller. you know
the controller uart talks to the pc uart well,
but how is it doing with the modem?

with all the components bolted together, you really need to isolate exactly
where in the chain things are breaking down.

consider, you had it ok when you went puter to embedded controller.
now, you have puter to modem. modem to modem.
modem to embedded controller.

maybe your modem on the embedded controller side can be configure to
loopback mode? that way, you can see the latency in the line itself.
Technical Details
Message-ID: <4601413d@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!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> <4601263e$1@newsgroups.borland.com> <460132f4@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> <4601263e$1@newsgroups.borland.com> <460132f4@newsgroups.borland.com>
Subject: Re: Slow Read From Serial Port
Date: Wed, 21 Mar 2007 10:29:15 -0400
Lines: 47
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: <4601413d@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1174487357 69.177.35.14 (21 Mar 2007 07:29:17 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail