I've changed /etc/conf.modules to:
#----------
alias tty-ldisc-3 ppp
alias char-major-108 off
My Kernel is 2.2.5-15 and i use pppd 2.3.9.
My chat script:
/usr/sbin/chat -v ABORT 'NO DAILTONE' ABORT 'NO CARRIER' "" "\d+++\dATH" OK
ATZ OK ATS0=1 OK "" CONNECT
My tty-device :
[root@sfinx_new ppp]# setserial /dev/ttyS2
/dev/ttyS2, UART: 16550A, Port: 0x03e8, IRQ: 0
This is what i get in my messages-file :
Oct 27 08:50:13 sfinx_new pppd[542]: pppd 2.3.9 started by root, uid 0
Oct 27 08:50:14 sfinx_new chat[547]: abort on (NO DAILTONE)
Oct 27 08:50:14 sfinx_new chat[547]: abort on (NO CARRIER)
Oct 27 08:50:14 sfinx_new chat[547]: send (\d+++\dATH^M)
Oct 27 08:50:17 sfinx_new chat[547]: expect (OK)
Oct 27 08:50:17 sfinx_new chat[547]: +++ATH^M^M
Oct 27 08:50:17 sfinx_new chat[547]: OK
Oct 27 08:50:17 sfinx_new chat[547]: -- got it
Oct 27 08:50:17 sfinx_new chat[547]: send (ATZ^M)
Oct 27 08:50:17 sfinx_new chat[547]: expect (OK)
Oct 27 08:50:17 sfinx_new chat[547]: ^M
Oct 27 08:50:20 sfinx_new chat[547]: ATZ^M^M
Oct 27 08:51:02 sfinx_new chat[547]: alarm
Oct 27 08:51:02 sfinx_new pppd[542]: Initializer script failed
Oct 27 08:51:02 sfinx_new chat[547]: Failed
Oct 27 08:51:03 sfinx_new pppd[542]: Exit.
You can see that i receive 1 time the OK-string and then it's end and
time-outed.
Please help !!!!!?????? :-((.
Peter
PLEASE IGNORE THIS DISCLAIMER. THIS IS A TERRIBLE BAD JOKE FROM OUT
MAIL-SERVER SYSADMIN. SORRY.
-----Original Message-----
From: winfried szukalski [mailto:[EMAIL PROTECTED]]
Sent: Tuesday 26 October 1999 20:20
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: chat doesn't communicate
On Tue, 26 Oct 1999 [EMAIL PROTECTED] wrote:
> I wanna initialise a modem in my linux-box (kernel 2.2.5-15 Redhat 6.0)
for
> a dail-in server. But my chat doesn't communicate with the modem. He
doesn't
> recieve any answer of the modem. But when i use minicom (a little
> com-program) i can communicate with the modem (i can send AT-commands and
> receive the answers).
> I start the chat via the pppd (pppd /dev/ttyS2)
> Here the chat script:
>
> #!/bin/sh
> #
> #
> /usr/sbin/chat -v -t 0 ABORT 'NO DAILTONE' ABORT 'NO CARRIER' ""
> "\d+++\dATH" OK ATZ OK ATS0=1 OK "" CONNECT
>
> At a older linux-box (kernel 2.0.35 redhat 4.2) all this stuff worked.
>
I hope, the missing backslash in the first line is a typo. If not,
"chat doesn't communicate with the modem".
My modem manual says:'ATH' means hangup
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test Nr 1:
/usr/sbin/chat -v -t 0 ABORT 'NO DAILTONE' ABORT 'NO CARRIER' ""
"\d+++\dATH" OK ATZ OK ATS0=1 OK "" \
SAY "\nRinging $1\n" \
REPORT CONNECT \
'' ATDT$1 CONNECT '' \
ogin:--BREAK--ogin: $ACCOUNT \
assword: $PASSWORD\\q
Result:
...
Oct 26 17:55:41 keun pppd[12698]: Connect: ppp0 <--> /dev/ttyS0
Oct 26 17:55:42 keun pppd[12698]: Terminating on signal 2.
Oct 26 17:55:48 keun pppd[12698]: Connection terminated.
Oct 26 17:55:49 keun pppd[12698]: Exit.
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test Nr 2:
/usr/sbin/chat -v -t 0 ABORT 'NO DAILTONE' ABORT 'NO CARRIER' ""
"'OK-+++\c-OK'" OK ATZ OK ATS0=1 OK "" \
SAY "\nRinging $1\n" \
REPORT CONNECT \
'' ATDT$1 CONNECT '' \
ogin:--BREAK--ogin: $ACCOUNT \
assword: $PASSWORD\\q
Result:
Oct 26 17:59:29 keun chat[12751]: abort on (NO DAILTONE)
Oct 26 17:59:29 keun chat[12751]: abort on (NO CARRIER)
Oct 26 17:59:29 keun chat[12751]: send ('OK-+++c-OK'^M)
Oct 26 17:59:30 keun chat[12751]: expect (OK)
Oct 26 17:59:30 keun chat[12751]: 'OK
Oct 26 17:59:30 keun chat[12751]: -- got it
Oct 26 17:59:30 keun chat[12751]: send (ATZ^M)
Oct 26 17:59:30 keun chat[12751]: expect (OK)
Oct 26 17:59:30 keun chat[12751]: -+++c-OK
Oct 26 17:59:30 keun chat[12751]: -- got it
Oct 26 17:59:30 keun chat[12751]: send (ATS0=1^M)
Oct 26 17:59:30 keun chat[12751]: expect (OK)
Oct 26 17:59:30 keun chat[12751]: '^MATZ^M^M
Oct 26 17:59:30 keun chat[12751]: OK
Oct 26 17:59:30 keun chat[12751]: -- got it
Oct 26 17:59:30 keun chat[12751]: send (^M)
Oct 26 17:59:30 keun chat[12751]: report (CONNECT)
Oct 26 17:59:30 keun chat[12751]: send (ATDT93170^M)
Oct 26 17:59:30 keun chat[12751]: expect (CONNECT)
Oct 26 17:59:30 keun chat[12751]: ^M
Oct 26 17:59:57 keun chat[12751]: 1^M^MATDT93170^M^M
Oct 26 17:59:57 keun chat[12751]: CONNECT
Oct 26 17:59:57 keun chat[12751]: -- got it
Oct 26 17:59:57 keun chat[12751]: send (^M)
Oct 26 17:59:57 keun chat[12751]: expect (ogin:)
Oct 26 17:59:57 keun chat[12751]: 115200^M
Oct 26 17:59:57 keun chat[12751]: Login:
Oct 26 17:59:57 keun chat[12751]: -- got it
Oct 26 17:59:57 keun chat[12751]: send (szukw000^M)
Oct 26 17:59:57 keun chat[12751]: expect (assword:)
Oct 26 17:59:57 keun chat[12751]: ^M
Oct 26 17:59:57 keun chat[12751]: Login: szukw000^M
Oct 26 17:59:57 keun chat[12751]: Password:
Oct 26 17:59:57 keun chat[12751]: -- got it
Oct 26 17:59:57 keun chat[12751]: send (??????)
Oct 26 17:59:58 keun pppd[12746]: Serial connection established.
~~~~~~~~~~~~~~~~~~~~~~~~~~~
In /etc/conf.modules add/change:
#----------
alias tty-ldisc-3 ppp
alias char-major-108 off
#------- kernel >= 2.3
###alias tty-ldisc-3 ppp_async
###alias char-major-108 ppp_generic
#-------------
winfried
**** DISCLAIMER ****
"This e-mail and any attachments thereto may contain information
which is confidential and/or protected by intellectual property
rights and are intended for the sole use of the recipient(s) named above.
Any use of the information contained herein (including, but not limited to,
total or partial reproduction, communication or distribution in any form)
by persons other than the designated recipient(s) is prohibited.
If you have received this e-mail in error, please notify the sender either
by telephone or by e-mail and delete the material from any computer.
Thank you for your cooperation."
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]