我正在使用http://www.sparkfun.com/products/9427作为GSM模块。我已经为FTDI和通用的usb-serial驱动程序构建了。每当我尝试pppd call GPRS
时,我都会pppd: connect script failed
执行的命令是:
1. pppd / dev / ttyUSB0
2. netcfg ppp0 up
3. pppd调用gprs
gprs脚本:
/dev/ttyUSB0
`
460800
crtscts
modem
noauth
debug
nodetach
usepeerdns
noipdefault
defaultroute
user ""
0.0.0.0:0.0.0.0
connect '/system/bin/chat -s -v -f /system/etc/ppp/gprs-connect-chat'
gprs-connect-chat脚本:
TIMEOUT 15
ABORT "DELAYED"
ABORT "BUSY"
ABORT "ERROR"
ABORT "NO DIALTONE"
ABORT "NO CARRIER"
TIMEOUT 40
'' \rAT
OK ATZ
OK "ATQ0 V1 E0 S0=0 &C1 &D2 +FCLASS=0"
OK AT+CGDCONT=1,"IP","Singtel"
OK ATDT*99#
CONNECT