azza_idz
Posts: 41
Joined: Thu Oct 16, 2014 9:47 am

Help with 3G dongle Huawei E3276

Wed Nov 26, 2014 3:25 pm

Hi, i have Huawei E3276 LTE dongle. I managed to switch it to modem mode (at least i think it's modem mode) and it's now showing this:

Code: Select all

Bus 001 Device 005: ID 12d1:1506 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard
Ifconfig shows:

Code: Select all

wwan0     Link encap:Ethernet  HWaddr 0c:5b:8f:27:9a:64
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
I don't know how to continue, i managed to find few tutorials, one with wvdial but i'm getting errors while connecting, and one with /etc/network/interfaces that also throws errors. Here is wvdial config

Code: Select all

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","gprs.vipnet.hr"
Stupid Mode = 1
Modem Type = Analog Modem
ISDN = 0
Phone = *99#
Modem = /dev/gsmmodem
Username = { }
Password = { }
Baud = 460800
Auto Reconnect = on
wvdial defaults shows this:

Code: Select all

root@raspberrypi:~# wvdial defaults
--> WvDial: Internet dialer version 1.61
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
+CME ERROR: Incorrect parameters
--> Bad init string.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
+CME ERROR: Incorrect parameters
--> Bad init string.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
+CME ERROR: Incorrect parameters
--> Bad init string.
What am i missing?

azza_idz
Posts: 41
Joined: Thu Oct 16, 2014 9:47 am

Re: Help with 3G dongle Huawei E3276

Thu Nov 27, 2014 12:30 pm

I have another dongle it's Huawei E372 and with settings above i can connect normally to 3G. E3276 seems to require more configuration, anyone have any experience with this model?

azza_idz
Posts: 41
Joined: Thu Oct 16, 2014 9:47 am

Re: Help with 3G dongle Huawei E3276

Thu Nov 27, 2014 1:28 pm

I managed to connect Raspberry Pi to 3G with Huawei E3276s-150. Below is my configuration. Only thing i didn't manage to do is make usb_modeswitch to automatically switch device to modem mode so i'm still looking into it. In the mean time you can switch it manually with following command

Switch to modem

Code: Select all

usb_modeswitch -v 12d1 -p 157c -V 12d1 -P 1506 -M 55534243123456780000000000000011062000000100000000000000000000
/etc/wvdial.conf

Code: Select all

[Dialer Defaults]
Init1 = ATZ
Init2 = ATE1
Init3 = AT+CGDCONT=1,"IP","gprs.vipnet.hr"
Stupid Mode = 1
MessageEndPoint = "0x01"
Modem Type = Analog Modem
ISDN = 0
Phone = *99#
Modem = /dev/ttyUSB0
Username = { }
Password = { }
Baud = 460800
Auto Reconnect = on
/etc/network/interfaces

Code: Select all

auto ppp0
iface ppp0 inet wvdial
To connect you can use wvdial & disown. Hope this will help someone ;)

bm9ib2r5
Posts: 1
Joined: Fri May 15, 2015 7:39 pm

Re: Help with 3G dongle Huawei E3276

Fri May 15, 2015 7:42 pm

Huawei E3276s-151

switch to modem:

Code: Select all

usb_modeswitch -I -v 12d1 -p 156a -V 12d1 -P 156c -M "55534243123456780000000000000011062000000100000000000000000000"
wvdial.conf

Code: Select all

[Dialer Defaults]
Init1 = ATZ
Init2 = ATE1
Init3 = AT+CGDCONT=1,"IP","internet"
Stupid Mode = 1
MessageEndPoint = "0x01"
Modem Type = Analog Modem
ISDN = 0
Phone = *99#
Modem = /dev/ttyUSB0
Username = internet
Password = internet
Baud = 460800
Auto Reconnect = on

spec-T
Posts: 4
Joined: Tue Apr 19, 2016 11:25 pm

Re: Help with 3G dongle Huawei E3276

Tue Apr 19, 2016 11:41 pm

Hello RasPi Forum!

I have been struggling with getting my raspi3 to work with my E3276 dongle now for days. I have gotten the dongle to do mode switching and am using "sudo wvdial & disown" to initiate the connection. It looks like it wants to work, but then just times out with the following messages:

Code: Select all

pi@raspberrypi:~ $ --> WvDial: Internet dialer version 1.61
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATE1
ATE1
OK
--> Sending: AT+CGDCONT=1,"IP","fast.t-mobile.com"
AT+CGDCONT=1,"IP","fast.t-mobile.com"
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Tue Apr 19 23:21:35 2016
--> Pid of pppd: 3426
--> Using interface ppp0
--> pppd: ??[01]??[01]??[01]
--> pppd: ??[01]??[01]??[01]
--> pppd: ??[01]??[01]??[01]
--> pppd: ??[01]??[01]??[01]
--> pppd: ??[01]??[01]??[01]
--> Disconnecting at Tue Apr 19 23:22:05 2016
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
--> Auto Reconnect will be attempted in 5 seconds
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.
Here is my vwdial.conf config:

Code: Select all

[Dialer Defaults]
Init1 = ATZ
Init2 = ATE1
Init3 = AT+CGDCONT=1,"IP","fast.t-mobile.com"
Stupid Mode = 1
MessageEndPoint = "0x01"
Modem Type = Analog Modem
ISDN = 0
Phone = *99#
Modem = /dev/ttyUSB0
Username = { }
Password = { }
Baud = 460800
Auto Reconnect = on
Here is my ifconfig

Code: Select all

wwan0     Link encap:Ethernet  HWaddr 0c:5b:8f:27:9a:64  
          inet addr:169.254.160.49  Bcast:169.254.255.255  Mask:255.255.0.0
          inet6 addr: fe80::584f:751f:bb3e:e26b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:247 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:84045 (82.0 KiB)

Any help here would be extremely appreciated!

Return to “Beginners”