informatica:linux:modem_usb_vodafone
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| informatica:linux:modem_usb_vodafone [2014/09/09 18:08] – [Errores] javi | informatica:linux:modem_usb_vodafone [2015/04/13 20:19] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ===== Modem USB Vodafone ===== | ===== Modem USB Vodafone ===== | ||
| - | ==== Configuracion ==== | + | ==== Configuracion |
| + | |||
| + | A partir del 9/9/2014 (un mes antes quiza) la receta enterior no me funciona. | ||
| + | |||
| + | Abajo dejo unas configuraciones por si las moscas, pero **NO** son necesarias. | ||
| + | |||
| + | 1. Instalar paquetes: | ||
| + | |||
| + | sudo aptitude update; sudo aptitude install network-manager-gnome usb-modeswitch wvdial screen | ||
| + | |||
| + | 2. Crear archivo: | ||
| + | |||
| + | sudo vim / | ||
| + | |||
| + | Con el siguiente contenido: | ||
| + | |||
| + | < | ||
| + | [Dialer Defaults] | ||
| + | Init1 = AT+CPIN=1234 | ||
| + | Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 | ||
| + | Modem Type = Analog Modem | ||
| + | Phone = *99# | ||
| + | ISDN = 0 | ||
| + | Password = vodafone | ||
| + | Username = vodafone | ||
| + | Modem = / | ||
| + | Baud = 9600 | ||
| + | </ | ||
| + | |||
| + | En este ejemplo el PIN es " | ||
| + | |||
| + | 3. Inicio screen para poder cerrar la consola sin cortar la conexion: | ||
| + | |||
| + | screen -S internet | ||
| + | |||
| + | 4. Me conecto: | ||
| + | |||
| + | < | ||
| + | sudo wvdial | ||
| + | |||
| + | Salida: | ||
| + | |||
| + | < | ||
| + | --> Initializing modem. | ||
| + | --> Sending: ATZ | ||
| + | ATZ | ||
| + | OK | ||
| + | --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 | ||
| + | ATQ0 V1 E1 S0=0 &C1 &D2 | ||
| + | OK | ||
| + | --> Modem initialized. | ||
| + | --> Sending: ATDT*99# | ||
| + | --> Waiting for carrier. | ||
| + | ATDT*99# | ||
| + | +CME ERROR: 11 | ||
| + | --> Invalid dial command. | ||
| + | --> Disconnecting at Tue Sep 9 19:58:53 2014 | ||
| + | usuario@wheezy64: | ||
| + | usuario@wheezy64: | ||
| + | --> WvDial: Internet dialer version 1.61 | ||
| + | --> Initializing modem. | ||
| + | --> Sending: AT+CPIN=1234 | ||
| + | AT+CPIN=1234 | ||
| + | OK | ||
| + | --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 | ||
| + | ATQ0 V1 E1 S0=0 &C1 &D2 | ||
| + | OK | ||
| + | --> Modem initialized. | ||
| + | --> Sending: ATDT*99# | ||
| + | --> Waiting for carrier. | ||
| + | ATDT*99# | ||
| + | CONNECT | ||
| + | --> Carrier detected. | ||
| + | 1234 | ||
| + | --> Don't know what to do! Starting pppd and hoping for the best. | ||
| + | --> Starting pppd at Tue Sep 9 19:59:50 2014 | ||
| + | --> Pid of pppd: 3464 | ||
| + | --> Using interface ppp0 | ||
| + | --> pppd: 8[7f] | ||
| + | --> pppd: 8[7f] | ||
| + | --> pppd: 8[7f] | ||
| + | --> pppd: 8[7f] | ||
| + | --> pppd: 8[7f] | ||
| + | --> pppd: 8[7f] | ||
| + | --> local IP address 178.139.115.21 | ||
| + | --> pppd: 8[7f] | ||
| + | --> remote IP address 10.64.64.64 | ||
| + | --> pppd: 8[7f] | ||
| + | --> primary | ||
| + | --> pppd: 8[7f] | ||
| + | --> secondary DNS address 212.73.32.67 | ||
| + | --> pppd: 8[7f] | ||
| + | </ | ||
| + | |||
| + | 5. Salgo de screen: | ||
| + | |||
| + | CTRL + a + z | ||
| + | |||
| + | ===== Configuracion buena - comentarios ===== | ||
| + | |||
| + | Haciendo esto tambien me he conectado. Pero finalmente quitando los archivos de configuracion tambien lo he conseguido, pero los dejo aqui escritos por si Ascaso. | ||
| + | |||
| + | **OJO** estoy seguro de que cargar el modulo " | ||
| + | |||
| + | Resumen de configuraciones: | ||
| + | |||
| + | **/ | ||
| + | |||
| + | < | ||
| + | # Vodafone / Huawei K3772 | ||
| + | TargetVendor=0x12d1 | ||
| + | TargetProduct=0x14cf | ||
| + | HuaweiNewMode=1 | ||
| + | </ | ||
| + | |||
| + | **/ | ||
| + | |||
| + | Le anyado una linea: | ||
| + | |||
| + | < | ||
| + | ATTRS{idVendor}==" | ||
| + | </ | ||
| + | |||
| + | Por lo que el principio del archivo queda asi, el resto no lo he tocado: | ||
| + | |||
| + | < | ||
| + | # Part of usb-modeswitch-data, | ||
| + | # | ||
| + | # Works with usb_modeswitch versions >= 2.2.0 (introduction of HuaweiNewMode) | ||
| + | # | ||
| + | ACTION!=" | ||
| + | |||
| + | # Adds a symlink " | ||
| + | # transfer; checked against a list of known modems, or else no action | ||
| + | KERNEL==" | ||
| + | |||
| + | SUBSYSTEM!=" | ||
| + | |||
| + | # Adds the device ID to the " | ||
| + | # in cases when the device is yet unknown to the driver; checked | ||
| + | # against a list of known modems, or else no action | ||
| + | ATTR{bInterfaceClass}==" | ||
| + | |||
| + | # Don't continue on " | ||
| + | ACTION!=" | ||
| + | |||
| + | ATTRS{idVendor}==" | ||
| + | </ | ||
| + | |||
| + | He generado el archivo con el comando: | ||
| + | |||
| + | sudo wvdialconf | ||
| + | |||
| + | **/ | ||
| + | |||
| + | < | ||
| + | [Dialer Defaults] | ||
| + | Init1 = AT+CPIN=1234 | ||
| + | Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 | ||
| + | Modem Type = Analog Modem | ||
| + | Phone = *99# | ||
| + | ISDN = 0 | ||
| + | Password = vodafone | ||
| + | Username = vodafone | ||
| + | Modem = / | ||
| + | Baud = 9600 | ||
| + | </ | ||
| + | |||
| + | En este ejemplo el PIN es " | ||
| + | |||
| + | Y finalmente para conectarme (mejor hacerlo en un screen, pues si interrumpimos el proceso se corta la conexion): | ||
| + | |||
| + | sudo wvdial | ||
| + | |||
| + | Salida: | ||
| + | |||
| + | < | ||
| + | --> Initializing modem. | ||
| + | --> Sending: ATZ | ||
| + | ATZ | ||
| + | OK | ||
| + | --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 | ||
| + | ATQ0 V1 E1 S0=0 &C1 &D2 | ||
| + | OK | ||
| + | --> Modem initialized. | ||
| + | --> Sending: ATDT*99# | ||
| + | --> Waiting for carrier. | ||
| + | ATDT*99# | ||
| + | +CME ERROR: 11 | ||
| + | --> Invalid dial command. | ||
| + | --> Disconnecting at Tue Sep 9 19:58:53 2014 | ||
| + | usuario@wheezy64: | ||
| + | usuario@wheezy64: | ||
| + | --> WvDial: Internet dialer version 1.61 | ||
| + | --> Initializing modem. | ||
| + | --> Sending: AT+CPIN=1234 | ||
| + | AT+CPIN=1234 | ||
| + | OK | ||
| + | --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 | ||
| + | ATQ0 V1 E1 S0=0 &C1 &D2 | ||
| + | OK | ||
| + | --> Modem initialized. | ||
| + | --> Sending: ATDT*99# | ||
| + | --> Waiting for carrier. | ||
| + | ATDT*99# | ||
| + | CONNECT | ||
| + | --> Carrier detected. | ||
| + | 1234 | ||
| + | --> Don't know what to do! Starting pppd and hoping for the best. | ||
| + | --> Starting pppd at Tue Sep 9 19:59:50 2014 | ||
| + | --> Pid of pppd: 3464 | ||
| + | --> Using interface ppp0 | ||
| + | --> pppd: 8[7f] | ||
| + | --> pppd: 8[7f] | ||
| + | --> pppd: 8[7f] | ||
| + | --> pppd: 8[7f] | ||
| + | --> pppd: 8[7f] | ||
| + | --> pppd: 8[7f] | ||
| + | --> local IP address 178.139.115.21 | ||
| + | --> pppd: 8[7f] | ||
| + | --> remote IP address 10.64.64.64 | ||
| + | --> pppd: 8[7f] | ||
| + | --> primary | ||
| + | --> pppd: 8[7f] | ||
| + | --> secondary DNS address 212.73.32.67 | ||
| + | --> pppd: 8[7f] | ||
| + | </ | ||
| + | |||
| + | Comentarios: | ||
| + | |||
| + | a) Me detecta el USB como modem: | ||
| + | |||
| + | < | ||
| + | Bus 002 Device 004: ID 12d1:14cf Huawei Technologies Co., Ltd. | ||
| + | </ | ||
| + | |||
| + | ...pero tambien como CDROM (en este caso es la unidad " | ||
| + | |||
| + | < | ||
| + | cat / | ||
| + | |||
| + | drive name: | ||
| + | drive speed: | ||
| + | drive # of slots: | ||
| + | Can close tray: | ||
| + | Can open tray: | ||
| + | Can lock tray: | ||
| + | Can change speed: | ||
| + | Can select disk: 0 0 | ||
| + | Can read multisession: | ||
| + | Can read MCN: 1 1 | ||
| + | Reports media changed: | ||
| + | Can play audio: | ||
| + | Can write CD-R: | ||
| + | Can write CD-RW: | ||
| + | Can read DVD: 0 1 | ||
| + | Can write DVD-R: | ||
| + | Can write DVD-RAM: | ||
| + | Can read MRW: 0 1 | ||
| + | Can write MRW: 0 1 | ||
| + | Can write RAM: 0 1 | ||
| + | </ | ||
| + | |||
| + | b) nm-applet (supongo que hereda de network-manager) sigue sin ver el dispositivo como modem | ||
| + | |||
| + | **TODO** comprobar permisos dialout etc... | ||
| + | |||
| + | c) Tengo cargado el modulo " | ||
| + | |||
| + | < | ||
| + | sudo lsmod | grep option | ||
| + | |||
| + | option | ||
| + | usb_wwan | ||
| + | usbserial | ||
| + | usbcore | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | sudo cat / | ||
| + | # / | ||
| + | # | ||
| + | # This file contains the names of kernel modules that should be loaded | ||
| + | # at boot time, one per line. Lines beginning with "#" | ||
| + | # Parameters can be specified after the module name. | ||
| + | |||
| + | loop | ||
| + | vboxdrv | ||
| + | tun | ||
| + | option | ||
| + | </ | ||
| + | |||
| + | d) El siguiente archivo esta vacio: | ||
| + | |||
| + | / | ||
| + | |||
| + | e) Tengo a la vez arrancado wicd, aunque creo que no lo uso para nada. Lo he desinstalado y sigue funcionando. | ||
| + | |||
| + | Versiones de los paquetes relevantes: | ||
| + | |||
| + | < | ||
| + | ii network-manager | ||
| + | ii network-manager-gnome | ||
| + | ii usb-modeswitch | ||
| + | ii usb-modeswitch-data | ||
| + | ii wvdial | ||
| + | ii python-wicd | ||
| + | ii wicd 1.7.2.4-4.1 | ||
| + | ii wicd-daemon | ||
| + | ii wicd-gtk | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ==== Configuracion vieja (antes 9/ | ||
| modem usb vodafone Huawei | modem usb vodafone Huawei | ||
informatica/linux/modem_usb_vodafone.1410286099.txt.gz · Last modified: (external edit)
