2021-03-20 10:42:47 -05:00
//po4a: entry man manual
2021-03-12 14:10:37 -06:00
////
Copyright 2008 Tilman Schmidt (tilman@imap.cc)
May be distributed under the GNU General Public License version 2 or later
////
= ldattach(8)
:doctype: manpage
2021-03-13 05:49:26 -06:00
:man manual: System Administration
2021-03-12 14:10:37 -06:00
:man source: util-linux {release-version}
:page-layout: base
:command: ldattach
== NAME
ldattach - attach a line discipline to a serial line
== SYNOPSIS
*ldattach* [*-1278denoVh*] [*-i* _iflag_] [*-s* _speed_] _ldisc device_
== DESCRIPTION
The *ldattach* daemon opens the specified _device_ file (which should refer to a serial device) and attaches the line discipline _ldisc_ 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.
The line discipline _ldisc_ may be specified either by name or by number.
In order to detach the line discipline, *kill*(1) the *ldattach* process.
With no arguments, *ldattach* prints usage information.
== LINE DISCIPLINES
Depending on the kernel release, the following line disciplines are supported:
*TTY*(*0*)::
2021-03-26 11:19:27 -05:00
The default line discipline, providing transparent operation (raw mode) as well as the habitual terminal line editing capabilities (cooked mode).
2021-03-12 14:10:37 -06:00
*SLIP*(*1*)::
2021-03-26 11:19:27 -05:00
Serial Line IP (SLIP) protocol processor for transmitting TCP/IP packets over serial lines.
2021-03-12 14:10:37 -06:00
*MOUSE*(*2*)::
2021-03-26 11:19:27 -05:00
Device driver for RS232 connected pointing devices (serial mice).
2021-03-12 14:10:37 -06:00
*PPP*(*3*)::
2021-03-26 11:19:27 -05:00
Point to Point Protocol (PPP) processor for transmitting network packets over serial lines.
2021-03-12 14:10:37 -06:00
*STRIP*(*4*); *AX25*(*5*); *X25*(*6*)::
2021-03-26 11:19:27 -05:00
Line driver for transmitting X.25 packets over asynchronous serial lines.
2021-03-12 14:10:37 -06:00
*6PACK*(*7*); *R3964*(*9*)::
2021-03-26 11:19:27 -05:00
Driver for Simatic R3964 module.
2021-03-12 14:10:37 -06:00
*IRDA*(*11*)::
2021-03-26 11:19:27 -05:00
Linux IrDa (infrared data transmission) driver - see http://irda.sourceforge.net/
2021-03-12 14:10:37 -06:00
*HDLC*(*13*)::
2021-03-26 11:19:27 -05:00
Synchronous HDLC driver.
2021-03-12 14:10:37 -06:00
*SYNC_PPP*(*14*)::
2021-03-26 11:19:27 -05:00
Synchronous PPP driver.
2021-03-12 14:10:37 -06:00
*HCI*(*15*)::
2021-03-26 11:19:27 -05:00
Bluetooth HCI UART driver.
2021-03-12 14:10:37 -06:00
*GIGASET_M101*(*16*)::
2021-03-26 11:19:27 -05:00
Driver for Siemens Gigaset M101 serial DECT adapter.
2021-03-12 14:10:37 -06:00
*PPS*(*18*)::
2021-03-26 11:19:27 -05:00
Driver for serial line Pulse Per Second (PPS) source.
2021-03-12 14:10:37 -06:00
*GSM0710*(*21*)::
2021-03-26 11:19:27 -05:00
Driver for GSM 07.10 multiplexing protocol modem (CMUX).
2021-03-12 14:10:37 -06:00
== OPTIONS
*-1*, *--onestopbit*::
2021-03-26 11:19:27 -05:00
Set the number of stop bits of the serial line to one.
2021-03-12 14:10:37 -06:00
*-2*, *--twostopbits*::
2021-03-26 11:19:27 -05:00
Set the number of stop bits of the serial line to two.
2021-03-12 14:10:37 -06:00
*-7*, *--sevenbits*::
2021-03-26 11:19:27 -05:00
Set the character size of the serial line to 7 bits.
2021-03-12 14:10:37 -06:00
*-8*, *--eightbits*::
2021-03-26 11:19:27 -05:00
Set the character size of the serial line to 8 bits.
2021-03-12 14:10:37 -06:00
*-d*, *--debug*::
2021-03-26 11:19:27 -05:00
Keep *ldattach* in the foreground so that it can be interrupted or debugged, and to print verbose messages about its progress to standard error output.
2021-03-12 14:10:37 -06:00
*-e*, *--evenparity*::
2021-03-26 11:19:27 -05:00
Set the parity of the serial line to even.
2021-03-12 14:10:37 -06:00
2021-03-26 11:19:27 -05:00
*-i*, *--iflag* [*-*]_value_...::
Set the specified bits in the c_iflag word of the serial line. The given _value_ may be a number or a symbolic name. If _value_ 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.
2021-03-12 14:10:37 -06:00
*-n*, *--noparity*::
2021-03-26 11:19:27 -05:00
Set the parity of the serial line to none.
2021-03-12 14:10:37 -06:00
*-o*, *--oddparity*::
2021-03-26 11:19:27 -05:00
Set the parity of the serial line to odd.
2021-03-12 14:10:37 -06:00
*-s*, *--speed* _value_::
2021-03-26 11:19:27 -05:00
Set the speed (the baud rate) of the serial line to the specified _value_.
2021-03-12 14:10:37 -06:00
*-c*, *--intro-command* _string_::
2021-03-26 11:19:27 -05:00
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.
2021-03-12 14:10:37 -06:00
*-p*, *--pause* _value_::
2021-03-26 11:19:27 -05:00
Sleep for _value_ seconds before the invocation of ldattach. Default is one second.
2021-03-12 14:10:37 -06:00
*-V*, *--version*::
2021-03-26 11:19:27 -05:00
Display version information and exit.
2021-03-12 14:10:37 -06:00
*-h*, *--help*::
2021-03-26 11:19:27 -05:00
Display help text and exit.
2021-03-12 14:10:37 -06:00
== AUTHORS
mailto:tilman@imap.cc[Tilman Schmidt]
== SEE ALSO
*inputattach*(1),
*ttys*(4)
2021-03-31 04:33:06 -05:00
include::man-common/bugreports.adoc[]
2021-03-12 14:10:37 -06:00
2021-03-31 04:33:06 -05:00
include::man-common/footer.adoc[]
2021-03-12 14:10:37 -06:00
ifdef::translation[]
2021-03-31 04:33:06 -05:00
include::man-common/translation.adoc[]
2021-03-12 14:10:37 -06:00
endif::[]