1STATSERIAL(1) User Commands STATSERIAL(1)
2
3
4
6 statserial - display serial port modem status lines
7
8
10 statserial [-n | -d | -x] <device-name>
11
12
14 Statserial displays a table of the signals on a standard 9-pin or
15 25-pin serial port, and indicates the status of the handshaking lines.
16 It can be useful for debugging problems with serial ports or modems.
17
18 The optional device-name parameter is the full name of the device file
19 for the serial port in question. If not specified, the default is taken
20 from the environment variable MODEM if set, otherwise /dev/cua1.
21
22
24 Each of the command line options is mutually exclusive.
25
26
27 -n Normally statserial will loop continuously, updating the status at
28 one second intervals; you can exit using Control-C. The -n option
29 disables looping.
30
31
32 -d
33
34 With this option the status of the modem is printed as a decimal
35 number. The bits are encoded as follows (XXX indicates unused
36 bits):
37
38 +---+---+---+---+---+---+---+---+---+
39 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
40 +---+---+---+---+---+---+---+---+---+
41 |DSR|RI |DCD|CTS|XXX|XXX|RTS|DTR|XXX|
42 +---+---+---+---+---+---+---+---+---+
43
44
45 -x This option is the same as -d, except that the output is in hexa‐
46 decimal.
47
48
50 Statserial only works with devices that support the TIOCMGET ioctl.
51
52 You need permission to read the device file.
53
54 The device file may be locked if other applications are using it.
55
56
58 Statserial was written by Jeff Tranter (Jeff_Tranter@Mitel.COM), later
59 updated by Frank Baumgart (godot@uni-paderborn.de) and is released
60 under the conditions of the GNU General Public License. See the file
61 COPYING and notes in the source code for details.
62
63
65 setserial(8) stty(1)
66 /usr/src/linux/drivers/char/serial.c /usr/include/linux/termios.h
67
68
69
70Linux 17 December 1994 STATSERIAL(1)