mgetty serial port problem
I cannot connect to the serial port of computer 1 - nothing appear in the hyperTerminal program screen when I press the return key.
I can connect to the serial port of computer 2 so the serial port cable and the hyperTerminal settings are correct.
The settings for computer 1:
# setserial -a /dev/ttyS0
/dev/ttyS0, Line 0, UART: 16550A, Port: 0x03f8, IRQ: 4
Baud_base: 115200, close_delay: 50, divisor: 0
closing_wait: 3000
Flags: spd_normal skip_test
# setserial -a /dev/ttyS1
/dev/ttyS1, Line 1, UART: 16550A, Port: 0x02f8, IRQ: 3
Baud_base: 115200, close_delay: 50, divisor: 0
closing_wait: 3000
Flags: spd_normal skip_test
# cat /proc/tty/driver/serial
serinfo:1.0 driver:5.05c revision:2001-07-08
0: uart:16550A port:3F8 irq:4 baud:9600 tx:151326 rx:0 RTS|DTR
1: uart:16550A port:2F8 irq:3 baud:38400 tx:742 rx:352 fe:93 brk:121 RTS|CTS|DTR
# ps -ef|grep tty
root 1868 1 0 16:04 tty1 00:00:00 /sbin/mingetty tty1
root 1869 1 0 16:04 tty2 00:00:00 /sbin/mingetty tty2
root 1870 1 0 16:04 tty3 00:00:00 /sbin/mingetty tty3
root 1871 1 0 16:04 tty4 00:00:00 /sbin/mingetty tty4
root 1887 1 0 16:04 tty5 00:00:00 /sbin/mingetty tty5
root 1888 1 0 16:04 tty6 00:00:00 /sbin/mingetty tty6
root 5728 4901 0 16:05 pts/0 00:00:00 tail -f mgetty.log.ttyS1
root 17537 1 0 16:09 ? 00:00:00 /sbin/mgetty /dev/ttyS1 -r
[root@rose log]# tail -f /var/log/messages
Sep 25 16:05:04 rose sshd(pam_unix)[4899]: session opened for user root by (uid=0)
Sep 25 16:05:38 rose mgetty[1889]: failed dev=ttyS1, pid=1889, got signal 1, exiting
Sep 25 16:06:05 rose sshd(pam_unix)[8083]: session opened for user root by (uid=0)
Sep 25 16:07:40 rose mgetty[6511]: failed dev=ttyS1, pid=6511, got signal 1, exiting
Sep 25 16:08:16 rose mgetty[13611]: failed dev=ttyS1, pid=13611, got signal 1, exiting
Sep 25 16:09:02 rose mgetty[15183]: failed dev=ttyS1, pid=15183, got signal 1, exiting
Sep 25 16:13:58 rose sshd(pam_unix)[1527]: session opened for user root by (uid=0)
Sep 25 16:43:23 rose mgetty[17537]: failed dev=ttyS1, pid=17537, login time out
--
# tail -f mgetty.log.ttyS1
09/25 16:09:02 yS1 mgetty: experimental test release 1.1.26-Apr16
09/25 16:09:02 yS1 check for lockfiles
09/25 16:09:02 yS1 locking the line
09/25 16:09:02 yS1 WARNING: DSR is off - modem turned off or bad cable?
09/25 16:09:02 yS1 lowering DTR to reset Modem
09/25 16:09:03 yS1 waiting...
09/25 16:42:20 yS1 getlogname: timeout
09/25 16:43:20 yS1 getlogname: timeout
09/25 16:43:23 ##### failed dev=ttyS1, pid=17537, login time out
--
09/25 16:43:23 yS1 mgetty: experimental test release 1.1.26-Apr16
09/25 16:43:23 yS1 check for lockfiles
09/25 16:43:23 yS1 locking the line
09/25 16:43:23 yS1 WARNING: DCD line still active, check modem settings (AT&Dx)
09/25 16:43:23 yS1 lowering DTR to reset Modem
09/25 16:43:24 yS1 waiting...
# uname -a
Linux rose 2.4.18 #22 Wed Sep 20 11:13:13 EDT 2006 i686 unknown
Last edited by powah; 09-25-2006 at 04:31 PM.
|