Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Oct 2000 15:14:39 +0400
From:      Konstantin Morozov <cat_dz@mail.ru>
To:        freebsd-questions@FreeBSD.org
Subject:   Chat-script modem setup.
Message-ID:  <00100815272200.00426@bsd.cnit.ru>

next in thread | raw e-mail | index | archive | help

    Hi.
 I've got an internal modem Acorp-56ims. I'm using ppp for connecting to the
ISP. But modem's behavior is very strange: after sending to it "AT" or
"ATZ" during waiting "OK" answer it keeps silence and answers only after
sending "AT" next time... Here is a log file. Help, plz. Thanks.
                                                                               
Konstantin.Oct  8 14:02:29 intranet ppp[363]: Phase: Using interface: tun0 
Oct  8 14:02:29 intranet ppp[363]: Phase: deflink: Created in closed state 
Oct  8 14:02:29 intranet ppp[363]: tun0: Command: default: set speed 115200 
Oct  8 14:02:29 intranet ppp[363]: tun0: Command: default: set dial ABORT BUSY ABORT NO\sCARRIER TIMEOUT 5 "" AT OK-AT-OK ATE1Q0 OK \dATDT\T TIMEOUT 40 CONNECT 
Oct  8 14:02:29 intranet ppp[363]: tun0: Command: default: set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 
Oct  8 14:02:29 intranet ppp[363]: tun0: Command: default: add default HISADDR 
Oct  8 14:02:29 intranet ppp[363]: tun0: Command: papchap: set redial 3 1 
Oct  8 14:02:29 intranet ppp[363]: tun0: Command: papchap: set timeout 900 
Oct  8 14:02:29 intranet ppp[363]: tun0: Command: papchap: set phone 6017878 
Oct  8 14:02:29 intranet ppp[363]: tun0: Command: papchap: set authname vasya 
Oct  8 14:02:29 intranet ppp[363]: tun0: Command: papchap: set authkey ******** 
Oct  8 14:02:29 intranet ppp[364]: tun0: Phase: PPP Started (auto mode). 
Oct  8 14:02:31 intranet ppp[364]: tun0: Phase: bundle: Establish 
Oct  8 14:02:31 intranet ppp[364]: tun0: Phase: deflink: closed -> opening 
Oct  8 14:02:31 intranet ppp[364]: tun0: Phase: deflink: Connected! 
Oct  8 14:02:31 intranet ppp[364]: tun0: Phase: deflink: opening -> dial 
Oct  8 14:02:31 intranet ppp[364]: tun0: Phase: Phone: 6017878 
Oct  8 14:02:31 intranet ppp[364]: tun0: Chat: deflink: Dial attempt 1 of 1 
Oct  8 14:02:31 intranet ppp[364]: tun0: Chat: Send: AT^M 
Oct  8 14:02:31 intranet ppp[364]: tun0: Chat: Expect(5): OK 
Oct  8 14:02:36 intranet ppp[364]: tun0: Chat: Expect timeout 
Oct  8 14:02:36 intranet ppp[364]: tun0: Chat: Send: AT^M 
Oct  8 14:02:36 intranet ppp[364]: tun0: Chat: Expect(5): OK 
Oct  8 14:02:36 intranet ppp[364]: tun0: Chat: Received: AT^M^M 
Oct  8 14:02:36 intranet ppp[364]: tun0: Chat: Received: OK^M 
Oct  8 14:02:36 intranet ppp[364]: tun0: Chat: Send: ATE1Q0^M 
Oct  8 14:02:36 intranet ppp[364]: tun0: Chat: Expect(5): OK 
Oct  8 14:02:36 intranet ppp[364]: tun0: Chat: Received: AT^M^M 
Oct  8 14:02:36 intranet ppp[364]: tun0: Chat: Received: OK^M 
Oct  8 14:02:36 intranet ppp[364]: tun0: Chat: Send: ATDT6017878^M 
Oct  8 14:02:38 intranet ppp[364]: tun0: Chat: Expect(40): CONNECT 
Oct  8 14:02:38 intranet ppp[364]: tun0: Chat: Received: ATE1Q0^M^M 
Oct  8 14:02:38 intranet ppp[364]: tun0: Chat: Received: OK^M 
Oct  8 14:03:19 intranet ppp[364]: tun0: Chat: Expect timeout 
Oct  8 14:03:19 intranet ppp[364]: tun0: Warning: Chat script failed 
Oct  8 14:03:19 intranet ppp[364]: tun0: Phase: deflink: dial -> hangup 
Oct  8 14:03:19 intranet ppp[364]: tun0: Phase: deflink: Disconnected! 
Oct  8 14:03:19 intranet ppp[364]: tun0: Phase: deflink: Connect time: 48 secs: 0 octets in, 0 octets out 
Oct  8 14:03:19 intranet ppp[364]: tun0: Phase:  total 0 bytes/sec, peak 0 bytes/sec on Sun Oct  8 14:03:19 2000 
Oct  8 14:03:19 intranet ppp[364]: tun0: Phase: deflink: hangup -> closed 
Oct  8 14:03:19 intranet ppp[364]: tun0: Phase: bundle: Dead 
Oct  8 14:03:33 intranet ppp[364]: tun0: Phase: bundle: Establish 

#################################################################
# PPP  Sample Configuration File
# Originally written by Toshiharu OHNO
# Simplified 5/14/1999 by wself@cdrom.com
#
# $FreeBSD: src/etc/ppp/ppp.conf,v 1.1.2.2 1999/08/29 14:19:56 peter Exp $
#################################################################

default:

 #
 # Make sure that "device" references the correct serial port
 # for your modem. (cuaa0 = COM1, cuaa1 = COM2)
 #
 set device /dev/cuaa1

 set log Phase Chat LCP IPCP CCP tun command
 set speed 115200
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"

 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 add default HISADDR

papchap:

 #
 # edit the next three lines and replace the items in caps with
 # the values which have been assigned by your ISP.
 #
 set redial 3 1
 set timeout 900
 set phone 6017878
 set authname vasya
 set authkey ******



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00100815272200.00426>