# cat zte_mf832s_wcdma
nodetach
/dev/ttyUSB0
9600
debug
#lock
#modem
#nocrtscts
#require-pap
#usepeerdns
noipdefault
#noauth
#novj
#novjccomp
#noccp
#defaultroute
#ipcp-accept-local
#ipcp-accept-remote
#0.0.0.0:0.0.0.0
#lcp-echo-failure 5
#lcp-echo-interval 30
#persistconnect '/usr/sbin/chat -s -e -v -f /etc/ppp/peers/zte_mf832s_chat_connect'
disconnect '/usr/sbin/chat -s -v -f /etc/ppp/peers/wcdma-chat-disconnect'
*********************************************************************************
# cat zte_mf832s_chat_connect
TIMEOUT 60
ABORT 'NO CARRIER'
ABORT 'ERROR'
ABORT 'NO DIALTONE'
ABORT 'BUSY'
ABORT 'NO ANSWER'
'' AT
#OK ATS0=0
#OK ATE0V1
#OK AT+CFUN=1
#OK AT+CREG=1OK AT+CGDCONT=1,"IP","cmnet",,0,0
OK ATDT*98*1#
CONNECT /d/c
********************************************
以上是2个拨号脚本,以下是运行结果:
# pppd call zte_mf832s_wcdma
timeout set to 60 seconds
abort on (NO CARRIER)
abort on (ERROR)
abort on (NO DIALTONE)
abort on (BUSY)
abort on (NO ANSWER)
send (AT^M)
expect (OK)^M
OKOK
-- got itsend (AT+CGDCONT=1,"IP","cmnet",,0,0^M)
expect (OK)^M^M
+ZICCID: 89860062176497124445
+ZICCID: 89860062176497124445^M^M
OKOK
-- got itsend (ATDT*98*1#^M)
expect (CONNECT)^M^M
CONNECTCONNECT
-- got itsend (/d/c^M)Serial connection established.
using channel 22
Using interface ppp0
Connect: ppp0 <--> /dev/ttyUSB0
Warning - secret file /etc/ppp/pap-secrets has world and/or group access
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x65e1c4fd> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x65e1c4fd> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x65e1c4fd> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x65e1c4fd> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x65e1c4fd> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x65e1c4fd> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x65e1c4fd> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x65e1c4fd> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x65e1c4fd> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x65e1c4fd> <pcomp> <accomp>]
LCP: timeout sending Config-Requests
Connection terminated.
Receive serial link is not 8-bit clean:
Problem: all had bit 7 set to 0
expect (BORT)
alarm
Failed
disconnect script failed
Modem hangup
nodetach
/dev/ttyUSB0
9600
debug
#lock
#modem
#nocrtscts
#require-pap
#usepeerdns
noipdefault
#noauth
#novj
#novjccomp
#noccp
#defaultroute
#ipcp-accept-local
#ipcp-accept-remote
#0.0.0.0:0.0.0.0
#lcp-echo-failure 5
#lcp-echo-interval 30
#persistconnect '/usr/sbin/chat -s -e -v -f /etc/ppp/peers/zte_mf832s_chat_connect'
disconnect '/usr/sbin/chat -s -v -f /etc/ppp/peers/wcdma-chat-disconnect'
*********************************************************************************
# cat zte_mf832s_chat_connect
TIMEOUT 60
ABORT 'NO CARRIER'
ABORT 'ERROR'
ABORT 'NO DIALTONE'
ABORT 'BUSY'
ABORT 'NO ANSWER'
'' AT
#OK ATS0=0
#OK ATE0V1
#OK AT+CFUN=1
#OK AT+CREG=1OK AT+CGDCONT=1,"IP","cmnet",,0,0
OK ATDT*98*1#
CONNECT /d/c
********************************************
以上是2个拨号脚本,以下是运行结果:
# pppd call zte_mf832s_wcdma
timeout set to 60 seconds
abort on (NO CARRIER)
abort on (ERROR)
abort on (NO DIALTONE)
abort on (BUSY)
abort on (NO ANSWER)
send (AT^M)
expect (OK)^M
OKOK
-- got itsend (AT+CGDCONT=1,"IP","cmnet",,0,0^M)
expect (OK)^M^M
+ZICCID: 89860062176497124445
+ZICCID: 89860062176497124445^M^M
OKOK
-- got itsend (ATDT*98*1#^M)
expect (CONNECT)^M^M
CONNECTCONNECT
-- got itsend (/d/c^M)Serial connection established.
using channel 22
Using interface ppp0
Connect: ppp0 <--> /dev/ttyUSB0
Warning - secret file /etc/ppp/pap-secrets has world and/or group access
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x65e1c4fd> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x65e1c4fd> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x65e1c4fd> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x65e1c4fd> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x65e1c4fd> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x65e1c4fd> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x65e1c4fd> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x65e1c4fd> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x65e1c4fd> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x65e1c4fd> <pcomp> <accomp>]
LCP: timeout sending Config-Requests
Connection terminated.
Receive serial link is not 8-bit clean:
Problem: all had bit 7 set to 0
expect (BORT)
alarm
Failed
disconnect script failed
Modem hangup
解决方案 »
- Linux中如何访问其他用户的文件,无权限
- 如何在CmakeLists.txt中实现LOCAL_CFLAGS := -fvisibility=hidden隐藏符号表的作用
- 大佬求救!uboot-2012 移植dm9000 tftp下载不成功,uboot会重启
- 工具链提示出错
- linux中的权限问题
- 请教两台Linux服务器如何通过HBA卡发送文件?
- 关于git pull的一个奇怪的问题
- centos
- 本机网络设置没vm8什么回事
- 哪位大神可以知道这是什么语言写的程序?
- 执行./configure时报错了,求大神进来指点
- Minigui编译问题 - undefined reference to `WndClientRect'
如果用usb拨号的 用wvdial比较好
如果用串口uart 还是用pppd
参考这个帖子
我也是832s成功了
https://blog.csdn.net/u011552404/article/details/50865836