You are not logged in.

#1 2013-03-13 12:14:33

mrz87
Member
Registered: 2011-05-11
Posts: 8

Huawei E3131

Hello everyone.

I'm facing a problem with the device on subject. I am using an up-to-date Arch install, and have installed usb_modeswitch (from the repositories).
I have looked all over the net for how to get this device recognized correctly, but what I'm seeing on my end does not match the information I've found online.
Here are some outputs to give you an idea of the problem (sorry about the WoT, I could nest this in a big code block to shorten it if you'd prefer):

lsusb

Bus 003 Device 002: ID 0a5c:2101 Broadcom Corp. BCM2045 Bluetooth
Bus 006 Device 004: ID 12d1:1506 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
usb-devices

[...]
T:  Bus=06 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  4 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=1506 Rev=01.02
S:  Manufacturer=HUAWEI
S:  Product=HUAWEI Mobile
C:  #Ifs= 6 Cfg#= 1 Atr=80 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=02 Prot=01 Driver=option
I:  If#= 1 Alt= 1 #EPs= 3 Cls=ff(vend.) Sub=02 Prot=16 Driver=cdc_ncm
I:  If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=02 Prot=03 Driver=option
I:  If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=02 Prot=02 Driver=option
I:  If#= 4 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
I:  If#= 5 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
dmesg

[  107.730051] usb 6-1: new high-speed USB device number 3 using ehci-pci
[  107.975150] Initializing USB Mass Storage driver...
[  107.975410] scsi6 : usb-storage 6-1:1.0
[  107.975591] scsi7 : usb-storage 6-1:1.1
[  107.975690] usbcore: registered new interface driver usb-storage
[  107.975692] USB Mass Storage support registered.
[  107.976045] usb 6-1: USB disconnect, device number 3
[  113.850043] usb 6-1: new high-speed USB device number 4 using ehci-pci
[  113.976874] scsi8 : usb-storage 6-1:1.4
[  113.977212] scsi9 : usb-storage 6-1:1.5
[  114.086716] usb 6-1: MAC-Address: 58:2c:80:13:92:63
[  114.086985] cdc_ncm 6-1:1.1 wwan0: register 'cdc_ncm' at usb-0000:00:13.5-1, Mobile Broadband Network Device, 58:2c:80:13:92:63
[  114.087106] usbcore: registered new interface driver cdc_ncm
[  114.177480] usbcore: registered new interface driver usbserial
[  114.177580] usbcore: registered new interface driver usbserial_generic
[  114.177898] usbserial: USB Serial support registered for generic
[  114.247950] usbcore: registered new interface driver option
[  114.247980] usbserial: USB Serial support registered for GSM modem (1-port)
[  114.248096] option 6-1:1.0: GSM modem (1-port) converter detected
[  114.248301] usb 6-1: GSM modem (1-port) converter now attached to ttyUSB0
[  114.248345] option 6-1:1.2: GSM modem (1-port) converter detected
[  114.248494] usb 6-1: GSM modem (1-port) converter now attached to ttyUSB1
[  114.248517] option 6-1:1.3: GSM modem (1-port) converter detected
[  114.248615] usb 6-1: GSM modem (1-port) converter now attached to ttyUSB2
[  114.980951] scsi 9:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
[  114.981291] scsi 8:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
[  114.982673] sd 9:0:0:0: [sdb] Attached SCSI removable disk
[  114.984923] sr1: scsi-1 drive
[  114.985138] sr 8:0:0:0: Attached scsi CD-ROM sr1
[  115.565752] ISO 9660 Extensions: Microsoft Joliet Level 1
[  115.566502] ISOFS: changing to secondary root
ip link

[...]
4: wwan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 1000
    link/ether 58:2c:80:13:92:63 brd ff:ff:ff:ff:ff:f
comgt -d /dev/ttyUSB0 info

##### Wireless WAN Modem Configuration #####
Product text:
====

Manufacturer: huawei
Model: E3131
Revision: 21.157.14.00.51
IMEI: 862733012560507
+GCAP: +CGSM,+DS,+ES
OK
====
Manufacturer:           huawei
IMEI and Serial Number: 862733012560507
Manufacturer's Revision: 
21.157.14.00.
Hardware Revision:      

Network Locked:         ERROR:
Customisation:          

Band settings:          (
)
APN:                    ERROR:
##### END #####
systemctl status NetworkManager

[...]
Mar 13 12:59:13 Air NetworkManager[300]: <info> Activation (ttyUSB0) starting connection 'Wind Non-business 1'
Mar 13 12:59:13 Air NetworkManager[300]: <info> (ttyUSB0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Mar 13 12:59:13 Air NetworkManager[300]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) scheduled...
Mar 13 12:59:13 Air NetworkManager[300]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) started...
Mar 13 12:59:13 Air NetworkManager[300]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete.
Mar 13 12:59:14 Air NetworkManager[300]: <warn> GSM modem enable failed: (32) Failed to find a usable modem character set
Mar 13 12:59:14 Air NetworkManager[300]: <info> (ttyUSB0): device state change: prepare -> failed (reason 'modem-init-failed') [40 120 28]
Mar 13 12:59:14 Air NetworkManager[300]: <warn> Activation (ttyUSB0) failed for connection 'Wind Non-business 1'
Mar 13 12:59:14 Air NetworkManager[300]: <info> (ttyUSB0): device state change: failed -> disconnected (reason 'none') [120 30 0]
Mar 13 12:59:14 Air NetworkManager[300]: <info> (ttyUSB0): deactivating device (reason 'none') [0]

(By the way how do I get the full NetworkManager log? systemctl status snips it and I'd like to see more than just the tail-end of it)

diff between an lsmod done without the usb stick and another one done with the stick

1a2,9
> isofs                  32477  1 
> option                 26624  0 
> usb_wwan                8412  1 option
> usbserial              33213  2 option,usb_wwan
> cdc_ncm                13751  0 
> usbnet                 24598  1 cdc_ncm
> mii                     4091  1 usbnet
> usb_storage            43667  1 
51c59
< sr_mod                 14823  0 
---
> sr_mod                 14823  1 
63,64c71,72
< usbcore               174997  4 btusb,ohci_hcd,ehci_hcd,ehci_pci
< scsi_mod              130797  3 libata,sd_mod,sr_mod
---
> usbcore               174997  10 btusb,usb_storage,usbserial,ohci_hcd,ehci_hcd,ehci_pci,option,usbnet,usb_wwan,cdc_ncm
> scsi_mod              130797  4 usb_storage,libata,sd_mod,sr_mod
mount

[...]
/dev/sr1 on /media/Mobile Partner type iso9660 (ro,nosuid,nodev,noexec,noatime,uid=1000,gid=100,utf8)

As far as I can see, the device gets recognized simultaneously as both network device and mass storage device, because when I plug it in I can find the devices /dev/TTYUSB{0,1,2}, the relevant modules get loaded and I get a new network interface wwan0, but I can also see the storage partition, as you can see from the mount output. I cannot get it to work with sakis3g, wvdial and NetworkManager (when tried from nm-applet).
I can see no difference when plugging it in after removing usb_modeswitch (and rebooting), so I'm afraid it's not working.
I couldn't find much info on a device that gets recognized directly with id 1506, but only several devices that, after getting "modeswitched", as result get recognized with id 1506; I would think that this would be a positive thing (no modeswitching required!) but sadly the modem doesn't work.

Thanks for taking the time to read this!

Offline

#2 2013-03-24 13:59:03

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,277

Re: Huawei E3131

Have you installed "modemmanager"? It is an optDep of networkmanager and is required for WWAN.

If you have, lets have a look at the output of

journalctl -b -u modem-manager

(and perhaps networkmanager as well)

Offline

Board footer

Powered by FluxBB