Forum Home
Press F1
 
Thread ID: 23788 2002-08-25 14:19:00 slow modem disconnection Chris Wilson (431) Press F1
Post ID Timestamp Content User
73852 2002-08-27 07:10:00 Graham has said it all.

We'd get more info from a log following a looooong disconnect time.

I'd like to know why the modem asks for a diagnostic after hanging up. Do you know what the init. string is?

It might be interesting to start with an ATZ (reset) on starting, and see what happens....

Cheers,
Alan Carpenter
Alan Carpenter (540)
73853 2002-08-27 12:16:00 > We'd get more info from a log following a looooong
> disconnect time.

Well this one was a bit longer - about 30 seconds or so I think:


08-27-2002 23:09:44.085 - TSP(0000): Dropping Call
08-27-2002 23:09:44.085 - Hanging up the modem.
08-27-2002 23:09:44.085 - Hardware hangup by lowering DTR.
08-27-2002 23:09:54.089 - A timeout has expired waiting to comm event to occour.
08-27-2002 23:09:54.089 - WARNING: After lowering DTR to hangup, the modem did not drop CD with in 10 seconds, Attempting software hangup.
08-27-2002 23:09:54.089 - Send: +++
08-27-2002 23:09:54.089 - TSP(0000): Closing Call
08-27-2002 23:10:04.083 - A timeout has expired waiting to comm event to occour.
08-27-2002 23:10:04.083 - Recv: <cr><lf>OK<cr><lf>
08-27-2002 23:10:04.083 - Interpreted response: OK
08-27-2002 23:10:04.093 - Send: ATH<cr>
08-27-2002 23:10:09.100 - Timed out waiting for response from modem
08-27-2002 23:10:09.111 - Send: ATH<cr>
08-27-2002 23:10:13.196 - Recv: <cr><lf>OK<cr><lf>
08-27-2002 23:10:13.196 - Interpreted response: OK
08-27-2002 23:10:13.206 - Send: at#ud<cr>
08-27-2002 23:10:13.206 - Recv: <cr><lf>DIAG <2A4D3263 0=10><cr><lf>DIAG <2A4D3263 1=7><cr><lf>DIAG <2A4D3263 2=0><cr><lf>DIAG <2A4D3263 3=0><cr><lf>DIAG <2A4D3263 4=""><cr><lf>DIAG <2A4D3263 5=""><cr><lf>DIAG <2A4D3263 10=13 11=F 12=26><cr><lf>DIAG <2A4D3263 18=40300200><cr><lf>DIAG <2A4D3263 20=E 22=C80 24=725><cr><lf>DIAG <
08-27-2002 23:10:13.206 - Unknown Response
08-27-2002 23:10:13.206 - 115200,8,N,1, ctsfl=1, rtsctl=2
08-27-2002 23:10:13.206 - Initializing modem.
08-27-2002 23:10:13.407 - Send: AT<cr>
08-27-2002 23:10:13.417 - Recv: <cr><lf>OK<cr><lf>
08-27-2002 23:10:13.417 - Interpreted response: OK
08-27-2002 23:10:13.427 - Send: AT&FE0V1S0=0&C1&D2+MR=2;+DR=1;+ER=1;W2<cr>
08-27-2002 23:10:13.427 - Recv: <cr><lf>OK<cr><lf>
08-27-2002 23:10:13.427 - Interpreted response: OK
08-27-2002 23:10:13.437 - Send: ATS7=60M1+ES=3,0,2;+DS=3;+IFC=2,2;X4<cr>
08-27-2002 23:10:13.437 - Recv: <cr><lf>OK<cr><lf>
08-27-2002 23:10:13.437 - Interpreted response: OK
08-27-2002 23:10:13.437 - Waiting for a call.
08-27-2002 23:10:13.447 - Send: ATS0=0<cr>
08-27-2002 23:10:13.457 - Recv: <cr><lf>OK<cr><lf>
08-27-2002 23:10:13.457 - Interpreted response: OK
08-27-2002 23:10:13.457 - TSP(0000): LINEEVENT: LINECALLSTATE_DISCONNECTED(0x1)
08-27-2002 23:10:13.457 - TSP(0000): LINEEVENT: LINECALLSTATE_IDLE
08-27-2002 23:10:13.457 - TSP Completing Async Operation(0x0001035d) Status 0x00000000
08-27-2002 23:10:13.467 - Session Statistics:
08-27-2002 23:10:13.467 - Reads : 24 bytes
08-27-2002 23:10:13.467 - Writes: 86 bytes


see anything? I notice a WARNING and a Timeout error near the top...

Mike.
Mike (15)
73854 2002-08-27 15:51:00 Mike,

I started looking through your two init strings:
AT&FE0V1S0=0&C1&D2+MR=2;+DR=1;+ER=1;W2
and
ATS7=60M1+ES=3,0,2;+DS=3;+IFC=2,2;X4

I got as far as:

AT&F Factory defaults
E0 No Echo
V1 English result codes (e.g.CONNECT, BUSY, NO CARRIER etc.)
S0=0 Don't answer a ring
&C1 Carrier detect - Indicates remote carrier
&D2 Data Terminal Ready (Hang up, reset the modem, and return to command mode upon DTR)

but when I reached for my book for the plus commands - no book. It's been "borrowed," and I don't have that information on either of my two remaining brain cells.

However, here's a stab in the dark.

Your modem seems to want to go back online after disconnecting, then it issues a diagnostic request (the at#ud).

I wonder if there's an O (letter Oh) replacing a 0 (zero) being sent at some stage.
Oh means "Return Online"
I don't see it in the log, but...

Have you added anything to the startup string, such as M0? (= Speaker off)?

Did you try ATZ?

We're moving away from the tiny pond of "Stuff I know about" into the vast oceans of "Stuff I know stuff-all about." :D
I'm lost on the TSP (Telephony Service Provider) bits.

A sudden thought I should have thunk long ago - have you tried uninstalling the modem, removing the drivers, then re-installing?

As a last resort there's always defenestrative maintenance. :D

Cheers,
Alan (still clutching at straws) Carpenter
Alan Carpenter (540)
73855 2002-08-27 22:31:00 > Have you added anything to the startup string, such
> as M0? (= Speaker off)?

Haven't added anything - it's all on the default settings .

> Did you try ATZ?

no

> A sudden thought I should have thunk long ago - have
> you tried uninstalling the modem, removing the
> drivers, then re-installing?

I'd say it's not that, as this "problem" has been with me through numerous installations of Win ME and XP Pro . It's not nearly as bad now as on ME, but sometimes it gets annoying (the longest I've had to wait in the last couple of months is about 1 minute - with ME it was up to 5 or even 10 minutes) . Interesting that you say the modem is trying to reconnect - occasionally if it disconnects quickly it reconnects almost immediately (I've got autodial, which isn't usually a problem, so I won't take it off), but the times when it takes some time to disconnect the reconnect doesn't happen .

Mike .

PS I'm planning on upgrading the modem at some stage, but I'd still be interested to find out as to why this happens with this model of modem .
Mike (15)
73856 2002-08-28 02:50:00 Tut tut, Alan, I told you what "+++" does . . . it is sent to change to command mode if the modem is in data mode . If it's in command mode, the modem should reply "OK" .

Mike . . . that looks as if the software in the modem is locking up .

DTR is an RS232 signal, "data terminal ready" . Most modems use that to assert CD "carrier detect" --- the carrier is a tone sent continuously while in connect mode --- (each end sends a different frequency)--- and absence means that the connection is finished . Dropping DTR is not closing the connection (even after 10 seconds), so the driver tries ATH . The ATH is trying to tell the telephone exchange that you have hung up the phone, and that took a 10 sec timeout, and then succeeded after 5 seconds . . .

Once you get an "OK", it is "working" again . . . and can be set up to recieve a call (when you dial out, it switches from recieve mode to "originate" mode before doing ATH1 to hook off and wait for dial tione then sending the dial tones) . . . and either lock up or not at the end of the next session .

It would only need one missed interrupt on the PCI bus . . .
Graham L (2)
73857 2002-08-28 05:41:00 Graham,

By "the plus commands" I wasn't referring to the "+++" (or other character in register S2) return to command mode.

As you know, there's:

The Basic Command Set - eg. Capital and digit.
The Extended Command Set - Start with &.
The Proprietary Command Set - Start with \ or %. Often modem specific.

Also:
The Plus Command Set - Start with +.
For these I'm relying on my memories of a book I last looked at about ten years ago.
It's possible that it was an alternative to \ or %, but I also have vague memories of the plus commands being fax-related. It may have been something specific to that particular modem.

Anyway, Mike's second init string is:
ATS7=60M1+ES=3,0,2;+DS=3;+IFC=2,2;X4<cr>

I follow that through:
S7=60 - Wait 60 secs for Remote carrier.
M1 - Speaker on during handshaking, off after connect.

Then we reach:
+ES=3,0,2;+DS=3;+IFC=2,2;

and I'm lost in the plusses until:
X4 - Usually adds both busy signal and dial tone detection.

Mike,
Sorry, I'm out of my depth in that ocean I mentioned before.
There's assorted ways to force a normal modem to behave as yours does. For example among the &Dn commands you can make the modem ignore DTR, or with register S38 you could delay the hang-up for over four minutes. It's possible that a damaged command string could cause your problems.

Although it would be nice to know why it does what it does, you can't beat a nice upgrade for fixing things like this.

Don't get a hang-up over it. :D

(Gentlemen, you may now groan.)

Cheers,
Alan (baffled) Carpenter
Alan Carpenter (540)
73858 2002-08-28 06:03:00 You can't beat a real modem. In a box, with its own power supply, and a cable to a serial port. :D I've even got some which don't need command strings. They have jumpers on the PC board. But they're up to only 19200 bps. They don't need software upgrades. They haven't got software.

Sorry, Alan, wasn't really looking at the strings ... just the responses from the thing :8}
Graham L (2)
73859 2002-08-28 09:12:00 <sigh> well Alan and Graham I was hoping I'd finally solve my modem problems (and maybe Chris' too) through your discussing between yourselves... but I'm still lost :)

Mike.
Mike (15)
73860 2002-08-28 09:53:00 My problems, or should i say my better ½'s problems will go away ( we hope ) when we build the second machine for her up and coming network.. the second and bran new machine will be the one that connects to the outside world with the annoying modem, and thus means a fresh install of everything, hopefully without the problems, so long as the modem doesn't actually fail, she isn't bothered. In a couple of months after that it is expected she will be move from Greymouth, and be connected onto a LAN that connects to the internet by cable anyway.

I think if that modem was going to stay where it is, i would recomend she get a nice reliable exteranal hardware modem and take to the exsisting one with a small hammer.... that'll fix it!
Chris Wilson (431)
1 2 3