Thursday, April 28, 2011

Linux Bluetooth File Transfer (mobile to pc)


Firstly, transfering a file from a bluetooth device to Linux Fedora Core 5 is easy. The FC5 kernel is 2.6.18-1.2200 on a 32 bit machine.
I have the following: A Motorola V360 with Bluetooth. My PC is connected to a bluetooth doggle (blue thunder). My desktop is on the default GNOME 2.14.3.

[OPTIONAL]
Install usbutils-0.71-2 as it helps to detect the USB bluetooth doggle.
As root
Code:
yum install usbutils
1. Ensure that the bluetooth clients are installed:
gnome-bluetooth
gnome-bluetooth-libs
Code:
yum -y install gnome-bluetooth gnome-bluetooth-libs
Dependency: libbtctl-0.6.0-5 and openobex-1.1-1
2. Ensure the Bluetooth service is running. Since my PC does not have Bluetooth, I need to plugin the bluetooth doggle now. Display the end of the log file.
As root
Code:
cat /var/log/messages
This will display some HCI device messages. Mine shows the following:
Oct 29 14:20:27 xcitebox hcid[27885]: HCI dev 0 registered
Oct 29 14:20:27 xcitebox kernel: hci_cmd_task: hci0 command tx timeout
Oct 29 14:20:27 xcitebox hcid[1630]: HCI dev 0 registered
Oct 29 14:20:28 xcitebox hcid[27885]: HCI dev 0 up
Oct 29 14:20:28 xcitebox hcid[27885]: Starting security manager 0
Oct 29 14:20:28 xcitebox hcid[1630]: HCI dev 0 up
Oct 29 14:20:28 xcitebox hcid[1630]: Starting security manager 0


As root
Code:
service bluetooth start
3. Test the connection by the following command:
As user
Code:
hcitool scan
4. At the phone
Select bluetooth link menu
->Set up ->Find Me

You should see that the hcitool scanning is able to find the phone.

5. Start the bluetooth client.

Application -> System tools -> Bluetooth File Sharing

On the phone send the image or any other data via bluetooth.
Example: On the phone select the Picture
-> menu -> copy -> bluetooth -> [Look for devices]
Select the Bluetooth doggle device

6. On the PC
When the bluetooth request is received a pop up box will appear
"Accept a file from <......your phone name...> "

Click "Accept"

Finally, you should be able to find the file in your home directory. Hope it works for you as simple as I have found it.

No comments:

Post a Comment