Skip to contentSkip to conversation

serial port overrruns

DISCUSSION Raymond Hall H. 3 participants 5 messages Aug 6, 1999 – Aug 11, 1999

lore
Share & tools
lore
#0 lore raw

Hello,

I'm running mgetty on an Enterprise 3000 for UUCP mail.
The modem is a V.42 USR.
On ocassions, when recieving a call, the machine literally freezes. I have to log via console, send it a break and when at the prom prompt, before typing "go", reset the modem. After resuming system operation, I get a console message saying ttyS1: 1 input overrun(s).

The serials report:

Jul 13 20:34:31 andromeda kernel: Sparc Zilog8530 serial driver version 1.40
Jul 13 20:34:31 andromeda kernel: tty00 at 0xf0902004 (irq = 12,2b9) is a 
Zilog8530
Jul 13 20:34:31 andromeda kernel: tty01 at 0xf0902000 (irq = 12,2b9) is a 
Zilog8530
Jul 13 20:34:31 andromeda kernel: tty02 at 0xf0904004 (irq = 12,2b9) is a 
Zilog8530
Jul 13 20:34:31 andromeda kernel: tty03 at 0xf0904000 (irq = 12,2b9) is a 

Zilog8530

My worry comes not so much from the overrun itself or from loosing data, but from the machine hanging when this happens.

I'd appreciate any suggestions.
Thanks,
Raymond Hall

#1 lore raw

Hello,

I'm running mgetty on an Enterprise 3000 for UUCP mail.
The modem is a V.42 USR.
On ocassions, when recieving a call, the machine literally freezes. I have to log via console, send it a break and when at the prom prompt, before typing "go", reset the modem. After resuming system operation, I get a console message saying ttyS1: 1 input overrun(s).

The serials report:

Jul 13 20:34:31 andromeda kernel: Sparc Zilog8530 serial driver version 1.40
Jul 13 20:34:31 andromeda kernel: tty00 at 0xf0902004 (irq = 12,2b9) is a 
Zilog8530
Jul 13 20:34:31 andromeda kernel: tty01 at 0xf0902000 (irq = 12,2b9) is a 
Zilog8530
Jul 13 20:34:31 andromeda kernel: tty02 at 0xf0904004 (irq = 12,2b9) is a 
Zilog8530
Jul 13 20:34:31 andromeda kernel: tty03 at 0xf0904000 (irq = 12,2b9) is a 

Zilog8530

My worry comes not so much from the overrun itself or from loosing data, but from the machine hanging when this happens.

I'd appreciate any suggestions.
Thanks,
Raymond Hall

#2 lore raw
In reply to Raymond Hall H.

Hi,

Quoted 6 lines · Raymond Hall H.

I'm running mgetty on an Enterprise 3000 for UUCP mail.
The modem is a V.42 USR.
On ocassions, when recieving a call, the machine literally freezes. I have to log via console, send it a break and when at the prom prompt, before typing "go", reset the modem. After resuming system operation, I get a console message saying ttyS1: 1 input overrun(s).

Interesting indeed. I have no idea what could be causing this (but then, I'm only a mgetty hacker, not a Linux kernel hacker).

I can say, though, that mgetty isn't doing anything "weird" - just normal POSIX tty access (tcgetattr etc.).

When exactly does the "freeze" appear? At "modem rings" time, or when the user has already logged in? At logout time (DCD dropping)?

gert

Signature · 3 lines
Gert Doering
Mobile communications ... right now writing from *Braunschweig* :-)) 
... mobile phone: +49 177 2160221 ... or mail me:  [email protected]
#3 lore raw
In reply to Raymond Hall H.
Quoted 2 lines · Gert Doering

When exactly does the "freeze" appear? At "modem rings" time, or when the user has already logged in? At logout time (DCD dropping)?

It appears that, after dropping the connection, the modem doesn't reset properly:

Here's mgetty log before the connection:

 08/10 14:40:01 yS1  mgetty: experimental test release 1.1.14-Apr02
 08/10 14:40:01 yS1  check for lockfiles
 08/10 14:40:01 yS1  locking the line
 08/10 14:40:01 yS1  lowering DTR to reset Modem
 08/10 14:40:02 yS1  send: \dATQ0V1H0[0d]
 08/10 14:40:02 yS1  waiting for ``OK'' ** found **
 08/10 14:40:03 yS1  send: ATS0=0Q0&D3&C1[0d]
 08/10 14:40:03 yS1  waiting for ``OK'' ** found **
 08/10 14:40:03 yS1  waiting...
 08/10 14:58:48 yS1  waiting for ``RING'' ** found **
 08/10 14:58:48 yS1  send: ATA[0d]
 08/10 14:58:48 yS1  waiting for ``CONNECT'' ** found **
 08/10 14:58:59 yS1  send:
 08/10 14:58:59 yS1  waiting for ``_'' ** found **

08/10 14:59:00 ##### data dev=ttyS1, pid088, caller='none', conn='33600/ARQ/V34/LAPM/V42BIS', name='', cmd='/usr/lib/uucp/uucico',
user='jd04jal'

Here's the entry right after:

 08/10 14:59:04 yS1  mgetty: experimental test release 1.1.14-Apr02
 08/10 14:59:04 yS1  check for lockfiles
 08/10 14:59:04 yS1  locking the line
 08/10 14:59:05 yS1  WARNING: DCD line still active, check modem settings (AT&Dx)
 08/10 14:59:05 yS1  lowering DTR to reset Modem

^^^\__ this is the lapse where the server hangs, 103 seconds fortunately,
vvv/ but it has taken up to 30 minutes!! (yes, I did check those modem
settings, and it is supposed to lower DCD after carrier drops) The funnier part is that the modem doesn't do this all the time. I even checked with another modem and got the same ocassional bug.

 08/10 15:00:48 yS1  clean_line: only 500 of 4095 bytes logged
 08/10 15:00:48 yS1  send: \dATQ0V1H0[0d]
 08/10 15:00:49 yS1  waiting for ``OK'' ** found **
 08/10 15:00:49 yS1  send: ATS0=0Q0&D3&C1[0d]
 08/10 15:00:49 yS1  waiting for ``OK'' ** found **
 08/10 15:00:49 yS1  waiting...
 08/10 16:00:48 yS1  checking if modem is still alive
 08/10 16:00:48 yS1  mdm_send: 'AT' -> OK
 08/10 16:00:49 yS1  waiting...
 08/10 17:00:48 yS1  checking if modem is still alive
 08/10 17:00:48 yS1  mdm_send: 'AT' -> OK
 08/10 17:00:49 yS1  waiting...
 08/10 18:00:48 yS1  checking if modem is still alive
 08/10 18:00:48 yS1  mdm_send: 'AT' -> OK
 08/10 18:00:48 yS1  waiting...