delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/01/21/07:35:59

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Message-ID: <20020121123528.32288.qmail@web9104.mail.yahoo.com>
Date: Mon, 21 Jan 2002 04:35:28 -0800 (PST)
From: ROLAND <roland_asmann AT yahoo DOT com>
Subject: Re: Serial Communication
To: djgpp AT delorie DOT com
In-Reply-To: <20020120213642.87615.qmail@web9101.mail.yahoo.com>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

--- ROLAND <roland_asmann AT yahoo DOT com> wrote:
> 
> --- Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:
> > What settings are those, exactly?  Can you post
> the
> > relevant fragment
> > from the original code?

The code is looking like this:

if((f3=open("/dev/ttya",0))==-1){ /* open device for
read */
     error("error: ",-1,"/dev/ttya");
     error(" can not be opened for read",-1,"\n");
     finish(-1);
}
if((f4=open("/dev/ttya",1))==-1){ /* open device for
write */
     error("error: ",-1,"/dev/ttya");
     error(" can not be opened for write",-1,"\n");
     finish(-1);
}

I am not sure what the settings are that are used for
the read, but I found out that the settings used for
write are 7-E-1 (7 bits, Even parity, 1 stopbit) and
no flow control...
Can someone tell me how I can figure out what the
settings are and how to solve this problem??

Roland


__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

- Raw text -


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