9fans archive / 1995 / 08 / 73 /    prev next

From: presotto@pla... presotto@pla...
Subject: Serial port i/o, how?
Date: Mon, 7 Aug 1995 09:09:42 -0400

Read:

http://helix/magic/man2html/3/scc
http://helix/magic/man2html/1/con

You can set baud rates, etc., by echoing the right goo into
the ctl file.  For example:

	echo -n b19200 > /dev/eai0ctl

sets eia0 to 19200 baud.  Not all the controls are sticky in
the Unix sense so you should do this while you have the /dev/eia0
open.

------ original message follows ------

>From cse.psu.edu!9fans-outgoing-owner Sun Aug  6 16:25:01 EDT 1995
Received: by psuvax1.cse.psu.edu id <34152>; Fri, 4 Aug 1995 16:22:37 -0400
Received: from goonsquad.spies.com ([192.216.22.66]) by psuvax1.cse.psu.edu with SMTP id <34203>; Fri, 4 Aug 1995 15:32:45 -0400
Received: by goonsquad.spies.com (Smail3.1.29.1 #2)
	id m0seSKc-00024CC; Fri, 4 Aug 95 12:22 PDT
Message-Id: <m0seSKc-00024CC@goo...>
From:	ahm@goo... (Andreas Meyer)
Subject: Re: Serial port i/o, how?
To:	9fans@cse...
Date:	Fri, 4 Aug 1995 15:22:52 -0400
In-Reply-To: <95Aug3.200951edt.34067@psu...> from "philw@pla..." at Aug 3, 95 08:07:41 pm
Organization: The Internet Wiretap
Content-Type: text
Content-Length: 338       
Sender: owner-9fans@cse...
Precedence: bulk
Reply-To: 9fans@cse...

philw@pla... writes:

> >how do I access a serial port?
> con -r /dev/eia0

When I do this, it just hangs. I'm using a hardware setup (null modem
cable to another machine) which works in DOS.

In another window, 'cat /dev/eia0ctl' returns:
cts dsr ring dcd dtr rts

Is there anything else I need to send to the control port?

Andy