Nokia Phone as USB modem at Linux & UBUNTU

Author Topic: Nokia Phone as USB modem at Linux & UBUNTU  (Read 15604 times)

Offline R i Y a D

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
Nokia Phone as USB modem at Linux & UBUNTU
« on: January 22, 2009, 02:03:42 AM »
GSM cellphone networks use a protocol called GPRS (General Packet Radio Service) for transmission of data. This is used, for instance, for photo messaging or WAP browsing, though it can also be used to make a regular internet connection.

If you use your cellphone's GPRS service to make an internet connection, your phone service provider is also your internet service provider. You dial a special number that gives you access to their GPRS network, you use their domain name servers, etc.

At this point, I think it's simplest for me to describe what I did to use my mobile phone as a modem.

Before you can do anything, you will need a means to link your phone to your computer, and a copy of wvdial.

---------------------------------------------------------

Nokia N95, N80, N73 or other Nokia Phone as USB modem at
Linux & UBUNTU


This is how to do it…

Connect your phone via data cable
Open terminal & type

lsusb

Now u will get the following output

riyad@riyad-desktop:~$ lsusb
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 003: ID 0421:04f0 Nokia Mobile Phones
Bus 001 Device 001: ID 0000:0000

It is on my compter, ur will not be exactly the same…

Now note the line in which Nokia Mobile Phones is written…it has two number one is 0421 & other is 0445…we’ll take these numbers as 0×421 & 0×445

0421 is the Vendor ID (vid) & 04f0 is the Product ID (pid)

Now enter this command.

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


eg, in my case::: sudo /sbin/modprobe usbserial vendor=0×421 product=0×4f0

Now enter this command

wvdialconf create

u’ll get a long output which will be like

riyad@riyad-desktop:~$ sudo /sbin/modprobe usbserial vendor=0×421 product=0×4f0
Password:
riyad@riyad -desktop:~$ wvdialconf creat
Editing `creat’.
Scanning your serial ports for a modem.
ttyS0: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyS0: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud
ttyS0: ATQ0 V1 E1 — and failed too at 115200, giving up.
Modem Port Scan: 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
WvModem: Cannot get information for serial port.
ttyUSB0: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyUSB0: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud
ttyUSB0: ATQ0 V1 E1 — and failed too at 115200, giving up.
Found an USB modem on /dev/ttyACM0.
creat: Can’t open ‘creat’ for reading: No such file or directory
creat: …starting with blank configuration.
Modem configuration written to creat.
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 gedit /etc/wvdial.conf

A file will open in text editor…
Now delete everything in that file & paste the following there…

[Dialer Defaults]
Modem = Your Modem Name (eg, /dev/ttyACM0 in my case)
Baud = your max speed (460800 in my case)
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem
Phone = *99#
Username = gp
Password = gp
Stupid Mode = 1


Save the file & you are done

Now whenever u need to connect…open terminal & type wvdial,, wait till some sort of IP address 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….hit cntrl+c to disconnect…
U can also create a launcher on desktop (application in terminal) & keep the command as wvdial..now double click it & u r connected.


© Mahmudur Rahman
    riyad@diu.edu.bd

-----------------------------------------------------------------------------
« Last Edit: January 22, 2009, 02:16:17 AM by R i Y a D »
Mahmudur Rahman
RF Optimization Engineer
Radio Network Planning & Optimizations
ZTE Corporation Bangladesh Limited
[email: riyad_ete@yahoo.com]

Offline scorpreza

  • Newbie
  • *
  • Posts: 5
  • Nothing to say.
    • View Profile
    • See my facebook account.
Re: Nokia Phone as USB modem at Linux & UBUNTU
« Reply #1 on: February 02, 2009, 12:56:53 PM »
Thank you Riyad.
||||~§¢ørpîøñ~||||

Offline BRE SALAM SONY

  • Hero Member
  • *****
  • Posts: 827
  • Alhamdulliha Allah Can makes Me A Muslim
    • View Profile
    • Special Discount For hajj and Umrah Guest
আল্লাহর রহমতে প্রতি বছর হজে যাওয়ার সুযোগ হচ্ছে।এভাবেই হাজীদের খেদমত করে যেতে চাই।
01711165606

আমার প্রতিষ্ঠান www.zilhajjgroup.com
www.corporatetourbd.com

Offline R i Y a D

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
Re: Nokia Phone as USB modem at Linux & UBUNTU
« Reply #3 on: July 20, 2009, 07:11:16 PM »
The new version of Ubuntu that is Ubuntu 9.04 - the current stable version, released in April 2009, codenamed Jaunty Jackalope does not require this code. Just plug it in and it will ask you what to do.
Mahmudur Rahman
RF Optimization Engineer
Radio Network Planning & Optimizations
ZTE Corporation Bangladesh Limited
[email: riyad_ete@yahoo.com]

Offline Shabab

  • Newbie
  • *
  • Posts: 19
    • View Profile
    • daffodilcse
Re: Nokia Phone as USB modem at Linux & UBUNTU
« Reply #4 on: December 30, 2009, 09:40:43 PM »
The new version of Ubuntu that is Ubuntu 9.04 - the current stable version, released in April 2009, codenamed Jaunty Jackalope does not require this code. Just plug it in and it will ask you what to do.

Thats the case with GSM users only. Please share the solution (with screen shot) for citycell users.
The light is my strength, the truth is my soul.

Offline BRE SALAM SONY

  • Hero Member
  • *****
  • Posts: 827
  • Alhamdulliha Allah Can makes Me A Muslim
    • View Profile
    • Special Discount For hajj and Umrah Guest
Re: Nokia Phone as USB modem at Linux & UBUNTU
« Reply #5 on: April 24, 2010, 04:23:52 PM »
Thanks for Giving A informative posting
actually i am using grammen edge modem thats i think this is very important for setup internet connection.
thanks
আল্লাহর রহমতে প্রতি বছর হজে যাওয়ার সুযোগ হচ্ছে।এভাবেই হাজীদের খেদমত করে যেতে চাই।
01711165606

আমার প্রতিষ্ঠান www.zilhajjgroup.com
www.corporatetourbd.com

Offline R i Y a D

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
Re: Nokia Phone as USB modem at Linux & UBUNTU
« Reply #6 on: May 07, 2010, 03:07:04 PM »
Thats the case with GSM users only. Please share the solution (with screen shot) for citycell users.

Ok.. as far as i know its not really matter about network but the devices we are using. If u can find out the identity of your device that can only be possible if the kernel supports it and the next procedures are remain same except dialing number. As i dont hv one of those CDMA device i cant give what u've asked for.

Surf net and try "fdisk" command in terminal to see if it could recognizes the device.
Mahmudur Rahman
RF Optimization Engineer
Radio Network Planning & Optimizations
ZTE Corporation Bangladesh Limited
[email: riyad_ete@yahoo.com]

Offline Shabab

  • Newbie
  • *
  • Posts: 19
    • View Profile
    • daffodilcse
Re: Nokia Phone as USB modem at Linux & UBUNTU
« Reply #7 on: May 27, 2010, 10:46:44 AM »
Thats the case with GSM users only. Please share the solution (with screen shot) for citycell users.

Ok.. as far as i know its not really matter about network but the devices we are using. If u can find out the identity of your device that can only be possible if the kernel supports it and the next procedures are remain same except dialing number. As i dont hv one of those CDMA device i cant give what u've asked for.

Surf net and try "fdisk" command in terminal to see if it could recognizes the device.

I do not hava a CDMA modem either.


 :)

Ubuntu later versions comes with pre declared configurations for GP,Blink,Aktel and Warid(New)..

as you said (the device is the only thing that matters) if your device is recognized by the OS it connects automatically, then it goes for available network config.

If the phone is using listed service provider then there is no problem. For the case of CDMA even if your phone is identified the configuration files have to be manually written for connecting to the net. I dont have a modem as I said earlier but often i face students with such problem. gppp seems to work for some of them.
The light is my strength, the truth is my soul.

Offline BRE SALAM SONY

  • Hero Member
  • *****
  • Posts: 827
  • Alhamdulliha Allah Can makes Me A Muslim
    • View Profile
    • Special Discount For hajj and Umrah Guest
Re: Nokia Phone as USB modem at Linux & UBUNTU
« Reply #8 on: May 27, 2010, 11:31:27 AM »
dear all my friends
i have need some idea how change ip address?

any one can know please help me
thanks
আল্লাহর রহমতে প্রতি বছর হজে যাওয়ার সুযোগ হচ্ছে।এভাবেই হাজীদের খেদমত করে যেতে চাই।
01711165606

আমার প্রতিষ্ঠান www.zilhajjgroup.com
www.corporatetourbd.com

Offline R i Y a D

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
Re: Nokia Phone as USB modem at Linux & UBUNTU
« Reply #9 on: July 23, 2010, 02:26:20 PM »
dear all my friends
i have need some idea how change ip address?

any one can know please help me
thanks




There are several free softwares to do the changing so just look for it.

http://download.cnet.com/IP-Changer/3000-2155_4-10065756.html
Mahmudur Rahman
RF Optimization Engineer
Radio Network Planning & Optimizations
ZTE Corporation Bangladesh Limited
[email: riyad_ete@yahoo.com]

Offline a.k.azad_cse

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Re: Nokia Phone as USB modem at Linux & UBUNTU
« Reply #10 on: October 11, 2010, 02:24:57 AM »
For configure modem on XP some hand set PC SUITE,PHONE MANAGER,PC STUDIO need dial up no/phone number and apn/access point name for solution just try this

dial up/phone number:*99# OR TRY THIS *99***1#

apn/access point name:gpinternet (GrameenPhone),internet(AKTEL,WARID-AIRTEL),blweb(BANGLALINK)