取决于USB端口我使用连接我的HSDPA 调制解调器,网络管理器将连接到互联网或不连接互联网。我曾经在所有端口上工作(即自动建立互联网连接),但随着时间的推移,它只是在某些端口上停止了。
lsusb
所有情况下的输出都如下所示(设备 ID 因 USB 端口而异):
Bus 001 Device 009: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E270 HSDPA/HSUPA Modem
有什么想法可能导致此行为?我该怎么做才能解决这个问题?
添加
关于调制解调器的附加信息:如果通过 USB 连接,它将作为硬盘使用和作为 HSDPA 调制解调器(有点二元性...)。在错误情况下,它只会显示为硬盘。
根据要求提供更多信息
调制解调器不工作
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 413c:8000 Dell Computer Corp. BC02 Bluetooth Adapter
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 007: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E270 HSDPA/HSUPA Modem
Bus 001 Device 005: ID 046d:c00c Logitech, Inc. Optical Wheel Mouse
Bus 001 Device 004: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 003: ID 413c:0058 Dell Computer Corp. Port Replicator
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
laptop:~$ dmesg | grep 'usb'
[ 0.225371] usbcore: registered new interface driver usbfs
[ 0.225387] usbcore: registered new interface driver hub
[ 0.225418] usbcore: registered new device driver usb
[ 0.504291] usb usb1: configuration #1 chosen from 1 choice
[ 0.504767] usb usb2: configuration #1 chosen from 1 choice
[ 0.505046] usb usb3: configuration #1 chosen from 1 choice
[ 0.505601] usb usb4: configuration #1 chosen from 1 choice
[ 1.061064] usb 1-6: new high speed USB device using ehci_hcd and address 3
[ 1.192636] usb 1-6: configuration #1 chosen from 1 choice
[ 1.447006] usb 2-2: new full speed USB device using uhci_hcd and address 2
[ 1.634908] usb 2-2: configuration #1 chosen from 1 choice
[ 1.708164] usb 1-6.1: new high speed USB device using ehci_hcd and address 4
[ 1.801668] usb 1-6.1: configuration #1 chosen from 1 choice
[ 2.076279] usb 1-6.1.1: new low speed USB device using ehci_hcd and address 5
[ 2.174932] usb 1-6.1.1: configuration #1 chosen from 1 choice
[ 6.580315] usb 1-6.1.2: new high speed USB device using ehci_hcd and address6
[ 6.683479] usb 1-6.1.2: configuration #1 chosen from 1 choice
[ 20.018671] usbcore: registered new interface driver btusb
[ 20.131703] usbcore: registered new interface driver usb-storage
[ 20.131988] usb-storage: device found at 6
[ 20.131991] usb-storage: waiting for device to settle before scanning
[ 20.207981] usb 1-6.1.2: USB disconnect, address 6
[ 20.291499] usbcore: registered new interface driver hiddev
[ 20.297052] input: Logitech USB Mouse as /devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6.1/1-6.1.1/1-6.1.1:1.0/input/input6
[ 20.297465] generic-usb 0003:046D:C00C.0001: input,hidraw0: USB HID v1.10 Mouse [Logitech USB Mouse] on usb-0000:00:1d.7-6.1.1/input0
[ 20.297534] usbcore: registered new interface driver usbhid
[ 20.297803] usbhid: v2.6:USB HID core driver
[ 26.552360] usb 1-6.1.2: new high speed USB device using ehci_hcd and address 7
[ 26.663506] usb 1-6.1.2: configuration #1 chosen from 1 choice
[ 26.709628] usb-storage: device found at 7
[ 26.709631] usb-storage: waiting for device to settle before scanning
[ 26.732387] usb-storage: device found at 7
[ 26.732390] usb-storage: waiting for device to settle before scanning
[ 31.709568] usb-storage: device scan complete
[ 31.733676] usb-storage: device scan complete
调制解调器工作
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 046d:c00c Logitech, Inc. Optical Wheel Mouse
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 413c:8000 Dell Computer Corp. BC02 Bluetooth Adapter
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E270 HSDPA/HSUPA Modem
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
dmesg | grep 'usb'
[ 0.134811] usbcore: registered new interface driver usbfs
[ 0.134826] usbcore: registered new interface driver hub
[ 0.134858] usbcore: registered new device driver usb
[ 0.360327] usb usb1: configuration #1 chosen from 1 choice
[ 0.360783] usb usb2: configuration #1 chosen from 1 choice
[ 0.361061] usb usb3: configuration #1 chosen from 1 choice
[ 0.361611] usb usb4: configuration #1 chosen from 1 choice
[ 1.144122] usb 2-2: new full speed USB device using uhci_hcd and address 2
[ 1.346896] usb 2-2: configuration #1 chosen from 1 choice
[ 1.588072] usb 3-1: new low speed USB device using uhci_hcd and address 2
[ 1.761204] usb 3-1: configuration #1 chosen from 1 choice
[ 5.972042] usb 1-1: new high speed USB device using ehci_hcd and address 4
[ 6.115438] usb 1-1: configuration #1 chosen from 1 choice
[ 19.990565] usbcore: registered new interface driver usbserial
[ 19.991429] usb-storage: device found at 4
[ 19.991432] usb-storage: waiting for device to settle before scanning
[ 20.017260] usbcore: registered new interface driver usb-storage
[ 20.017305] usbcore: registered new interface driver usbserial_generic
[ 20.017308] usbserial: USB Serial Driver core
[ 20.017817] usb-storage: device found at 4
[ 20.017820] usb-storage: waiting for device to settle before scanning
[ 20.070796] usbcore: registered new interface driver btusb
[ 20.229525] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 20.229776] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[ 20.229843] usbcore: registered new interface driver option
[ 20.230396] usbcore: registered new interface driver hiddev
[ 20.246280] input: Logitech USB Mouse as /devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.0/input/input6
[ 20.246438] generic-usb 0003:046D:C00C.0001: input,hidraw0: USB HID v1.10 Mouse [Logitech USB Mouse] on usb-0000:00:1d.1-1/input0
[ 20.246479] usbcore: registered new interface driver usbhid
[ 20.246483] usbhid: v2.6:USB HID core driver
[ 25.436579] usb-storage: device scan complete
[ 25.437674] usb-storage: device scan complete
答案1
鉴于输出,我们可以做出以下假设:
- 这与硬件故障无关。
- 该调制解调器有一个带有 Windows 驱动程序的虚拟 CD-ROM,但它们毫无用处,而且在这里只会令人恼火。
- ubuntu modemmanager 软件包专门用于处理这些问题(例如,禁止安装假 CD-ROM),并且拥有不断增长的调制解调器和服务提供商数据库。请参阅维基百科如果他们已经有了你的,如果没有,该如何添加。
- 不应该需要手工制作的文本,如
wvdial.conf
或99-udev-huawei-rules.conf
如上所述这里,它应该可以开箱即用。 - 这很可能是一个错误、一个缺失的条目或两者兼而有之。它甚至可能已经修复,因此您可以通过尝试 modemmanager / networkmanager PPA 或测试它是否在带有 live CD 的 oneiric 中工作来获得一些成功。
- 如果您要求提供商提供其调制解调器的旧版本,您甚至可能会立即获得成功(如果它与您的合同捆绑在一起,该计划的有效期超过六个月,并且商店的销售人员足够聪明,会将退回的调制解调器放在抽屉里,随便您怎么说。)
答案2
在 Windows 7 中,我注意到我的 E156G(黑色“3”三意大利 3G 互联网提供商)只能连接到 USB HUB,这可能是 HUB 过滤的通信问题。对于通过 WMWare Windows XP 虚拟化端口的扫描仪驱动程序,也存在类似的解决方案。
两个驱动程序都与 USB HUB 相符,原始拨号器在 Windows 7 上工作正常,但如果我将其直接插入 USB 笔记本电脑端口,则只有一个驱动程序,设备无法完全识别,拨号器也无法识别硬件。第二个驱动程序没有出现。因此,请尝试在设备之间使用 USB HUB。
我的 USB HUB 是 Targus 半透明蓝色 HUB(Targus 超迷你 USB 2.0 4 端口集线器)。
答案3
您的调制解调器应该可以在任何 USB 上使用,但硬盘通常不能在笔记本电脑上使用,因为并非所有 USB 都一样(有些不提供电源 - 或者可能对硬盘供电不足)。我的笔记本电脑上有 2 个 USB 和 1 个 USB+火线,无法通过外部电源供电的硬盘只能在 USB+火线上使用。带有 PSU 的硬盘可以在所有 USB 上使用。
答案4
您需要做的是确保连接时处于正确的模式。也就是说,它应该被识别为调制解调器而不是光盘。有几种方法可以实现这一点,一种方法是确定它看起来像的光盘的 ID,通常是 sr*,其中 * 可以是某个数字。您需要使用
sudo eject /dev/sr1
将 1 替换为您在 dmesg 中查看的相关标识符。
您可以使用 usb-modeswitch 自动为您完成此操作。如果我没记错的话,它可以在 ubuntu repo 中使用。 链接在这里
编辑:
[Dialer cdma]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Baud = 115200
SetVolume = 0
; New PPPD = yes
Modem = /dev/ttyUSB0
Dial Command = ATDT
Phone = #777
Password = mts
Username = [email protected]
/etc/wvdial.conf (END)
这是我的 wvdial.conf,您需要根据您使用的运营商和您的位置更改用户名和密码。
是的,当调制解调器工作时,它既被检测为存储设备,又被检测为调制解调器。