Internet connection via Edge/Gprs enabled mobile device in Ubuntu Linux.

1. Type lsusb in terminal,

shamal@shamal-desktop:~$ lsusb
Bus 004 Device 001: ID 0000:0000
Bus 005 Device 003: ID 0421:002f Nokia Mobile Phones
Bus 005 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

2. See the ids of your mobile, and use those in the next command.
shamal@shamal-desktop:~$ sudo modprobe usbserial vendor=0x0421 product=0x002f

3. Then type,

shamal@shamal-desktop:~$ wvdialconf create

Editing `create'.
Scanning your serial ports for a modem.
WvModem<*1>: Cannot set information for serial port.
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyACM0<*1>: ATQ0 V1 E1 -- OK
ttyACM0<*1>: ATQ0 V1 E1 Z -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyACM0<*1>: Modem Identifier: ATI -- Nokia
ttyACM0<*1>: Speed 4800: AT -- OK
ttyACM0<*1>: Speed 9600: AT -- OK
ttyACM0<*1>: Speed 19200: AT -- OK
ttyACM0<*1>: Speed 38400: AT -- OK
ttyACM0<*1>: Speed 57600: AT -- OK
ttyACM0<*1>: Speed 115200: AT -- OK
ttyACM0<*1>: Speed 230400: AT -- OK
ttyACM0<*1>: Speed 460800: AT -- OK
ttyACM0<*1>: Max speed is 460800; that should be safe.
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK

Found an USB modem on /dev/ttyACM0
create: Can't open 'create' for reading: No such file or directory
create: ...starting with blank configuration.
Modem configuration written to create.
ttyACM0: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"

4. See the modem port . then write

shamal@shamal-desktop:~$ sudo gedit /etc/wvdial.conf 
5. Then put the following codes on gedit, and save it.
[Dialer Defaults]
Modem = /dev/ttyACM0
Baud = 460800
Init1 = AT&F
Init2 = AT E0 V1 &D2 &C1 &S0 S0=0 +dr=1
Init3 = AT+IFC=2,2;+CVHU=1
Init4 = ATS7=60+DS=3,0;&K3
Init5 = AT+CGDCONT=,,"gpinternet"
Init6 = ATS0=0
ISDN = 0
Modem Type = Nokia GSM Phone USB Modem
Phone = *99#
Username = any
Password = any
Stupid Mode = 1

6. Then dial.

shamal@shamal-desktop:~$ sudo wvdial

7. For disconnect press Ctrl+C

This is enough for any Nokia Edge/Gprs modem. And the process is also same for Siemens/Motorola. But I am not sure about other mobiles(try yourself). This is also same for other Linux distributions.

Show Comments