From: James Carlson <carlsonj@workingcode.com>
To: linux-ppp@vger.kernel.org
Subject: Re: some problem
Date: Wed, 03 Mar 2010 13:37:48 +0000 [thread overview]
Message-ID: <4B8E662C.9060206@workingcode.com> (raw)
In-Reply-To: <1267602954.2112.31.camel@rs.local>
Murali K. Vemuri wrote:
> When I run the PPP, I am getting some kind of "Failed" message from Chat
> program and after few seconds, PPP sends out LCP Conf req and I am not
> getting any response.
Your chat script is malformed. You have this:
AT+CGDCONT=1,"ip","web.sktelecom.com",,,
ATDT*98#
CONNECT
But the syntax for chat is pairs of strings in "expect send" format.
This means that each one of those strings above is something we're
expecting to see from the modem, and we send nothing at all.
What you should have is something more like this:
"" AT+CGDCONT=1,"ip","web.sktelecom.com",,,
OK 'ATDT*98#'
CONNECT
That says:
- expect nothing at first; just send
- send the "AT+..." string
- expect "OK" as a response
- then send the "ATD..." string
- finally expect "CONNECT" as a response before exiting to PPP
See the chat man page and your modem's documentation for details. I
don't know off-hand if the AT commands you're using are necessarily the
right ones, so there's some guesswork involved.
The log file shows this failure:
Jan 1 00:01:37 (none) local2.info chat[91]: abort on (BUSY)
Jan 1 00:01:37 (none) local2.info chat[91]: expect
(AT+CGDCONT=1,"ip","web.sktelecom.com",,,)
Jan 1 00:02:22 (none) local2.info chat[91]: alarm
Jan 1 00:02:22 (none) local2.info chat[91]: Failed
Note that we were expecting to receive a string that we should have been
sending, and that the "alarm" (time-out) went off, resulting in failure.
That's symptomatic of a malformed chat script.
This next part is strange, and I can't explain it. It looks like pppd
plows ahead even though the script obviously failed. I don't know if
this is a platform bug (is this UNIX or something else?), or if it's
some sort of obscure problem in pppd.
Jan 1 00:02:22 (none) daemon.debug pppd[88]: device script returned: 768
Jan 1 00:02:22 (none) daemon.info pppd[88]: Serial connection established.
In any event, pppd should have aborted without attempting to run LCP.
LCP is unlikely to be useful at all if the chat script fails.
--
James Carlson 42.703N 71.076W <carlsonj@workingcode.com>
next prev parent reply other threads:[~2010-03-03 13:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-03 7:55 some problem Murali K. Vemuri
2010-03-03 13:34 ` Eugene Paskevich
2010-03-03 13:37 ` James Carlson [this message]
2010-03-03 14:03 ` Charlie Brady
2010-03-03 14:41 ` Murali K. Vemuri
2010-03-03 20:30 ` James Cameron
2010-03-03 21:40 ` James Carlson
2010-03-04 2:31 ` Murali K. Vemuri
2010-03-04 2:53 ` James Cameron
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=4B8E662C.9060206@workingcode.com \
--to=carlsonj@workingcode.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.