Subject: Re: PPP woes; won't dial.
To: Matthew" , "port-mac68k <port-mac68k@netbsd.org>
From: Bob Nestor <rnestor@augustmail.com>
List: port-mac68k
Date: 10/12/2001 18:40:46
On 10/12/01 6:13 PM, Matthew (mtheobalds@mac.com) wrote:

>On Saturday, October 13, 2001, at 12:07  am, Bob Nestor wrote:
>
>> On 10/12/01 4:53 PM, Matthew (mtheobalds@mac.com) wrote:
>>
>>> On Friday, October 12, 2001, at 10:42  pm, Paul Goyette wrote:
>>>
>>>> Try putting an ATE0 in your chat script - looks like the modem
>>>> echoed your dial command when you were expecting the CONNECT
>>>> string.
>>>
>>> Okie dokie.
>>>
>>> Where specifically would I put this in the file?
>>>
>>> ATZ OK ATE0 ATDT0-844-040-2001 CONNECT
>>>
>>> Like that?
>>
>> Most likely  "ATZ OK ATE0 OK ATDT0-844-040-2001 CONNECT"
>>
>> The "script" is written as a command-response pair.  You send a command
>> and expect to see the response before sending the next command.  I think
>> the man page does a better job of explaining it.
>
>Thanks, I guessed that myself, tried it, getting this response:
>
>Oct 12 23:47:19 sonic pppd[23138]: pppd 2.4.0 started by matthew, uid 0
>Oct 12 23:47:20 sonic chat[23140]: send (ATZ^M)
>Oct 12 23:47:20 sonic chat[23140]: expect (OK)
>Oct 12 23:47:21 sonic chat[23140]: ATZ^M^M
>Oct 12 23:47:21 sonic chat[23140]: OK
>Oct 12 23:47:21 sonic chat[23140]:  -- got it
>Oct 12 23:47:21 sonic chat[23140]: send (ATE0^M)
>Oct 12 23:47:21 sonic chat[23140]: expect (OK)
>Oct 12 23:47:21 sonic chat[23140]: ^M
>Oct 12 23:47:21 sonic chat[23140]: ATE0^M^M
>Oct 12 23:47:21 sonic chat[23140]: OK
>Oct 12 23:47:21 sonic chat[23140]:  -- got it
>Oct 12 23:47:21 sonic chat[23140]: send (ATDT08440402001^M)
>Oct 12 23:47:21 sonic chat[23140]: expect (CONNECT)
>Oct 12 23:47:21 sonic chat[23140]: ^M
>Oct 12 23:47:21 sonic chat[23140]: ^M
>Oct 12 23:47:21 sonic chat[23140]: ERROR^M
>Oct 12 23:48:06 sonic chat[23140]: alarm
>Oct 12 23:48:06 sonic chat[23140]: Failed
>Oct 12 23:48:06 sonic pppd[23138]: Connect script failed
>Oct 12 23:48:08 sonic pppd[23138]: Exit.
>
>So it seems that the modem is very broken. Should I return it and 
>request a replacement?

Not yet.  The ATDT does "tone" dialing using the same tones as the keypad 
on a touch tone phone.  Here in the US touch tone is usually an option.  
If you don't have it you have the old pulse dial phones.  Most modems 
that support the Hayes command set can be directed to use pulse dialing 
with an ATDP command.  You might try that.

I'd also try connecting to the modem with tip or cu or better yet bring 
up MacOS and use something like Zterm.  See what the modem responds to 
and figure out what you need to send it to get it to work the way you 
want.  From that you can construct your own script under NetBSD.

-bob