9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: presotto@plan9.bell-labs.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] serial port programming
Date: Thu, 15 Feb 2001 16:24:57 -0500	[thread overview]
Message-ID: <20010215212500.E6329199D5@mail.cse.psu.edu> (raw)

[-- Attachment #1: Type: text/plain, Size: 99 bytes --]

Short answer:

	cat /dev/eia0

Longer answer:

	look at /sys/src/cmd/ip/ppp/ppp.c:2437-2451

[-- Attachment #2: Type: message/rfc822, Size: 3856 bytes --]

[-- Attachment #2.1.1: Type: text/plain, Size: 449 bytes --]

I know the world of computing has forsworn manuals
for a variety of reasons, but it's a valid approach in
Plan 9.

So, read uart(3) first. It explains how to configure
a uart by opening the ctl file and writing simple
strings. You read and write it by reading and writing the
data file. As they used to say on a game show here,
"that's all there is to it".

If you need more, then try

src con

the source of the terminal emulator.


[-- Attachment #2.1.2: Type: message/rfc822, Size: 1693 bytes --]

From: Sam Ducksworth <sam@ducksworth.com>
To: 9fans mailing list <9fans@cse.psu.edu>
Subject: [9fans] serial port programming
Date: Thu, 15 Feb 2001 09:10:07 -0800
Message-ID: <3A8C0D6F.17395EC2@ducksworth.com>

i would like to write a simple plan9
program that i can use to pull serial
data from a microcontroller based data
logger that i have constructed. does
anyone know where i could find some
sample code that shows how plan9
handles serial port I/O.

-sam

             reply	other threads:[~2001-02-15 21:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-15 21:24 presotto [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-02-16  4:41 anothy
2001-02-15 22:37 rog
2001-02-15 21:47 presotto
2001-02-15 17:18 nigel
2001-02-15 17:35 ` Sam Ducksworth
2001-02-15 17:10 Sam Ducksworth

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=20010215212500.E6329199D5@mail.cse.psu.edu \
    --to=presotto@plan9.bell-labs.com \
    --cc=9fans@cse.psu.edu \
    /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).