Help GPRS ppp Connection
Hi I'm Kwon
I work in Thai.
Now GPRS modem set is very hard.
below message is result.
I got IP but, script is excute again.
daemon.info pppd[88]: Serial connection established.
daemon.info pppd[88]: Using interface ppp0
daemon.notice pppd[88]: Connect: ppp0 <--> /dev/tts/2
daemon.warn pppd[88]: Warning - secret file
/etc/ppp/pap-secrets has world and/or group access
daemon.warn pppd[88]: Warning - secret file
/etc/ppp/pap-secrets has world and/or group access
daemon.info pppd[88]: Remote message: Welcome!
daemon.notice pppd[88]: PAP authentication succeeded
daemon.err pppd[88]: not replacing existing default
route to eth1 [192.168.10.1]
daemon.notice pppd[88]: local IP address 192.168.111.112
daemon.notice pppd[88]: remote IP address 192.168.111.111
daemon.info pppd[88]: LCP terminated by peer
daemon.info pppd[88]: Connect time 0.0 minutes.
daemon.info pppd[88]: Sent 0 bytes, received 0 bytes.
daemon.notice pppd[88]: Connection terminated.
local2.info chat[99]: timeout set to 60 seconds
local2.info chat[99]: abort on (BUSY)
local2.info chat[99]: abort on (ERROR)
local2.info chat[99]: abort on (NO CARRIER)
local2.info chat[99]: send (AT^M)
local2.info chat[99]: expect (OK)
local2.info chat[99]: AT^M^M
local2.info chat[99]: OK
local2.info chat[99]: -- got it
local2.info chat[99]: send (AT+CGDCONT=1"IP","dtac.co.th","0.0.0.0",0,0^M)
local2.info chat[99]: expect (OK)
local2.info chat[99]: ^M
local2.info chat[99]: AT+CGDCONT=1,"IP","dtac.co.th","0.0.0.0",0,0^M^M
local2.info chat[99]: OK
local2.info chat[99]: -- got it
local2.info chat[99]: send (ATD*99***1#^M)
local2.info chat[99]: expect (CONNECT)
local2.info chat[99]: ^M
local2.info chat[99]: ATD*99***1#^M^M
local2.info chat[99]: CONNECT
local2.info chat[99]: -- got it
local2.info chat[99]: send (^M)
daemon.info pppd[88]: Serial connection established.
daemon.info pppd[88]: Using interface ppp0
daemon.notice pppd[88]: Connect: ppp0 <--> /dev/tts/2
daemon.warn pppd[88]: tcflush failed: Bad file escriptor
daemon.warn pppd[88]: tcsetattr: Invalid argument (line 1001)
daemon.info pppd[88]: Exit.
script is...
1. ppp-start
2. gprs-options
3. gprs-connect
4. pap-secrets
1. ppp-start is...
/usr/sbin/pppd file /etc/ppp/gprs-options
2. gprs-options is...
/dev/tts/2
115200
user "user"
crtscts
defaultroute
connect "/usr/sbin/chat -e -v -f /etc/ppp/gprs-connect"
3. gprs-connect is...
TIMEOUT 60
ABORT 'BUSY'
ABORT 'ERROR'
ABORT 'NO CARRIER'
'' 'AT'
OK AT+CGDCONT=1,"IP","dtac.co.th","0.0.0.0",0,0
OK ATD*99***1#
CONNECT ''
4. pap-secrets is...
'user' * 'pass' *
Why This script is repeat?
And How do I way slutioin?
Last edited by ibibiking; 03-18-2006 at 09:22 AM.
|