2010-11-23

Using Nokia C6-01 as a USB modem for mobile internet on Ubuntu 9.10

1) Install wvdial with the command
Code:
sudo apt-get install wvdial
2) Launch the command
Code:
ls /dev/tty*
to see how my Nokia phone is recognized by Ubuntu. Usually, it will be recognized as /dev/ttyACM0.

3) Connect C6 via USB as "Nokia Ovi Suite"

4) Launch the command again
Code:
ls /dev/tty*
The Nokia phone, recognized as a modem, will be showed as /dev/ttyACM0, /dev/ttyUSB0, ecc.

5) Create a file wvdial.conf with the following content
[Dialer Defaults]
Init1 = ATZ
ISDN = 0
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
Baud = 460800
New PPPD = yes
Modem = /dev/ttyACM0
; Phone = <Target Phone Number>
Password = ''
Username = ''

[Dialer C6]
Modem = /dev/ttyACM0
Modem Type = USB Modem
Baud = 460800
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","3gnet",,0,0
Phone = *99#

6) Connect to the Internet with the command
Code:
sudo wvdial --config /etc/wvdial.conf C6
Notes:

1) For future connection, you have to use only the command #6.
2) "Init3 = AT+CGDCONT=1,"IP","3gnet",,0,0
     Phone = *99#" are for China unicom 3G wireless network configuration.





No comments: