GPRS ppp problem - PPP
This is a discussion on GPRS ppp problem - PPP ; I am trying to connect to GPRS network by using PPP and WAVECOM Modem.
Script that I'm using is wrriten below.
1.
exec /usr/sbin/pppd /dev/tts/2 115200 lock crtscts noipdefault
defaultroute 0.0.0.0:0.0.0.0 connect /etc/ppp/my-chat-script
exec /etc/ppp/chat -v \
'' AT+WOPEN=1 \
...
-
GPRS ppp problem
I am trying to connect to GPRS network by using PPP and WAVECOM Modem.
Script that I'm using is wrriten below.
1.
exec /usr/sbin/pppd /dev/tts/2 115200 lock crtscts noipdefault
defaultroute 0.0.0.0:0.0.0.0 connect /etc/ppp/my-chat-script
exec /etc/ppp/chat -v \
'' AT+WOPEN=1 \
OK AT#PPPmode=1 \
OK AT+CGREG=1 \
OK AT+CGATT=1 \
OK at#gprsmode=1 \
OK at#apnserv="dtac.co.th" \
OK at#apnun="" \
OK at#apnpw="" \
OK at#ConnectionStart
2. below lines are screen shot of result message screen.
Mar 11 19:00:35 192 local2.info chat[93]: expect (OK)
Mar 11 19:00:35 192 local2.info chat[93]: ^M
Mar 11 19:00:35 192 local2.info chat[93]: AT+WOPEN=1^M^M
Mar 11 19:00:35 192 local2.info chat[93]: OK
Mar 11 19:00:35 192 local2.info chat[93]: send (AT#PPPmode=1^M)
Mar 11 19:00:35 192 local2.info chat[93]: expect (OK)
Mar 11 19:00:35 192 local2.info chat[93]: ^M
Mar 11 19:00:35 192 local2.info chat[93]: AT#PPPmode=1^M^M
Mar 11 19:00:35 192 local2.info chat[93]: OK
Mar 11 19:00:35 192 local2.info chat[93]: send (AT+CGREG=1^M)
Mar 11 19:00:35 192 local2.info chat[93]: expect (OK)
Mar 11 19:00:35 192 local2.info chat[93]: ^M
Mar 11 19:00:35 192 local2.info chat[93]: AT+CGREG=1^M^M
Mar 11 19:00:35 192 local2.info chat[93]: OK
Mar 11 19:00:35 192 local2.info chat[93]: send (AT+CGATT=1^M)
Mar 11 19:00:36 192 local2.info chat[93]: expect (OK)
Mar 11 19:00:36 192 local2.info chat[93]: ^M
Mar 11 19:00:36 192 local2.info chat[93]: AT+CGATT=1^M^M
Mar 11 19:00:36 192 local2.info chat[93]: OK
Mar 11 19:00:36 192 local2.info chat[93]: send (at#gprsmode=1^M)
Mar 11 19:00:36 192 local2.info chat[93]: expect (OK)
Mar 11 19:00:36 192 local2.info chat[93]: ^M
Mar 11 19:00:36 192 local2.info chat[93]: at#gprsmode=1^M^M
Mar 11 19:00:36 192 local2.info chat[93]: OK
Mar 11 19:00:36 192 local2.info chat[93]: send
(at#apnserv=dtac.co.th^M)
Mar 11 19:00:36 192 local2.info chat[93]: expect (OK)
Mar 11 19:00:36 192 local2.info chat[93]: ^M
Mar 11 19:00:36 192 local2.info chat[93]: at#apnserv=dtac.co.th^M^M
Mar 11 19:00:36 192 local2.info chat[93]: ERROR^M
But OK at#apnserv="dtac.co.th" \ on this line . I think chat
program is deleting " from " --- " .
Therefore, I am getting ERROR mesaage on this line. =>
at#apnserv=dtac.co.th^M^M.
I'll be thanksful for your comments or solution.
-
Re: GPRS ppp problem
"ibibiking" writes:
[...]
>
> exec /etc/ppp/chat -v \
> '' AT+WOPEN=1 \
> OK AT#PPPmode=1 \
> OK AT+CGREG=1 \
> OK AT+CGATT=1 \
> OK at#gprsmode=1 \
> OK at#apnserv="dtac.co.th" \
> OK at#apnun="" \
> OK at#apnpw="" \
> OK at#ConnectionStart
[...]
> But OK at#apnserv="dtac.co.th" \ on this line . I think chat
> program is deleting " from " --- " .
No, chat isn't doing that. The shell is. That's standard shell
behavior. If you want it to pass through those quotes unmodified,
then do this instead:
OK at#apnserv=\"dtac.co.th\" \
Or, equivalently, this:
OK 'at#apnserv="dtac.co.th"' \
--
James Carlson, KISS Network
Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677