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

    Trying to revive 'ubtd' (Bluetooth file transfer)

    Scheduled Pinned Locked Moved Solved App Development
    87 Posts 7 Posters 11.2k Views 5 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.
    • P Offline
      PhAndersson @domubpkm
      last edited by

      @domubpkm said:

      @PhAndersson Can connect with bluetooth a Volla with Volla OS to a Volla 22 with UT noble.

      There is currently a bug in Noble (up to 24.04-1.2) that prevents the OBEX daemon from starting.

      The fix exists and is already merged. Here is the related MR: https://gitlab.com/ubports/development/core/ubuntu-touch-session/-/merge_requests/81. It is supposed to be part of the upcoming 24.04-1.3.

      Based on earlier tests by @gpatel-fr, once this fix is available, 'ratatoskr' should work on Noble as well.

      Xiaomi Mi A2 (16.04 OTA-25/stable) with 2 SIMs
      Daily driver: Google Pixel 3a (20.04 OTA-11/stable) [was: Nokia N900 (Maemo) from 2009].

      G D 2 Replies Last reply Reply Quote 0
      • G Offline
        gpatel-fr @PhAndersson
        last edited by

        @PhAndersson

        yes that's it.
        @domubpkm
        you can add the fix even on stable with a systemd overlay file.

        phablet@ubuntu-phablet:~$ systemctl --user cat obex
        # /usr/lib/systemd/user/obex.service
        [Unit]
        Description=Bluetooth OBEX service
        
        [Service]
        Type=dbus
        BusName=org.bluez.obex
        ExecStart=/usr/libexec/bluetooth/obexd
        
        [Install]
        Alias=dbus-org.bluez.obex.service
        
        # /usr/lib/systemd/user/obex.service.d/ubuntu-touch-session.conf
        [Service]
        ExecStart=
        ExecStart=/usr/lib/bluetooth/obexd -P ftp,irmc,mas,pcsuite -r $HOME
        
        # /home/phablet/.config/systemd/user/obex.service.d/xxoverride.conf
        [Service]
        ExecStart=
        ExecStart=/usr/libexec/bluetooth/obexd -P ftp,irmc,mas,pcsuite -r $HOME
        

        after adding the overlay, you have to restart the obex service using systemctl --user restart obex

        1 Reply Last reply Reply Quote -1
        • D Offline
          domubpkm @PhAndersson
          last edited by

          @PhAndersson @gpatel-fr So the fix is in 1.3 daily. Wait 1.3 candidate to test. Thanks.

          1 Reply Last reply Reply Quote 0
          • D Offline
            domubpkm
            last edited by domubpkm

            @phandersson ok. I switched to dev channel and i tried to send a (big) file from my Volla 22 with UT to a Volla with volla OS with your last update : it works now. 👍. But i found the transfer speed was very slow. Could it be improve or not ?

            P P 2 Replies Last reply Reply Quote 0
            • P Offline
              projectmoon @domubpkm
              last edited by

              @domubpkm there is only so much data you can push over Bluetooth. Bluetooth file transfer will always be slow (sometimes very very slow).

              1 Reply Last reply Reply Quote 0
              • P Offline
                PhAndersson @domubpkm
                last edited by

                @domubpkm said:

                @phandersson ok. I switched to dev channel and i tried to send a (big) file from my Volla 22 with UT to a Volla with volla OS with your last update : it works now. 👍.

                Excellent news -- thanks for the feedback.

                But i found the transfer speed was very slow. Could it be improve or not ?

                Could you be a bit more specific, please? From what I read online, typical Bluetooth transfer speeds are between 1 and 3 Mbps.

                When I tested the app prior to releasing v0.1.1, I measured 1.3 Mbps when pushing a large file from my (Linux) laptop to the phone (Pixel 3a).

                Do you get a comparable bandwidth, or something much lower? (to measure it, I simply time the transfer and divide it by the file size).

                Xiaomi Mi A2 (16.04 OTA-25/stable) with 2 SIMs
                Daily driver: Google Pixel 3a (20.04 OTA-11/stable) [was: Nokia N900 (Maemo) from 2009].

                D 1 Reply Last reply Reply Quote 0
                • D Offline
                  domubpkm
                  last edited by

                  @phandersson I transferred a RAR file from UT smartphone to another with Volla OS, because no function to decompress RAR on UT. Did not work directly, extension not recognized. On the other hand, workaround by transforming the RAR extension into mp4: ok, worked. Then I put the RAR extension back in, and unzipped it without any problem. Just tested this. Make Ratatoskr recognize various extensions?

                  P 1 Reply Last reply Reply Quote 0
                  • D Offline
                    domubpkm @PhAndersson
                    last edited by

                    @PhAndersson 9 minutes for 130 MB from Volla 22 UT to Volla 22 volla OS.

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

                      @domubpkm

                      Well, if my calculation is correct that means about 2Mbits/s, it seems quite decent for Bluetooth.

                      P 1 Reply Last reply Reply Quote 0
                      • P Offline
                        PhAndersson @domubpkm
                        last edited by

                        @domubpkm said:

                        @phandersson I transferred a RAR file from UT smartphone to another with Volla OS, because no function to decompress RAR on UT. Did not work directly, extension not recognized. On the other hand, workaround by transforming the RAR extension into mp4: ok, worked. Then I put the RAR extension back in, and unzipped it without any problem. Just tested this.

                        Thanks for the feedback.

                        Make Ratatoskr recognize various extensions?

                        Well spotted -- the main app will accept incoming files of any type, but the SharePlugin only registers itself as handler for a limited number of file types. For no particular reason, as far as I know.

                        I've created the following issue to track this: https://github.com/petroniusniger/ratatoskr/issues/34

                        Xiaomi Mi A2 (16.04 OTA-25/stable) with 2 SIMs
                        Daily driver: Google Pixel 3a (20.04 OTA-11/stable) [was: Nokia N900 (Maemo) from 2009].

                        1 Reply Last reply Reply Quote 0
                        • P Offline
                          PhAndersson @gpatel-fr
                          last edited by

                          @gpatel-fr said:

                          @domubpkm

                          Well, if my calculation is correct that means about 2Mbits/s, it seems quite decent for Bluetooth.

                          Agreed.

                          Xiaomi Mi A2 (16.04 OTA-25/stable) with 2 SIMs
                          Daily driver: Google Pixel 3a (20.04 OTA-11/stable) [was: Nokia N900 (Maemo) from 2009].

                          1 Reply Last reply Reply Quote 0

                          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