This explains the installation of wvdial on RPI . This is tested and working with Huawei 3276
First, install usb modeswitch
sudo apt-get install usb_modeswitch
Type lsusb to ensure that your modem is attached correctly. Note the 12d1:14fe (For Huawei 3276 modems) which is the ID
Save a file as /etc/usb_modeswitch.d/idVendor:idProduct where idVendor and idProduct are those currently appearing. In this example file would be called /etc/usb_modeswitch.d/12d1:14fe .
ltVendor= 0x12d1
DefaultProduct= 0x14fe
TargetVendor= 0x12d1
TargetProduct= 0x1506
MessageContent="55534243123456780000000000000011062000000100000000000000000000"
Reboot.
After inserting Huawei modem, type dmesg to verify that ttyUSB1 is registered.
First download and install wvdial.
sudo apt-get install wvdial
Then edit the configuration file
sudo nano /etc/wvdial.conf
add the lines bellow, also remember to set correct APN
[Dialer Defaults]
Init1 = ATZ
Init2 = ATE1
Init3 = AT+CGDCONT=1,"IP","YOUR_APN"
Stupid Mode = 1
MessageEndPoint = "0x01"
Modem Type = Analog Modem
ISDN = 0
Phone = *99#
Modem = /dev/ttyUSB0
Username = { }
Password = { }
Baud = 460800
Auto Reconnect = on
To allow wvdial to connect automatically during reboot we need to edit interfaces.
sudo nano /etc/network/interfaces
add these lines
auto ppp0
iface ppp0 inet wvdial
After reboot, type ifconfig and verify that your PPP connection has assigned ip adress.