Код: Выделить всё
# uname -r
3.2.0-29-generic
Код: Выделить всё
# ls /dev | grep ttyUSB
ttyUSB0
ttyUSB1
ttyUSB2
Код: Выделить всё
# dmesg | tail -n20
[ 5014.521005] sr 12:0:0:0: Attached scsi generic sg3 type 5
[ 5028.501363] usb 7-1: USB disconnect, device number 7
[ 5029.752111] usb 7-1: new full-speed USB device number 8 using xhci_hcd
[ 5029.795991] usbserial_generic 7-1:1.0: generic converter detected
[ 5029.796397] usb 7-1: generic converter now attached to ttyUSB0
[ 5029.798929] usbserial_generic 7-1:1.1: generic converter detected
[ 5029.799053] usb 7-1: generic converter now attached to ttyUSB1
[ 5029.801889] usbserial_generic 7-1:1.2: generic converter detected
[ 5029.801993] usb 7-1: generic converter now attached to ttyUSB2
[ 5029.802117] scsi13 : usb-storage 7-1:1.3
[ 5030.804409] scsi 13:0:0:0: CD-ROM We Telecom CD-ROM 1.00 PQ: 0 ANSI: 2
[ 5030.813116] sr1: scsi3-mmc drive: 0x/0x caddy
[ 5030.813514] sr 13:0:0:0: Attached scsi CD-ROM sr1
[ 5030.813734] sr 13:0:0:0: Attached scsi generic sg3 type 5
[ 5030.944347] sr1: CDROM (ioctl) error, command: Xpwrite, Read disk info 51 00 00 00 00 00 00 00 02 00
[ 5030.944372] sr: Sense Key : Hardware Error [current]
[ 5030.944381] sr: Add. Sense: No additional sense information
Код: Выделить всё
$ lsusb
Bus 007 Device 007: ID 22de:6801
Код: Выделить всё
# /sbin/modinfo option | grep 22de; /sbin/modinfo option| grep 6801
alias: usb:v211Fp6801d*dc*dsc*dp*ic*isc*ip*
Код: Выделить всё
# lsmod | grep option
option 25932 0
usb_wwan 20491 1 option
usbserial 47077 2 option,usb_wwan
Код: Выделить всё
# lsmod | grep usb
usb_wwan 20491 1 option
btusb 18288 2
bluetooth 180104 23 btusb,rfcomm,bnep
usbserial 47077 2 option,usb_wwan
usb_storage 49198 1
Код: Выделить всё
# wvdialconf
Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
Modem Port Scan<*1>: S0 S1 S2 S3 S4 S5 S6 S7
Modem Port Scan<*1>: S8 S9 S10 S11 S12 S13 S14 S15
Modem Port Scan<*1>: S16 S17 S18 S19 S20 S21 S22 S23
Modem Port Scan<*1>: S24 S25 S26 S27 S28 S29 S30 S31
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer: QUALCOMM INCORPORATED
ttyUSB0<*1>: Speed 9600: AT -- OK
ttyUSB0<*1>: Max speed is 9600; that should be safe.
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
WvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyUSB2<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB2<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB2<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Found a modem on /dev/ttyUSB0.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
Код: Выделить всё
# gedit /etc/wvdial.conf
[Dialer Defaults]
Init1 = ATZ
Init2 = at+crm=1;&c0
Modem Type = USB Modem
ISDN = 0
New PPPD = yes
Phone = #777
Modem = /dev/ttyUSB0
Username = mobile
Password = internet
Baud = 57600
Код: Выделить всё
# wvdial
--> WvDial: Internet dialer version 1.61
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: at+crm=1;&c0
at+crm=1;&c0
OK
--> Modem initialized.
--> Sending: ATDT#777
--> Waiting for carrier.
ATDT#777
NO CARRIER
--> No Carrier! Trying again.
--> Sending: ATDT#777
--> Waiting for carrier.
ATDT#777
NO CARRIER
--> No Carrier! Trying again.
--> Sending: ATDT#777
--> Waiting for carrier.
^CCaught signal 2: Attempting to exit gracefully...
--> Disconnecting at Fri
Код: Выделить всё
# gedit /etc/resolv.conf
nameserver 213.87.1.1
nameserver 213.87.0.1
nameserver 127.0.0.1
Код: Выделить всё
$ usb-devices
T: Bus=07 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 8 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=22de ProdID=6801 Rev=00.00
S: Manufacturer=WeTelecom Incorporated
S: Product=WeTelecom Mobile Products
C: #Ifs= 4 Cfg#= 1 Atr=80 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=usbserial_generic
I: If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=usbserial_generic
I: If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=usbserial_generic
I: If#= 3 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage