Nokia 3650 and Linux with Bluetooth

(April 2003)

General Purpose

I want to share files and data between my Nokia 3650 and my JVC XP – 3210 Notebook. Because the JVC lacks IR – Support, i want to use Bluetooth.

On the nokia i use „Mobipocket Reader“, „Smartviewer“ , „SeleQ“ and the builtin Photomanager to read HTML, text and graphics (maps). The Nokia has substitute my Palm – Organizer. All data are stored on a 128MB noName MMC – Card.

How get it work ?

Here works a SuSE 8.1 with a selfcompiled 2.4.20 – kernel with acpi and swsusp and grub as bootmanager.

Downloading

I need this:

  1. Kernel – Source, i use my 2.4.20 – Sources with the acpi and swsusp – Patch for my Notebook
    I suggest that you install the kernel – sources to /usr/src/linux, this may be a link to /usr/src/linux-2.4.19 or (like here) to /usr/src/linux-2.4.20

  2. Kernel – Patch for propper rfcomm – Support available from www.holtmann.org/linux/kernel/
    I use : patch-2.4.20-mh6.gz
    Note: without this Patch you will get propper Bluetooth – Support and you can see your mobile, but when you want to get a connection, you will get an „can't open /dev/rfcomm0“ - error.

  3. Bluetooth – Utilities from Bluez
    The Redhat – Packages bluez-libs-2.3-1.i386.rpm, bluez-utils-2.3-1.i386.rpm, works here, you can also download the source
    I also installed the bluefw- and sdp – package.

  4. Download the p3nfs – package from www.koeniglich.de/p3nfs.html
    I use the p3nfs-5.12.tar.gz

Installation

  1. login as root

  2. patch the kernel

    1. Copy the patch to /usr/src

    2. cd /usr/src

    3. patch -p0 < patch-2.4.20-mh6.gz
      perhaps you will use your own patch

  3. enable bluetooth

    1. cd /usr/src/linux

    2. make xconfig
      or make menuconfig

    3. in „Bluetooth support“ enable all things (as module)

    4. enable the other stuff you need (sound, net ...)

    5. Save and Exit

  4. compiling and install the kernel

    1. make dep && make clean && make bzImage && make modules && make modules_install
      you can also make separat steps ;)

    2. cp /boot/vmlinuz /boot/vmlinuz.org
      cp /boot/System.map /boot/System.map.org
      make an item for this in your bootmanager

    3. cp arch/i386/boot/bzImage /boot/vmlinuz
      cp System.map /boot
      perhaps „make bzlilo“, because i use grub i dont need this

    4. reboot

  5. goto your downloads and install the bluetooth – packages

  6. „mknod /dev/rfcomm0 c 216 0“

  7. loading the modules bluez, l2cap, rfcomm

  8. edit the „pin_helper“, because the orginal is broken

    1. make a /etc/bluetooth/givepin.sh – script with 2 lines:
      #!/bin/sh
      echo „PIN:<yourpin>“

    2. make a chmod ugo+x /etc/bluetooth/givepin.sh

    3. edit the /etc/bluetooth/hcid.conf:
      search the pin_helper – line and edit the pin_helper – command to /etc/bluetooth/givepin.sh

  9. loading hcid -f /etc/bluetooth/hcid.conf

  10. on the nokia:

    1. enable bluetooth

    2. set to „seen for all“

    3. give a devicename

  11. after a „hcitool scan“ you should see the BADDR and Name of your mobile

  12. Install p3nfs

    1. on nokia install nfsapp-2.4-series60.sis
      I use at this point a mmc – card reader from sitecom, supported as usb-storage device under linux. On the nokia i had to download a filemanager with the builtin – browser ( i used http://www.psiloc.com/pliki.php?id=18), because the program-manager is not able to install programs from mmc. Alternative you can use PC-Suite under windows.

    2. You have also to install the linux – application (a binary is included in the package)

  13. make a „rfcomm bind /dev/rfcomm0 <your BADDR> 4“
    for BADDR see „hcitool scan“, the last „4“ is different from p3nfs - README, but according to the „Open Bluetooth/11, Waiting 30s on port 4“ - message on the mobile, when you start the nfs – app on the mobile.

  14. Start nfs – application on the mobile, note that the app will open the IrCOMM – Port and push once the cursorpad to switch to bluetooth
    Note the 30s – timout for the next step!

  15. Mount the nokia with „p3nfsd -series60 -dir <your mountdir> -tty /dev/rfcomm0“
    On first connection you have to enter your PIN in the mobile. After this you only have to accept the connection on your mobile.

Now you can copy file between your pc and your mobile. A „ls <your mountdir>/exit“ will unmount the mobile.


Last you may configure your system to load the module while booting or resuming and using the applications as user.

Alternatives

  1. Use a MMC – Card – Reader (here works a SiteCom – Reader well)
    I use this alternative for uploading a little mp3 – Archiv (yes, i have the „mp3player“ installed ;) )

  2. Use IR with OBEX, see www.saunalahti.fi/~laakkon1/linux/3650.php

Open

  1. Synchronisation between the Nokia – PIM and a PC)
    (Not an issue for me now)

You can send me comments and questions to: heiko.thede_at_gmx.de