O Ubuntu 12.04 LTS não reconhece o Vodafone Mobile Broadband K3765-Z (ZTE) em USB3

0

Uma caneta de banda larga móvel K3765-Z está funcionando bem em outros laptops / outras distros (incluindo o Ubuntu 13.10), mas não está sendo reconhecida em uma inicialização a frio no meu novo Clevo P150SM (que possui apenas slots USB3 inserção azul).

$ uname -a
Linux khaki 3.11.0-17-generic #31~precise1-Ubuntu SMP Tue Feb 4 21:25:43 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Em uma inicialização a frio, o / var / log / syslog mostra:

Feb 22 02:37:29 khaki kernel: [   54.056601] usb 3-1: new high-speed USB device number 5 using xhci_hcd
Feb 22 02:37:30 khaki kernel: [   54.492356] usb 3-1: New USB device found, idVendor=19d2, idProduct=2000
Feb 22 02:37:30 khaki kernel: [   54.492360] usb 3-1: New USB device strings: Mfr=3, Product=2, SerialNumber=4
Feb 22 02:37:30 khaki kernel: [   54.492362] usb 3-1: Product: Vodafone Mobile Broadband K3765-Z
Feb 22 02:37:30 khaki kernel: [   54.492363] usb 3-1: Manufacturer: Vodafone (ZTE)
Feb 22 02:37:30 khaki kernel: [   54.492364] usb 3-1: SerialNumber: P673A1VDF_MS
Feb 22 02:37:30 khaki mtp-probe: checking bus 3, device 5: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-1"
Feb 22 02:37:30 khaki mtp-probe: bus: 3, device: 5 was not an MTP device
Feb 22 02:37:30 khaki kernel: [   54.512728] usb-storage 3-1:1.0: USB Mass Storage device detected
Feb 22 02:37:30 khaki kernel: [   54.512768] scsi6 : usb-storage 3-1:1.0
Feb 22 02:37:30 khaki kernel: [   54.512818] usbcore: registered new interface driver usb-storage
Feb 22 02:37:31 khaki kernel: [   55.514481] scsi 6:0:0:0: CD-ROM            Vodafone  USB SCSI CD-ROM  USB PQ: 0 ANSI: 2
Feb 22 02:37:31 khaki kernel: [   55.526321] sr1: scsi-1 drive
Feb 22 02:37:31 khaki kernel: [   55.526491] sr 6:0:0:0: Attached scsi CD-ROM sr1
Feb 22 02:37:31 khaki kernel: [   55.526566] sr 6:0:0:0: Attached scsi generic sg3 type 5
Feb 22 02:37:31 khaki usb_modeswitch: switching device 19d2:2000 on 003/005

Mas nada mais acontece. Não há configuração de dispositivos / dev / ttyUSB e o gerenciador de rede não detecta a caneta.

Se eu uso a caneta no Windows e faço uma reinicialização a quente no Ubuntu, o gerenciador de rede detecta a caneta (mas ainda não consegui estabelecer uma conexão usando os mesmos parâmetros que eu usado em outros laptops).

/ var / log / syslog após uma reinicialização a quente mostra:

...
Feb 22 02:47:50 khaki kernel: [    1.377343] usb 3-1: new high-speed USB device number 2 using xhci_hcd
Feb 22 02:47:50 khaki kernel: [    1.408517] usb 3-1: New USB device found, idVendor=19d2, idProduct=2002
Feb 22 02:47:50 khaki kernel: [    1.408521] usb 3-1: New USB device strings: Mfr=4, Product=3, SerialNumber=5
Feb 22 02:47:50 khaki kernel: [    1.408523] usb 3-1: Product: Vodafone Mobile Broadband K3765-Z
Feb 22 02:47:50 khaki kernel: [    1.408524] usb 3-1: Manufacturer: Vodafone (ZTE)
Feb 22 02:47:50 khaki kernel: [    1.408525] usb 3-1: SerialNumber: P673A1VDF_MS
Feb 22 02:47:50 khaki kernel: [    1.416532] usb-storage 3-1:1.5: USB Mass Storage device detected
Feb 22 02:47:50 khaki kernel: [    1.416614] scsi6 : usb-storage 3-1:1.5
Feb 22 02:47:50 khaki kernel: [    1.416674] usbcore: registered new interface driver usb-storage
...
Feb 22 02:47:50 khaki kernel: [    2.294704] usbcore: registered new interface driver usbserial
Feb 22 02:47:50 khaki kernel: [    2.294715] usbcore: registered new interface driver usbserial_generic
Feb 22 02:47:50 khaki kernel: [    2.294724] usbserial: USB Serial support registered for generic
Feb 22 02:47:50 khaki kernel: [    2.295727] iwlwifi 0000:06:00.0: loaded firmware version 18.168.6.1 op_mode iwldvm
Feb 22 02:47:50 khaki kernel: [    2.299668] usbcore: registered new interface driver cdc_wdm
Feb 22 02:47:50 khaki kernel: [    2.300672] usbcore: registered new interface driver option
Feb 22 02:47:50 khaki kernel: [    2.300681] usbserial: USB Serial support registered for GSM modem (1-port)
Feb 22 02:47:50 khaki kernel: [    2.300735] option 3-1:1.0: GSM modem (1-port) converter detected
Feb 22 02:47:50 khaki kernel: [    2.300867] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB0
Feb 22 02:47:50 khaki kernel: [    2.300909] option 3-1:1.1: GSM modem (1-port) converter detected
Feb 22 02:47:50 khaki kernel: [    2.300953] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB1
Feb 22 02:47:50 khaki kernel: [    2.300989] option 3-1:1.2: GSM modem (1-port) converter detected
Feb 22 02:47:50 khaki kernel: [    2.301031] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB2
Feb 22 02:47:50 khaki kernel: [    2.301067] option 3-1:1.3: GSM modem (1-port) converter detected
Feb 22 02:47:50 khaki kernel: [    2.301113] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB3
...
Feb 22 02:47:50 khaki kernel: [    2.361761] qmi_wwan 3-1:1.4: cdc-wdm0: USB WDM device
Feb 22 02:47:50 khaki kernel: [    2.361939] qmi_wwan 3-1:1.4 wwan0: register 'qmi_wwan' at usb-0000:00:14.0-1, WWAN/QMI device, d2:1c:65:8c:b2:21
Feb 22 02:47:50 khaki kernel: [    2.361988] usbcore: registered new interface driver qmi_wwan
...
Feb 22 02:47:51 khaki NetworkManager[1343]:    SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.4/net/wwan0, iface: wwan0)
Feb 22 02:47:51 khaki NetworkManager[1343]:    SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.4/net/wwan0, iface: wwan0): no ifupdown configuration found.
...
Feb 22 02:47:51 khaki NetworkManager[1343]: <info> Loaded plugin ifupdown: (C) 2008 Canonical Ltd.  To report bugs please use the NetworkManager mailing list.
Feb 22 02:47:51 khaki NetworkManager[1343]: <info> Loaded plugin keyfile: (c) 2007 - 2010 Red Hat, Inc.  To report bugs please use the NetworkManager mailing list.
Feb 22 02:47:51 khaki NetworkManager[1343]:    Ifupdown: get unmanaged devices count: 0
Feb 22 02:47:51 khaki NetworkManager[1343]:    SCPlugin-Ifupdown: (10521392) ... get_connections.
Feb 22 02:47:51 khaki NetworkManager[1343]:    SCPlugin-Ifupdown: (10521392) ... get_connections (managed=false): return empty list.
Feb 22 02:47:51 khaki NetworkManager[1343]:    keyfile: parsing Vodafone Default ...
Feb 22 02:47:51 khaki NetworkManager[1343]:    keyfile:     read connection 'Vodafone Default'
...
Feb 22 02:47:52 khaki modem-manager[1306]: <info>  (ttyUSB1) closing serial port...
Feb 22 02:47:52 khaki modem-manager[1306]: <info>  (ttyUSB1) serial port closed
Feb 22 02:47:52 khaki modem-manager[1306]: <info>  (ZTE): GSM modem /sys/devices/pci0000:00/0000:00:14.0/usb3/3-1 claimed port ttyUSB1
...
Feb 22 02:47:53 khaki modem-manager[1306]: <info>  (ttyUSB3) closing serial port...
Feb 22 02:47:53 khaki modem-manager[1306]: <info>  (ttyUSB3) serial port closed
Feb 22 02:47:53 khaki modem-manager[1306]: <info>  (ttyUSB3) opening serial port...
Feb 22 02:47:53 khaki modem-manager[1306]: <info>  (ZTE): GSM modem /sys/devices/pci0000:00/0000:00:14.0/usb3/3-1 claimed port ttyUSB3
Feb 22 02:47:53 khaki modem-manager[1306]: <info>  (ZTE): GSM modem /sys/devices/pci0000:00/0000:00:14.0/usb3/3-1 claimed port wwan0
...
Feb 22 02:48:23 khaki modem-manager[1306]: <info>  (ttyUSB0) closing serial port...
Feb 22 02:48:23 khaki modem-manager[1306]: <info>  (ttyUSB0) serial port closed
Feb 22 02:48:23 khaki modem-manager[1306]: <info>  (ttyUSB0) opening serial port...
Feb 22 02:48:23 khaki modem-manager[1306]: <info>  (ttyUSB2) closing serial port...
Feb 22 02:48:23 khaki modem-manager[1306]: <info>  (ttyUSB2) serial port closed
Feb 22 02:48:23 khaki modem-manager[1306]: <info>  (ttyUSB2) opening serial port...
Feb 22 02:48:26 khaki modem-manager[1306]: <info>  (ttyUSB0) closing serial port...
Feb 22 02:48:26 khaki modem-manager[1306]: <info>  (ttyUSB0) serial port closed
Feb 22 02:48:26 khaki modem-manager[1306]: <info>  (ZTE): GSM modem /sys/devices/pci0000:00/0000:00:14.0/usb3/3-1 claimed port ttyUSB0
Feb 22 02:48:29 khaki modem-manager[1306]: <info>  (ttyUSB2) closing serial port...
Feb 22 02:48:29 khaki modem-manager[1306]: <info>  (ttyUSB2) serial port closed
Feb 22 02:48:29 khaki NetworkManager[1343]: <info> (wwan0): new GSM/UMTS device (driver: 'option1' ifindex: 3)
Feb 22 02:48:29 khaki NetworkManager[1343]: <info> (wwan0): exported as /org/freedesktop/NetworkManager/Devices/3
Feb 22 02:48:29 khaki NetworkManager[1343]: <info> (wwan0): now managed
Feb 22 02:48:29 khaki NetworkManager[1343]: <info> (wwan0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Feb 22 02:48:29 khaki NetworkManager[1343]: <info> (wwan0): bringing up device.
Feb 22 02:48:29 khaki NetworkManager[1343]: <info> (wwan0): deactivating device (reason 'managed') [2]
Feb 22 02:48:29 khaki NetworkManager[1343]: <info> (wwan0): device state change: unavailable -> disconnected (reason 'none') [20 30 0]
...
Feb 22 02:49:06 khaki NetworkManager[1343]: <info> Activation (wwan0) starting connection 'Vodafone Default'
Feb 22 02:49:06 khaki NetworkManager[1343]: <info> (wwan0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Feb 22 02:49:06 khaki NetworkManager[1343]: <info> Activation (wwan0) Stage 1 of 5 (Device Prepare) scheduled...
Feb 22 02:49:06 khaki NetworkManager[1343]: <info> Activation (wwan0) Stage 1 of 5 (Device Prepare) started...
Feb 22 02:49:06 khaki NetworkManager[1343]: <info> Activation (wwan0) Stage 1 of 5 (Device Prepare) complete.
Feb 22 02:49:06 khaki modem-manager[1306]: <info>  (ttyUSB3) opening serial port...
Feb 22 02:49:06 khaki modem-manager[1306]: <info>  Modem /org/freedesktop/ModemManager/Modems/0: state changed (disabled -> enabling)
Feb 22 02:49:06 khaki modem-manager[1306]: <info>  (ttyUSB1) opening serial port...
Feb 22 02:49:06 khaki modem-manager[1306]: <info>  (ttyUSB3): using text mode for SMS
Feb 22 02:49:06 khaki modem-manager[1306]: <info>  Modem /org/freedesktop/ModemManager/Modems/0: state changed (enabling -> enabled)
Feb 22 02:49:06 khaki NetworkManager[1343]: <info> WWAN now enabled by management service
Feb 22 02:49:06 khaki modem-manager[1306]: <info>  Modem /org/freedesktop/ModemManager/Modems/0: state changed (enabled -> registered)
Feb 22 02:49:07 khaki modem-manager[1306]: <info>  Modem /org/freedesktop/ModemManager/Modems/0: state changed (registered -> connecting)
Feb 22 02:49:07 khaki modem-manager[1306]: <info>  Modem /org/freedesktop/ModemManager/Modems/0: state changed (connecting -> connected)
Feb 22 02:49:07 khaki NetworkManager[1343]: <info> Activation (wwan0) Stage 2 of 5 (Device Configure) scheduled...
Feb 22 02:49:07 khaki NetworkManager[1343]: <info> Activation (wwan0) Stage 2 of 5 (Device Configure) starting...
Feb 22 02:49:07 khaki NetworkManager[1343]: <info> (wwan0): device state change: prepare -> config (reason 'none') [40 50 0]
Feb 22 02:49:07 khaki NetworkManager[1343]: <info> Activation (wwan0) Stage 2 of 5 (Device Configure) successful.
Feb 22 02:49:07 khaki NetworkManager[1343]: <info> Activation (wwan0) Stage 3 of 5 (IP Configure Start) scheduled.
Feb 22 02:49:07 khaki NetworkManager[1343]: <info> Activation (wwan0) Stage 2 of 5 (Device Configure) complete.
Feb 22 02:49:07 khaki NetworkManager[1343]: <info> Activation (wwan0) Stage 3 of 5 (IP Configure Start) started...
Feb 22 02:49:07 khaki NetworkManager[1343]: <info> (wwan0): device state change: config -> ip-config (reason 'none') [50 70 0]
Feb 22 02:49:07 khaki NetworkManager[1343]: <info> starting PPP connection
Feb 22 02:49:07 khaki NetworkManager[1343]: <info> pppd started with pid 2911
...
Feb 22 02:49:07 khaki NetworkManager[1343]: <info> Activation (wwan0) Stage 4 of 5 (IPv6 Configure Timeout) scheduled...
Feb 22 02:49:07 khaki NetworkManager[1343]: <info> Activation (wwan0) Stage 3 of 5 (IP Configure Start) complete.
Feb 22 02:49:07 khaki NetworkManager[1343]: <info> Activation (wwan0) Stage 4 of 5 (IPv6 Configure Timeout) started...
Feb 22 02:49:07 khaki NetworkManager[1343]: <info> Activation (wwan0) Stage 4 of 5 (IPv6 Configure Timeout) complete.
Feb 22 02:49:07 khaki pppd[2911]: unrecognized option 'wwan0'
Feb 22 02:49:07 khaki NetworkManager[1343]: <warn> pppd pid 2911 exited with error: pppd options error
Feb 22 02:49:07 khaki NetworkManager[1343]: <info> Activation (wwan0) Stage 4 of 5 (IPv4 Configure Timeout) scheduled...
Feb 22 02:49:07 khaki NetworkManager[1343]: <info> Activation (wwan0) Stage 4 of 5 (IPv4 Configure Timeout) started...
Feb 22 02:49:07 khaki NetworkManager[1343]: <info> (wwan0): device state change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 5]
Feb 22 02:49:07 khaki NetworkManager[1343]: <warn> Activation (wwan0) failed.
Feb 22 02:49:07 khaki NetworkManager[1343]: <info> Activation (wwan0) Stage 4 of 5 (IPv4 Configure Timeout) complete.
Feb 22 02:49:07 khaki modem-manager[1306]: <info>  Modem /org/freedesktop/ModemManager/Modems/0: state changed (connected -> disconnecting)
Feb 22 02:49:07 khaki NetworkManager[1343]: <info> (wwan0): device state change: failed -> disconnected (reason 'none') [120 30 0]
Feb 22 02:49:07 khaki NetworkManager[1343]: <info> (wwan0): deactivating device (reason 'none') [0]
Feb 22 02:49:10 khaki NetworkManager[1343]: <info> Auto-activating connection 'Vodafone Default'.
Feb 22 02:49:10 khaki NetworkManager[1343]: <info> Activation (wwan0) starting connection 'Vodafone Default'
Feb 22 02:49:10 khaki NetworkManager[1343]: <info> (wwan0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Feb 22 02:49:10 khaki NetworkManager[1343]: <info> Activation (wwan0) Stage 1 of 5 (Device Prepare) scheduled...
Feb 22 02:49:10 khaki NetworkManager[1343]: <info> Activation (wwan0) Stage 1 of 5 (Device Prepare) started...
Feb 22 02:49:10 khaki NetworkManager[1343]: <info> Activation (wwan0) Stage 1 of 5 (Device Prepare) complete.
Feb 22 02:49:11 khaki modem-manager[1306]: <info>  Modem /org/freedesktop/ModemManager/Modems/0: state changed (disconnecting -> registered)
Feb 22 02:49:31 khaki NetworkManager[1343]: <warn> GSM connection failed: (32) Serial command timed out
...

Alguma idéia de como fazer a caneta funcionar? (Sem inicializar no windows primeiro: -)

Atualização: Sobre a sugestão de adicionar o arquivo /etc/udev/rules.d/90-zte.rules com:

SUBSYSTEM=="block",SUBSYSTEM=="scsi",ATTRS{model}=="USB Storage FFE9",ACTION=="add",RUN+="/sbin/modprobe usbserial vendor=0x19d2 product=0x2000"

e depois realizando (após a inserção da caneta)

# modprobe usbserial vendor=0x19d2 product=0x2000

/ var / log / syslog mostra:

Feb 22 12:24:35 khaki kernel: [  361.013336] usbcore: registered new interface driver usbserial
Feb 22 12:24:35 khaki kernel: [  361.013367] usbcore: registered new interface driver usbserial_generic
Feb 22 12:24:35 khaki kernel: [  361.013398] usbserial: USB Serial support registered for generic
Feb 22 12:24:35 khaki kernel: [  361.013421] usbserial_generic 3-1:1.0: The "generic" usb-serial driver is only for testing and one-off prototypes.
Feb 22 12:24:35 khaki kernel: [  361.013425] usbserial_generic 3-1:1.0: Tell [email protected] to add your device to a proper driver.
Feb 22 12:24:35 khaki kernel: [  361.013429] usbserial_generic 3-1:1.0: generic converter detected
Feb 22 12:24:35 khaki kernel: [  361.013612] usb 3-1: generic converter now attached to ttyUSB0
Feb 22 12:24:35 khaki modem-manager[1210]: <info>  (ttyUSB0) opening serial port...
Feb 22 12:25:07 khaki modem-manager[1210]: <info>  (ttyUSB0) closing serial port...
Feb 22 12:25:37 khaki modem-manager[1210]: <info>  (ttyUSB0) serial port closed
Feb 22 12:25:37 khaki modem-manager[1210]: <info>  (ttyUSB0) opening serial port...
Feb 22 12:25:43 khaki modem-manager[1210]: <info>  (ttyUSB0) closing serial port...

e nenhum dispositivo utilizável / dev / ttyUSB0 permanece.

Update: Talvez seja uma espécie de duplicidade de Ubuntu 12,04 - problema USB3 com sticks USB de banda larga móvel Depois que eu tiver tempo para investigar, postarei mais detalhes.

    
por user1544553 22.02.2014 / 04:15

2 respostas

0

Caso isso ajude alguém que procura um problema semelhante, aqui está o que eu fiz:

1 - solução para o problema de não ver / dev / ttyUSBn quando a caneta está conectada em USB3

Crie um arquivo

$ sudo gedit /etc/modprobe.d/usb-storage.conf

e adicione a esse arquivo:

# Increase the default delay to avoid conflict with usb_modeswitch
options usb-storage delay_use=4

Salve o arquivo. Desconecte e conecte a caneta (não reinicializa ou reinicia o computador) e, após alguns segundos, os dispositivos / dev / ttyUSBn serão configurados e o dispositivo será devidamente reconhecido pelo NetworkManager.

2 - solução para o problema de falha do NetworkManager em conectar-se ao reportar no syslog "pppd [2911]: opção não reconhecida 'wwan0'"

Bem, a coisa mais próxima que encontrei para esse problema foi link e link

Eu adaptei a solução alternativa mencionada no último para:

$ sudo gedit /etc/modprobe.d/blacklist.conf

e anexou a linha

# NetworkManager not running pppd through my ZTE K3765-Z properly
blacklist qmi_wwan

Em seguida, reiniciei e tudo funcionou bem. NetworkManager discado e estabeleceu conexão com a internet.

PS: Eu tentei com sucesso a sugestão da Prasad de usar o wvdial como solução alternativa. Meu /etc/wvdial.conf (para Vodafone Portugal) é:

[Dialer Defaults]
;Init1 = AT+CPIN="NNNN"
Init3 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init4 = AT+CGDCONT=1,"IP","net2.vodafone.pt"
Modem Type = Analog Modem
Phone = *99#
ISDN = 0
Username = MYMSISDN
Password = MYMSISDN
Modem = /dev/ttyUSB3
Baud = 115200
Stupid Mode = 1
Dial Attempts = 0

Terá de substituir "NNNN" pelo seu PIN e "MYMSISDN" pelo número de telefone do seu cartão SIM e "net2.vodafone.pt" pelo APN do seu fornecedor. Uncomment Init1 somente para a 1ª execução (se o NetworkManager não estiver rodando, ele já não fez isso de você).

(Eu ainda prefiro o NetworkManager ao wvdial, porque ao usar o wvdail não consigo usar o NetworkManager para iniciar uma VPN PPTP)

    
por user1544553 24.02.2014 / 21:42
0

Isso pode resolver seu problema:

Conecte seu computador ubuntu à internet usando ethernet qualquer outra conexão que seja possível.

Atualize seu computador com o seguinte comando

sudo apt-get update && sudo apt-get upgrade

Agora instale esses pacotes usando o comando.

sudo apt-get install wvdial

sudo apt-get install usb-modeswitch

Agora, insira o modem USB da Vodafone na unidade USB e digite lsusb no terminal

Anote o id do dispositivo de modem USB vodafone e o ID do produto em um pedaço de papel.

No meu caso, foi 12d1: 1001 (já que estou usando o Huwai)

em que 12d1 é o ID do dispositivo e 1001 é um ID do produto.

Crie um novo arquivo usando nano.

sudo nano /etc/udev/rules.d/90-zte.rules  com o seguinte conteúdo

SUBSISTEMA == "bloco", SUBSISTEMA == "scsi", ATTRS {modelo} == "Armazenamento USB FFE9", AÇÃO == "adicionar", RUN +="/ sbin / modprobe fornecedor usbserial = 0x12d1 produto = 0x1001 " . (substitua o ID do dispositivo e o ID do fornecedor pelo ID do dispositivo e pelo ID do fornecedor)

Agora digite o seguinte comando.

sudo / sbin / modprobe fornecedor usbserial = 0x12d1 produto = 0x1001

sudo wvdialconf /etc/wvdial.conf Isto irá criar o arquivo wvdial.conf em seu diretório / etc.

edite esse arquivo usando o seguinte comando.

sudo nano /etc/wvdial.conf

nome de usuário = seu número de celular com 10 dígitos password = seu número de celular de 10 dígitos Init3 = AT + CGDCONT = 1, "IP", "internet" (aqui a internet é APN da Vodafone. Se eu estiver errado, mude com a correta).

salve este arquivo.

Agora você pode se conectar à Internet usando o comando sudo wvdial

    
por g_p 22.02.2014 / 05:04