2013年(12)
分类: LINUX
2013-01-24 09:56:37
我用的是LSI的CV34 modem芯片,pppd版本为2.4.4.
脚本16300:
# /etc/ppp/peers/gprs
#Usage: root>pppd call gprs
/dev/ttyS2
115200
nocrtscts
modem
ebug
nodetach
usepeerdns
noipdefault
defaultroute
user smsong
0.0.0.0:0.0.0.0
ipcp-accept-local
noccp
persist
connect '/sbin/chat -s -v -f /etc/ppp/peers/connect'
脚本connect:
# /etc/ppp/gprs-connect-chat
TIMEOUT 15
ABORT '\nBUSY\r'
ABORT '\nNO ANSWER\r'
ABORT '\nRINGING\r\n\r\nRINGING\r'
'' AT
'OK-+++\c-OK' ATH0
TIMEOUT 40
'' \rAT
OK ATS0=0
OK ATE0V1
OK ATDT16300
CONNECT ''
运行pppd call 16300后 串口输出信息如下:
abort on (\nBUSY\r)
abort on (\nNO ANSWER\r)
abort on (\nRINGING\r\n\r\nRINGING\r)
send (AT^M)
expect (OK)
AT^M^M
OK
-- got it
send (ATH0^M)
expect (OK)
^M
ATH0^M^M
OK
-- got it
send (ATZ^M)
expect (OK)
^M
ATZ^M^M
OK
-- got it
send (ATDT16300^M)
expect (connect)
^M
ATDT16300^M^M
CONNECT 9600^M
^M
*********************************^M
* Quidway A8010 Internet Server *^M
* welcome!! *^M
*********************************^M
alarm
Failed
Connect script failed
我怀疑是脚本问题,但是又不懂问题出在哪里,请指教。
邮箱:frp13@163.com[/表情67]