GPRS PPP problem HELP
Hi I'm Kwon
I work in Thai. Now GPRS modem set is very hard. I remaind this question, but I don't find solution. Anyone HELP me. below message is result. I receive IP with LCP terminated by peer message, And 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? |
The script seems to work
don't know why it fails then: Quote:
add "debug" to /etc/ppp/options if there is no useful info to be found in the logs add te option "noauth" to /etc/ppp/options because your provider will very likely not authenticate itself to you... Or: use wvdial (set up "stupid mode") to connect my script ( /etc/wvdial.conf ) looks like this: Code:
[Dialer Defaults] (I'm using /dev/rfcomm0 because I connect using bluetooth...), your modem-init-string ( the Init1 ) and provider ( the Init2 ) as well as username and password. |
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... connect "/usr/sbin/chat -t3 -e -v -f /etc/ppp/gprs-connect" /dev/tts/2 115200 crtscts noauth defaultroute noipdefault usepeerdns persist debug 3. gprs-connect is... TIMEOUT 20 ABORT 'BUSY' ABORT 'NO CARRIER' ABORT 'NO ANSWER' '' 'ATZ' 'OK' 'AT&F0' 'OK' 'ATE0v1' '' 'AT+CSQ' 'OK' 'ATDT*99***1#' 'CONNECT' 4. pap-secrets is... * * "" * daemon.info pppd[120]: Serial connection established. daemon.debug pppd[120]: using channel 3 daemon.info pppd[120]: Using interface ppp0 daemon.notice pppd[120]: Connect: ppp0 <--> /dev/tts/2 daemon.warn pppd[120]: Warning - secret file /etc/ppp/pap-secrets has world and/or group access daemon.debug pppd[120]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x684dc35> <pcomp> <accomp>] daemon.debug pppd[120]: rcvd [LCP ConfRej id=0x1 <magic 0x684dc35>] daemon.debug pppd[120]: sent [LCP ConfReq id=0x2 <asyncmap 0x0> <pcomp> <accomp>] daemon.debug pppd[120]: rcvd [LCP ConfAck id=0x2 <asyncmap 0x0> <pcomp> <accomp>] daemon.debug pppd[120]: rcvd [LCP ConfReq id=0x1 <mru 1500> <asyncmap 0x0> <pcomp> <accomp> <auth pap>] daemon.debug pppd[120]: sent [LCP ConfAck id=0x1 <mru 1500> <asyncmap 0x0> <pcomp> <accomp> <auth pap>] daemon.warn pppd[120]: Warning - secret file /etc/ppp/pap-secrets has world and/or group access daemon.debug pppd[120]: sent [PAP AuthReq id=0x1 user="203.238.120.10" password=<hidden>] daemon.debug pppd[120]: rcvd [PAP AuthAck id=0x1 "Welcome!"] daemon.info pppd[120]: Remote message: Welcome! daemon.notice pppd[120]: PAP authentication succeeded daemon.debug pppd[120]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>] daemon.debug pppd[120]: rcvd [IPCP ConfReq id=0x1 <addr 192.168.111.111>] daemon.debug pppd[120]: sent [IPCP ConfAck id=0x1 <addr 192.168.111.111>] daemon.debug pppd[120]: rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>] daemon.debug pppd[120]: sent [IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>] daemon.debug pppd[120]: rcvd [IPCP ConfRej id=0x2 <ms-dns1 0.0.0.0>] daemon.debug pppd[120]: sent [IPCP ConfReq id=0x3 <addr 0.0.0.0> <ms-dns3 0.0.0.0>] daemon.debug pppd[120]: rcvd [IPCP ConfRej id=0x3 <ms-dns3 0.0.0.0>] daemon.debug pppd[120]: sent [IPCP ConfReq id=0x4 <addr 0.0.0.0>] daemon.debug pppd[120]: rcvd [IPCP ConfNak id=0x4 <addr 192.168.111.112>] daemon.debug pppd[120]: sent [IPCP ConfReq id=0x5 <addr 192.168.111.112>] daemon.debug pppd[120]: rcvd [IPCP ConfAck id=0x5 <addr 192.168.111.112>] daemon.err pppd[120]: not replacing existing default route to eth0 [203.238.120.1] daemon.notice pppd[120]: local IP address 192.168.111.112 daemon.notice pppd[120]: remote IP address 192.168.111.111 daemon.debug pppd[120]: rcvd [LCP TermReq id=0x2] daemon.info pppd[120]: LCP terminated by peer Error Messages is... 1. Warning - secret file /etc/ppp/pap-secrets has world and/or group access 2. not replacing existing default route to eth0 [203.238.120.1] 3. LCP terminated by peer I think this messages couse problem. How do I modify script? And wvdial.conf is only make at /etc? |
wvdial is a different program to do the same task you try to accomplish with pppd and scripts here.
In my opinion it is easier to set up... As for your error - check the systems log files or the ppp error log They are in /var/log/... probably. You might just have a bad connection - the line gets dropped by your provider - not by you or by pppd (that is what I see here). Quote:
|
Hey, on unrelated note, I'm Thai also, but in the US. And I'm heading to Thailand in a couple of week for a little vaction. How are the weather/politic/traffic overthere ?
|
All times are GMT -5. The time now is 05:26 AM. |