This project is an simple script to use an 3G USB Modem with a RaspberryPi
The folowing packages are needed:
- minicom --> testing the modem
- ppp
- wvdial --> controling the 3G connection
- clone the git project:
pi$ git clone git://github.com/jalcoriza/USBModem.git
- Install the packets needed:
pi$ sudo apt-get update
pi$ sudo apt-get install minicom ppp wvdial
- Save the original wvdial config file
pi$ sudo mv /etc/wvdial.conf /etc/wvdial.conf_orginal
- Copy the script needed (for example movistar)
pi$ sudo cp wvdial.movistar.conf /etc/
pi$ sudo chown root:dialout /etc/wvdial.movistar.conf
- Create a soft link
pi$ cd /etc
pi$ sudo ln -s wvdial.freedompop.conf wvdial.conf
- If your SIM has a PIN code xyzw, introduce it
pi$ sudo minicom -D /dev/ttyUSB0
at
at+CPIN=xyzw
CTRL-A x
- Connect to the internet!!!
pi$ sudo wvdial
- Route the trafic through ppp0
pi$ route -n
pi$ route del default gw 192.168.1.1 eth0
pi$ route add default gw 10.207.21.11 ppp0