Today, my post is about having fun with Bluetooh device in Ubuntu.
First and foremost, lets install obexftp and obexpushd package from OpenOBEX project.
sudo apt-get install obexftp obexpushd
Then, insert your bluetooth device. You should see the bluetooth logo appears in left upper side of your desktop.
![]()
Else, you can enable it by System > Preferences > Blueooth > General tab > Check the setting of Notification Area.
Send file to mobile device :
Activating mobile bluetooth connection and scan the device via below comman.
obexftp -b
Scanning result like this,
~$ obexftp -b
Scanning …
Using 00:17:E2:8B:07:7E Mr.D
Browsing 00:17:E2:8B:07:7E …
Channel: 9
Try to send a file via below command,
obexftp -b 00:17:E2:8B:07:7E -p song.mp3
Receive file from mobile device :
Turn on bluetooth device to discoverable mode.
hciconfig hci0 piscan
Enable obexpushd to listen incoming bluetooth connection.
obexpushd -B
Try to send a file from your mobile device or scan for your bluetooth device.
obexftp -b