Huawei E5776

George Hills strowger at ls12.net
Tue Apr 15 03:56:43 PDT 2014


Hi,

I have a Huawei E5776, which is a device which offers wifi and usb
internet connections over a mobile network.

Wifi obviously works fine. USB *should* work as a conventional USB
dongle type device.

I can use the device fine by simply plugging it in with a USB cable and
then "ifconfig wwan0 up ; dhclient wwan0".

I am running Debian testing with:
# dpkg -l|grep -i modem
ii  libmm-glib0:amd64                                          
1.0.0-4                            amd64        D-Bus service for
managing modems - shared libraries
ii  modem-manager-gui                                          
0.0.16-2                           amd64        Modem Manager GUI
ii  modemmanager                                               
1.0.0-4                            amd64        D-Bus service for
managing modems

The device appears as "Bus 001 Device 042: ID 12d1:1506 Huawei
Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard" in the lsusb
output.

When I connect it (without usb_modeswitch - see below), I get this:

[97690.176447] usb 1-2.2: new high-speed USB device number 49 using xhci_hcd
[97690.266070] usb 1-2.2: New USB device found, idVendor=12d1,
idProduct=1506
[97690.266095] usb 1-2.2: New USB device strings: Mfr=2, Product=1,
SerialNumber=0
[97690.266110] usb 1-2.2: Product: HUAWEI Mobile
[97690.266124] usb 1-2.2: Manufacturer: HUAWEI Technology
[97690.272975] option 1-2.2:1.0: GSM modem (1-port) converter detected
[97690.273499] usb 1-2.2: GSM modem (1-port) converter now attached to
ttyUSB0
[97690.278184] huawei_cdc_ncm 1-2.2:1.1: MAC-Address: 0c:5b:8f:27:9a:64
[97690.278557] huawei_cdc_ncm 1-2.2:1.1: cdc-wdm1: USB WDM device
[97690.279595] huawei_cdc_ncm 1-2.2:1.1 wwan0: register 'huawei_cdc_ncm'
at usb-0000:00:14.0-2.2, Huawei CDC NCM device, 0c:5b:8f:27:9a:64
[97690.279903] usb-storage 1-2.2:1.2: USB Mass Storage device detected
[97690.283253] scsi28 : usb-storage 1-2.2:1.2
[97690.284266] usb-storage 1-2.2:1.3: USB Mass Storage device detected
[97690.285544] scsi29 : usb-storage 1-2.2:1.3
[97691.283774] scsi 28:0:0:0: CD-ROM            HUAWEI   Mass
Storage     2.31 PQ: 0 ANSI: 2
[97691.402816] sr0: scsi-1 drive
[97691.403669] sr 28:0:0:0: Attached scsi CD-ROM sr0
[97691.404302] sr 28:0:0:0: Attached scsi generic sg2 type 5
[97691.406972] scsi 29:0:0:0: Direct-Access     HUAWEI   TF CARD
Storage  2.31 PQ: 0 ANSI: 2
[97691.408687] sd 29:0:0:0: Attached scsi generic sg3 type 0
[97691.644257] sd 29:0:0:0: [sdc] Attached SCSI removable disk
[97692.966951] ISO 9660 Extensions: Microsoft Joliet Level 1
[97692.969137] ISOFS: changing to secondary root


The error message is:

Apr 15 11:45:12 hostname ModemManager[9404]: <info>  Creating modem with
plugin 'Huawei' and '3' ports
Apr 15 11:45:12 hostname ModemManager[9404]: <warn>  Could not grab port
(usbmisc/cdc-wdm1): 'Cannot add port 'usbmisc/cdc-wdm1', unsupported'
Apr 15 11:45:12 hostname ModemManager[9404]: <warn>  Couldn't create
modem for device at
'/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.2': Failed to find
primary AT port

If I blacklist the "option" driver (which I'm not sure is appropriate
for this device) I get just this:

Apr 15 11:47:57 hostname ModemManager[9404]: <warn>  Couldn't find
support for device at
'/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.2': not supported by
any plugin

and as before, I can still bring up the interface fine with the
commandline above but modemmanager won't use it.


The current usb-modeswitch-data (20140327) does not include this device
in /lib/udev/rules.d/40-usb_modeswitch.rules - I tried adding it, and
this does result in modeswitch running against it successfully and the
included usb-storage device no longer being mounted. However this
procedure has no effect on the usability of the modem with or without
modemmanager; in either case (modeswitched, or not) I can use it
manually with the commandline above, but modemmanager errors.


I tried to raise a ticket in your bugzilla, as per the instructions at
http://www.freedesktop.org/wiki/Software/ModemManager/ but I cannot find
the modemmanager project in the list of projects within the freedesktop
bugzilla.


Cheers


More information about the ModemManager-devel mailing list