Send files over bluetooth in Ubuntu

Written on July 5, 2008 – 2:24 pm | by Sanil S
Post Page Rank
This entry is part 5 of 6 in the series Bluetooth tools

We are using OBEX protocol for sending files over bluetooth. For sending files we need to install obexftp and obexpushd package. I will explain the procedure for installation first. We can use package manager apt for this.

sudo apt-get install obexftp obexpushd

Steps to send a file from your Ubuntu machine

For sending a file to nearby devices we need to find bluetooth device first. We know each and every bluetooth device(s) have unique hardware address. We need to find the hardware address first. Scan the nearby device(s). Open a terminal and type the command below.

hcitool scan

This will show the scan result as below.

Inquiring ...
00:17:00:98:39:E2 clock offset: 0x75a5 class: 0x522204

This is a bluetooth device nearby. Copy the address in displayed in your terminal window. Select the file you want to send. Type the command below to send the file to your nearby bluetooth device. For instance the file name be “icon.gif” and address be “00:17:00:98:39:F2“. (The device is my mobile phone)

obexftp -b 00:17:00:98:39:F2 -p icon.gif

This will send the file icon.gif to the external bluetooth device. I will explain the process of receiving in my next post. Enjoy reading!!!

Series Navigation«Set up bluetooth in UbuntuReceive files over bluetooth in Ubuntu»

If you enjoyed this post, make sure you subscribe to my RSS feed!

Enter your email address:

Delivered by FeedBurner

Posted in » wireless

3 Responses

Hi!,


name on Sep 1, 2008 | Reply

[...] Post SeriesProximity tracking using BluetoothBluetooth OBEX :- What is it?Set up bluetooth in UbuntuSend files over bluetooth in UbuntuReceive files over bluetooth in UbuntuWe are also using OBEX protocol for receiving. In my earlier [...]


Receive files over bluetooth in Ubuntu | I am a Techie, Ain't you? Your daily cup of technology. on Jul 7, 2008

[...] - bookmarked by 1 members originally found by theRealRikku14 on 2008-08-14 Send files over bluetooth in Ubuntu http://www.iamatechie.com/send-files-over-bluetooth-in-ubuntu/ - bookmarked by 6 members [...]


Bookmarks about Ubuntu on Sep 4, 2008

Leave a comment