9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: presotto@plan9.att.com presotto@plan9.att.com
Subject: Serial port i/o, how?
Date: Mon,  7 Aug 1995 09:09:42 -0400	[thread overview]
Message-ID: <19950807130942.bSAG7a-Ny31scAHkeuwGKGfDulfmCxs9XjPmOAmf-1k@z> (raw)

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







             reply	other threads:[~1995-08-07 13:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-08-07 13:09 presotto [this message]
  -- strict thread matches above, loose matches on Subject: below --
1995-08-06 20:54 philw
1995-08-04 19:22 Andreas
1995-08-04  0:07 philw
1995-08-03 22:23 Andreas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19950807130942.bSAG7a-Ny31scAHkeuwGKGfDulfmCxs9XjPmOAmf-1k@z \
    --to=presotto@plan9.att.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).