Huawei E398 dongle problem and not possible to choose 4G

Bug #889878 reported by Mika Savela
70
This bug affects 10 people
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

system does not connect Huawei E398 dongle to network. Network is not the problem.

Also in mobile broadband configuraiton there is not possible to choose 4G / LTE network in use.

----------------syslog------
Nov 13 17:45:08 ipari kernel: [15763.460071] usb 1-4: new high speed USB device number 7 using ehci_hcd
Nov 13 17:45:08 ipari kernel: [15763.602984] scsi8 : usb-storage 1-4:1.0
Nov 13 17:45:08 ipari mtp-probe: checking bus 1, device 7: "/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-4"
Nov 13 17:45:08 ipari mtp-probe: bus: 1, device: 7 was not an MTP device
Nov 13 17:45:09 ipari kernel: [15764.609004] scsi 8:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 0
Nov 13 17:45:09 ipari kernel: [15764.617588] sr1: scsi-1 drive
Nov 13 17:45:09 ipari kernel: [15764.617805] sr 8:0:0:0: Attached scsi CD-ROM sr1
Nov 13 17:45:09 ipari kernel: [15764.618038] sr 8:0:0:0: Attached scsi generic sg2 type 5
Nov 13 17:45:09 ipari usb_modeswitch: switching 12d1:1505 (Huawei Technologies: HUAWEI Mobile)
Nov 13 17:45:09 ipari kernel: [15764.650763] usb 1-4: USB disconnect, device number 7
Nov 13 17:45:17 ipari kernel: [15773.160067] usb 1-4: new high speed USB device number 8 using ehci_hcd
Nov 13 17:45:17 ipari mtp-probe: checking bus 1, device 8: "/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-4"
Nov 13 17:45:17 ipari kernel: [15773.297734] option 1-4:1.0: GSM modem (1-port) converter detected
Nov 13 17:45:17 ipari kernel: [15773.297897] usb 1-4: GSM modem (1-port) converter now attached to ttyUSB0
Nov 13 17:45:17 ipari kernel: [15773.302129] scsi9 : usb-storage 1-4:1.5
Nov 13 17:45:17 ipari kernel: [15773.303679] scsi10 : usb-storage 1-4:1.6
Nov 13 17:45:17 ipari mtp-probe: bus: 1, device: 8 was not an MTP device
Nov 13 17:45:18 ipari modem-manager[860]: <info> (ttyUSB0) opening serial port...
Nov 13 17:45:18 ipari kernel: [15774.306731] scsi 9:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 0
Nov 13 17:45:18 ipari kernel: [15774.316819] scsi 10:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
Nov 13 17:45:18 ipari kernel: [15774.319534] sr1: scsi-1 drive
Nov 13 17:45:18 ipari kernel: [15774.319781] sr 9:0:0:0: Attached scsi CD-ROM sr1
Nov 13 17:45:18 ipari kernel: [15774.319915] sr 9:0:0:0: Attached scsi generic sg2 type 5
Nov 13 17:45:18 ipari kernel: [15774.321068] sd 10:0:0:0: Attached scsi generic sg3 type 0
Nov 13 17:45:18 ipari kernel: [15774.324307] sd 10:0:0:0: [sdb] Attached SCSI removable disk
Nov 13 17:45:20 ipari kernel: [15776.389259] ISO 9660 Extensions: Microsoft Joliet Level 1
Nov 13 17:45:20 ipari kernel: [15776.390768] ISOFS: changing to secondary root
Nov 13 17:45:27 ipari modem-manager[860]: <info> (ttyUSB0) closing serial port...
Nov 13 17:45:27 ipari modem-manager[860]: <info> (ttyUSB0) serial port closed
Nov 13 17:45:27 ipari modem-manager[860]: <info> (ttyUSB0) opening serial port...
Nov 13 17:45:27 ipari modem-manager[860]: <info> (Huawei): GSM modem /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-4 claimed port ttyUSB0
Nov 13 17:45:28 ipari modem-manager[860]: <info> (ttyUSB0) closing serial port...
Nov 13 17:45:28 ipari modem-manager[860]: <info> (ttyUSB0) serial port closed
Nov 13 17:45:28 ipari NetworkManager[877]: <warn> (ttyUSB0): failed to look up interface index
Nov 13 17:45:28 ipari NetworkManager[877]: <info> WWAN now disabled by management service
Nov 13 17:45:28 ipari NetworkManager[877]: <info> (ttyUSB0): new GSM/UMTS device (driver: 'option1' ifindex: 0)
Nov 13 17:45:28 ipari NetworkManager[877]: <info> (ttyUSB0): exported as /org/freedesktop/NetworkManager/Devices/4
Nov 13 17:45:28 ipari NetworkManager[877]: <info> (ttyUSB0): now managed
Nov 13 17:45:28 ipari NetworkManager[877]: <info> (ttyUSB0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Nov 13 17:45:28 ipari NetworkManager[877]: <info> (ttyUSB0): deactivating device (reason 'managed') [2]
Nov 13 17:45:28 ipari NetworkManager[877]: nm_system_iface_flush_routes: assertion `ifindex > 0' failed
Nov 13 17:45:28 ipari NetworkManager[877]: nm_system_iface_flush_addresses: assertion `ifindex > 0' failed
Nov 13 17:45:28 ipari NetworkManager[877]: <info> (ttyUSB0): device state change: unavailable -> disconnected (reason 'none') [20 30 0]
Nov 13 17:45:52 ipari NetworkManager[877]: <info> Activation (ttyUSB0) starting connection 'HUIHAI_INTERNET'
Nov 13 17:45:52 ipari NetworkManager[877]: <info> (ttyUSB0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Nov 13 17:45:52 ipari NetworkManager[877]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) scheduled...
Nov 13 17:45:52 ipari NetworkManager[877]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) started...
Nov 13 17:45:52 ipari NetworkManager[877]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete.
Nov 13 17:45:52 ipari modem-manager[860]: <info> (ttyUSB0) opening serial port...
Nov 13 17:45:52 ipari modem-manager[860]: <info> Modem /org/freedesktop/ModemManager/Modems/2: state changed (disabled -> enabling)
Nov 13 17:45:52 ipari modem-manager[860]: Invalid error code: 303
Nov 13 17:45:52 ipari modem-manager[860]: <info> Modem /org/freedesktop/ModemManager/Modems/2: state changed (enabling -> enabled)
Nov 13 17:45:52 ipari NetworkManager[877]: <info> WWAN now enabled by management service
Nov 13 17:45:52 ipari modem-manager[860]: <info> Modem /org/freedesktop/ModemManager/Modems/2: state changed (enabled -> searching)
Nov 13 17:46:01 ipari CRON[12311]: (nobody) CMD (if [ -x /usr/bin/php5 ] && [ -f /usr/share/serverstats/update.php ]; then /usr/bin/php5 /usr/share/serverstats/update.php > /dev/null; fi)
Nov 13 17:46:52 ipari NetworkManager[877]: <warn> GSM connection failed: (32) Network timeout
Nov 13 17:46:52 ipari NetworkManager[877]: <info> (ttyUSB0): device state change: prepare -> failed (reason 'unknown') [40 120 1]

Tags: 4g e398 huewei lte
Revision history for this message
Mika Savela (mika-savela) wrote :
Revision history for this message
Matthew East (mdke) wrote :

You've filed this bug on the ubuntu-docs package but this isn't about Ubuntu documentation. I don't know the cause for this, but I would think that the appropriate package is either network-manager or linux. Reassigning to the first of these.

affects: ubuntu-docs (Ubuntu) → network-manager (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in network-manager (Ubuntu):
status: New → Confirmed
Revision history for this message
madbiologist (me-again) wrote :

I found this in the changelog for the upstream kernel 3.2-rc6:

usb: option: Add Huawei E398 controlling interfaces

This patch adds the controlling interfaces for the Huawei E398.

Thanks to Bjørn Mork <email address hidden> for extracting the interface
numbers from the windows driver.

Signed-off-by: Alex Hermann
Cc: stable
Signed-off-by: Greg Kroah-Hartman

I'm not sure if it's enough to get this device working. A PPA of this kernel is available at http://kernel.ubuntu.com/~kernel-ppa/mainline/
Can you test with this kernel and let us know the result?

Revision history for this message
Marek Bardoński (bdfhjk) wrote :

Hi!

I also have this modem (only for 7days trial period).

On standard oneiric kernel, modem isn't recognized by system.

After upgrade to 3.2-rc6, system see it but I'm not able to connect using Network Manager - it asking about PIN code, but after entering it, their entry in network manager list is gray and not clickable.

Can You tell me, how to connect with it manually? I will test it and report here results.

Remember, that I have only 7 days.

Thanks!
Marek Bardoński

Revision history for this message
Mika Savela (mika-savela) wrote : Re: [Bug 889878] Re: Huawei E398 dongle problem and not possible to choose 4G
Download full text (7.3 KiB)

Hi,

I can't upgrade my systems to 3.2-rc6 for a while. I will try it later on.

But may be you can first try:
- to put SIM card to normal phone (at same time you verify SIM condition)
- configure with phone not to use PIN
- put SIM card back to Huawei dongle
- test

Br
Mika

2011/12/21 Marek Bardoński <email address hidden>

> Hi!
>
> I also have this modem (only for 7days trial period).
>
> On standard oneiric kernel, modem isn't recognized by system.
>
> After upgrade to 3.2-rc6, system see it but I'm not able to connect
> using Network Manager - it asking about PIN code, but after entering it,
> their entry in network manager list is gray and not clickable.
>
> Can You tell me, how to connect with it manually? I will test it and
> report here results.
>
> Remember, that I have only 7 days.
>
> Thanks!
> Marek Bardoński
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/889878
>
> Title:
> Huawei E398 dongle problem and not possible to choose 4G
>
> Status in “network-manager” package in Ubuntu:
> Confirmed
>
> Bug description:
> system does not connect Huawei E398 dongle to network. Network is not
> the problem.
>
> Also in mobile broadband configuraiton there is not possible to choose
> 4G / LTE network in use.
>
> ----------------syslog------
> Nov 13 17:45:08 ipari kernel: [15763.460071] usb 1-4: new high speed USB
> device number 7 using ehci_hcd
> Nov 13 17:45:08 ipari kernel: [15763.602984] scsi8 : usb-storage 1-4:1.0
> Nov 13 17:45:08 ipari mtp-probe: checking bus 1, device 7:
> "/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-4"
> Nov 13 17:45:08 ipari mtp-probe: bus: 1, device: 7 was not an MTP device
> Nov 13 17:45:09 ipari kernel: [15764.609004] scsi 8:0:0:0: CD-ROM
> HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 0
> Nov 13 17:45:09 ipari kernel: [15764.617588] sr1: scsi-1 drive
> Nov 13 17:45:09 ipari kernel: [15764.617805] sr 8:0:0:0: Attached scsi
> CD-ROM sr1
> Nov 13 17:45:09 ipari kernel: [15764.618038] sr 8:0:0:0: Attached scsi
> generic sg2 type 5
> Nov 13 17:45:09 ipari usb_modeswitch: switching 12d1:1505 (Huawei
> Technologies: HUAWEI Mobile)
> Nov 13 17:45:09 ipari kernel: [15764.650763] usb 1-4: USB disconnect,
> device number 7
> Nov 13 17:45:17 ipari kernel: [15773.160067] usb 1-4: new high speed USB
> device number 8 using ehci_hcd
> Nov 13 17:45:17 ipari mtp-probe: checking bus 1, device 8:
> "/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-4"
> Nov 13 17:45:17 ipari kernel: [15773.297734] option 1-4:1.0: GSM modem
> (1-port) converter detected
> Nov 13 17:45:17 ipari kernel: [15773.297897] usb 1-4: GSM modem (1-port)
> converter now attached to ttyUSB0
> Nov 13 17:45:17 ipari kernel: [15773.302129] scsi9 : usb-storage 1-4:1.5
> Nov 13 17:45:17 ipari kernel: [15773.303679] scsi10 : usb-storage 1-4:1.6
> Nov 13 17:45:17 ipari mtp-probe: bus: 1, device: 8 was not an MTP device
> Nov 13 17:45:18 ipari modem-manager[860]: <info> (ttyUSB0) opening
> serial port...
> Nov 13 17:45:18 ipari kernel: [15774.306731] scsi 9:0:0:0: CD-ROM
> HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 0
> Nov 13 17:45:18 ipari kernel: [15774...

Read more...

Revision history for this message
Christopher Forster (christopherforster) wrote :

The Huawei E398 modem works for me. Did you specify the custom 4G APN for the mobile broadband connection?

E.g. Swedish Tele2 4G APN: 4g.tele2.se (for 3G APN: mobileinternet.tele2.se)

ProblemType: Bug
Architecture: i386
DistroRelease: Linux Mint 12 Lisa based on Ubuntu 11.10
Uname: Linux 3.0.0-12-generic i686

Revision history for this message
madbiologist (me-again) wrote :

The commit mentioned in comment #4 is now available in the upstream 3.0.16 kernel and subsequent 3.0.x kernels.

author Alex Hermann <email address hidden>
Mon, 12 Dec 2011 20:42:23 +0000 (21:42 +0100)
committer Greg Kroah-Hartman <email address hidden>
Wed, 21 Dec 2011 20:57:48 +0000 (12:57 -0800)
commit 4c3f5007ad3aec88567774b5bbf933145ee42df8
tree 6cb927319f313173c126b43e8987c452eccf089e
parent d23d19302ad80a9d5f013b74aa5e1e7328d4ba9b
usb: option: Add Huawei E398 controlling interfaces

commit 414b591fd16655871e9f5592a55368b10a3ccc30 upstream.

This patch adds the controlling interfaces for the Huawei E398.

Thanks to Bjørn Mork for extracting the interface
numbers from the windows driver.

Signed-off-by: Alex Hermann
Signed-off-by: Greg Kroah-Hartman

Revision history for this message
Fathi Boudra (fboudra) wrote :

I've got the dongle working on Precise beta1. Though, I don't use NetworkManager but a script to invoke wvdial/pppd.
Note: 4G mode doesn't work under Linux even if you try to set it with usb_modeswitch.

$ cat e398-provide.sh
#!/bin/sh

sudo rmmod option
sudo modprobe option
sudo echo "12d1 1506" > /sys/bus/usb-serial/drivers/option1/new_id
sleep 30

sudo usb_modeswitch -v 12d1 -p 1505 -V 12d1 -P 1506 -M "55534243123456780000000000000011062000000100000000000000000000" -n 1
sleep 30

sudo wvdial provider

$ cat /etc/wvdial.conf
[Dialer provider]
Modem = /dev/ttyUSB0
Init = ATZ
Init1 = AT+CGDCONT=1,"IP","internet"
Phone = *99#
#Username = "your_username"
#Password = "your_password"
Stupid Mode = 1
New PPPD = yes

Revision history for this message
Davim (davim) wrote :

I've tried Fathis's Script but it didn't work, I get this error message:

Looking for target devices ...
 No devices in target mode or class found
Looking for default devices ...
 No devices in default mode found. Nothing to do. Bye.

lsusb finds the modem:

Bus 002 Device 007: ID 12d1:14c3 Huawei Technologies Co., Ltd.

Revision history for this message
Davim (davim) wrote :

I've figured it out, my modem is from Vodafone and the product number is different, I've changed the lines:

sudo echo "12d1 1506" > /sys/bus/usb-serial/drivers/option1/new_id

sudo usb_modeswitch -v 12d1 -p 1505 -V 12d1 -P 1506 -M "55534243123456780000000000000011062000000100000000000000000000" -n 1
sleep 30

to

sudo echo "12d1 14c8" > /sys/bus/usb-serial/drivers/option1/new_id

sudo usb_modeswitch -v 12d1 -p 14c3 -V 12d1 -P 14c8 -M "55534243123456780000000000000011062000000100000000000000000000" -n 1
sleep 30

and it's working now :)

is there a way of making the modeswitch thing automatical?

I don't need to use wvdial because network manager detects the modem correctly after the modswitch.

Revision history for this message
Mika Savela (mika-savela) wrote :
Download full text (7.5 KiB)

Hi,

I got dongle working by using 12.04 and Network connection
application...but still not possible to choose LTE network from connection
application. Next Tuesday possible to trye real LTE network, I will inform
how it works.

Br
Mika

On Tue, Mar 27, 2012 at 1:38 AM, Davim <email address hidden> wrote:

> I've figured it out, my modem is from Vodafone and the product number is
> different, I've changed the lines:
>
>
> sudo echo "12d1 1506" > /sys/bus/usb-serial/drivers/option1/new_id
>
> sudo usb_modeswitch -v 12d1 -p 1505 -V 12d1 -P 1506 -M
> "55534243123456780000000000000011062000000100000000000000000000" -n 1
> sleep 30
>
> to
>
> sudo echo "12d1 14c8" > /sys/bus/usb-serial/drivers/option1/new_id
>
> sudo usb_modeswitch -v 12d1 -p 14c3 -V 12d1 -P 14c8 -M
> "55534243123456780000000000000011062000000100000000000000000000" -n 1
> sleep 30
>
> and it's working now :)
>
> is there a way of making the modeswitch thing automatical?
>
> I don't need to use wvdial because network manager detects the modem
> correctly after the modswitch.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/889878
>
> Title:
> Huawei E398 dongle problem and not possible to choose 4G
>
> Status in “network-manager” package in Ubuntu:
> Confirmed
>
> Bug description:
> system does not connect Huawei E398 dongle to network. Network is not
> the problem.
>
> Also in mobile broadband configuraiton there is not possible to choose
> 4G / LTE network in use.
>
> ----------------syslog------
> Nov 13 17:45:08 ipari kernel: [15763.460071] usb 1-4: new high speed USB
> device number 7 using ehci_hcd
> Nov 13 17:45:08 ipari kernel: [15763.602984] scsi8 : usb-storage 1-4:1.0
> Nov 13 17:45:08 ipari mtp-probe: checking bus 1, device 7:
> "/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-4"
> Nov 13 17:45:08 ipari mtp-probe: bus: 1, device: 7 was not an MTP device
> Nov 13 17:45:09 ipari kernel: [15764.609004] scsi 8:0:0:0: CD-ROM
> HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 0
> Nov 13 17:45:09 ipari kernel: [15764.617588] sr1: scsi-1 drive
> Nov 13 17:45:09 ipari kernel: [15764.617805] sr 8:0:0:0: Attached scsi
> CD-ROM sr1
> Nov 13 17:45:09 ipari kernel: [15764.618038] sr 8:0:0:0: Attached scsi
> generic sg2 type 5
> Nov 13 17:45:09 ipari usb_modeswitch: switching 12d1:1505 (Huawei
> Technologies: HUAWEI Mobile)
> Nov 13 17:45:09 ipari kernel: [15764.650763] usb 1-4: USB disconnect,
> device number 7
> Nov 13 17:45:17 ipari kernel: [15773.160067] usb 1-4: new high speed USB
> device number 8 using ehci_hcd
> Nov 13 17:45:17 ipari mtp-probe: checking bus 1, device 8:
> "/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-4"
> Nov 13 17:45:17 ipari kernel: [15773.297734] option 1-4:1.0: GSM modem
> (1-port) converter detected
> Nov 13 17:45:17 ipari kernel: [15773.297897] usb 1-4: GSM modem (1-port)
> converter now attached to ttyUSB0
> Nov 13 17:45:17 ipari kernel: [15773.302129] scsi9 : usb-storage 1-4:1.5
> Nov 13 17:45:17 ipari kernel: [15773.303679] scsi10 : usb-storage 1-4:1.6
> Nov 13 17:45:17 ipari mtp-probe: bus: 1, device: 8 was not an MTP device
> Nov 13 17:45:18 ipari modem-ma...

Read more...

Revision history for this message
Christopher Forster (christopherforster) wrote :

Huawei 4G modem should work on Ubuntu 12.04 Precise. But sometimes I have to unplug the modem, plug in the modem. This is also sometimes necessary when I have used Linux & rebooted into Windows 7. Using Linux or Network Manager changes something that affects the Huawei E398 modem on Windows.

uname -r
3.2.0-24-generic

Revision history for this message
Thomas Hood (jdthood) wrote :

The Huawei E398 is not listed upstream as known to work.

    https://live.gnome.org/NetworkManager/MobileBroadband/

Please file a request in the upstream bug tracking system

    https://bugzilla.gnome.org/browse.cgi?product=NetworkManager

asking for this modem to be supported.

Changed in network-manager (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Christopher Forster (christopherforster) wrote :

Using the Huawei E398 modem in Ubuntu 12.04 Precise pretty good now. However in Windows 7 I sometimes must unplug the modem, plug in the modem in order to be able to connect to the Internet in Windows. Why should using the modem in Linux affect Windows?

Revision history for this message
madbiologist (me-again) wrote :

Christopher - your bug is different to the one in this bug report. Please use ubuntu-bug to file a new bug report.

Changed in network-manager (Ubuntu):
status: Invalid → Fix Released
Revision history for this message
Marius B. Kotsbak (mariusko) wrote :

The other bug report is for reference bug #1077118.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.