Simbiosis

Communiques from the wilderness

Bluetooth Fuse OBEXFS under Debian

Because the Gnome Bluetooth tools are not in Debian it makes it kinda hard to transfer files to a BT enabled phone. However, there is a really neat project out there called OBEXFS, which uses Filesystem in Userspace to mount an OBEX device, like a phone, as another folder on your computer.

First thing is to set up the basic system for using fuse

modprobe fuse

or

echo fuse >> /etc/modules
adduser  fuse

Now, get and compile the obexfs programs

./configure && make && sudo make install

Finally, the magic lines. Nokia phones use channel 10 for OBEX transfer, so:

mkdir -p ~/mnt/bluetooth
obexfs -b <BT MAC ADDRESS> -B 10 ~/mnt/bluetooth/

If you need to find your BT MAC address use:

hcitool scan

Requirements:
apt-get install fuse-utils bluetooth

June 4, 2006 - Posted by Nigel | bluetooth, debian, linux | | 6 Comments

6 Comments »

  1. Interesting post. Do you use Gnome? If so by way of thanks:

    I often have a need to just quickly send something to my phone (Sony Ericsson z520a). Utilizing obexftp and a nautilus script, you can easily send from anywhere in Gnome.

    We have two phones in the house, so using hcitool, I discovered the respective MAC addresses and exported them to environment $MYPHONE, $HERPHONE as strings.

    Then in ~/.gnome2/nautilus-scripts/ , I created a send script for each phone using the envrionment variables. Once the scripts were written, I used Nautilus to browse to the nautilus-scripts directory and Suddenly I could Rt-Click anywhere and send to the phones.

    The script was embarrassingly simple and allows for multiple selections:


    #!/bin/bash
    for arg
    do
    obexftp -b $FPHONE -p "$arg"
    done

    Comment by ephsmith | June 22, 2006

  2. what about automount??
    that stupid # in the automount device file makes automount stop there…
    by /var/log/debug i can see it tries to mount it with
    mount -t fuse -s -o allow_other,ro obexfs /mount_point
    when it should be
    mount -t fuse -s -o allow_other,ro “obexfs#-bmac_address -B12″ /mount_point

    i tried every combination i know with “\”, octal code… i just don’t know what to try now…

    Comment by Luke | December 20, 2006

  3. to use with automount I do following

    in auto.misc:
    obex -fstype=fuse,allow_other,… :obexfs_00-11-22-33-44-55#

    somewhere in $PATH:
    vi obexfs_00-11-22-33-44-55 with contents

    #!/bin/sh
    bid=`basename $0`
    bid=`echo ${bid##*_} | sed ’s/-/:/g’`

    exec obexfs -b”$bid” -B4 — “$@”

    that all

    Comment by MBA | April 24, 2007

  4. civilian mybiz navy

    ka-ka-sh-ka 4458930 Pros and cons of civilian mybiz navy.

    Trackback by civilian mybiz navy | June 5, 2007

  5. [...] Bluetooth Fuse OBEXFS under Debian: http://simbot.wordpress.com/2006/06/04/bluetooth-fuse-obexfs-under-debian/ [...]

    Pingback by zohair ahmad » Nokia 6630 Using USB Cable On Debian | July 24, 2008

  6. [...] Bluetooth Fuse OBEXFS under Debian: http://simbot.wordpress.com/2006/06/04/bluetooth-fuse-obexfs-under-debian/ [...]

    Pingback by Nokia 6630 Using USB Cable On Debian | Tea Break | July 24, 2008

Leave a comment