Skip to content

3G modem Huawei E169 E620 E800

Peter Vojtek edited this page Oct 27, 2013 · 7 revisions

This device is also described as HSUPA GPRS GSM850 Wireless Modem HSDPA Max.7.2 Mbps Adapter W/ TF SIM Card Slot on Ebay.

initial plug in into RPi shows the device is properly recognized as modem:

root@raspberrypi:~# lsusb
Bus 001 Device 005: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem

also dmesg shows the device is properly connected:

[   19.606885] USB Serial support registered for GSM modem (1-port)
[   19.620292] option 1-1.3:1.0: GSM modem (1-port) converter detected
[   19.657105] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB0
[   19.676176] option 1-1.3:1.1: GSM modem (1-port) converter detected
[   19.693961] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB1
[   19.702946] option 1-1.3:1.2: GSM modem (1-port) converter detected
[   19.719238] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB2

we can establish contact with the device using screen:

screen /dev/ttyUSB0 115200
AT
OK

now I try to produce vwdial.conf for the device:

root@raspberrypi:~# wvdialconf
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

ttyUSB0<*1>: ATQ0 V1 E1 -- ERROR
ttyUSB0<*1>: failed with 2400 baud, next try: 9600 baud
ttyUSB0<*1>: ATQ0 V1 E1 -- ERROR
ttyUSB0<*1>: failed with 9600 baud, next try: 9600 baud
ttyUSB0<*1>: ATQ0 V1 E1 -- ERROR
ttyUSB0<*1>: and failed too at 115200, giving up.
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyUSB2<*1>: ATQ0 V1 E1 -- ERROR
ttyUSB2<*1>: failed with 2400 baud, next try: 9600 baud
ttyUSB2<*1>: ATQ0 V1 E1 -- ERROR
ttyUSB2<*1>: failed with 9600 baud, next try: 9600 baud
ttyUSB2<*1>: ATQ0 V1 E1 -- ERROR
ttyUSB2<*1>: and failed too at 115200, giving up.


Sorry, no modem was detected!  Is it in use by another program?
Did you configure it properly with setserial?

surprisingly wvdialconf was not successful.

I try to follow wvdial.conf from this page, but I get:


wvdial hsdpa
--> WvDial: Internet dialer version 1.61
--> Initializing modem.
--> Sending: ATZ
ATZ
ERROR
--> Bad init string.

this wvdial.conf works:

[Dialer Defaults]
Init1 = AT
;Init2 = AT+CPIN="0000"
Init4 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","internet"
Phone = *99***1#
ISDN = 1
Username = internet
Password = internet
Modem = /dev/ttyUSB0
Baud = 460800
Stupid Mode = on

root@raspberrypi:~# wvdial
--> WvDial: Internet dialer version 1.61
--> Initializing modem.
--> Sending: AT
AT
OK
--> Sending: AT+CGDCONT=1,"IP","internet"
AT+CGDCONT=1,"IP","internet"
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
CONNECT 7200000
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Tue Apr 30 19:15:34 2013
--> Pid of pppd: 2475
--> pppd: �
--> Using interface ppp0
--> pppd: �
--> pppd: �
--> pppd: �
--> pppd: �
--> pppd: �
--> pppd: �
--> pppd: �
--> pppd: �
--> pppd: �
--> Authentication (CHAP) started
--> pppd: �
--> pppd: �
--> Authentication (CHAP) successful
--> pppd: �
--> pppd: �
--> pppd: �
--> pppd: �
--> pppd: �
--> pppd: �
--> pppd: �
--> pppd: �
--> pppd: �
--> pppd: �
--> pppd: �
--> pppd: �
--> pppd: �
--> pppd: �
--> pppd: �
--> pppd: �
--> pppd: �
--> pppd: �
--> pppd: �
--> pppd: �
--> pppd: �
--> local  IP address 10.144.158.201
--> pppd: �
--> remote IP address 10.64.64.64
--> pppd: �
--> primary   DNS address 213.151.200.31
--> pppd: �
--> secondary DNS address 85.237.225.250