上等兵
- 注册时间
- 2013-10-10
- 金币
- 34 个
- 威望
- 1 个
- 荣誉
- 1 个
尚未签到
|
5金币
本帖最后由 stitchwillow 于 2013-10-12 14:27 编辑
* ]3 }; P; Z! A' U7 {' N9 x2 w. w; r) o; s& A7 X# G
配置如下:0 K$ }1 ]: k# h2 I% Z3 S# W2 t
lsusb内容:& T5 G q! n) _2 J% @. t
Bus001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub/ A" M1 R1 B9 Z% }% D( d
Bus001 Device 002: ID 0424:9512 Standard Microsystems Corp.
! V/ P( v$ M$ [: f. DBus001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
8 U1 @) S/ e' P' fBus001 Device 004: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
* Y2 J& R# T4 d4 O0 z ^Bus001 Device 005: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 WirelessAdapter
9 z! {- d: \# j' O" iBus001 Device 006: ID 04b3:3025 IBM Corp. NetVista Full Width Keyboard
3 h* I! L0 N) u5 F; l- w! T/ m# ^Bus001 Device 009: ID 19d2:0152 ZTE WCDMA Technologies MSM
, `' x0 a. W) k0 S* O% d% b/ z s c" f5 |
vi /etc/usb_modeswitch.conf4 E% q3 K1 e( D& T1 N
将里面内容改为:, O: P/ Z6 s0 Q
DisableSwitching=0% O! R& s0 v( y0 U: i# ]
DefaultVendor= 0x19d21 v. N2 E: \7 S& Q4 H
DefaultProduct= 0x0026
- p$ q1 \3 p/ I: |TargetVendor= 0x19d2; v6 l R- L+ a
TargetProduct= 0x0152
( M* ?1 M2 G3 a0 @1 ?" i5 w1 dMessageContent="5553424312345678240000008000061b000000020000000000000000000000"
; r% Z# Z" k9 NCheckSuccess=5
$ b- N( T) [6 R$ l3 S; _HuaweiMode=0' Q0 `5 {3 q, ]% l( x
[+ Z& O# G m7 s# L: ]
运行usb_modeswitch -W -c /etc/usb_modeswitch.conf
/ {( z: R8 E. n q% [. c% U7 m: `* b& |, O. m+ M9 y0 b, T) X
vi /etc/wvdial.conf
0 x* n3 W. c2 n; m7 V. v8 o, j内容为:$ m$ V' k: ]1 F6 L7 y
[Dialer 3g]
% Y7 z" h! a9 V' e PInit1 = ATZ
0 V5 l( J7 ?; p& Q/ H( BInit2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
2 S0 F/ D% {% i! d. LStupid Mode = 1. |1 ?# f) L, G
Modem Type = Analog Modem
2 y* c6 H9 b0 a! f# |$ NISDN = 0
# z+ r% e+ Y) |( I# |New PPPD = yesPhone = #7776 Z0 |9 k( N. w- }7 l! C
Modem = /dev/ttyUSB0! J3 C: D T. z W
Username = ctnet@mycdma.cn
" M9 a; j/ z& z% o7 [& BPassword= vnet.mobi* G v' y3 D0 ?+ n* Z" e
( {- d1 v8 [; \& `9 b
wvdial 3g拨号正常上网。$ g& j$ j2 \4 R( m" n; A# ?2 K+ E: q! [
时间久了不定时掉线2 Z/ L$ C$ [+ S/ A7 ?5 x. k
掉线提示:A modem hung up the phone (exit code 16)
* N0 Y: J f" }1 g* a1 O+ H7 b6 I* X* M# G8 y& H/ U
dmesg 显示多出如下信息:
2 ?: Y ^: _2 K5 E[28924.835673] option1 ttyUSB0: option_instat_callback: error -1081 m" m$ V! C1 j9 k( g5 x7 t5 a
[28924.847101] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
' K" \8 \! a; K' H' o5 P) U4 J[28924.847266] option 1-1.3.2:1.0: device disconnected
+ Q' q2 u, h, n6 Y; o8 u0 Z V! X[28924.851020] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
5 I: K6 K! e6 D, w: J[28924.851128] option 1-1.3.2:1.1: device disconnected
) B7 {# h6 R/ v& p: e$ _& e, W[28924.851505] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2( k' L. J3 P! _% i! {( U$ X% P+ V
[28924.851594] option 1-1.3.2:1.2: device disconnected, F+ ` l" y& {9 W3 q$ t
[28924.851922] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3+ C. G# U+ A+ t3 A( }: e
[28924.852071] option 1-1.3.2:1.3: device disconnected
! q( v+ L% Y# D# j$ ][28924.852471] option1 ttyUSB4: GSM modem (1-port) converter now disconnected from ttyUSB4
4 e" s6 c& h. a8 ^$ H2 X7 I[28924.852564] option 1-1.3.2:1.4: device disconnected
$ z+ a# e0 x- C0 D- @0 u[28924.947089] usb 1-1.3.2: reset full-speed USB device number 6 using dwc_otg
$ k8 ?& {% W6 U) ^[28925.027054] usb 1-1.3.2: device descriptor read/64, error -32
2 m( W6 ]: W1 O' ?0 p/ L[28925.158316] usb 1-1.3.2: USB disconnect, device number 6
: w9 g! c( q2 i! O1 w6 U[28925.470122] usb 1-1.3.2: new full-speed USB device number 9 using dwc_otg
8 v5 T) {- S& v8 F' O+ D[28925.592934] usb 1-1.3.2: New USB device found, idVendor=19d2, idProduct=0152
5 c- u5 f, ~) l% }. T[28925.592966] usb 1-1.3.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0: q9 V/ v, ]( x- Q* Z
[28925.592984] usb 1-1.3.2: Product: ZTE CDMA Technologies MSM
0 ^# k8 z* O& K" x- k[28925.592999] usb 1-1.3.2: Manufacturer: ZTE, Incorporated
0 l, U9 [. r& ^7 ^/ X8 j s+ t- ?[28925.600518] option 1-1.3.2:1.0: GSM modem (1-port) converter detected& U; B4 k4 E5 O% ?
[28925.601158] usb 1-1.3.2: GSM modem (1-port) converter now attached to ttyUSB0; H! G3 ?+ W- u1 f4 Y& {/ U
[28925.603503] option 1-1.3.2:1.1: GSM modem (1-port) converter detected
1 n' @( `& B1 a" O: G[28925.603999] usb 1-1.3.2: GSM modem (1-port) converter now attached to ttyUSB1$ B% n/ s- {! w0 U
3 W+ f2 k5 O6 c1 d
在掉线以后再用wvdial 3g拨号则会出现如下情况:
9 m; E: T j' c/ ^$ N: d# D8 a--> WvDial: Internet dialer version 1.61
9 ?% w2 N9 W- j c) S--> Initializing modem.
3 L7 Q) b5 P3 x( M! Q$ S9 w( V--> Sending: ATZ$ j& E2 y4 v' e2 A2 L) p- f C, Z
--> Sending: ATQ0
, Z$ f. S- v0 U: g9 x/ i6 S--> Re-Sending: ATZ
3 f' {. X% G4 s- v) D/ Z* `--> Modem not responding.) L8 k- O) B1 t) f/ F, L( s! a
无法拨号
& V6 x3 N( P9 T5 N3 [/ ~2 H% F3 Q9 n, @9 a6 p# T* I
拔掉3g上网卡再重新插上,重新拨号又可以正常上网,求教一下3g上网卡掉线提示是什么意思,该如何解决。# i3 ]/ J& |' G& l( ]; i) [
本人刚入论坛不久没法给出多余金币望见谅。1 F2 a. d; z* X; M+ E
$ W6 Z1 v6 x0 p) u/ g8 G
$ N+ ^' q5 @# v) w7 L& b# d6 j- ` |
|