如何通过 USB 访问移动宽带?

如何通过 USB 访问移动宽带?

我无法使用笔记本电脑上的 USB 调制解调器访问互联网。但我可以从 PC 访问互联网。两台电脑都运行 Ubuntu 12.04。

我该怎么做才能发现问题?

这是 lsusb 的结果

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 004: ID 0c45:6461 Microdia 
Bus 002 Device 003: ID 19d2:0033 ZTE WCDMA Technologies MSM 
Bus 002 Device 004: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM246 

蓝牙) 总线 002 设备 005:ID 413c:8161 Dell Computer Corp. 集成键盘 总线 002 设备 006:ID 413c:8162 Dell Computer Corp. 集成触摸板 [Synaptics] 总线 002 设备 007:ID 413c:8160 Dell Computer Corp. 无线 365 蓝牙

以下是 sudo lshw -class network 的结果

PCI (sysfs)  
  *-network                   
description: Wireless interface
   product: BCM4313 802.11b/g/n Wireless LAN Controller
   vendor: Broadcom Corporation
   physical id: 0
   bus info: pci@0000:12:00.0
   logical name: wlan0
   version: 01
   serial: 70:f1:a0:a0:00:00
   width: 64 bits
   clock: 33MHz
   capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
   configuration: broadcast=yes driver=brcmsmac driverversion=3.2.0-37-generic firmware=N/A ip=172.16.4.55 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn
   resources: irq:17 memory:fbc00000-fbc03fff

*-network  
   description: Ethernet interface
   product: RTL8101E/RTL8102E PCI Express Fast Ethernet controller
   vendor: Realtek Semiconductor Co., Ltd.
   physical id: 0
   bus info: pci@0000:13:00.0
   logical name: eth0
   version: 02
   serial: a4:ba:d0:c0:f0:f0
   size: 10Mbit/s
   capacity: 100Mbit/s
   width: 64 bits
   clock: 33MHz
   capabilities: pm msi pciexpress msix vpd bus_master cap_list rom ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
   configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=N/A latency=0 link=no multicast=yes port=MII speed=10Mbit/s
   resources: irq:45 ioport:e000(size=256) memory:d0b10000-d0b10fff memory:d0b00000-d0b0ffff memory:fb200000-fb21ffff

tailf /var/log/syslog插入调制解调器后 的结果

Feb  8 13:32:14 Inspiron-N5010 NetworkManager[911]: <info> Activation (ttyUSB3) starting connection 'MobiNil Default 1'
Feb  8 13:32:14 Inspiron-N5010 NetworkManager[911]: <info> (ttyUSB3): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Feb  8 13:32:14 Inspiron-N5010 NetworkManager[911]: <info> Activation (ttyUSB3) Stage 1 of 5 (Device Prepare) scheduled...
Feb  8 13:32:14 Inspiron-N5010 NetworkManager[911]: <info> Activation (ttyUSB3) Stage 1 of 5 (Device Prepare) started...
Feb  8 13:32:14 Inspiron-N5010 NetworkManager[911]: <info> Activation (ttyUSB3) Stage 1 of 5 (Device Prepare) complete.
Feb  8 13:32:14 Inspiron-N5010 modem-manager[885]: <info>  Modem /org/freedesktop/ModemManager/Modems/0: state changed (registered -> connecting)
Feb  8 13:32:14 Inspiron-N5010 modem-manager[885]: <info>  Modem /org/freedesktop/ModemManager/Modems/0: state changed (connecting -> registered)
Feb  8 13:32:14 Inspiron-N5010 NetworkManager[911]: <warn> GSM connection failed: (32) No cause information available
Feb  8 13:32:14 Inspiron-N5010 NetworkManager[911]: <info> (ttyUSB3): device state change: prepare -> failed (reason 'unknown') [40 120 1]
Feb  8 13:32:14 Inspiron-N5010 NetworkManager[911]: <warn> Activation (ttyUSB3) failed.
Feb  8 13:32:14 Inspiron-N5010 NetworkManager[911]: <info> (ttyUSB3): device state change: failed -> disconnected (reason 'none') [120 30 0]
Feb  8 13:32:14 Inspiron-N5010 NetworkManager[911]: <info> (ttyUSB3): deactivating device (reason 'none') [0]
Feb  8 13:32:14 Inspiron-N5010 NetworkManager[911]: nm_system_iface_flush_routes: assertion `ifindex > 0' failed
Feb  8 13:32:14 Inspiron-N5010 NetworkManager[911]: nm_system_iface_flush_addresses: assertion `ifindex > 0' failed

答案1

中兴通讯 3G 调制解调器有时采用“双媒体”设计,开机时可充当 CD 的作用。

以下是对我有用的方法:(最好打开两个终端窗口)

在一个终端类型中tailf /var/log/syslog观察
另一个终端类型中发生的情况eject sr1(这应该禁用 CD 模式并让系统将其识别为调制解调器)。

过了一段时间(我看到系统日志中的活动再次变慢)我就能用它network-manager来连接到我的 3G 提供商了。

相关内容