HP lt4112 Modem 4G LTE / HSPA + Gobi (Huawei ME906E) QMI não funciona 14.04

2

UPDATE: o modem funciona com o Ubuntu 16.04!

Modem 4G HP lt4112 LTE / HSPA + Gobi (Huawei ME906E, M.2 = > USB)

O "módulo ethernet" é visto, mas não o modem de banda larga. Eu estava tentando MUITAS coisas, e uma vez uma janela pedindo o SIM apareceu aleatoriamente. Eu entrei, tudo apareceu corretamente no gerenciador de rede, eu poderia conectar e usar a rede LTE do Ubuntu. Após reiniciar tudo desapareceu, não pôde reproduzir desde então. O hardware funciona no Windows, o GPS do mesmo dispositivo funciona perfeitamente.

Este modem não funciona com serial, apenas wdm até onde eu sei.

O que é estranho: não há um dispositivo cdc_ * em / dev !! Então todas as outras magias com o qmicli etc não podem ser tentadas.

O próprio PC (HP EliteBook 745) é um pouco exigente. Ele precisava de opções adicionais de kernel para fazer com que até mesmo a WLAN funcionasse ...

USB: 03f0: 581d

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

parece ok

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

parece ok

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 deve estar funcionando desde 3.4

sudo modprobe qcserial vendor=0x03f0 product=0x581d

sem erro

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)

Você tem alguma ideia? Passei dois dias com fóruns de leitura e respostas a perguntas semelhantes, mas fiquei preso. Esta é a primeira vez que não consigo trabalhar no Ubuntu sem perguntar aqui.

Syslog após modprobe de sucesso por patch fornecido em resposta:

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

Saída de 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)
    
por William 31.03.2015 / 08:04

3 respostas

0

Eu fiz isso funcionando hoje na minha instalação do Ubuntu. É o módulo QCSERIAL.C que precisa ser corrigido. Você pode encontrar os arquivos pré-corrigidos aqui: link

Certifique-se de baixar primeiro os cabeçalhos do kernel.

  1. sudo apt-get install linux-headers-$(uname -r)
  2. sudo rmmod qcserial
  3. Faça o download dos três arquivos do meu link acima e coloque-os em um diretório separado, por exemplo, %código%
  4. /tmp/compile
  5. cd /tmp/compile
  6. se nenhum erro ocorrer, execute make
  7. sudo make install

Agora você encontrará o cartão no gerenciador de rede e poderá usá-lo.

Lembre-se de refazer isso toda vez que fizer uma atualização do kernel, até que os caras do Ubuntu consertem esse bug.

- == - = update em relação ao que foi alterado

Você pode por favor passar a saída do syslog depois de ter recarregado o módulo qcserial ... o problema é qcserial lhe dá um dispositivo. / dev / ttyUSB2 e precisa ter o / dev / ttyUSB3 também. ttyUSB3 é o dispositivo onde o gerente da rede fala com ...

eu peguei o código de: link e eu removi e adicionado:

Este código foi

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;

substituído por este

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;

Isso faz o trabalho com o script fornecido.

    
por philip 31.03.2015 / 11:23
0
% bl0ck_qu0te%

Isso sempre está errado, mesmo quando acontece de funcionar! Mas você log mostra que o driver qcserial se liga com sucesso, por isso não é um problema aqui.

% bl0ck_qu0te%

O nome da interface "usb0" é inesperado se o driver for qmi_wwan, então acho que este dispositivo é manipulado pelo driver cdc_ether aqui. Isso está correto? O modem provavelmente tem vários modos diferentes, onde um usa o cdc_ether enquanto outro usa o qmi_wwan. Você poderia fornecer a saída de

lsusb -vd 03f0:581d

Isso mostrará todas as configurações disponíveis para esse ID de dispositivo. Eu estou supondo que você quer uma configuração não-padrão para o suporte qmi_wwan.

(É possível usar o modem com o cdc_ether também. Você então usará os comandos AT para gerenciá-lo em vez do QMI. Mas o ModemManager provavelmente não suporta isso por padrão para este modem, porque o QMI normalmente é muito superior E mais "padrão", sendo semelhante entre os modems baseados em Qualcomm de muitos fornecedores diferentes

    
por NNN 07.04.2015 / 08:01
0

Eu consegui trabalhar no Ubuntu 14.04.2 e 15.04. Espero que isso ajude alguém a descobrir qual é o problema real e corrija-o.

Lembre-se de inserir o cartão SIM, caso contrário, o dispositivo não aparecerá no NetworkManager. Em 15.04, ele é mostrado como "não ativado".

# 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

Após 10 segundos, a janela de consulta do PIN é exibida.

    
por mpesari 20.05.2015 / 14:19