This is continuation from the previous Howto I wrote. This assumes that you have manged to successfully transfer files from the bluetooth (phone) to PC. So now you want a file transfered to the bluetooth phone. Lets try this the simple way and that you have a standard setting on the bluetooth phone.
Before you start, check the following packages are installed:
gnome-utils-2.14.0-5.
gnome-bluetooth-0.7.0-2
gnome-bluetooth-libs-0.7.0-2
libbtctl-0.6.0-5
openobex-1.1-1
1. Ensure bluetooth service is running and detect services your phone provides
Code:
service bluetooth start
hcitool scan
Scanning ...
00:16:75:85:82:12 Moto V360 Nicholas
sdptool browse 00:16:75:85:82:12
2. On the FC5 PC.
As normal user.
Right click "Panel bar" -> "Add to panel" -> "Create a new launcher"
Click "Add" button and fillin as follows:
Name: Send via bluetooth
Generic name: gnome-obex
Command: gnome-obex-send %f
Type: Application
Icon: (Select the bluetooth symbol..looks like two arrow pointing to right on a blue pebble)
Click "Close"
Then Click "Close" button
3. Start bluetooth on the phone (I am using Motorola V360)
Menu -> bluetooth -> Setup -> Find Me
On the FC5 open Nautilus and search for a file type that the phone recognise. I am using JPEG file. Drag the file to the bluetooth icon on the panel.
Wait until a Window "Choose Bluetooth device" appears with your phone name. Click on the phone name and click "OK". On the phone you should see it is connecting and an "Incoming transfer" box appear". Click on "Accept" and wait for the file to be sent to the phone. Then click on "Save"
Showing posts with label Bluetooth. Show all posts
Showing posts with label Bluetooth. Show all posts
Friday, February 19, 2010
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
1. Ensure that the bluetooth clients are installed:
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
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
3. Test the connection by the following command:
As user
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.
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
gnome-bluetooth
gnome-bluetooth-libs
Code:
yum -y install gnome-bluetooth gnome-bluetooth-libs
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
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
As user
Code:
hcitool scan
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.
Subscribe to:
Posts (Atom)