Code: Select all
$ vim /etc/ppp/peers/rasppp
# Hide password when connecting for debugging
hide-password
# Don't need authentication for this phone
noauth
# For call control scripts
connect '/usr/sbin/chat -s -v -f /etc/ppp/peers/rasppp-chat-connect'
# for disconnect scripts
disconnect '/usr/sbin/chat -s -v -f /etc/ppp/peers/rasppp-chat-disconnect'
# Debugging information
debug
# 4G module
/dev/ttyUSB3
# Serial baud rate
115200
# Use default route
defaultroute
# Do not use default IP
noipdefault
# do not use PPP compression
novj
novjccomp
noccp
ipcp-accept-local
ipcp-accept-remote
local
# It is best to lock the serial bus by creating a lock file so that other programs will know that the corresponding serial port is already in use once they discover the existence of this file.
lock
dump
nodetach
# username password (configuration varies by operator)
user ctnet@mycdma.cn
password vnet.mobi
# hardware control flow
crtscts
remotename 3gppp
ipparam 3gppp
# Set the usepeerdns parameter if you want to use the DNS negotiated on the server side.
usepeerdns
Code: Select all
TIMEOUT 15
ABORT "BUSY"
ABORT "ERROR"
ABORT "NO ANSWER"
ABORT "NO CARRTER"
ABORT "NO DIALTONE"
""AT
OK \rATZ
ok \rAT+CGDCONT=1, "ip","airtelwap.com"
ok-at-ok atdt#777
CONNECT \d\c
Code: Select all
ABORT "ERROR"
ABORT "NO DIALTONE"
SAY "\NSending break to the modem\n"
""\k""
""+++ATH""
`SAY "\nGood bye ! \n"
Code: Select all
sudo pppd call rasppp &