man-pages/man8/ldattach.8.html
2021-03-31 01:06:50 +01:00

250 lines
5.9 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of LDATTACH</TITLE>
</HEAD><BODY>
<H1>LDATTACH</H1>
Section: System Administration (8)<BR>Updated: July 2014<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
ldattach - attach a line discipline to a serial line
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>ldattach</B>
[<B>-1278denoVh</B>]
[<B>-i</B>
<I>iflag</I>]
[<B>-s</B>
<I>speed</I>]
<I>ldisc device</I>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
The
<B>ldattach</B>
daemon opens the specified
<I>device</I>
file
(which should refer to a serial device)
and attaches the line discipline
<I>ldisc</I>
to it for processing of the sent and/or received data.
It then goes into the background keeping the device open so that the
line discipline stays loaded.
<P>
The line discipline
<I>ldisc</I>
may be specified either by name
or by number.
<P>
In order to detach the line discipline,
<B><A HREF="/cgi-bin/man/man2html?1+kill">kill</A></B>(1)
the
<B>ldattach</B>
process.
<P>
With no arguments,
<B>ldattach</B>
prints usage information.
<A NAME="lbAE">&nbsp;</A>
<H2>LINE DISCIPLINES</H2>
Depending on the kernel release, the following line disciplines are supported:
<DL COMPACT>
<DT id="1"><B>TTY</B>(<B>0</B>)
<DD>
The default line discipline,
providing transparent operation (raw mode)
as well as the habitual terminal line editing capabilities (cooked mode).
<DT id="2"><B>SLIP</B>(<B>1</B>)
<DD>
Serial Line IP (SLIP) protocol processor
for transmitting TCP/IP packets over serial lines.
<DT id="3"><B>MOUSE</B>(<B>2</B>)
<DD>
Device driver for RS232 connected pointing devices (serial mice).
<DT id="4"><B>PPP</B>(<B>3</B>)
<DD>
Point to Point Protocol (PPP) processor
for transmitting network packets over serial lines.
<DT id="5"><B>STRIP</B>(<B>4</B>)
<DD>
<DT id="6"><B>AX25</B>(<B>5</B>)
<DD>
<DT id="7"><B>X25</B>(<B>6</B>)
<DD>
Line driver for transmitting X.25 packets over asynchronous serial lines.
<DT id="8"><B>6PACK</B>(<B>7</B>)
<DD>
<DT id="9"><B>R3964</B>(<B>9</B>)
<DD>
Driver for Simatic R3964 module.
<DT id="10"><B>IRDA</B>(<B>11</B>)
<DD>
Linux IrDa (infrared data transmission) driver -
see <A HREF="http://irda.sourceforge.net/">http://irda.sourceforge.net/</A>
<DT id="11"><B>HDLC</B>(<B>13</B>)
<DD>
Synchronous HDLC driver.
<DT id="12"><B>SYNC_PPP</B>(<B>14</B>)
<DD>
Synchronous PPP driver.
<DT id="13"><B>HCI</B>(<B>15</B>)
<DD>
Bluetooth HCI UART driver.
<DT id="14"><B>GIGASET_M101</B>(<B>16</B>)
<DD>
Driver for Siemens Gigaset M101 serial DECT adapter.
<DT id="15"><B>PPS</B>(<B>18</B>)
<DD>
Driver for serial line Pulse Per Second (PPS) source.
<DT id="16"><B>GSM0710</B>(<B>21</B>)
<DD>
Driver for GSM 07.10 multiplexing protocol modem (CMUX).
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>OPTIONS</H2>
<DL COMPACT>
<DT id="17"><B>-1</B>,<B> --onestopbit</B>
<DD>
Set the number of stop bits of the serial line to one.
<DT id="18"><B>-2</B>,<B> --twostopbits</B>
<DD>
Set the number of stop bits of the serial line to two.
<DT id="19"><B>-7</B>,<B> --sevenbits</B>
<DD>
Set the character size of the serial line to 7 bits.
<DT id="20"><B>-8</B>,<B> --eightbits</B>
<DD>
Set the character size of the serial line to 8 bits.
<DT id="21"><B>-d</B>,<B> --debug</B>
<DD>
Keep
<B>ldattach</B>
in the foreground so that it can be interrupted or debugged,
and to print verbose messages about its progress to standard error output.
<DT id="22"><B>-e</B>,<B> --evenparity</B>
<DD>
Set the parity of the serial line to even.
<DT id="23"><B>-i</B>,<B> --iflag </B>[<B>-</B>]<B></B><I>value</I>...
<DD>
Set the specified bits in the c_iflag word of the serial line.
The given <I>value</I> may be a number or a symbolic name.
If <I>value</I> is prefixed by a minus sign, the specified bits are cleared
instead. Several comma-separated values may be given in order to
set and clear multiple bits.
<DT id="24"><B>-n</B>,<B> --noparity</B>
<DD>
Set the parity of the serial line to none.
<DT id="25"><B>-o</B>,<B> --oddparity</B>
<DD>
Set the parity of the serial line to odd.
<DT id="26"><B>-s</B>,<B> --speed </B><I>value</I>
<DD>
Set the speed (the baud rate) of the serial line to the specified <I>value</I>.
<DT id="27"><B>-c</B>,<B> --intro-command </B><I>string</I>
<DD>
Define an intro command that is sent through the serial line before the invocation
of ldattach. E.g. in conjunction with line discipline GSM0710, the command
'AT+CMUX=0\r' is commonly suitable to switch the modem into the CMUX mode.
<DT id="28"><B>-p</B>,<B> --pause </B><I>value</I>
<DD>
Sleep for <I>value</I> seconds before the invocation of ldattach. Default is one second.
<DT id="29"><B>-V</B>,<B> --version</B>
<DD>
Display version information and exit.
<DT id="30"><B>-h</B>,<B> --help</B>
<DD>
Display help text and exit.
</DL>
<A NAME="lbAG">&nbsp;</A>
<H2>SEE ALSO</H2>
<B><A HREF="/cgi-bin/man/man2html?1+inputattach">inputattach</A></B>(1),
<B><A HREF="/cgi-bin/man/man2html?4+ttys">ttys</A></B>(4)
<A NAME="lbAH">&nbsp;</A>
<H2>AUTHOR</H2>
<PRE>
Tilman Schmidt (<A HREF="mailto:tilman@imap.cc">tilman@imap.cc</A>)
</PRE>
<A NAME="lbAI">&nbsp;</A>
<H2>AVAILABILITY</H2>
The ldattach command is part of the util-linux package
and is available from
<A HREF="https://www.kernel.org/pub/linux/utils/util-linux/.">https://www.kernel.org/pub/linux/utils/util-linux/.</A>
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="31"><A HREF="#lbAB">NAME</A><DD>
<DT id="32"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="33"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="34"><A HREF="#lbAE">LINE DISCIPLINES</A><DD>
<DT id="35"><A HREF="#lbAF">OPTIONS</A><DD>
<DT id="36"><A HREF="#lbAG">SEE ALSO</A><DD>
<DT id="37"><A HREF="#lbAH">AUTHOR</A><DD>
<DT id="38"><A HREF="#lbAI">AVAILABILITY</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:06:13 GMT, March 31, 2021
</BODY>
</HTML>