HP lt4112 LTE/HSPA+ Gobi 4G 调制解调器(华为 ME906E)QMI 无法正常工作 14.04

HP lt4112 LTE/HSPA+ Gobi 4G 调制解调器(华为 ME906E)QMI 无法正常工作 14.04

更新:该调制解调器可与 Ubuntu 16.04 一起开箱运行!

HP lt4112 LTE/HSPA+ Gobi 4G 调制解调器(华为 ME906E,M.2 => USB)

可以看到“以太网模块”,但看不到宽带调制解调器。我尝试了很多方法,有一次随机弹出一个询问 SIM 卡的窗口。我输入了它,网络管理器中一切都正常显示,我可以连接并使用 Ubuntu 的 LTE 网络。重启后一切都消失了,之后无法重现。硬件在 Windows 下工作正常,同一设备的 GPS 工作正常。

据我所知,该调制解调器不适用于串行,仅适用于 wdm。

奇怪的是:/dev 下没有 cdc_* 设备!!因此,使用 qmicli 等的所有其他魔法都无法尝试。

PC 本身(HP EliteBook 745)有点挑剔。它需要额外的内核选项使 WLAN 也能正常工作......

USB:03f0:581d

lsusb -d 03f0:581d
Bus 002 Device 002: ID 03f0:581d Hewlett-Packard

看起来不错

rfkill list
4: hp-wwan: Wireless WAN
    Soft blocked: no
    Hard blocked: no

看起来不错

uname -a
Linux HPEB 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

qmi_wwan 应该从 3.4 版本开始就可以工作

sudo modprobe qcserial vendor=0x03f0 product=0x581d

没有错误

ifconfig
usb0      Link encap:Ethernet  HWaddr 02:1e:10:1f:00:00  
          inet6 addr: fe80::1e:10ff:fe1f:0/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:90 (90.0 B)

你有想法吗?我花了两天时间阅读论坛和类似问题的答案,但还是卡住了。这是我第一次不在这里问就无法在 Ubuntu 上工作。


通过答案中提供的补丁成功进行 modprobe 后的系统日志:

Mar 31 16:24:13 HPEB kernel: [  217.030297] usbcore: registered new interface driver qcserial
Mar 31 16:24:13 HPEB kernel: [  217.030391] usbserial: USB Serial support registered for Qualcomm USB modem
Mar 31 16:24:13 HPEB kernel: [  217.037026] qcserial 2-2:2.2: Qualcomm USB modem converter detected
Mar 31 16:24:13 HPEB kernel: [  217.037305] usb 2-2: Qualcomm USB modem converter now attached to ttyUSB0
Mar 31 16:24:13 HPEB kernel: [  217.076810] qcserial 2-2:2.3: Qualcomm USB modem converter detected
Mar 31 16:24:13 HPEB kernel: [  217.077191] usb 2-2: Qualcomm USB modem converter now attached to ttyUSB1

输出lsusb -vd 03f0:581d

Bus 002 Device 002: ID 03f0:581d Hewlett-Packard 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x03f0 Hewlett-Packard
  idProduct          0x581d 
  bcdDevice            2.28
  iManufacturer           2 Hewlett-Packard
  iProduct                3 HP lt4112 Gobi 4G Module
  iSerial                 4 0123456712ABCA17
  bNumConfigurations      3
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          157
    bNumInterfaces          5
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      1 
      bInterfaceProtocol      2 
      iInterface             50 HP lt4112 Gobi 4G Module
      Endpoint Descriptor:
    bLength                 7
    bDescriptorType         5
    bEndpointAddress     0x81  EP 1 IN
    bmAttributes            2
      Transfer Type            Bulk
      Synch Type               None
      Usage Type               Data
    wMaxPacketSize     0x0200  1x 512 bytes
    bInterval               0
      Endpoint Descriptor:
    bLength                 7
    bDescriptorType         5
    bEndpointAddress     0x01  EP 1 OUT
    bmAttributes            2
      Transfer Type            Bulk
      Synch Type               None
      Usage Type               Data
    wMaxPacketSize     0x0200  1x 512 bytes
    bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      1 
      bInterfaceProtocol      3 
      iInterface             51 HP lt4112 Gobi 4G Module
      Endpoint Descriptor:
    bLength                 7
    bDescriptorType         5
    bEndpointAddress     0x82  EP 2 IN
    bmAttributes            2
      Transfer Type            Bulk
      Synch Type               None
      Usage Type               Data
    wMaxPacketSize     0x0200  1x 512 bytes
    bInterval               0
      Endpoint Descriptor:
    bLength                 7
    bDescriptorType         5
    bEndpointAddress     0x02  EP 2 OUT
    bmAttributes            2
      Transfer Type            Bulk
      Synch Type               None
      Usage Type               Data
    wMaxPacketSize     0x0200  1x 512 bytes
    bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      1 
      bInterfaceProtocol      1 
      iInterface             49 HP lt4112 Gobi 4G Module
      ** UNRECOGNIZED:  05 24 00 10 01
      ** UNRECOGNIZED:  05 24 01 00 00
      ** UNRECOGNIZED:  04 24 02 02
      ** UNRECOGNIZED:  05 24 06 00 00
      Endpoint Descriptor:
    bLength                 7
    bDescriptorType         5
    bEndpointAddress     0x84  EP 4 IN
    bmAttributes            3
      Transfer Type            Interrupt
      Synch Type               None
      Usage Type               Data
    wMaxPacketSize     0x000a  1x 10 bytes
    bInterval               9
      Endpoint Descriptor:
    bLength                 7
    bDescriptorType         5
    bEndpointAddress     0x83  EP 3 IN
    bmAttributes            2
      Transfer Type            Bulk
      Synch Type               None
      Usage Type               Data
    wMaxPacketSize     0x0200  1x 512 bytes
    bInterval               0
      Endpoint Descriptor:
    bLength                 7
    bDescriptorType         5
    bEndpointAddress     0x03  EP 3 OUT
    bmAttributes            2
      Transfer Type            Bulk
      Synch Type               None
      Usage Type               Data
    wMaxPacketSize     0x0200  1x 512 bytes
    bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      1 
      bInterfaceProtocol      7 
      iInterface             55 HP lt4112 Gobi 4G Module
      Endpoint Descriptor:
    bLength                 7
    bDescriptorType         5
    bEndpointAddress     0x86  EP 6 IN
    bmAttributes            3
      Transfer Type            Interrupt
      Synch Type               None
      Usage Type               Data
    wMaxPacketSize     0x0008  1x 8 bytes
    bInterval               9
      Endpoint Descriptor:
    bLength                 7
    bDescriptorType         5
    bEndpointAddress     0x85  EP 5 IN
    bmAttributes            2
      Transfer Type            Bulk
      Synch Type               None
      Usage Type               Data
    wMaxPacketSize     0x0200  1x 512 bytes
    bInterval               0
      Endpoint Descriptor:
    bLength                 7
    bDescriptorType         5
    bEndpointAddress     0x04  EP 4 OUT
    bmAttributes            2
      Transfer Type            Bulk
      Synch Type               None
      Usage Type               Data
    wMaxPacketSize     0x0200  1x 512 bytes
    bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        4
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      1 
      bInterfaceProtocol      5 
      iInterface             53 HP lt4112 Gobi 4G Module
      Endpoint Descriptor:
    bLength                 7
    bDescriptorType         5
    bEndpointAddress     0x87  EP 7 IN
    bmAttributes            2
      Transfer Type            Bulk
      Synch Type               None
      Usage Type               Data
    wMaxPacketSize     0x0200  1x 512 bytes
    bInterval               0
      Endpoint Descriptor:
    bLength                 7
    bDescriptorType         5
    bEndpointAddress     0x05  EP 5 OUT
    bmAttributes            2
      Transfer Type            Bulk
      Synch Type               None
      Usage Type               Data
    wMaxPacketSize     0x0200  1x 512 bytes
    bInterval               0
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          149
    bNumInterfaces          5
    bConfigurationValue     2
    iConfiguration          0 
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         2 Communications
      bInterfaceSubClass      6 Ethernet Networking
      bInterfaceProtocol      0 
      iInterface             57 HP lt4112 Gobi 4G Module
      CDC Header:
    bcdCDC               1.10
      CDC Union:
    bMasterInterface        0
    bSlaveInterface         1 
      CDC Ethernet:
    iMacAddress                     11 021E101F0000
    bmEthernetStatistics    0x00000000
    wMaxSegmentSize               1514
    wNumberMCFilters            0x0000
    bNumberPowerFilters              0
      Endpoint Descriptor:
    bLength                 7
    bDescriptorType         5
    bEndpointAddress     0x82  EP 2 IN
    bmAttributes            3
      Transfer Type            Interrupt
      Synch Type               None
      Usage Type               Data
    wMaxPacketSize     0x0010  1x 16 bytes
    bInterval               9
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 
      iInterface              0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       1
      bNumEndpoints           2
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 
      iInterface             57 HP lt4112 Gobi 4G Module
      Endpoint Descriptor:
    bLength                 7
    bDescriptorType         5
    bEndpointAddress     0x81  EP 1 IN
    bmAttributes            2
      Transfer Type            Bulk
      Synch Type               None
      Usage Type               Data
    wMaxPacketSize     0x0200  1x 512 bytes
    bInterval               0
      Endpoint Descriptor:
    bLength                 7
    bDescriptorType         5
    bEndpointAddress     0x01  EP 1 OUT
    bmAttributes            2
      Transfer Type            Bulk
      Synch Type               None
      Usage Type               Data
    wMaxPacketSize     0x0200  1x 512 bytes
    bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      1 
      bInterfaceProtocol      3 
      iInterface             51 HP lt4112 Gobi 4G Module
      Endpoint Descriptor:
    bLength                 7
    bDescriptorType         5
    bEndpointAddress     0x83  EP 3 IN
    bmAttributes            2
      Transfer Type            Bulk
      Synch Type               None
      Usage Type               Data
    wMaxPacketSize     0x0200  1x 512 bytes
    bInterval               0
      Endpoint Descriptor:
    bLength                 7
    bDescriptorType         5
    bEndpointAddress     0x02  EP 2 OUT
    bmAttributes            2
      Transfer Type            Bulk
      Synch Type               None
      Usage Type               Data
    wMaxPacketSize     0x0200  1x 512 bytes
    bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      1 
      bInterfaceProtocol      2 
      iInterface             50 HP lt4112 Gobi 4G Module
      Endpoint Descriptor:
    bLength                 7
    bDescriptorType         5
    bEndpointAddress     0x84  EP 4 IN
    bmAttributes            2
      Transfer Type            Bulk
      Synch Type               None
      Usage Type               Data
    wMaxPacketSize     0x0200  1x 512 bytes
    bInterval               0
      Endpoint Descriptor:
    bLength                 7
    bDescriptorType         5
    bEndpointAddress     0x03  EP 3 OUT
    bmAttributes            2
      Transfer Type            Bulk
      Synch Type               None
      Usage Type               Data
    wMaxPacketSize     0x0200  1x 512 bytes
    bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        4
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      1 
      bInterfaceProtocol      5 
      iInterface             53 HP lt4112 Gobi 4G Module
      Endpoint Descriptor:
    bLength                 7
    bDescriptorType         5
    bEndpointAddress     0x85  EP 5 IN
    bmAttributes            2
      Transfer Type            Bulk
      Synch Type               None
      Usage Type               Data
    wMaxPacketSize     0x0200  1x 512 bytes
    bInterval               0
      Endpoint Descriptor:
    bLength                 7
    bDescriptorType         5
    bEndpointAddress     0x04  EP 4 OUT
    bmAttributes            2
      Transfer Type            Bulk
      Synch Type               None
      Usage Type               Data
    wMaxPacketSize     0x0200  1x 512 bytes
    bInterval               0
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          118
    bNumInterfaces          3
    bConfigurationValue     3
    iConfiguration          0 
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              500mA
    Interface Association:
      bLength                 8
      bDescriptorType        11
      bFirstInterface         0
      bInterfaceCount         2
      bFunctionClass          2 Communications
      bFunctionSubClass      14 
      bFunctionProtocol       0 
      iFunction               0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         2 Communications
      bInterfaceSubClass     14 
      bInterfaceProtocol      0 
      iInterface             56 HP lt4112 Gobi 4G Module
      CDC Header:
    bcdCDC               1.10
      CDC Union:
    bMasterInterface        0
    bSlaveInterface         1 
      CDC MBIM:
    bcdMBIMVersion       1.00
    wMaxControlMessage   4096
    bNumberFilters       32
    bMaxFilterSize       128
    wMaxSegmentSize      1500
    bmNetworkCapabilities 0x20
      8-byte ntb input size
      UNRECOGNIZED CDC:  08 24 1c 00 01 40 dc 05
      Endpoint Descriptor:
    bLength                 7
    bDescriptorType         5
    bEndpointAddress     0x82  EP 2 IN
    bmAttributes            3
      Transfer Type            Interrupt
      Synch Type               None
      Usage Type               Data
    wMaxPacketSize     0x0040  1x 64 bytes
    bInterval               9
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      2 
      iInterface             13 MBIM Data
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       1
      bNumEndpoints           2
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      2 
      iInterface             13 MBIM Data
      Endpoint Descriptor:
    bLength                 7
    bDescriptorType         5
    bEndpointAddress     0x81  EP 1 IN
    bmAttributes            2
      Transfer Type            Bulk
      Synch Type               None
      Usage Type               Data
    wMaxPacketSize     0x0200  1x 512 bytes
    bInterval               0
      Endpoint Descriptor:
    bLength                 7
    bDescriptorType         5
    bEndpointAddress     0x01  EP 1 OUT
    bmAttributes            2
      Transfer Type            Bulk
      Synch Type               None
      Usage Type               Data
    wMaxPacketSize     0x0200  1x 512 bytes
    bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      1 
      bInterfaceProtocol      5 
      iInterface             53 HP lt4112 Gobi 4G Module
      Endpoint Descriptor:
    bLength                 7
    bDescriptorType         5
    bEndpointAddress     0x83  EP 3 IN
    bmAttributes            2
      Transfer Type            Bulk
      Synch Type               None
      Usage Type               Data
    wMaxPacketSize     0x0200  1x 512 bytes
    bInterval               0
      Endpoint Descriptor:
    bLength                 7
    bDescriptorType         5
    bEndpointAddress     0x02  EP 2 OUT
    bmAttributes            2
      Transfer Type            Bulk
      Synch Type               None
      Usage Type               Data
    wMaxPacketSize     0x0200  1x 512 bytes
    bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      3
Device Status:     0x0000
  (Bus Powered)

答案1

我在 Ubuntu 14.04.2 和 15.04 上成功运行。希望这可以帮助人们找出实际问题所在,并修复它。

记得插入 SIM 卡,否则设备不会出现在 NetworkManager 中。在 15.04 中,它显示为“未启用”。

# lsusb -v -d 03f0:581d | egrep 'i(Product|Manufacturer)'
  iManufacturer           2 Hewlett-Packard
  iProduct                3 HP lt4112 Gobi 4G Module
# echo '03f0 581d' > /sys/bus/usb-serial/drivers/generic/new_id
# service modemmanager restart

约10秒后,弹出PIN码查询窗口。

答案2

我今天在 Ubuntu 安装上成功安装了它。这是QCSERIAL.C 需要修补的模块。您可以在此处找到预修补的文件:http://thuis.schroth.nl:8008/qcserial/

确保您首先下载了内核头文件。

  1. sudo apt-get install linux-headers-$(uname -r)
  2. sudo rmmod qcserial
  3. 从上面给出的链接下载这 3 个文件并将它们放在单独的目录中,例如/tmp/compile
  4. cd /tmp/compile
  5. make
  6. 如果没有发生错误,则运行sudo make install
  7. sudo modprobe qcserial

现在您将在网络管理器中找到该卡并可以使用它。

记住,每次更新内核时都要重做此操作,直到 Ubuntu 团队修补了这个错误。

-==-= 与所发生的变化相关的更新

您能否在重新加载 qcserial 模块后传递系统日志的输出...问题是 qcserial 为您提供了一个设备。/dev/ttyUSB2 并且它还需要有 /dev/ttyUSB3。ttyUSB3 是网络管理器与之通信的设备...

我从以下位置获取了代码:http://lxr.free-electrons.com/source/drivers/usb/serial/qcserial.c我已经删除并添加了:

此代码是

case 0:
case 2:
  dev_dbg(dev, "Modem port found\n");
  break;
case 1:
  dev_dbg(dev, "DM/DIAG interface found\n");
  break;
case 5:
  dev_dbg(dev, "NMEA GPS interface found\n");
  break;
default:
/* don't claim any unsupported interface */
altsetting = -1;
break;

替换为

case 0:
  dev_dbg(dev, "Modem port found\n");
  break;
case 1:
  dev_dbg(dev, "DM/DIAG interface found\n");
  break;
case 2:
  dev_dbg(dev, "Modem port found\n");
  break;
case 3:
  dev_dbg(dev, "PCSC interface found\n");
  break;
case 5:
  dev_dbg(dev, "NMEA GPS interface found\n");
  break;
         

这将通过给定的脚本完成该工作。

答案3

sudo modprobe qcserial 供应商=0x03f0 产品=0x581d

这总是错误的,即使它恰好能工作!但是您的日志显示 qcserial 驱动程序绑定成功,所以这不是问题。

ifconfig usb0 链路封装:以太网 HWaddr 02:1e:10:1f:00:00

如果驱动程序是 qmi_wwan,则“usb0”接口名称是意外的,因此我认为此设备由 cdc_ether 驱动程序处理。对吗?调制解调器可能有几种不同的模式,其中一个使用 cdc_ether,而另一个使用 qmi_wwan。您能否提供输出

lsusb -vd 03f0:581d

这将显示该设备 ID 的所有可用配置。我猜你想要一个非默认配置来支持 qmi_wwan。

(也可以将调制解调器与 cdc_ether 一起使用。然后您将使用 AT 命令而不是 QMI 来管理它。但是 ModemManager 可能默认不支持此调制解调器,因为 QMI 通常更优越。而且更“标准”,许多不同供应商的基于 Qualcomm 的调制解调器都类似)

相关内容