How to use my Huawei E3276 4G modem on Ubuntu 12.04
I can not use my 4G modem. its not working with the network manager.
No access, no conection.
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Revision history for this message
![]() |
#1 |
Can you please give the output of:
lsb_release -a; uname -a; lsusb
Thanks
Revision history for this message
![]() |
#2 |
Without usb modem it looks like this
dennis@
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.10
Release: 11.10
Codename: oneiric
Linux dennis-K53U 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 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:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 04f2:b23b Chicony Electronics Co., Ltd
Bus 005 Device 002: ID 4168:1010
Bus 004 Device 003: ID 0cf3:3005 Atheros Communications, Inc.
dennis@
With the modem pluged in to the computer
dennis@
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.10
Release: 11.10
Codename: oneiric
Linux dennis-K53U 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 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:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 04f2:b23b Chicony Electronics Co., Ltd
Bus 005 Device 002: ID 4168:1010
Bus 004 Device 003: ID 0cf3:3005 Atheros Communications, Inc.
dennis@
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.10
Release: 11.10
Codename: oneiric
Linux dennis-K53U 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 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:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 04f2:b23b Chicony Electronics Co., Ltd
Bus 005 Device 002: ID 4168:1010
Bus 004 Device 003: ID 0cf3:3005 Atheros Communications, Inc.
dennis@
Revision history for this message
![]() |
#3 |
I can't see any new device in the list.
Please make sure your device has been connected for at least 30s and run this again:
lsusb
Thanks!
Revision history for this message
![]() |
#4 |
Revision history for this message
![]() |
#5 |
dennis@
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Codename: precise
Linux dennis-K53U 3.2.0-32-
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 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:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 007: ID 12d1:1506 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard
Bus 001 Device 004: ID 04f2:b23b Chicony Electronics Co., Ltd
Bus 005 Device 002: ID 4168:1010
Bus 004 Device 002: ID 0cf3:3005 Atheros Communications, Inc. AR3011 Bluetooth
dennis@
Revision history for this message
![]() |
#6 |
Try:
sudo modprobe usbserial vendor=0x12d1 product=0x1506
Then try using the device. Does it work, if it's good we can make it permanent
Revision history for this message
![]() |
#7 |
I am sorry to say it does not work.
Revision history for this message
![]() |
#8 |
Try:
sudo eject /dev/sr0
I've seen that on guides online. Basically if you search for:
12d1:1506 ubuntu
online, you will find tonnes of guides and how tos
Revision history for this message
![]() |
#9 |
Hi Dennis!
Did you got your Huawei E3276 to work? I have spent several days on it as well, both trying to connect using pppd and /dev/cdc-wdm0 (QMI) but without success. Any luck on your end?
Revision history for this message
![]() |
#10 |
Hi Olof.
Its the same here. I have tried the same with on success.
Hope someone can help.
Revision history for this message
![]() |
#11 |
Hi Dennis!
With the support of linux community the Huawei E3276 is supported now (see thread here http://
echo -e "AT^NDISDUP=
dhclient wwan0
Assuming you have configured usb modeswitch beforehand with:
echo "12d1 1506" > /sys/bus/
Works with telia in Sweden.
Bjorn will push this into the linux main branch soon, but if you are eager to hack, you can update drivers/
diff --git a/drivers/
index 4cd582a..74fab1a 100644
--- a/drivers/
+++ b/drivers/
@@ -540,10 +540,12 @@ advance:
(
goto error;
- /* claim interfaces, if any */
- temp = usb_driver_
- if (temp)
- goto error;
+ /* claim data interface, if different from control */
+ if (ctx->data != ctx->control) {
+ temp = usb_driver_
+ if (temp)
+ goto error;
+ }
iface_no = ctx->data-
@@ -623,6 +625,10 @@ static void cdc_ncm_
tasklet_
+ /* handle devices with combined control and data interface */
+ if (ctx->control == ctx->data)
+ ctx->data = NULL;
+
/* disconnect master --> disconnect slave */
if (intf == ctx->control && ctx->data) {
usb_
@@ -1245,6 +1251,14 @@ static const struct usb_device_id cdc_devs[] = {
.driver_info = (unsigned long) &wwan_info,
},
+ /* Huawei NCM devices disguised as vendor specific */
+ { USB_VENDOR_
+ .driver_info = (unsigned long)&wwan_info,
+ },
+ { USB_VENDOR_
+ .driver_info = (unsigned long)&wwan_info,
+ },
+
/* Generic CDC-NCM devices */
{ USB_INTERFACE_
USB_
Revision history for this message
![]() |
#12 |
Hello,
I have Huawei E3276 in Ubuntu 13.04 (beta). It does not connect at all and no 4G/3G entries in the modem manager.
It works fine in Windows.
Do I still need to patch the driver as shown above?
$ lsusb
Bus 003 Device 005: ID 12d1:1506 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard
Revision history for this message
![]() |
#13 |
Please leave the bug link alone. I'm trying to follow up on a permanent fix for this.
Revision history for this message
![]() |
#14 |
While it hasn't been fixed in NetworkManager, you could send AT commands to the modem to get it up.
I wrote a script that does this: https:/
Basically you do:
screen /dev/ttyUSB0
ATZ
ATQ0 V1 E1 S0=0
AT^NDISDUP=
and then
dhcpcd wwan0
Revision history for this message
![]() |
#15 |
E3276 from polish operators -Polkomtel/Cyfrowy Polsat support RAS mode. (non-Hilink version)
AT^SETPORT? //(current mode)
AT^SETPORT=? // (suported modes)
^SETPORT:1: 3G MODEM
^SETPORT:2: 3G PCUI
^SETPORT:3: 3G DIAG
^SETPORT:5: 3G GPS
^SETPORT:A: BLUE TOOTH
^SETPORT:16: NCM
^SETPORT:A1: CDROM
^SETPORT:A2: SD
^SETPORT:10: 4G MODEM
^SETPORT:12: 4G PCUI
^SETPORT:13: 4G DIAG
^SETPORT:14: 4G GPS
Default mode is NCM (Network Card Mode) and looks like this :A1,A2;12,16,A1,A2
We have to change to RAS mode by sending AT command: AT^SETPORT=
After that E3276 works like any other Huawei RAS modem. Modem works with NM or we can use wvdial.
Revision history for this message
![]() |
#16 |
When I use either Janis' or Pijo's suggestions, it does immediately work with NM but I get very low speeds. Meaning less than 1Mb download on speed test websites instead of the ~15Mbs I get on a Windows 7 laptop just beside it.
Is that an issue with my system or can it be the AT commands that cause that?
Revision history for this message
![]() |
#17 |
When trying to get my E3276 [M150-1] to work, but am unable to get an IP address assigned.
I only installed the latest x64 Ubuntu and dhcpcd so perhaps i am missing something?
These are the commands i used:
usb_modeswitch -v 0x12d1 -p 0x14fe -M '55534243123456
echo 'ATZ' > /dev/ttyUSB0
echo 'ATQ0 V1 E1 S0=0' > /dev/ttyUSB0
echo 'AT^NDISDUP=
after about 30 seconds
dhcpcd wwan0
root@vBuntu:/dev# dhcpcd wwan0
err, wwan0: timed out
err, wwan0: lease information file `/var/lib/
warn, wwan0: using IPV4LL address 169.254.246.200
root@vBuntu:/dev# dhcpcd.sh: interface wwan0 has been configured with new IP=169.254.246.200
root@vBuntu:/dev# lsb_release -a; uname -a; lsusb
LSB Version: core-2.
Distributor ID: Ubuntu
Description: Ubuntu 13.10
Release: 13.10
Codename: saucy
Linux vBuntu 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Bus 001 Device 005: ID 12d1:1506 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
before mode switching:
Bus 001 Device 002: ID 12d1:14fe Huawei Technologies Co., Ltd.
after mode switching:
Bus 001 Device 005: ID 12d1:1506 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard
Revision history for this message
![]() |
#18 |
Is there anywhere documentation on what these AT commands do?
When i send them to the modem i don't get any replies if i monitor it with screen ttyUSB0 so i am thinking it is not working at all because it should respond? Tried it with an E398 and the mentioned E3276 in a Parallels Ubuntu VM.
Did the cdc_ncm.ko driver get updated in the latest Ubuntu release or is it still broken?
Revision history for this message
![]() |
#19 |
Is this helpful?: https:/
Seems like the modem should be working in 14.04 when qmi support is going to be available.
Revision history for this message
![]() |
#20 |
Thanks Marius, i just tested the latest Ubuntu x64 trusty release and used the script Janis provided.
Now my modem establishes a connection(LED changes from blinking into a solid state) but i am unable to get an IP address from the modem.
Opening device: /dev/ttyUSB0
> ATZ
> OK
> ATZ
> OK
> ATQ0 V1 E1 S0=0
> OK
> AT^NDISDUP=
> OK
> ^NDISSTAT:
> AT^DHCP?
> ^DHCP: 16FF774D,
> OK
err, wwan0: timed out
warn, wwan0: using IPV4LL address 169.254.138.1
Hexadecimal number > 0xffffffff non-portable at e3276.pl line 73.
' ignored at e3276.pl line 73.
Hexadecimal number > 0xffffffff non-portable at e3276.pl line 73.
Revision history for this message
![]() |
#21 |
Okay, I think what you want to wait for is QMI support, and then watch this bug report: https:/
Revision history for this message
![]() |
#22 |
Thanks, although even with qmi it does not work.
http://
root@vBuntu:/dev# qmi-network /dev/cdc-wdm0 start
Loading profile...
APN: drei.at
Starting network with 'qmicli -d /dev/cdc-wdm0 --wds-start-
error: couldn't create client for the 'wds' service: CID allocation failed in the CTL client: Transaction timed out
error: network start failed, client not allocated
Revision history for this message
![]() |
#23 |
With my older E398 i can establish a connection with the qmi-network script and can successfully request an IP.
qmi-network /dev/cdc-wdm0 start
Loading profile...
APN: drei.at
Starting network with 'qmicli -d /dev/cdc-wdm0 --wds-start-
Saving state... (CID: 1)
Saving state... (PDH: 38750672)
Network started successfully
Revision history for this message
![]() |
#24 |
Ah, in that case, is any of these helpful?: https:/
If not, and you are using the latest libqmi version/from git, I suggest explaining the problem on that libqmi mailinglist to handle it as an upstream problem.
Revision history for this message
![]() |
#25 |
I believe the message to switch my version of the E3276 is wrong.
In the logs of the dovado pro router i bought i can see that it switched to a different product id.
info USB: Detected new item: Vendor=0x12d1, Product=0x14fe
info USB: Detected new item: Vendor=0x12d1, Product=0x1c1e
Prior the dovado firmware update it was switched into a different product id[1506] and i was having the same problems with the dovado pro router.
Revision history for this message
![]() |
#26 |
My Huawei E3276 is working fine with the Ubuntu:
Revision history for this message
![]() |
#27 |
My Huawei E3276 is not even detected on my system. What do I need to do?
root@sm00024313
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.2 LTS
Release: 12.04
Codename: precise
Linux sm000243130045-HM 3.8.13-bone26 #74 SMP Sat Mar 22 02:27:23 PDT 2014 armv7l armv7l armv7l GNU/Linux
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@sm00024313
Any help much appreciated.
Thanks
Revision history for this message
![]() |
#28 |
As of Kubuntu 14.04.1 LTS updated, I just needed this command:
sudo modprobe usbserial vendor=0x12d1 product=0x1506
to have the modem accessible as /dev/ttyUSB0.
Maybe later on I'll also check with ppp.
Revision history for this message
![]() |
#29 |
You can make that stick with:
echo "options usbserial vendor=0x12d1 product=0x1506" | sudo tee /etc/modprobe.
Then when you run:
sudo modprobe usbserial
It will use the options by default. If you also run:
echo "usbserial" | sudo tee -a /etc/modules > /dev/null
It will be loaded at boot, with the options.
Revision history for this message
![]() |
#30 |
I would make the change in the udev stuff so everything gets loaded at dongle insertion.
Revision history for this message
![]() |
#31 |
Hi ,
My kernel is 2.6.27,no cdc_ncm.c, can Huawei E3276 work on it?And How?
Any help much appreciated.
Thanks!
Can you help with this problem?
Provide an answer of your own, or ask Dennis Carlson for more information if necessary.