Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

statserial(1) [redhat man page]

STATSERIAL(1)							   User Commands						     STATSERIAL(1)

NAME
statserial - display serial port modem status lines SYNOPSIS
statserial [-n | -d | -x] <device-name> DESCRIPTION
Statserial displays a table of the signals on a standard 9-pin or 25-pin serial port, and indicates the status of the handshaking lines. It can be useful for debugging problems with serial ports or modems. The optional device-name parameter is the full name of the device file for the serial port in question. If not specified, the default is taken from the environment variable MODEM if set, otherwise /dev/cua1. COMMAND-LINE OPTIONS Each of the command line options is mutually exclusive. -n Normally statserial will loop continuously, updating the status at one second intervals; you can exit using Control-C. The -n option disables looping. -d With this option the status of the modem is printed as a decimal number. The bits are encoded as follows (XXX indicates unused bits): +---+---+---+---+---+---+---+---+---+ | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | +---+---+---+---+---+---+---+---+---+ |DSR|RI |DCD|CTS|XXX|XXX|RTS|DTR|XXX| +---+---+---+---+---+---+---+---+---+ -x This option is the same as -d, except that the output is in hexadecimal. BUGS
/LIMITATIONS Statserial only works with devices that support the TIOCMGET ioctl. You need permission to read the device file. The device file may be locked if other applications are using it. AUTHOR
Statserial was written by Jeff Tranter (Jeff_Tranter@Mitel.COM), later updated by Frank Baumgart (godot@uni-paderborn.de) and is released under the conditions of the GNU General Public License. See the file COPYING and notes in the source code for details. SEE ALSO
setserial(8) stty(1) /usr/src/linux/drivers/char/serial.c /usr/include/linux/termios.h Linux 17 December 1994 STATSERIAL(1)

Check Out this Related Man Page

SERIAL_CS(4)						     Kernel Interfaces Manual						      SERIAL_CS(4)

NAME
serial_cs - PCMCIA serial port driver SYNOPSIS
insmod serial_cs.o [pc_debug=n] [irq_list=i,j,...] [do_sound=n] DESCRIPTION
Serial_cs is the Card Services driver for all PCMCIA serial devices, including modem cards. When serial_cs is bound to a serial or modem card, it will generally attempt to allocate the first unused serial device for use by the card. The device chosen will be recorded in the kernel log file, and will also be reported to cardmgr(8). The major and minor numbers and device name reported by serial_cs will match the corresponding "dialout" device (/dev/cua#). The new device can be accessed using this device file or the corresponding /dev/ttyS# device. The default serial card setup script will link the dialout device to /dev/modem. PARAMETERS
pc_debug=n Selects the PCMCIA debugging level. This parameter is only available if the module is compiled with debugging enabled. A non-zero value enables debugging. irq_list=i,j,... Specifies the set of interrupts that may be allocated by this driver. do_sound=n A flag specifying if speaker output should be enabled. The default is 1 (true). Set to 0 to disable speaker output. AUTHOR
David Hinds - dahinds@users.sourceforge.net SEE ALSO
cardmgr(8), pcmcia(5). pcmcia-cs 2000/06/12 21:24:48 SERIAL_CS(4)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Well, im getting it, but i have ONE question

Hay everyone, i would like to take this opportunity to thank all of you who helped me make the decision to get a linux distro. As a newbie, Im defininately considering buying Mandrake Linux... I went to the site and phew..... 2300 applications, i think ill have a good time. But i do have a... (5 Replies)
Discussion started by: LolapaloL
5 Replies

2. UNIX for Dummies Questions & Answers

serial port device path

hi. Im trying to install a switch. And the manual says i should type a command including a SerialPortDevicePath. which is the filepath to serial port used for connection. However.. nothing about how to find this info. Could anyone help me where to find this path? thx mr.T (6 Replies)
Discussion started by: tyskertøs
6 Replies

3. Programming

how to prevent deadlock on this...

I am using linux termios structure to configure serial port and read the port by read function. For some reason, if I read the whole buffer, almost every time the buffer does not contain the correct reply message sequence from a device sending reply to my linux PC. So I use... (5 Replies)
Discussion started by: yimab
5 Replies

4. UNIX for Dummies Questions & Answers

serial no. format problem

Hello guyz.. just want to know whether my doubt can be solve or not..maybe it my company using yyyymmddxx for serial no format..and it cause problems.. first, my adjustments for moving n deleting domain name exceeded xxx per day, and it will cause and effect the yyyymmdd digits. can... (6 Replies)
Discussion started by: unknown2205
6 Replies

5. Shell Programming and Scripting

redirecting serial inputs to a file?

i have an external device sending serial messages i want to connect this device to a serial port in my sun blade box and record those messages to a file, how can i read the serial port and write it to file? Thanks (4 Replies)
Discussion started by: guilartec
4 Replies

6. UNIX for Dummies Questions & Answers

Linux and SUN micro System question

I have linux OS and i am trying to connect to a Sun microsystem Netra, i am using RJ45 to serial port connector, what telnet device can i use to remotely connect to the netra, if anybody could help i will really appreciate it. (5 Replies)
Discussion started by: Gueso
5 Replies

7. Programming

how to write application for 32 com port

Dear Sir, i m going to use NP5610-16 moxa device for multiport serial communication. i m using fedora-core 6 o.s. after installation it will detect serial ports as /dev/ttyr0,/dev/ttyr1...ttyr32. there are total 32 com ports. now i want to write application which monitor all serial ports and... (6 Replies)
Discussion started by: amitpansuria
6 Replies

8. Linux

urgent......Serial port

I think my serial port(on board) is not working ...... because when I am running same code on two machines its working good....but when my system comes into picture ....it doesnt show any output comming from serial port.......... can anybody tell me how to configure my serial port.........or to... (16 Replies)
Discussion started by: arunchaudhary19
16 Replies

9. UNIX for Advanced & Expert Users

Communicating with Serial Port

I am using system running on red hat linux 4. I had connected health measuring machine to the serial port and configured it stty -F /dev/ttyS0 9600 -parenb cs8 -cstopb this machine requires a command to be passed to it for giving output. I am unable to pass command hexa format(0x68) to the... (4 Replies)
Discussion started by: netsavant
4 Replies

10. Programming

problem while having a communication with serial port?????

hello, I am gettin problem while sending and recieving data through seial port... when I am sending Data then the reciever end is not able to recieve that data ..... Reciever end is running in infinite loop just polling after some time to check that there is data on the port and then again... (9 Replies)
Discussion started by: arunchaudhary19
9 Replies

11. UNIX for Advanced & Expert Users

Porting Linux and TTY / Shell problems

Hello all, I am porting the linux 2.6.30rc2 kernel from one ARM architecture, /arch/arm/mach-davinci, to a new device, called Jacinto2. I am using the serial port ttyS0 as the default console. The bootloader is U-Boot and I am using busybox mounted as a ramdisk in internal SDRAM. I have got... (4 Replies)
Discussion started by: Interloper
4 Replies

12. Linux

Mitel Standard Linux Installation Problems

I didn't know what sub category to put this under, so I just figured I'd throw it in the main area. I've recently acquired an HP ProLiant120 G6 and am trying to install Mitel's version of Linux onto it. I boot from the cd, and can make it as far as selecting what type of keyboard I have. The... (5 Replies)
Discussion started by: madeang
5 Replies

13. UNIX for Advanced & Expert Users

read() from ttyS1 issue while write() is Ok

Hi! I've got a problem with reading from serial port, when I run this code on Digi ConnectCore Wi-9c. But writing to serial port is Ok. By the way, when I'm running this code on "full" Linux it is working Ok - I can read and write to serial without mistakes. Where is a problem? uname -a:... (3 Replies)
Discussion started by: Japonomatj
3 Replies

14. HP-UX

Serial standard communication (stty)

Hello friends, I am trying to communicate with a programmer memory from Unix (HP-UX) via serial port. Well, I have some code ready stty parameters to achieve communicating the device with the computer, but I have my doubts. I would like to know if you have some code fragment where you use the... (5 Replies)
Discussion started by: Monttanna
5 Replies

15. Solaris

Rebooting Windows machine leads to continue sync reset on UNIX

Hello, We have Windows 10 machine connected to Sparc T5440 server via serial cable. We access the server from the Windows 10 machine using putty via serial connection. This allows us to access ILOM and Unix. We have recently noticed that whenever we reboot the windows machine (Windows 10),... (11 Replies)
Discussion started by: jasonu
11 Replies