Huawei E3131

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Bjorn,
   my have a new USB 3G modem sold in Czech Republic by T-Mobile. So far it works for me only using the option driver and pppd. The 'qmi-network /dev/cdc-wdm0' does not work for me. Maybe it has no QMI interface ('modprobe qmi_wwan' does not log any new device found through dmesg but maybe that is because it is already claimed by cdc_ncm driver)? I haven't seen the virtual CD-ROM associated media errors with my old Huawei E372. I believe I can ignore them but is that because of the modem firmware being ... suboptimal? BTW, usb_modeswitch used to log that it flipped a device. Isn't this needed anymore?


Here is what is logged on linux-4.1.3 kernel:

# lsmod
...
ppp_async               8045  0
ppp_generic            30220  1 ppp_async
slhc                    5971  1 ppp_generic
option                 37732  0
usb_wwan                8415  1 option
usb_storage            57183  3 uas,ums_realtek
#

# gzip -dc /proc/config.gz | grep -i USB_NET
CONFIG_USB_NET_DRIVERS=y
# CONFIG_USB_NET_AX8817X is not set
# CONFIG_USB_NET_AX88179_178A is not set
# CONFIG_USB_NET_CDCETHER is not set
# CONFIG_USB_NET_CDC_EEM is not set
CONFIG_USB_NET_CDC_NCM=y
CONFIG_USB_NET_HUAWEI_CDC_NCM=y
CONFIG_USB_NET_CDC_MBIM=y
# CONFIG_USB_NET_DM9601 is not set
# CONFIG_USB_NET_SR9700 is not set
# CONFIG_USB_NET_SR9800 is not set
# CONFIG_USB_NET_SMSC75XX is not set
# CONFIG_USB_NET_SMSC95XX is not set
# CONFIG_USB_NET_GL620A is not set
CONFIG_USB_NET_NET1080=m
CONFIG_USB_NET_PLUSB=m
# CONFIG_USB_NET_MCS7830 is not set
# CONFIG_USB_NET_RNDIS_HOST is not set
# CONFIG_USB_NET_CDC_SUBSET is not set
# CONFIG_USB_NET_ZAURUS is not set
# CONFIG_USB_NET_CX82310_ETH is not set
# CONFIG_USB_NET_KALMIA is not set
CONFIG_USB_NET_QMI_WWAN=m
# CONFIG_USB_NET_INT51X1 is not set
# CONFIG_USB_NET_RNDIS_WLAN is not set
#

[  301.850141] usb 1-1.1: new high-speed USB device number 3 using xhci_hcd
[  301.954975] usb 1-1.1: New USB device found, idVendor=12d1, idProduct=15ca
[  301.954989] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  301.954995] usb 1-1.1: Product: HUAWEI Mobile
[  301.955000] usb 1-1.1: Manufacturer: HUAWEI
[  301.955014] usb 1-1.1: SerialNumber: FFFFFFFFFFFFFFFF
[  302.002613] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[  302.003190] scsi host7: usb-storage 1-1.1:1.0
[  303.016259] scsi 7:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
[  303.025890] sr 7:0:0:0: [sr1] scsi-1 drive
[  303.026802] sr 7:0:0:0: Attached scsi CD-ROM sr1
[  303.027482] sr 7:0:0:0: Attached scsi generic sg3 type 5
[  303.031504] scsi 7:0:0:1: Direct-Access     HUAWEI   TF CARD Storage  2.31 PQ: 0 ANSI: 2
[  303.032127] sd 7:0:0:1: Attached scsi generic sg4 type 0
[  303.049740] sd 7:0:0:1: [sdc] Attached SCSI removable disk
[  303.106042] Buffer I/O error on dev sr1, logical block 512, async page read
[  303.359262] usb 1-1.1: USB disconnect, device number 3
[  304.032875] usb 1-1.1: new high-speed USB device number 4 using xhci_hcd
[  304.137604] usb 1-1.1: New USB device found, idVendor=12d1, idProduct=1506
[  304.137617] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  304.137624] usb 1-1.1: Product: HUAWEI Mobile
[  304.137629] usb 1-1.1: Manufacturer: HUAWEI
[  304.554118] huawei_cdc_ncm 1-1.1:1.1: MAC-Address: 82:a9:4a:09:84:2e
[  304.576776] huawei_cdc_ncm 1-1.1:1.1: cdc-wdm0: USB WDM device
[  304.577728] huawei_cdc_ncm 1-1.1:1.1 wwan0: register 'huawei_cdc_ncm' at usb-0000:0b:00.0-1.1, Huawei CDC NCM device, 82:a9:4a:09:84:2e
[  304.579135] usb-storage 1-1.1:1.4: USB Mass Storage device detected
[  304.579425] scsi host8: usb-storage 1-1.1:1.4
[  304.579984] usb-storage 1-1.1:1.5: USB Mass Storage device detected
[  304.580141] scsi host9: usb-storage 1-1.1:1.5
[  304.640300] huawei_cdc_ncm 1-1.1:1.1 wwp11s0u1u1i1: renamed from wwan0
[  304.843014] usbcore: registered new interface driver option
[  304.843433] usbserial: USB Serial support registered for GSM modem (1-port)
[  304.843550] option 1-1.1:1.0: GSM modem (1-port) converter detected
[  304.844256] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB0
[  304.844361] option 1-1.1:1.2: GSM modem (1-port) converter detected
[  304.844661] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB1
[  304.844694] option 1-1.1:1.3: GSM modem (1-port) converter detected
[  304.844987] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB2
[  305.589216] scsi 9:0:0:0: Direct-Access     HUAWEI   TF CARD Storage  2.31 PQ: 0 ANSI: 2
[  305.589671] scsi 8:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
[  305.592228] sr 8:0:0:0: [sr1] scsi-1 drive
[  305.592488] sd 9:0:0:0: Attached scsi generic sg3 type 0
[  305.598458] sr 8:0:0:0: Attached scsi CD-ROM sr1
[  305.599261] sr 8:0:0:0: Attached scsi generic sg4 type 5
[  305.599643] sd 9:0:0:0: [sdc] Attached SCSI removable disk
[  305.656874] sr 8:0:0:0: [sr1] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[  305.656879] sr 8:0:0:0: [sr1] Sense Key : Medium Error [current]
[  305.656881] sr 8:0:0:0: [sr1] Add. Sense: Unrecovered read error
[  305.656884] sr 8:0:0:0: [sr1] CDB: Read(10) 28 00 00 00 ff fe 00 00 02 00
[  305.656899] blk_update_request: critical medium error, dev sr1, sector 262136
[  305.664071] sr 8:0:0:0: [sr1] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[  305.664079] sr 8:0:0:0: [sr1] Sense Key : Medium Error [current]
[  305.664085] sr 8:0:0:0: [sr1] Add. Sense: Unrecovered read error
[  305.664091] sr 8:0:0:0: [sr1] CDB: Read(10) 28 00 00 00 ff fe 00 00 02 00
[  305.664097] blk_update_request: critical medium error, dev sr1, sector 262136
[  305.664104] Buffer I/O error on dev sr1, logical block 32767, async page read
[  305.709159] sr 8:0:0:0: [sr1] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[  305.709173] sr 8:0:0:0: [sr1] Sense Key : Medium Error [current]
[  305.709181] sr 8:0:0:0: [sr1] Add. Sense: Unrecovered read error
[  305.709189] sr 8:0:0:0: [sr1] CDB: Read(10) 28 00 00 00 ff fc 00 00 02 00
[  305.709197] blk_update_request: critical medium error, dev sr1, sector 262128
[  305.716697] sr 8:0:0:0: [sr1] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[  305.716706] sr 8:0:0:0: [sr1] Sense Key : Medium Error [current]
[  305.716712] sr 8:0:0:0: [sr1] Add. Sense: Unrecovered read error
[  305.716718] sr 8:0:0:0: [sr1] CDB: Read(10) 28 00 00 00 ff fc 00 00 02 00
[  305.716724] blk_update_request: critical medium error, dev sr1, sector 262128
[  305.716732] Buffer I/O error on dev sr1, logical block 32766, async page read
[  354.016705] PPP generic driver version 2.4.2


Bus 001 Device 004: ID 12d1:1506 Huawei Technologies Co., Ltd. Modem/Networkcard
Device Descriptor:
   bLength                18
   bDescriptorType         1
   bcdUSB               2.00
   bDeviceClass            0
   bDeviceSubClass         0
   bDeviceProtocol         0
   bMaxPacketSize0        64
   idVendor           0x12d1 Huawei Technologies Co., Ltd.
   idProduct          0x1506 Modem/Networkcard
   bcdDevice            1.02
   iManufacturer           1 HUAWEI
   iProduct                2 HUAWEI Mobile
   iSerial                 0
   bNumConfigurations      1
   Configuration Descriptor:
     bLength                 9
     bDescriptorType         2
     wTotalLength          225
     bNumInterfaces          6
     bConfigurationValue     1
     iConfiguration          0
     bmAttributes         0x80
       (Bus Powered)
     MaxPower              500mA
     Interface Descriptor:
       bLength                 9
       bDescriptorType         4
       bInterfaceNumber        0
       bAlternateSetting       0
       bNumEndpoints           3
       bInterfaceClass       255 Vendor Specific Class
       bInterfaceSubClass      2
       bInterfaceProtocol      1
       iInterface              0
       ** UNRECOGNIZED:  05 24 00 10 01
       ** UNRECOGNIZED:  04 24 02 02
       ** UNRECOGNIZED:  05 24 01 00 00
       ** UNRECOGNIZED:  05 24 06 00 00
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x83  EP 3 IN
         bmAttributes            3
           Transfer Type            Interrupt
           Synch Type               None
           Usage Type               Data
         wMaxPacketSize     0x0040  1x 64 bytes
         bInterval               5
       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        1
       bAlternateSetting       0
       bNumEndpoints           1
       bInterfaceClass       255 Vendor Specific Class
       bInterfaceSubClass      2
       bInterfaceProtocol     22
       iInterface              8 CDC Network Control Model (NCM)
       ** UNRECOGNIZED:  05 24 00 10 01
       ** UNRECOGNIZED:  06 24 1a 00 01 1f
       ** UNRECOGNIZED:  0d 24 0f 0a 0f 00 00 00 ea 05 03 00 01
       ** UNRECOGNIZED:  05 24 06 01 01
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x85  EP 5 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       1
       bNumEndpoints           3
       bInterfaceClass       255 Vendor Specific Class
       bInterfaceSubClass      2
       bInterfaceProtocol     22
       iInterface              9 CDC Network Data
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x85  EP 5 IN
         bmAttributes            3
           Transfer Type            Interrupt
           Synch Type               None
           Usage Type               Data
         wMaxPacketSize     0x0010  1x 16 bytes
         bInterval               9
       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        2
       bAlternateSetting       0
       bNumEndpoints           2
       bInterfaceClass       255 Vendor Specific Class
       bInterfaceSubClass      2
       bInterfaceProtocol      3
       iInterface              0
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x86  EP 6 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        3
       bAlternateSetting       0
       bNumEndpoints           2
       bInterfaceClass       255 Vendor Specific Class
       bInterfaceSubClass      2
       bInterfaceProtocol      2
       iInterface              0
       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
     Interface Descriptor:
       bLength                 9
       bDescriptorType         4
       bInterfaceNumber        4
       bAlternateSetting       0
       bNumEndpoints           2
       bInterfaceClass         8 Mass Storage
       bInterfaceSubClass      6 SCSI
       bInterfaceProtocol     80 Bulk-Only
       iInterface              4 Mass Storage
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x88  EP 8 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     0x06  EP 6 OUT
         bmAttributes            2
           Transfer Type            Bulk
           Synch Type               None
           Usage Type               Data
         wMaxPacketSize     0x0200  1x 512 bytes
         bInterval               1
     Interface Descriptor:
       bLength                 9
       bDescriptorType         4
       bInterfaceNumber        5
       bAlternateSetting       0
       bNumEndpoints           2
       bInterfaceClass         8 Mass Storage
       bInterfaceSubClass      6 SCSI
       bInterfaceProtocol     80 Bulk-Only
       iInterface              0
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x89  EP 9 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     0x07  EP 7 OUT
         bmAttributes            2
           Transfer Type            Bulk
           Synch Type               None
           Usage Type               Data
         wMaxPacketSize     0x0200  1x 512 bytes
         bInterval               1
Device Qualifier (for other device speed):
   bLength                10
   bDescriptorType         6
   bcdUSB               2.00
   bDeviceClass            0
   bDeviceSubClass         0
   bDeviceProtocol         0
   bMaxPacketSize0        64
   bNumConfigurations      1
Device Status:     0x0001
   Self Powered




Any clues?
Martin

ati7
Manufacturer: huawei
Model: E3131
Revision: 21.318.23.01.55
IMEI: ###############
+GCAP: +CGSM,+DS,+ES

OK
AT+CPIN?
+CPIN: READY

OK
AT+COPS?
+COPS: 0,0,"T-Mobile CZ",0

OK
AT^SYSINFO 
^SYSINFO:2,3,0,3,1,,3

OK
AT^GETPORTMODE
^GETPORTMODE: TYPE: WCDMA: huawei,MODEM:0,NCM:1,DIAG:2,PCUI:3,CDROM:4,SD:5

OK
AT^SETPORT?
^SETPORT:A1,A2;1,16,3,2,A1,A2

OK
AT^SETPORT=?
^SETPORT:1: MODEM
^SETPORT:2: PCUI
^SETPORT:3: DIAG
^SETPORT:10: 4G MODEM
^SETPORT:12: 4G PCUI
^SETPORT:6: GPS CONTROL
^SETPORT:13: 4G DIAG
^SETPORT:5: GPS
^SETPORT:A: BLUE TOOTH
^SETPORT:16: NCM
^SETPORT:A2: SD
^SETPORT:A1: CDROM

OK
AT^SYSCFG=?
^SYSCFG: (2,13,14,16),(0-3),((2000000400380,"GSM900/GSM1800/WCDMA900/WCDMA2100"),(280000,"GSM850/GSM1900"),(3fffffff,"All bands")),(0-2),(0-4)

OK
AT^MODE=?
^MODE: (0,1)

OK
AT^HWVER
^HWVER:"CH1E3531SM"

OK


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux