嵌入式Linux 4G拨号求助
dev下面已经存在ttyUSB0、1、2、3设备了,这个脚本原封不动的换到其他嵌入式设备是可以拨号成功的,排除脚本问题,sim卡问题,天线问题。。
这是参数配置脚本:
/dev/ttyUSB1
115200
debug
logfile /var/log/ppplog
nocrtscts
modem
debug
nodetach
usepeerdns
noipdefault
defaultroute
user "ctnet"
0.0.0.0:0.0.0.0
ipcp-accept-local
ipcp-accept-remote
connect '/usr/bin/chat -v -s /etc/ppp/my_chat'
chat脚本:
TIMEOUT 15
ABORT "DELAYED"
ABORT "BUSY"
ABORT "ERROR"
ABORT "NO DIALTONE"
ABORT "NO CARRIER"
"" AT
OK AT+CGDCONT=1,"IP","ctnet"
OK ATDT*99#
CONNECT ""
执行 pppd call my_options &
错误信息:Script /usr/bin/chat -v -s /etc/ppp/my_chat finished (pid 821), status = 0x3
Connect script failed