1 .\" Copyright 2008 Tilman Schmidt (tilman@imap.cc)
2 .\" May be distributed under the GNU General Public License version 2 or later
3 .TH LDATTACH 8 "July 2014" "util-linux" "System Administration"
5 ldattach \- attach a line discipline to a serial line
17 daemon opens the specified
20 (which should refer to a serial device)
21 and attaches the line discipline
23 to it for processing of the sent and/or received data.
24 It then goes into the background keeping the device open so that the
25 line discipline stays loaded.
29 may be specified either by name
32 In order to detach the line discipline,
40 prints usage information.
42 Depending on the kernel release, the following line disciplines are supported:
45 The default line discipline,
46 providing transparent operation (raw mode)
47 as well as the habitual terminal line editing capabilities (cooked mode).
50 Serial Line IP (SLIP) protocol processor
51 for transmitting TCP/IP packets over serial lines.
54 Device driver for RS232 connected pointing devices (serial mice).
57 Point to Point Protocol (PPP) processor
58 for transmitting network packets over serial lines.
65 Line driver for transmitting X.25 packets over asynchronous serial lines.
70 Driver for Simatic R3964 module.
73 Linux IrDa (infrared data transmission) driver -
74 see http://irda.sourceforge.net/
77 Synchronous HDLC driver.
80 Synchronous PPP driver.
83 Bluetooth HCI UART driver.
85 .BR GIGASET_M101 ( 16 )
86 Driver for Siemens Gigaset M101 serial DECT adapter.
89 Driver for serial line Pulse Per Second (PPS) source.
92 Driver for GSM 07.10 multiplexing protocol modem (CMUX).
95 .BR \-1 , " \-\-onestopbit"
96 Set the number of stop bits of the serial line to one.
98 .BR \-2 , " \-\-twostopbits"
99 Set the number of stop bits of the serial line to two.
101 .BR \-7 , " \-\-sevenbits"
102 Set the character size of the serial line to 7 bits.
104 .BR \-8 , " \-\-eightbits"
105 Set the character size of the serial line to 8 bits.
107 .BR \-d , " \-\-debug"
110 in the foreground so that it can be interrupted or debugged,
111 and to print verbose messages about its progress to standard error output.
113 .BR \-e , " \-\-evenparity"
114 Set the parity of the serial line to even.
116 .BR -i , " --iflag " [ \- ] \fIvalue\fR...
117 Set the specified bits in the c_iflag word of the serial line.
118 The given \fIvalue\fP may be a number or a symbolic name.
119 If \fIvalue\fP is prefixed by a minus sign, the specified bits are cleared
120 instead. Several comma-separated values may be given in order to
121 set and clear multiple bits.
123 .BR \-n , " \-\-noparity"
124 Set the parity of the serial line to none.
126 .BR \-o , " \-\-oddparity"
127 Set the parity of the serial line to odd.
129 .BR \-s , " \-\-speed " \fIvalue
130 Set the speed (the baud rate) of the serial line to the specified \fIvalue\fR.
132 .BR \-c , " \-\-intro\-command " \fIstring
133 Define an intro command that is sent through the serial line before the invocation
134 of ldattach. E.g. in conjunction with line discipline GSM0710, the command
135 \'AT+CMUX=0\\r\' is commonly suitable to switch the modem into the CMUX mode.
137 .BR \-p , " \-\-pause " \fIvalue
138 Sleep for \fIvalue\fR seconds before the invocation of ldattach. Default is one second.
140 .BR \-V , " \-\-version"
141 Display version information and exit.
143 .BR \-h , " \-\-help"
144 Display help text and exit.
150 Tilman Schmidt (tilman@imap.cc)
153 The ldattach command is part of the util-linux package
154 and is available from
155 https://www.kernel.org/pub/linux/utils/util-linux/.