Re: some problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Audio Users]     [Linux for Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Fedora Users]

  Powered by Linux