UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Bluetooth file transfer with terminal

    Scheduled Pinned Locked Moved Solved Volla Tablet
    4 Posts 2 Posters 471 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F Offline
      ftmazzone
      last edited by

      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 ?

      G 1 Reply Last reply Reply Quote 0
      • F Offline
        ftmazzone @ftmazzone
        last edited by ftmazzone

        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-obex using crackle.

        crackle install bluez-tools
        

        I'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 3
        

        Terminal 2

        # Start the obexd tool
        /usr/libexec/bluetooth/obexd
        

        Terminal 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.txt
        

        On the Android device, make sure that you accept receiving the file from the Ubuntu Touch device and check that the content is sucessfully received.

        1 Reply Last reply Reply Quote 1
        • G Offline
          gpatel-fr @ftmazzone
          last edited by

          @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 !

          F 1 Reply Last reply Reply Quote 1
          • F Offline
            ftmazzone @gpatel-fr
            last edited by

            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 scan scan on, the bluetooth of the device is deactived.

            F 1 Reply Last reply Reply Quote 0
            • F Offline
              ftmazzone @ftmazzone
              last edited by ftmazzone

              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-obex using crackle.

              crackle install bluez-tools
              

              I'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 3
              

              Terminal 2

              # Start the obexd tool
              /usr/libexec/bluetooth/obexd
              

              Terminal 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.txt
              

              On the Android device, make sure that you accept receiving the file from the Ubuntu Touch device and check that the content is sucessfully received.

              1 Reply Last reply Reply Quote 1
              • F ftmazzone marked this topic as a question on
              • F ftmazzone has marked this topic as solved on

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post