|
703n刷openwrt后是没有wan口的,所以要想3g拨号得自己增加一个3g拨号接口,在etc/config中修改network配置,增加一个wan接口:
config 'interface' 'wan'
option 'ifname' 'eth1'
option 'proto' '3g'
option 'service' 'umts'
option 'apn' 'cmwap'(如果你用cmnet拨号的话请把cmwap改为cmnet)
option 'maxwait' '0'
option 'device' '/dev/ttyACM0'(华为的移动3g卡用ACM0,中兴的可以用USB0试试)
修改etc/modules.d中的60-usb-serial
usbserial vendor=0x12d1 product=0x1da1 # Huawei et127
修改etc/usb_modeswitch.d中的12d1:1da1
######################################
# Huawei ET128
# Contributor: Dale Lane
DefaultVendor= 0x12d1;
DefaultProduct= 0x1da1
# choose one of these:
DetachStorageOnly=0
HuaweiMode=1
修改etc/chatscripts中的3g.chat
ABORT
BUSY
ABORT
'NO CARRIER'
ABORT
ERROR
REPORT
CONNECT
TIMEOUT 10
""
"ATZ"
OK
"ATE0V1"
OK
"ATS0=0"
OK
'AT+CGDCONT=1,"IP","$USE_APN"'
OK
"AT+CFUN=1"
SAY
"Calling TD-SCDMA"
TIMEOUT 30
OK
"ATD*98*1#"
CONNECT ' ' |
|