All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Shaker <james@vartek-corp.com>
To: linux-ppp@vger.kernel.org
Subject: an embedded linux ppp problem
Date: Tue, 22 Nov 2005 16:03:30 +0000	[thread overview]
Message-ID: <43834152.8030300@vartek-corp.com> (raw)

I am running busybox in an embedded application.  I have the chat script 
working up to the login portion.  At that point the script hangs waiting 
for the "ogin:".  When I have the modem hooked up to my laptop and 
manually dialed into the callin server I get the right prompts. However 
when the modem is connected to the embedded device, the last message 
sent is CONNECT 115200.

Here are is some of the scripts:

$ cat ppp-on
#!/bin/sh
PHN=xxxxxxxxxxx
TELEPHONE=$PHN
ACCOUNT=xxxxxxxx
PASSWORD=xxxxxxx
LOCAL_IP=0.0.0.0
REMOTE_IP=0.0.0.0
NETMASK%5.255.255.0
PROTOCOL=PPP
export TELEPHONE ACCOUNT PASSWORD PROTOCOL
DIALER_SCRIPT=/etc/ppp/ppp-on-dialer
/bin/setserial /dev/ttyAM1 auto_irq autoconfig
exec pppd $LOCAL_IP:$REMOTE_IP /dev/ttyAM1 115200 modem connect 
$DIALER_SCRIPT &
 
$ cat ppp-on-dialer
#!/bin/sh
/usr/sbin/chat -E -v -s -f /etc/ppp/pppconnect

$ cat pppconnect
TIMEOUT 6
ABORT 'BUSY'
ABORT 'NO ANSWER'
'' AT
'OK' ATH0
TIMEOUT 60
OK ATDTxxxxxxxxxxx
CONNECT ''
ogin: xxxxx
assword: 'xxxxxx

Here what the connect-errors shows:

timeout set to 6 seconds
abort on (BUSY)
abort on (NO ANSWER)
send (AT^M)
expect (OK)
AT^M^M
OK
 -- got it

send (ATH0^M)
timeout set to 60 seconds
expect (OK)
^M
ATH0^M^M
OK
 -- got it

send (ATDT18669686661^M)
expect (CONNECT)
^M
ATDT18669686661^M^M
MESSAGE-WAITING^M
^M
CONNECT
 -- got it

send (^M)
expect (115200)
 115200
 -- got it

send ( ^M)
expect (allin)
^M
alarm
Failed


Any suggestions of what to try are greatly appreciated.

James

             reply	other threads:[~2005-11-22 16:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-22 16:03 James Shaker [this message]
2005-11-22 16:26 ` an embedded linux ppp problem James Carlson
2005-11-22 19:19 ` Bill Unruh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43834152.8030300@vartek-corp.com \
    --to=james@vartek-corp.com \
    --cc=linux-ppp@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.