Navigation

Howto setup 3G USB internet

Tested on Raspberry Pi + Huawei E3131

Install program:

apt-get install wvdial sg3-utils

After first plug is dettected as optical disc CD, chage it to modem device:

/usr/bin/sg_raw /dev/sr0 11 06 20 00 00 00 00 00 01 00

Automatic creation config file:

wvdialconf /etc/wvdial.conf

Configure file:

nano /etc/wvdial.conf

O2/Vodafone:

[Dialer Defaults]
Init1 = AT+CGDCONT=1,"IP","internet"
Init2 =
Init3 =
Stupid Mode = 1
Ask Password = 0
Phone = *99#
Modem = /dev/ttyUSB0
Username = name
Password = password
Baud = 9600
Auto DNS = yes
Dial Command = ATDT

 

T-Mobile:

[Dialer Defaults]
Init1 = AT+CGDCONT=1,"IP","internet.t-mobile.cz"
Init2 =
Init3 =
Stupid Mode = 1
Ask Password = 0
Phone = *99#
Modem = /dev/ttyUSB0
Username = name
Password = password
Baud = 9600
Auto DNS = yes
Dial Command = ATDT

Run modem:

wvdial

Cont...