Nokia N95 / Mobitel 3.5G works with Ubuntu!

May 30th, 2008 by Ruwan

UDPATE: New Ubuntu release has made the life easy. You just need to follow on screen wizard to configure everything. Just select the country and the provider “Mobitel” (or even “Dialog”) from the menu.

I’ve been using my N95 8GB / Mobitel Broadband (3.5G HSPA) to connect to internet for a while now. But I was limited to Windows platform only. Today, I wanted to access internet using my linux partition too. This time google came to rescue.

This is how to do it…

Connect your phone via data cable, open terminal & type

lsusb

now you will get the following output

janapriya@ace-laptop:~$ lsusb
Bus 005 Device 001: ID 0000:0000
Bus 003 Device 002: ID 0421:0070 Nokia Mobile Phones
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 003: ID 0b97:7761 O2 Micro, Inc.
Bus 002 Device 004: ID 0b97:7762 O2 Micro, Inc. Oz776 SmartCard Reader
Bus 002 Device 001: ID 0000:0000
Bus 004 Device 002: ID 04b3:310b IBM Corp. Red Wheel Mouse
Bus 004 Device 001: ID 0000:0000
Bus 001 Device 003: ID 413c:a005 Dell Computer Corp.
Bus 001 Device 001: ID 0000:0000

janapriya@ace-laptop:~$

Please note that above is for my laptop. Yours might be different.

Now note the line in which Nokia Mobile Phones is written. It has two number one is 0421 & other is 0070

we’ll take these numbers as 0×421 & 0×0070

0421 is the Vendor ID & 0070 is the Product ID

Now enter this comand.

sudo /sbin/modprobe usbserial vendor=0x(vid) product=0x(pid)

eg, in my case::: sudo /sbin/modprobe usbserial vendor=0×0421 product=0×0070

Now enter this command

wvdialconf create

You’ll get a long output which will be like

Scanning your serial ports for a modem.

Port Scan: S0 S1 S2 S3
WvModem: Cannot get information for serial port.
ttyACM0: ATQ0 V1 E1 — OK
ttyACM0: ATQ0 V1 E1 Z — OK
ttyACM0: ATQ0 V1 E1 S0=0 — OK
ttyACM0: ATQ0 V1 E1 S0=0 &C1 — OK
ttyACM0: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
ttyACM0: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyACM0: Modem Identifier: ATI — Nokia
ttyACM0: Speed 4800: AT — OK
ttyACM0: Speed 9600: AT — OK
ttyACM0: Speed 19200: AT — OK
ttyACM0: Speed 38400: AT — OK
ttyACM0: Speed 57600: AT — OK
ttyACM0: Speed 115200: AT — OK
ttyACM0: Speed 230400: AT — OK
ttyACM0: Speed 460800: AT — OK
ttyACM0: Max speed is 460800; that should be safe.
ttyACM0: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK

Found an USB modem on /dev/ttyACM0.

Modem configuration written to create.

ttyACM0: Speed 460800; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0?

Now.. notice the output says that there is a modem at /dev/ttyACM0 & max speed is 460800

now enter this command

sudo vi /etc/wvdial.conf

A file will open in vi editor. Now delete everything in that file & paste the following there

[Dialer Defaults]
Modem = /dev/ttyACM0

Baud = 460800

Init1 = ATZ

Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0

ISDN = 0

Modem Type = Analog Mode

OK AT+CGDCONT=1,”IP”,”mobitel3g”

Phone = *99***1#

Username = “mobitel3g”

Password = “mobitel3g”

Stupid Mode = 1

save the file & you are done

Now whenever you need to connect, open terminal & type wvdial. Wait till some sort of IP adress is displayed like

pppd: ?[06][06][08]` [06][08]

primary DNS address 218.248.240.135

pppd: ?[06][06][08]` [06][08]

secondary DNS address 218.248.240.79

pppd: ?[06][06][08]` [06][08]

Now you are connected. Later hit ctrl+c to disconnect.

Tags: , , , , , ,
Posted in Technology |

6 Responses to “Nokia N95 / Mobitel 3.5G works with Ubuntu!”

  1. Shammi says:

    Can you comment on pros and cons of nokia n95 8gb. and if you know some details about n96. skrajapakse@yahoo.com

  2. Prasanna says:

    I’m planing to buy a N95 8GB. Please lemme know info abt the phone. Also if u knw any gud place to buy (in Sri Lanka). chessprasanna@yahoo.com

  3. Thanks for the blog post

  4. Chaaminda says:

    pls can you help me how to save…. modified “wvdial.conf”
    file.. i can’t continue that step……pls help me..?

  5. karatedog says:

    In Jaunty, or now in Karmic this process is much-much easier. In GNOME right-click on the network icon then select “Edit connections…”. You’ll find a “Mobile broadband” tab, where you can add a new connection. For the number to dial, use “*99#” and give it a name and password. You can extract the name from the phone, the password is usually “1234″.
    The phone was connected in PC Suite mode.

  6. Dushan says:

    Hey why doesn’t it work
    It tries to connect and get connect for about 5 seconds and then it automatically reconnects and it goes like this for 5 mins and says the ppp damaem had died
    –> WvDial: Internet dialer version 1.60
    –> Cannot get information for serial port.
    –> Initializing modem.
    –> Sending: ATZ
    ~[7f]}#@!}!}!} }2}”}&} }*} } }#}$@#}’}”}(}”U[03]~~[7f]}#@!}!}!} }2}”}&} }*} } }#}$@#}’}”}(}”U[03]~~[7f]}#@!}!}!} }2}”}&} }*} } }#}$@#}’}”}(}”U[03]~~[7f]}#@!}!}!} }2}”}&} }*} } }#}$@#}’}”}(}”U[03]~~[7f]}#@!}!}!} }2}”}&} }*} } }#}$@#}’}”}(}”U[03]~~[7f]}#@!}!}!} }2}”}&} }*} } }#}$@#}’}”}(}”U[03]~~[7f]}#@!}!}!} }2}”}&} }*} } }#}$@#}’}”}(}”U[03]~~[7f]}#@!}!}!} }2}”}&} }*} } }#}$@#}’}”}(}”U[03]~~[7f]}#@!}!}!} }2}”}&} }*} } }#}$@#}’}”}(}”U[03]~~[7f]}#@!}!}!} }2}”}&} }*} } }#}$@#}’}”}(}”U[03]~~[7f]}#@!}!}!} }2}”}&} }*} } }#}$@#}’}”}(}”U[03]~~[7f]}#@!}!}!} }2}”}&} }*} } }#}$@#}’}”}(}”U[03]~~[7f]}#@!}!}!} }2}”}&} }*} } }#}$@#}’}”}(}”U[03]~
    NO CARRIER
    –> Sending: ATQ0
    ATQ0
    OK
    –> Re-Sending: ATZ
    ATZ
    OK
    –> Cannot get information for serial port.
    –> Initializing modem.
    –> Sending: ATZ
    ATZ
    OK
    –> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    OK
    –> Modem initialized.
    –> Sending: ATDT*99***1#
    –> Waiting for carrier.
    ATDT*99***1#
    CONNECT
    ~[7f]}#@!}!}!} }2}”}&} }*} } }#}$@#}’}”}(}”U[03]~
    –> Carrier detected. Starting PPP immediately.
    –> Unable to run /usr/sbin/pppd.
    –> Check permissions, or specify a “PPPD Path” option in wvdial.conf.
    ~[7f]}#@!}!}!} }2}”}&} }*} } }#}$@#}’}”}(}”U[03]~~[7f]}#@!}!}!} }2}”}&} }*} } }#}$@#}’}”}(}”U[03]~~[7f]}#@!}!}!} }2}”}&} }*} } }#}$@#}’}”}(}”U[03]~~[7f]}#@!}!}!} }2}”}&} }*} } }#}$@#}’}”}(}”U[03]~^CCaught signal 2: Attempting to exit gracefully…

    that is what happens

Leave a Reply