Ubuntu 12.04 LTS 无法识别 USB3 上的 Vodafone Mobile Broadband K3765-Z (ZTE)

Ubuntu 12.04 LTS 无法识别 USB3 上的 Vodafone Mobile Broadband K3765-Z (ZTE)

K3765-Z 移动宽带笔在其他笔记本电脑/其他发行版(包括 Ubuntu 13.10)上运行良好,但在我的新 Clevo P150SM(仅具有 USB3 插槽 - 带有蓝色插件的插槽)上冷启动时无法识别。

$ 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

在冷启动时,/var/log/syslog 显示:

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

但什么也没发生。没有设置 /dev/ttyUSB 设备,网络管理器也检测不到笔。

如果我在 Windows 下使用笔,并对 Ubuntu 进行热重启,网络管理器就会检测到笔(但我仍然无法使用在其他笔记本电脑上使用的相同参数成功建立连接)。

热重启后 /var/log/syslog 显示:

...
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
...

关于如何让笔工作,您有什么想法吗?(无需先启动 Windows :-)

更新:关于添加文件 /etc/udev/rules.d/90-zte.rules 的建议:

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

然后表演(插入笔后)

# modprobe usbserial vendor=0x19d2 product=0x2000

/var/log/syslog 显示:

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...

并且没有可用的 /dev/ttyUSB0 设备。

更新:也许这是Ubuntu 12.04-移动宽带 USB 棒的 USB3 问题 一旦我有时间调查,我会发布更多细节。

答案1

这也许能解决你的问题:

使用以太网或任何其他可行的连接将您的 ubuntu 计算机连接到互联网。

使用以下命令更新您的计算机

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

现在使用命令安装这些包。

sudo apt-get install wvdial

sudo apt-get install usb-modeswitch

现在将您的 Vodafone USB 调制解调器插入 USB 驱动器并输入lsusb终端

在一张纸上记下沃达丰 USB 调制解调器设备 ID 和产品 ID。

在我的情况下它是 12d1:1001(因为我使用的是 Huwai)

其中 12d1 是设备 ID,1001 是产品 ID。

使用 nano 创建新文件。

sudo nano /etc/udev/rules.d/90-zte.rules 包含以下内容

SUBSYSTEM=="block",SUBSYSTEM=="scsi",ATTRS{model}=="USB Storage FFE9",ACTION=="add",RUN+="/sbin/modprobe usbserial vendor=0x12d1 product=0x1001" . (将设备 ID 和供应商 ID 替换为您的设备 ID 和供应商 ID)

现在输入以下命令。

sudo /sbin/modprobe usbserial 供应商=0x12d1 产品=0x1001

sudo wvdialconf /etc/wvdial.conf 这将在您的 /etc 目录中创建 wvdial.conf 文件。

使用以下命令编辑此文件。

sudo nano /etc/wvdial.conf

用户名 = 您的 10 位手机号码 密码 = 您的 10 位手机号码 Init3 = AT+CGDCONT=1,"IP","internet" (这里的互联网是沃达丰的 APN。如果我错了,请用正确的更改它)。

保存此文件。

现在您可以使用命令连接到互联网sudo wvdial

答案2

如果它可以帮助搜索类似问题的人,以下是我所做的:

1-解决笔连接到 USB3 时看不到 /dev/ttyUSBn 的问题

创建文件

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

并向该文件添加:

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

保存文件。拔下并插入笔(无需重新启动),几秒钟后,/dev/ttyUSBn 设备将被设置,并且 NetworkManager 会正确识别该设备。

2-解决 NetworkManager 连接失败,并在 syslog 上报告“pppd[2911]: unrecognized option 'wwan0'”的问题

嗯,我发现最接近这个问题的是 https://answers.launchpad.net/ubuntu/+source/gnome-nettool/+question/226355https://bugzilla.redhat.com/show_bug.cgi?id=835153

我根据最新提到的解决方法进行了调整:

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

并附加了以下行

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

然后重新启动,一切正常。NetworkManager 拨出并建立互联网连接。

PS:我已成功尝试了 Prasad 的建议,使用 wvdial 作为解决方法。我的 /etc/wvdial.conf(针对 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

您需要将“NNNN”替换为您的 PIN,将“MYMSISDN”替换为您的 SIM 卡电话号码,将“net2.vodafone.pt”替换为您的提供商的 APN。仅在第一次运行时取消注释 Init1(如果 NetworkManager 未运行,或者它尚未为您完成此操作)。

(我还是更喜欢 NetworkManager 而不是 wvdial,因为当使用 wvdail 时我无法使用 NetworkManager 启动 PPTP VPN)

相关内容