News | About | Get Frugalware | Packages | Documentation | Discussion Forums | Bug Tracker | Wiki | Community | Development

Nokia E50 GPRS Modem

From FrugalWiki

Jump to: navigation, search

Introduction

Here you can read how I set up the gprs net using my Nokia E50 mobile phone.
First of all, I've bought a Nokia CA-53 USB cable due I don't have bluetooth or irda port in my notebook, nor in my desktop machine. You can use the phone's BT or infra capability, in this case you have to set up the communication with the phone on your own and you can skip the next chapter.

Connectivity

The previous versions of Nokia data cables were mostly RS-232 (or as better known: serial) cables, in that case there wasn't any problem with the connection. With these newer, USB cables you have to load the usbserial and the cdc_acm module. Connect the phone to the USB port and see the display of the phone. If you haven't touched the data cable mode in Connectivity->Data cable menu, the phone will ask for the mode. You have to choose the PC Suite mode to use the phone as GPRS Modem. If everything's fine, you should see ttyACM0 device in /dev directory:

$ ls -l /dev/ttyACM0
crw-rw---- 1 root root 166, 0 Jun  9 18:27 /dev/ttyACM0

If this file mask isn't good for you (it's very possible), you can create an udev rule in /etc/udev/rules.d directory:

$ cat /etc/udev/rules.d/99-nokia-e50-modem.rules
# udev creates the /dev/ttyACM0 device with 660 root:root by default
# that's not good if you want to use it as user -> create with 666 mask
KERNEL="ttyACM*", OWNER="root", GROUP="root", MODE="0666"

# or another solution is setting up with 'users' group
#KERNEL="ttyACM*", OWNER="root", GROUP="users", MODE="0660"

If you don't want to restart your system, just reload the udev rules:

# udevcontrol reload_rules

After this the device should be usable by the user.

Setting up the connection

You have to fill your phone's gprs settings or ask the provider to send you their GPRS settings. After this you have to search for the ppp_generic module in modules list.

lsmod | grep ppp

Then you can choose between using GPRS Easy Connect or setting up pppd on your own. Due I'm too lazy, i use EasyConnect. If you also prefer this way, you have to choose custom device on the preferences window and choose /dev/ttyACM0. If the program gives you the error that pppd is not usable as normal user, just set up the suid bit on /usr/sbin/pppd as root:

chmod u+s /usr/sbin/pppd

If you don't have any /etc/ppp/options file, just create it as root:

touch /etc/ppp/options

(GPRS Easy Connect will use own config, but pppd daemon needs this file)
After these everything should work fine. If not, please contact with your provider for more information.

Personal tools
Namespaces
Variants
Actions