This forum has been archived. All content is frozen. Please use KDE Discuss instead.

bluetooth - recieve files from phone to Linux Desktop

Tags: None
(comma "," separated)
vahid
Registered Member
Posts
32
Karma
0
Ok I am unsure of other distributions but on Debian/Ubuntu/Kubuntu

make sure kbluetooth4 is installed and running
This will appear as a bluetooth icon in system tray, right click this then goto device manager and enable bluetooth on your phone then click new icon and follow the wizard to add your phone so that your phone recognises your PC as a device.
Now that is configured you need to install and run obexpushd
Code: Select all
apt-get install obexpushd


obexpushd -n


Now goto your phone visit your mp3/photos and then if you have options to send via blue tooth select it - then choose your PC which should be mapped to kbluetooth4 - now as you can see I got the file from phone to PC - it will store the file in which ever folder the daemon was started from:

Code: Select all

obexpushd  -n
obexpushd 0.7 Copyright (C) 2006-2007 Hendrik Sattler
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions.
Listening on bluetooth [00:00:00:00:00:00]:9
Connection from "bluetooth/[00:23:45:5B:77:A5]:9"
0.1: Creating file "DSC00075.JPG"
^C


Above code explained :
The blue line is the launch line
In the red italics is when my phone started to send an image to my pc, when I selected send file via bluetooth and selected mapped device from kbluetooth4.

obexpushd -n
obexpushd 0.7 Copyright (C) 2006-2007 Hendrik Sattler
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions.
Listening on bluetooth [00:00:00:00:00:00]:9
Connection from "bluetooth/[00:23:45:5B:77:A5]:9"
0.1: Creating file "DSC00075.JPG"

^C
#use ctrl c to break out of daemon

I checked the file and it was received and viewable


Issues:

starting obexpushd you get error:
Code: Select all
BtOBEX_ServerRegister: Address already in use




This probably means obex-data-server is running
You will need to kill the process for obex-data-server and try launching obexpushd again.

Code: Select all
ps auwx|grep obex-da
ter    3573  0.0  0.0  43428  2248 pts/1    S    12:59   0:00 /usr/bin/obex-data-server --no-daemon
kill -9 3573
ter@muttley:~$ ps auwx|grep obex-da
ter    3658  0.0  0.0   7528   904 pts/1    S+   13:00   0:00 grep obex-da
[1]+  Killed                  /usr/bin/obex-data-server --no-daemon

                 /usr/bin/obex-data-server --no-daemon

Last edited by vahid on Sun Jul 05, 2009 11:56 am, edited 3 times in total.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Can you please add [\code\] bbcode around the commands to execute so it is clear what is needed to be executed? Thanks in advance.
User avatar
sayakb
Administrator
Posts
1973
Karma
12
OS
Nice tutorial.
Although I didn't need obexpushd on my computers for being able to receive files. What is your Kubuntu version?

I'm using Jaunty with kbluetooth4 version 0.3 which offers me "Mode" settings in bluetooth adapter settings, which upon setting to 'discoverable' receives files without pain.
Or am I missing a point in this article?
vahid
Registered Member
Posts
32
Karma
0
:) ooops
Yep this way works and a lot cleaner.

The only difference between this method and my previous method with my phone was:

In this method once I enabled bluetooth on my phone I had to go my devices and connect to PC first before being able to send the file.

In old method once bluetooth was on and running on both ends [regardlss of a connection established] it sent the file

I checked the status whilst I sent the file using my method and it made a connection then disconnected.

But agree your method is much better thanks for the tip.
User avatar
sayakb
Administrator
Posts
1973
Karma
12
OS
Heh well, since KBluetooth4 had been broken in Intrepid (to an extent that I started using bluez-utils ;) ), lot of work was done on it in Jaunty. Earlier, even bluez needed pairing of devices, but as you said, kbluetooth4 seems to go without that as well.

Nevertheless, always good to have alternatives :)
User avatar
dandv
Registered Member
Posts
28
Karma
0
OS

2021 update

Tue Jun 01, 2021 8:40 pm
As of 2021, I was still unable to receive files by default with Plasma 5.21.5. My phone was paired with the laptop, marked as Trusted, and connected. I could send files *to* the phone, but not receive from the phone. There was no confirmation dialog on the laptop to receive the file.

The solution was to go to the Bluetooth configuration on the laptop, and change "When receiving files" from "Ask for confirmation" to "Accept for trusted devices".


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]