[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
comms/birda and ppp: Chat script failed
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: comms/birda and ppp: Chat script failed
- From: Alexander_(_dot_)_Farber_(_at_)_t-online_(_dot_)_de (Alexander Farber)
- Date: Mon, 29 Dec 2003 16:09:56 +0000
Hi,
could someone please share his ppp setup for birda?
I'm using Nokia 9210 "Communicator" mobile and IBM Thinkpad
T22 laptop, whose infrared device appears in the dmesg output
as: pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
I've installed birda from -current ports and have added the
user "alex" to the "dialer" group - so that I can access tty01.
Then I try to run "ppp -foreground d2-irda" using this ppp.conf:
default:
set log Phase Chat LCP IPCP CCP tun command
allow users alex
d2-irda:
# shell ircomm -Y -d -r /dev/tty01 -v 1 -y /dev/ptyp6
bg ircomm -d /dev/cua01 -v 1 -y /dev/ptyp6
set device /dev/ttyp6
set speed 115200
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
set phone 0049172229000
set authname d2
set authkey d2
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add! default HISADDR
enable dns
The laptop seems to connect to the mobile phone,
because I see the following output:
thinkpad:alex {115} ppp -foreground d2-irda
Working in foreground mode
Using interface: tun0
query completed
discovered EP, address=66886068, hints=PDA, Modem, Telephony, IrCOMM, IrOBEX
query completed
115200 baud
LAP connected
comm connected
Unfortunately in the ppp.log (pasted below) I keep seeing the
following "chat script failed" warning even though I tried using
cua01 and tty01 and also tried out -Y and -r switches for ircomm:
Dec 29 16:00:33 thinkpad ppp[16252]: tun0: Chat: Send: AT\^M
Dec 29 16:00:33 thinkpad ppp[16252]: tun0: Chat: Expect(5): OK
Dec 29 16:00:38 thinkpad ppp[16252]: tun0: Chat: Expect timeout
Dec 29 16:00:38 thinkpad ppp[16252]: tun0: Warning: Chat script failed
Does anyone have any advices or can share the config files?
What's the purpose of "ircomm -r"? I always see Send: AT\^M in the log.
Regards
Alex
Phase: Using interface: tun0
Phase: deflink: Created in closed state
tun0: Command: d2-irda: bg ircomm -d /dev/cua01 -v 1 -y /dev/ptyp6
tun0: Command: d2-irda: set device /dev/ttyp6
tun0: Command: d2-irda: set speed 115200
tun0: Command: d2-irda: set dial ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 "" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT
tun0: Command: d2-irda: set phone 0049172229000
tun0: Command: d2-irda: set authname d2
tun0: Command: d2-irda: set authkey ********
tun0: Command: d2-irda: set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
tun0: Command: d2-irda: add! default HISADDR
tun0: Command: d2-irda: enable dns
tun0: Phase: PPP Started (foreground mode).
tun0: Phase: bundle: Establish
tun0: Phase: deflink: closed -> opening
tun0: Phase: deflink: Connected!
tun0: Phase: deflink: opening -> dial
tun0: Chat: Phone: 0049172229000
tun0: Chat: deflink: Dial attempt 1 of 1
tun0: Chat: Send: AT\^M
tun0: Chat: Expect(5): OK
tun0: Chat: Expect timeout
tun0: Chat: Send: AT\^M
tun0: Chat: Expect(5): OK
tun0: Chat: Expect timeout
tun0: Warning: Chat script failed
tun0: Phase: deflink: dial -> hangup
tun0: Phase: deflink: Disconnected!
tun0: Phase: deflink: Connect time: 10 secs: 0 octets in, 0 octets out
tun0: Phase: deflink: 0 packets in, 0 packets out
tun0: Phase: total 0 bytes/sec, peak 0 bytes/sec on Mon Dec 29 16:00:28 2003
tun0: Phase: deflink: hangup -> closed
tun0: Phase: bundle: Dead
tun0: Phase: PPP Terminated (normal).
Visit your host, monkey.org