From cse.psu.edu!9fans-outgoing-owner Thu Aug  3 20:29:41 1995
Received: from psuvax1.cse.psu.edu ([130.203.1.6]) by cannon.ecf.toronto.edu with SMTP id <3332>; Thu, 3 Aug 1995 20:29:34 -0400
Received: by psuvax1.cse.psu.edu id <34080>; Thu, 3 Aug 1995 20:10:39 -0400
Received: from plan9.att.com ([192.20.225.252]) by psuvax1.cse.psu.edu with SMTP id <34067>; Thu, 3 Aug 1995 20:09:51 -0400
From:	philw@plan9.att.com
To:	9fans@cse.psu.edu
Date:	Thu, 3 Aug 1995 20:07:41 -0400
Subject: re: Serial port i/o, how?
Message-Id: <95Aug3.200951edt.34067@psuvax1.cse.psu.edu>
Sender: owner-9fans@cse.psu.edu
Precedence: bulk
Reply-To: 9fans@cse.psu.edu
Status: RO

>This might be a rudimentary question, but 
>how do I access a serial port?
>(for example, to use a window as a terminal)

con -r /dev/eia0


From cse.psu.edu!9fans-outgoing-owner Mon Aug  7 11:03:24 1995
Received: from psuvax1.cse.psu.edu ([130.203.1.6]) by cannon.ecf.toronto.edu with SMTP id <2038>; Mon, 7 Aug 1995 11:03:16 -0400
Received: by psuvax1.cse.psu.edu id <33985>; Mon, 7 Aug 1995 10:21:00 -0400
Received: from plan9.att.com ([192.20.225.252]) by psuvax1.cse.psu.edu with SMTP id <34045>; Mon, 7 Aug 1995 09:36:31 -0400
From:	presotto@plan9.att.com
To:	9fans@cse.psu.edu
Date:	Mon, 7 Aug 1995 09:09:42 -0400
Subject: Re: Serial port i/o, how?
Message-Id: <95Aug7.093631edt.34045@psuvax1.cse.psu.edu>
Sender: owner-9fans@cse.psu.edu
Precedence: bulk
Reply-To: 9fans@cse.psu.edu
Status: RO

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@goonsquad.spies.com>
From:	ahm@goonsquad.spies.com (Andreas Meyer)
Subject: Re: Serial port i/o, how?
To:	9fans@cse.psu.edu
Date:	Fri, 4 Aug 1995 15:22:52 -0400
In-Reply-To: <95Aug3.200951edt.34067@psuvax1.cse.psu.edu> from "philw@plan9.att.com" at Aug 3, 95 08:07:41 pm
Organization: The Internet Wiretap
Content-Type: text
Content-Length: 338       
Sender: owner-9fans@cse.psu.edu
Precedence: bulk
Reply-To: 9fans@cse.psu.edu

philw@plan9.att.com 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



