#9 How to use Bluetooth with OpenOBEX?


I've installed all v 1.0.0 OpenOBEX, OBEXapps and
OBEXftp by recompiling them and installed (with
checkinstall because some of the .spec files in the
tarballs were not working).

My system is RedHat 8 and I have BlueZ v2.2 Bluetooth
stack installed and working. Also I can connect to
Nokia 7650 via Bluetooth using BlueZ rfcomm and also
with < http://www.koeniglich.de/p3nfs.html >

When compiling the OpenOBEX stuff, configure did find
bluetooth-libs and I guess support was compiled in.
Also is shows.
# ldd /usr/bin/obex_test
libopenobex-1.0.so.0 =>
/usr/lib/libopenobex-1.0.so.0 (0x40024000)
libbluetooth.so.1 => /usr/lib/libbluetooth.so.1
libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2

How do I set transport when i.e. using obex_test? It
always tries to connect to IrDA which I do not have.

# obex_test -t bluetooth
Using IrDA transport
OBEX Interactive test client/server.
> c
Transport connect error! (IrDA)
> quit

Or, with obexftp:
# obexftp -v -i
No custom transport

Do I need to attach device file for it first? I guess I
need to use Bluetooth channel number 8 (OBEX) according to
< http://www.bluetoothsig.org/assigned-numbers/sdp.htm
>, which
says 0x0008 is OBEX, right?

Tried this also then:
# rfcomm bind 8 XX:XX:XX:XX:XX:XX 8
# rfcomm show
rfcomm8: XX:XX:XX:XX:XX:XX channel 8 clean
# obexftp -d /dev/bluetooth/rfcomm/8 -v -i
Custom transport set to 'Siemens'
Connecting...failed: connect

# obexftp -t Nokia -d /dev/bluetooth/rfcomm/8 -v -i
Custom transport set to 'Siemens'
Connecting...failed: connect

What is that -t (transport) anyway and what should I use?

I do see in the Nokia 7650 phone, something is trying
to connect as the Bluetooth indicator icon goes from
"o" to "(o)" for a while when obexftp is trying to connect.

And no, I haven't tried to figure out from source code
yet what is happening. I do have however trying to
guess what is going on by running obex_test and obexftp
under strace.

( zimon ät iki d0t fi)


  • Christian W. Zuckschwerdt

    • status: open --> closed
  • Christian W. Zuckschwerdt

    Logged In: YES

    Recent ObexFTP releases support bluetooth directly (and
    indirectly using rfcomm too) now. Please see


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks