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? |
try this:
<gprs-options> hide-password noauth connect "/usr/sbin/chat -t3 -e -v -f /etc/ppp/gprs-connect" /dev/tts/2 115200 defaultroute noipdefault user "user" usepeerdns persist </grps-options> <gprs-connect> TIMEOUT 20 ABORT 'BUSY' ABORT 'NO CARRIER' ABORT 'NO ANSWER' '' 'ATZ' 'OK' 'AT&F0' 'OK' 'ATE0v1' '' 'AT+CSQ' 'OK' 'ATDT*99***1#' 'CONNECT' </gprs-connect> this is the setup (almost) for my EVDO kyocera card, I live in Canada. *note in the gprs-options i have noauth specified, this may or may not work for you. Try it the way it is and see what happens. Also check out forum.stompboxnetworks.com for a great forum for gprs/evdo ppp cards. |
Great !!
Thanks for your help.. |
simcom modem
Hi,
I'm using SIMCOM gprs modem which is connected to Linux system on serial port.I've written one server socket program on other system. Now on client side I connect to modem through modem and execute the following AT commands: at? OK at+cgdcont=..... OK at+ciicr OK at+cifsr OK at+cipstart OK CONNECT OK at+cipsend >Hello cliebt here ! Send OK <- this comes when ctrl+z is pressed at+cipshut SHUT OK Now I want to implement these steps in script(I'm using chat script). But problem is: after at+cipsend I need to read some text from a file and then Ctrl+z should be implemented so that that text data is sent to the server. How do I implement this?How to capture ctrl+z too? Thanks, sandy |
All times are GMT -5. The time now is 12:46 AM. |