Ubuntu 无法检测到具有 Airtel 4G 连接的华为 E392 USB 调制解调器。
输出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 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 003 Device 002: ID 0461:4d15 Primax Electronics, Ltd Dell Optical Mouse
Bus 003 Device 003: ID 04b3:3025 IBM Corp.
Bus 003 Device 006: ID 12d1:1505 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard
输出dmesg
[ 331.084423] usb 3-7: new high-speed USB device number 6 using xhci_hcd
[ 331.103177] usb 3-7: ep 0x81 - rounding interval to 32768 microframes, ep desc says 0 microframes
[ 331.103184] usb 3-7: ep 0x1 - rounding interval to 32768 microframes, ep desc says 0 microframes
[ 331.109954] scsi8 : usb-storage 3-7:1.0
[ 332.109577] scsi 8:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 0
[ 332.157291] sr0: scsi3-mmc drive: 0x/0x caddy
[ 332.157626] sr 8:0:0:0: Attached scsi CD-ROM sr0
[ 332.157852] sr 8:0:0:0: Attached scsi generic sg1 type 5
[ 332.291031] scsi 8:0:0:0: killing request
有人可以帮我解决一下吗?
答案1
在终端中运行
sudo -H gedit /lib/udev/rules.d/40-usb_modeswitch.rules
并在文件中添加一行
ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1505", RUN+="usb_modeswitch '%b/%k'"
然后运行
sudo -H gedit /etc/usb_modeswitch.d/12d1:1505
并将此文本粘贴到编辑器中
TargetVendor= 0x12d1
TargetProduct= 0x1505
MessageContent="55534243123456780000000000000011062000000100000000000000000000"
保存文件。
拔下调制解调器并重新插入。大约 20 秒后尝试建立连接。