Ubuntu 16.04 USB 调制解调器被检测为 CD-ROM。无法连接

Ubuntu 16.04 USB 调制解调器被检测为 CD-ROM。无法连接

我在 Ubuntu 16.04 中安装 USB 调制解调器时遇到了困难。大多数情况下,我连接 USB 宽带调制解调器时,它都是以 CD-ROM 的形式连接的。

我从网上了解到,usb-modeswitch可以使用它将其切换到 USB 设备,但无法切换。网络管理器中甚至没有显示“启用移动宽带”选项(可能是因为它没有被检测为调制解调器)。

我尝试解决此问题的方法没有运气

  1. 尝试过usb_modeswitch

    $sudo usb_modeswitch -I -W -c 12d1\:1505
    
    Read config file: 12d1:1505
    
     * usb_modeswitch: handle USB devices with multiple modes
     * Version 2.2.5 (C) Josua Dietze 2015
     * Based on libusb1/libusbx
    
     ! PLEASE REPORT NEW CONFIGURATIONS !
    
    DefaultVendor=  0x12d1
    DefaultProduct= 0x1505
    MessageContent="55534243123456780000000000000011062000000100000000000000000000"
    NeedResponse=0
    
    InquireDevice=1
    
    Look for default devices ...
      found USB ID 8087:8001
      found USB ID 1d6b:0002
      found USB ID 1d6b:0003
      found USB ID 05e3:0608
      found USB ID 12d1:1505
       vendor ID matched
       product ID matched
      found USB ID 17ef:600e
      found USB ID 1d6b:0002
     Found devices in default mode (1)
    Access device 012 on bus 002
    Current configuration number is 1
    Use interface number 0
    Use endpoints 0x08 (out) and 0x87 (in)
    Inquire device details; driver will be detached ...
    Looking for active driver ...
     No active driver found. Detached before or never attached
    
    SCSI inquiry data (for identification)
    -------------------------
      Vendor String: HUAWEI  
       Model String: Mass Storage    
    Revision String: 2.31
    -------------------------
    
    USB description data (for identification)
    -------------------------
    Manufacturer: HUA?WEI TECHNOLOGIES
         Product: HUAWEI Mobile
      Serial No.: ???????????????????
    -------------------------
    Set up interface 0
    Use endpoint 0x08 for message sending ...
    Trying to send message 1 to endpoint 0x08 ...
     OK, message successfully sent
    Reset response endpoint 0x87
    Reset message endpoint 0x08
    -> Run lsusb to note any changes. Bye!
    
    $sudo modprobe usbserial vendor=0x12d1 product=0x1505
    
  2. 安装sakis3g后连接到调制解调器但没有成功,出现错误。

  3. 降级usb-modemswitchusb-modeswitch-data14.04 版本,因为我的调制解调器在该版本下运行。

dmesg输出:

[ 6720.186115] wlp4s0: deauthenticating from 24:de:c6:92:e6:32 by local choice (Reason: 3=DEAUTH_LEAVING)
[ 6720.385636] userif-2: sent link down event.
[ 6720.385643] userif-2: sent link up event.
[ 6770.784741] userif-2: sent link down event.
[ 6770.784748] userif-2: sent link up event.
[ 6773.520387] wlp4s0: authenticate with 24:de:c6:92:e6:32
[ 6773.526287] wlp4s0: send auth to 24:de:c6:92:e6:32 (try 1/3)
[ 6773.530702] wlp4s0: authenticated
[ 6773.534123] wlp4s0: associate with 24:de:c6:92:e6:32 (try 1/3)
[ 6773.541699] wlp4s0: RX AssocResp from 24:de:c6:92:e6:32 (capab=0x431 status=0 aid=1)
[ 6773.543920] wlp4s0: associated
[ 6773.648434] bridge-enp0s25: disabling the bridge
[ 6773.674082] bridge-enp0s25: down
[ 6773.674088] bridge-enp0s25: detached
[ 6773.674125] /dev/vmnet: open called by PID 2607 (vmnet-bridge)
[ 6773.674134] /dev/vmnet: hub 0 does not exist, allocating memory.
[ 6773.674151] /dev/vmnet: port on hub 0 successfully opened
[ 6773.674158] bridge-wlp4s0: device is wireless, enabling SMAC
[ 6773.674160] bridge-wlp4s0: up
[ 6773.674164] bridge-wlp4s0: attached
[ 6773.774151] userif-2: sent link down event.
[ 6773.774154] userif-2: sent link up event.
[ 7128.236448] e1000e: enp0s25 NIC Link is Down
[ 7128.436880] userif-2: sent link down event.
[ 7128.436883] userif-2: sent link up event.
[ 8602.833095] usb 2-4: new full-speed USB device number 12 using xhci_hcd
[ 8602.962666] usb 2-4: New USB device found, idVendor=12d1, idProduct=1505
[ 8602.962673] usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=4
[ 8602.962677] usb 2-4: Product: HUAWEI Mobile
[ 8602.962681] usb 2-4: Manufacturer: HUAÿWEI TECHNOLOGIES
[ 8602.962684] usb 2-4: SerialNumber: ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
[ 8602.963681] usb-storage 2-4:1.0: USB Mass Storage device detected
[ 8602.965891] scsi host8: usb-storage 2-4:1.0
[ 8603.967998] scsi 8:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 0
[ 8603.977960] sr 8:0:0:0: [sr0] scsi-1 drive
[ 8603.978316] sr 8:0:0:0: Attached scsi CD-ROM sr0
[ 8603.978518] sr 8:0:0:0: Attached scsi generic sg1 type 5

lsusb输出:

Bus 001 Device 002: ID 8087:8001 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 003: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 002 Device 012: ID 12d1:1505 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard
Bus 002 Device 011: ID 17ef:600e Lenovo 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub  

uname -ar输出:

Linux 01-Linux 4.4.8-040408-generic #201604200335 SMP Wed Apr 20 07:37:30 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

答案1

我遇到了同样的问题,我已经解决了。您需要为 Ubuntu 安装华为驱动程序。

1)配置
lsusb在终端中 的结果(12d1:15d2例如,我的华为的 pid 是)参见ubuntuforums.org 上的帖子

2)下载驱动程序:
华为数据卡 Linux(点击下载文件)。请参阅下载.usbmodem.com

3)安装
modemunlock.com 上的文章

相关内容