Send and receive files via bluetoothctl on Debian jessie

9,265

The bluetoothctl is used only to control your bluetooth devices , to transfer your file you should use another tools for example obexftp :

apt install obexftp

man obexftp :

obexftp is used to access files on mobile equipment, i.e. cell phones. 
With obexftpd you can transfer files between any computers using IrDA, 
Bluetooth and TCP/IP

To get the file bar from directory foo from the first bluetooth device:

obexftp -b -c foo -g bar

or using the MAC_Address :

obexftp -b MAC_address -g bar

To send the file bar to directory foo with device on first serial port:

obexftp -t /dev/ttyS0 -c foo -p bar

Or using the MAC_Address :

obexftp -b MAC_address -p bar

Option:

-p source, --put source
-g source, --get source
-b device, --bluetooth device
-t device, --tty device
Share:
9,265

Related videos on Youtube

xtofl
Author by

xtofl

Love a clean program, where you can tell each functions meaning, each class's responsibilities, each variable's purpose. Balancing between getting that right, and getting the job done.

Updated on September 18, 2022

Comments

  • xtofl
    xtofl over 1 year

    I have already successfully paired and connected to my smartphone device. Now when i send files from my phone to my Laptop the files will not be sent. How can i send and receive files using bluetoothctl on Debian 8.7? Can any one give me some source for reading, i can't find much about bluetoothctl on internet.

  • Admin
    Admin about 7 years
    Running the commands of obexftp doesn't do anything. It prints that its browsing the MAC_Address Device, but cant find and connect to it. I have bluwtoothctl on and my device connected to my laptop.