Gadgets

Suggest an article
Have a good idea for an article? Something you want to know? Suggest an idea for an article and we just might write one for you.
Contact

Using Nokia S60 devices as modems in Linux

In this article I’ll show you how to set up your Nokia Series 60 phone as a modem for your linux box, so you can access the internet on the go. This is tested on Series 60 3rd edition, but should work for other S60 phones aswell. Others might have to fiddle around a bit with the settings to get it to work, but the same basic scripts should do just fine.

I will be using bluetooth to connect my phone to my computer in this howto, if you use a different connection you need to modify the script accordingly.

Setting up bluetooth

To get the bluetooth connection up and running you need to install the following packages:

  • bluez-libs
  • bluez-utils
  • kdebluetooth (if you use kde)
  • gnome-bluetooth (if you use gnome)

Install the packages (and plug in your bluetooth adapter if you have one).

Make sure you have bluetooth enabled on your phone before proceeding.

To make things easier in the long run, we’re going to make the phone automatically bind. Check your phone’s bluetooth adress by typing in *#2820# in the main screen. Keep it somewhere close, as you’ll need it in a minute.

Go to /etc/bluetooth (in SuSE, might be different in other distros) and edit or make a rfcomm0 entry like the one below:

rfcomm0 { bind yes; device 00:AA:11:BB:22:CC; channel 2; comment "E70"; }

00:AA:11:BB:22:C is the bluetooth device is the number we just pulled up on your phone’s screen. Type it in capital letters in pairs of two separated by colons.

From what I’ve understood Series 60 3rd edition uses channel 2 for internet communication, whereas earlier editions used channel 1, be sure to change that incase you have problems.

The comment is optional and can be anything you like.

Save the file and let’s continue.

Getting the GPRS chat scripts

You need to have pppd installed for these scripts to work, so if you don’t have that go and install it before continuing.

Download the following scripts to your computer and move them to /etc/ppp/peers

You need to change some permissions on the files and make them executable before we can run them, type in the following as root while in /etc/ppp/peers:

chown root:root /etc/ppp/peers/gprs*
chmod u+rwx,g=rx,o=rx /etc/ppp/peers/gprs-connect-chat
chmod u+rwx,g=rx,o=rx /etc/ppp/peers/gprs-disconnect-chat
As a last thing before connecting you need to change line #47 in gprs-connect-chat,

OK 'AT+CGDCONT=1,"IP","internet.saunalahti","",0,0' \

You need to change “internet.saunalahti” to your service provider’s internet access point.

Save the file, and you should be ready to go!

As root, type “pppd dial gprs” and you should see your phone starting to connect. The first time you do this your phone will want to authenticate, type in a pin on the phone, and then after that on the computer (if you installed kdebluetooth you will get a popup asking for it).

If all went well you’ll be surfing over GPRS/3G now, if not take a peek at the “gprs” file in /etc/ppp/peers and see if you need to change something there.

Refrences

Mikko Rappeli’s page on setting up GPRS on linux

Posted by Marcus - Jul 20, 03:30 PM.
Posted in .

2 Comment(s) for Using Nokia S60 devices as modems in Linux

  1. hypoxylon entoptoscope typonym rosales semilethal yachtsmanship postliminiary trophi
    <a href= http://www.backroadsband.com >Backroads</a> http://www.cltechgroup.com/
    <a href= http://www.dynamicproperty.com.au >Dynamic Property Services Pty Ltd</a> http://www.pitchpipetuner.com/
    <a href= http://www.cl.cam.ac.uk/~afb21/ >Blackwell, Alan</a> http://www.ecobambu.com
    <a href= http://www.nolahurricanefund.org/ >New Orleans Hurricane Fund</a> http://www.angelfire.com/ny2/happosai/

    Maxine Williams · Aug 21, 12:35 PM

  2. Thanks for this great HOWTO, it helped me a lot.

    Just a quick correction, the line “pppd dial gprs” is wrong (or maybe outdated?), it should read “pppd call gprs” in recent pppd versions.

    And a hint to myself: The kill switch also kills bluetooth, not only WLAN

    hoffie · Aug 29, 05:26 PM

Add your comment to this article

(Will not be displayed)
Textile Help