Mobiltelefon Nokia 3650

Nokia 3650 - Linux PC


Bernd Westermann
Zunftgasse 11
79235 Vogtsburg/Burkheim
Tel.: +49 171 4704335
Fax.: +49 171 13 4704335

Howto make a permanent IP-Connection between the Nokia 3650 and a Linux-PC!?!


06/25/2003 adding part 6. Application using TCP/IP
06/16/2003 First version of this HOWTO

0. Hints

At the moment there is no Nokia-Software for dataexchange between the Mobilephone 3650 und Linux. To portate some well known software like ftpd or nfsd a TCP/IP-Connection is obsolete. So where is the problem? A connection from Linux to the 3650 over DUND to use the phone as a Modem works well. But if you want to make a ppp-connection over SPP, the Nokia will block. So this is bad, or? No then after this the mobilephone tries to open a ppp-connection to the Linux-PC by itself. If you accept this one, the Nokia tries to resove the following DNS-Address "wsockhost.mrouter". These PC should be in your local network, in case there is no reply from the DNS or the PC is not answering, the connection will be closed. If all this went well, you have a stable IP-Connection...

1. Preferences

  • Working Bluetoothsupport of your Linuxinstallation.
    I actually use:
    -Kernel 2.4.19
    -bluez (libs, utils, sdp, pan)
    -USB-Bluetooth-Adaptor from EpoX
    More information on Bluetooth in Linux you may find find here or there.
  • pppd / dund to accept the Nokia ppp-request.
  • DNS-Server (bind) to resolve "wsockhost.mrouter".

2. On Linux side...

After having a working Linux-Bluetooth-System you can continue. Best first try some data exchange with ussp-push or p3nfs).

2.1 SPP

You have to support the SP-Profile for pppd/dund. Type the following:

sdptool add --channel=2 SP

2.2 DNS-Configfiles

To resolve "wsockhost.mrouter" you should modify your bind configuration. Exsamples:

options {
    directory "/var/named";
    cleaning-interval 120;
    statistics-interval 0;
    notify no;
zone "localhost" in {
    type master;
    file "";
zone "" in {
    type master;
    file "";
zone "." in {
    type hint;   
    file "root.hint";
zone "mrouter" {
    type master;
    file "/var/named/mrouter.hosts";

@        IN SOA        localhost.   root.localhost. (
                42        ; serial (d. adams)
                1D        ; refresh
                2H        ; retry
                1W        ; expiry
                2D )        ; minimum

        IN NS        localhost.
1        IN PTR        localhost.

@        IN SOA    @   root (
                42        ; serial (d. adams)
                1D        ; refresh
                2H        ; retry
                1W        ; expiry
                2D )        ; minimum

        IN NS        @
        IN A

$ttl 38400
mrouter.    IN    SOA    bernd. bernd.pnd. (
            38400 )
mrouter.    IN    NS    bernd.
wsockhost.mrouter.    IN    A    IN    PTR    wsockhost

2.3 PPP-Server

An exsample for your /etc/ppp/options:

ms-dns  # DNS-Server who resolvs "wsockhost.mrouter"  # IP-Addresses for host and Mobilephone

2.4 dund

To act as a ppp server, type this:

dund --listen --channel=2

2.5 Start the SP-Connection to your 3650

Solong everything is OK. Now you should type..

rfcomm connect 2 <MAC-des-Nokia-3650> 2

and wait for establishing the ppp connection from your mobilephone...fine

3. 3650 side...

Enable Bluetooth and may allow connections from the Linuxbox.

4. Testing...

For exsample try the Opera browser to view some html sides.

5. Stuff...

To forward the requests from your Nokia through an ISP-Connection do the following:
  • IP-Forwarding:
    echo 1 > /proc/sys/net/ipv4/ip_forward
  • NAT (Network Adress Translation)
    iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
    Change the ppp0 to your ppp-Interface.

6. Application using TCP/IP

The new p3nfsd V.5.13a optionaly use TCP/IP for transfer. In case of pure Bluetooth the transfer is sometimes interrupted. While your data exchange is over TCP/IP I have not seen any interruptions so far. The transferrate is 20000 Bytes/s in both directions.