|
楼主 |
发表于 2011-9-13 23:32:17
|
显示全部楼层
Post by aatt;2151700
安装usb_modeswitch和wvdial,用wvdial拨号就可以,在内核中选上usbserial,试试看
谢谢!已经可以连上 cdma1x 了。但连不上3G。
- ## /etc/wvdial.conf
- ###########
- [Dialer cdma1x]
- Init1 = ATZ
- Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
- Modem Type = Analog Modem
- Baud = 460800
- New PPPD = yes
- Modem = /dev/ttyUSB0
- ISDN = 0
- Phone = #777
- Password = CARD
- Username = CARD
- [Dialer cdma3g]
- Init1 = ATZ
- Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
- Modem Type = Analog Modem
- Baud = 4608000
- New PPPD = yes
- Modem = /dev/ttyUSB0
- ISDN = 0
- Phone = #777
- Password = ctnet@mycdma.cn
- Username = vnet.mobi
复制代码- # wvdial cdma3g
- ###########
- --> WvDial: Internet dialer version 1.61
- --> Initializing modem.
- --> Sending: ATZ
- ATZ
- OK
- --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
- ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
- OK
- --> Modem initialized.
- --> Sending: ATDT#777
- --> Waiting for carrier.
- ATDT#777
- CONNECT 3100000
- --> Carrier detected. Starting PPP immediately.
- --> Starting pppd at Tue Sep 13 23:22:48 2011
- --> Pid of pppd: 3058
- --> pppd: [7f]
- --> Using interface ppp0
- --> pppd: [7f]
- --> pppd: [7f]
- --> pppd: [7f]
- --> pppd: [7f]
- --> pppd: [7f]
- --> Disconnecting at Tue Sep 13 23:22:49 2011
- --> The PPP daemon has died: Authentication error.
- --> We failed to authenticate ourselves to the peer.
- --> Maybe bad account or password? (exit code = 19)
- --> man pppd explains pppd error codes in more detail.
- --> I guess that's it for now, exiting
- --> The PPP daemon has died. (exit code = 19)
复制代码
还有 usb_modeswitch -w 提示- ....
- DefaultVendor= not set
- DefaultProduct= not set
- TargetVendor= not set
- TargetProduct= not set
- TargetClass= not set
- TargetProductList=""
- ....
复制代码
须 usb_modeswitch -W -I -H -c /etc/usb_modeswitch.conf
或者 usb_modeswitch -W -v 12d1 -p 1505 -V 12d1 -P 140c -D 0 -H 1
/dev/里才能出现 ttyUSB0、ttyUSB1、ttyUSB2、ttyUSB3 |
|