Howto Send and Recieve files over Bluetooth with Ubuntu Linux
|
|
With advancement of wireless technology, bluetooth has become a de facto standard for transferring files (and synchronizing data) between mobile devices (PDA, smartphone) and personal computer.
In this post I'm going to show you how to send and receive files over bluetooth using obexftp and obexpushd package from OpenOBEX project.
Send files to mobile device
First install obexftp and obexpushd
sudo apt-get install obexftp obexpushd
Insert a bluetooth dongle and activate bluetooth on your mobile phone. Do a scan of nearby bluetooth device (your mobile phone) by executing :
obexftp -b
obexftp then will display the scan result on your screen, like this :
Scanning ... Using 00:15:A0:53:6F:85 Nokia 6680 Browsing 00:15:A0:53:6F:85 ... Channel: 10
Pick a file, and try sending it over bluetooth by executing :
obexftp -b 00:15:A0:53:6F:85 -p example.txt
obexftp will then send the file to your bluetooth device (address : 00:15:A0:53:6F:85 - taken from previous command). Make sure that you set the mobile device to accept the file.
How to receive files over bluetooth
Insert bluetooth dongle and turn it into discoverable mode
hciconfig hci0 piscan
Run obexpushd tool and listen to the incoming bluetooth connection
obexpushd -B
You should be able to receive file sent from your mobile device to your Ubuntu pc now. The files will be stored in your /home directory.
Alternatively, you can install gnome-bluetooth to receive files over bluetooth right on your Gnome Desktop.
Tags: obex, bluetooth, mobile, pda, mobile phones, gutsy, ubuntu, feisty fawn, gutsy gibbon, linux, howto, opensource
Keep updated with this website! : Subscribe to your email
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.


October 15th, 2007 at 11:37 pm
this tip work for me.thanks.
October 16th, 2007 at 10:37 am
i’ll try later on. tq
p/s : how to conf ‘screen resoluton to ’1280 x 1024′!?
October 18th, 2007 at 7:02 pm
hello there
November 19th, 2008 at 1:44 am
is there a way to have obexpushd ask for a password when the laptop is receiving a file?
April 17th, 2009 at 4:50 am
worked like a charm ;D
thanks
May 22nd, 2009 at 5:53 am
I want to add these commands in python script how can I do that?
July 23rd, 2009 at 2:34 am
Thanks, it really help me, I just need to send a picture from a broken server. thanks again.
October 1st, 2009 at 7:24 am
this worked thanks a lot
April 6th, 2010 at 4:02 pm
Nice one, I’ve been having to reboot in Windows every time I want to transfer a photo from my phone.
Thanks!