Bluetooth file transfer with terminal
-
Hello
I am facing the same issue than @thomasf with bluetooth file transfer as the Bluetooth File Transfer app disappeared. I've tried with ObexFTP but it seems that it is not installed per default.
Is there a way to transfer files using the terminal and a transfer utility ?
-
Hello
I've managed to send a file using Bluetooth. First to get bluetooth running again, I've reset the device.
After this, bluetooth service worked again normally.As advised by @gpatel-fr, I've installed
bt-obexusing crackle.crackle install bluez-toolsI've then opened 3 Terminal tabs to run these tasks in parallel:
Terminal 1
# To find the Android phone receiving the file bluetoothctl scan on # Find and copy the MAC address of the Android bluetooth adapter to paste it in terminal 3Terminal 2
# Start the obexd tool /usr/libexec/bluetooth/obexdTerminal 3
# Make sure that the Android bluetooth device is discoverable # Send the file with bt-obex bt-obex -p [MAC address of the Android bluetooth adapter] /tmp/test-bluetooth.txtOn the Android device, make sure that you accept receiving the file from the Ubuntu Touch device and check that the content is sucessfully received.
-
@ftmazzone said in Bluetooth file transfer with terminal:
I've tried with ObexFTP but it seems that it is not installed per default.
Hello
sorry but what you say is not entirely clear... If the problem is that it's not installed, how did you manage to try it ?
If the problem IS that you could not install it, try to setup crackle, a tool that will allow you to use the nix library from which your tool is available:phablet@ubuntu-phablet:~$ crackle install obexftp Installing obexftp... done! Activating... done! phablet@ubuntu-phablet:~$ obexftp Nothing to do. Use --help for help.As the bluez daemon seems to be installed already, maybe it will work for you. I don't think I have the necessary hardware (another bluetooth device capable of storage) to test it myself.
If yes, don't forget to report back ! -
Hello @gpatel-fr
Thanks for your help to install ObexFTP, this worked. However I was unable to pair to a bluetooth device using
bluetoothctl. As soon, as I activate the scanscan on, the bluetooth of the device is deactived. -
Hello
I've managed to send a file using Bluetooth. First to get bluetooth running again, I've reset the device.
After this, bluetooth service worked again normally.As advised by @gpatel-fr, I've installed
bt-obexusing crackle.crackle install bluez-toolsI've then opened 3 Terminal tabs to run these tasks in parallel:
Terminal 1
# To find the Android phone receiving the file bluetoothctl scan on # Find and copy the MAC address of the Android bluetooth adapter to paste it in terminal 3Terminal 2
# Start the obexd tool /usr/libexec/bluetooth/obexdTerminal 3
# Make sure that the Android bluetooth device is discoverable # Send the file with bt-obex bt-obex -p [MAC address of the Android bluetooth adapter] /tmp/test-bluetooth.txtOn the Android device, make sure that you accept receiving the file from the Ubuntu Touch device and check that the content is sucessfully received.
-
F ftmazzone marked this topic as a question
-
F ftmazzone has marked this topic as solved