pppd chat modem dialout setup

From: Trevor Osatchuk <trevor.osatchuk_at_pscl.com>
Date: Tue, 10 Apr 2001 13:52:29 -0600

Hello there. I have read many archives about this exact process. I have
tried all of the advice given on those posts but still to no avail. I have
a 4.0d system with an external modem attached to /dev/tty00. I enabled ppp
in the kernel and added nppp=2 to sysconfigtab. I made an entry into
/etc/remote:

modem1:dv=/dev/tty00:br#38400:pa=none

With this I can 'tip modem1' and connect up to a remote computer using AT
commands. It works. So, I know that I have the correct port and all of the
invloved parties are functioning properly. However, when I try to get a
connection using pppd it doesn't dial out. This is the command I am using:

/etc/ppp> pppd /dev/tty00 38400 connect 'chat -v -f /etc/ppp/chatscript'
/etc/ppp> ps ax | grep ppp
  1572 ?? S 0:00.01 sh -c chat -v -f /etc/ppp/chatscript
  1573 ?? S 0:00.01 pppd /dev/tty00 38400 connect chat -v -f
/etc/t
  1578 ?? S 0:00.01 chat -v -f /etc/ppp/chatscript
  1575 ttyp0 S + 0:00.01 grep ppp

/etc/ppp> cat chatscript
 atdt4290000
CONNECT
login: mylogin
CODE: "\qmypassword"
"$ " "\qpppd"

/etc/ppp> cat chat-script
ABORT BUSY \
ABORT 'NO CARRIER' \
"" ATZ OK
ATDT4290000 CONNECT \
name: mylogin \
CODE: mypassword

I have tried both of these chat scripts. I think the second one
'chat-script' is correct, but the other one is an example given in the
release notes for 4.0d. The problem is this, the modem TR light goes on and
when I grep for ppp processes as above I see them working away, but there is
no dialing going on. Is it the chat script? Is there some other file I
need to edit? After I get this to dial then I have to add route. This
particular computer is on a network and needs to be in communication with
the network at all times. If I add default route to the /etc/ppp/options
file will this give me a route there? With no arguments specifying an IP,
will get one assigned?

Thanks,

Trevor Osatchuk
Process Solutions Canada Ltd.
Support and Integration Analyst
(780) 452-2227 Ext. 286
trevor.osatchuk_at_pscl.com
Received on Tue Apr 10 2001 - 20:15:07 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT