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
6 Comments »
Leave a comment
About
This is an example of a WordPress page, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many pages like this one or sub-pages as you like and manage all of your content inside of WordPress.
-
Archives
- August 2008 (1)
- April 2008 (2)
- February 2008 (4)
- January 2008 (2)
- November 2007 (1)
- October 2007 (1)
- September 2007 (1)
- August 2007 (1)
- July 2007 (4)
- May 2007 (2)
- April 2007 (1)
- March 2007 (2)
-
Categories
-
RSS
Entries RSS
Comments RSS
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
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…
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
civilian mybiz navy
ka-ka-sh-ka 4458930 Pros and cons of civilian mybiz navy.
[...] Bluetooth Fuse OBEXFS under Debian: http://simbot.wordpress.com/2006/06/04/bluetooth-fuse-obexfs-under-debian/ [...]
[...] Bluetooth Fuse OBEXFS under Debian: http://simbot.wordpress.com/2006/06/04/bluetooth-fuse-obexfs-under-debian/ [...]