delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2005/10/15/08:32:08

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Newsgroups: comp.os.msdos.djgpp
Subject: Re: reading from com1: => driving me nuts
From: muellernick AT gmx DOT de (=?ISO-8859-1?Q?Nick_M=FCller?=)
Date: Fri, 14 Oct 2005 16:17:48 +0200
Message-ID: <1h4fjbs.1h84l7uy4lquvN%muellernick@gmx.de>
References: <1h4c4cp.1b942cr1g5grtnN%muellernick AT gmx DOT de> <3r9iv2Fid3q6U1 AT news DOT dfncis DOT de>
Organization: messy desktop AKA messy shop
User-Agent: MacSOUP/D-2.7 (unregistered for 168 days)
NNTP-Posting-Host: 84.57.8.241
X-Trace: news.arcor-ip.de 1129299477 84.57.8.241 (14 Oct 2005 16:17:57 +0200)
Lines: 42
X-Complaints-To: abuse AT arcor-ip DOT de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de> wrote:

> From a DJGPP program running inside Windows? 

_Just_ for development. The software will run under plain DOS.

> You're pretty much guaranteed to lose some
> characters every once in a while, at such high baud rates. 

BTDT. You are right.
_But_ it also helps to make the communication stable. I get (very
seldom) errors that I have to handle.

> > set propper params with MODE com1:blablabla
> 
> That's a very crude way of doing this.  Consider using a proper serial
> port communication library.  There's about a handful available for
> DJGPP on the ftp servers.

The way is "crude", but it's the way the OS supports. I think that
fiddling with hardware is not the right way to go. I have looked at the
libs, and decided not to use them because of this. If my way is a
failure, I still can fix it. It's just one of my libs to be changed and
the serial lib to be added. No big pain.


> You get _what_?  What's '16382 CHRO' supposed to be?

16382 times a "char = 0". Not a "O" as you quoted.

> > Oh, if it makes a difference, I (currently) let my program run in a
> > DOS-box under Win XP pro.
> 
> That's about as hostile an environment as you could come up with.

ACK. But that's what I have.

Thanks,
Nick
-- 
Motor Modelle // Engine Models
http://www.motor-manufaktur.de

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019