I am trying to transfer images from my phone (an older Huawei model) to a PC running Ubuntu 20.04 LTS via Bluetooth.
Keeping the Bluetooth settings dialog open (as it is described on some web sites), the phone reports that the PC denied the receiption of the file.
Trying "blueman" as suggested in another answer (or in one answer to this question), I have a strange behaviour:
- If the phone is marked as "trusted device", I get the same error message from the phone.
- When the phone was marked as "untrusted device", the phone reported that the file has been sent successfully and Ubuntu reported that the file has been received.
However, the file was not stored on the disk and I was not reproduce that behaviour.
Using bt-obex
, my phone reports "file successfully transferred" but the files are not stored in the Downloads
directory but an empty file is created in ~/.cache/obexd
:
$ mkdir destdir
$ bt-obex -y -s destdir
[OBEX Server] OBEX session opened
[OBEX Server] Transfer started
[Transfer Request]
Name: IMG_20211009_102029.jpg
Size: 2667331 bytes
[OBEX Server] OBEX transfer closed
[OBEX Server] OBEX session closed
^C
$ find . | grep IMG_20211009_102029
./.cache/obexd/IMG_20211009_102029.jpg
$ wc .cache/obexd/*.jpg
0 0 0 .cache/obexd/IMG_20211009_102029.jpg
It would not be a problem if the file would be stored in .cache/obexd
, but as you can see, the file in that directory is empty!
Why does receiption of the file fail?
EDIT
I found out that receiving files using obexpushd
works well...