Piku’s Blog

April 6, 2008

Nokia 6120 Internet via Bluetooth and 3G/GPRS

Filed under: Uncategorized — Tags: , , , , , — Mihai @ 9:21 pm

I have a Nokia 6120 Classic, with Symbian S60, that I love. I usually check my mail on it and browse using Opera Mini 4.

Last week I have been away and used it to connect to the internet on my laptop. When I connect it with the miniUSB cable it is seen on linux as /dev/ttyACM0. On bluetooth I connect to it using rfconnect:

sudo rfcomm bind rfcomm0 <your phone bluetooth ID> <your phone channel, mine is 4>.

To see the bluetooth ID use hcitool scan. Using sdptool browse <bluetooth ID> you can find the channel, search for Dial-Up networking service. To connect I use pppd.

Here is my /etc/ppp/peers/vodafone file that connects to Vodafone:

rfcomm0 115200 local
connect "chat -v -f /etc/ppp/peers/chat"
noauth
name internet.vodafone.ro
defaultroute
updetach

You can replace rfcomm0 with ttyACM0 if connecting via USB. My /etc/ppp/peers/chat file:

TIMEOUT 5
ECHO ON
ABORT '\nBUSY\r'
ABORT '\nERROR\r'
ABORT '\nNO ANSWER\r'
ABORT '\nNO CARRIER\r'
ABORT '\nNO DIALTONE\r'
ABORT '\nRINGING\r\n\r\nRINGING\r'
'' \rAT
TIMEOUT 12
SAY "Press CTRL-C to close the connection at any stage!"
SAY "\ndefining PDP context...\n"
OK ATH
OK ATE1
OK 'AT+CGDCONT=1,"IP","internet.vodafone.ro"'
OK ATM1L3DT*99#
TIMEOUT 10
SAY "\nwaiting for connect...\n"
CONNECT ""

This are the configurations for Vodafone, your telecom may have different settings. The command to connect is “sudo pppd call vodafone”.

Many thanks to Zaicic who helped me configure ppp.

Advertisements

5 Comments »

  1. can you tell us how to do it in windows vista? thanks

    Comment by kooonin — September 5, 2008 @ 4:59 pm

  2. On Windows is much easier, you can use the Nokia Software to connect to the internet.

    Comment by Piku — September 5, 2008 @ 8:58 pm

  3. I have the same Nokia, but I’m in different location (Chile) where I have Entel Chile as a cell provider (Vodafone partner). It’s suppose to ask me a user and password to enter to the net, but I don’t see where I need to put that in your script. (and how).

    Ubuntu Linux I use.

    clemare

    Comment by Carlos Le Mare — October 12, 2008 @ 3:00 pm

  4. You need to create a profile on your mobile.
    What I added in the config is the APN (you must see what your provider’s APN is), for me it’s internet.vodafone.ro

    Comment by Piku — October 12, 2008 @ 3:03 pm

  5. ok

    Comment by sirwan — October 24, 2008 @ 9:13 pm


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: