Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ (3) — Plan9 1st Edition

Media Vault

Software Library

Restoration Projects

Artifacts Sought

SCC(3)

NAME

scc, duart, uart − serial communication control

SYNOPSIS

­bind -a #t /dev
 ­/dev/eia0
­/dev/eia0ctl
­/dev/eia1
­/dev/eia1ctl

DESCRIPTION

The serial line devices serve a one-level directory, giving access to the serial ports.  There are several devices serving the same files; the particular one used depends on the machine involved.  ­Eia0 is a stream data file.  It can be read and written to use that port.  Reads will block until at least one character is available.  ­Eia0ctl is a stream control file associated with the port.  ­Eia1 and ­eia1ctl are similar, but for a second serial line. 

The ­ctl file can be used to push stream modules onto the port.  One can also write one of the following textual commands to a ­ctl file:

bn set the baud rate to n.

dn set dtr if ­n is non-zero; else clear it. 

kn send a break lasting ­n milliseconds. 

rn set RTS if ­n is non-zero; else clear it. 

mn obey modem CTS signal ­n is non-zero; else clear it. 

pc set parity to odd if ­c is o, to even if ­c is e; else set no parity. 

sn set number of stop bits to n. Legal values are 1 or 2.

ln set number of bits per byte to n. Legal values are 5, 6, 7, or 8.

Plan 9  —  January 03, 1993

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026