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
    81 Posts 7 Posters 9.1k 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 Should the app be shown in UT TT apps ? I don't see anything on my Volla 22.

      I'm sorry, I guess I'm a bit slow tonight, but I'm not clear on what 'TT' means in this context. Can you clarify?

      What should be the names of the cache config data directories ?

      The app cache is in ~/.cache/ratatoskr.petroniusniger/. This is where incoming files are kept -- but there is no config data there (the app doesn't store any configuration data at this stage).

      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 P 2 Replies Last reply Reply Quote 0
      • D Offline
        domubpkm @PhAndersson
        last edited by

        @PhAndersson UT Tweak Tool https://open-store.io/app/ut-tweak-tool.sverzegnassi

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

          Sure, Tweak Tool, of course -- sorry.

          I just checked on my phone and it shows there, yes. Just look under the name 'Ratatoskr' (that's the actual name I gave the app -- "Bluetooth file transfer" is only a description).

          It's the first UT app I built, so I'm not familiar yet with all the intricacies of the dev. workflow.

          In any case, it seems there was a mixup, as the packages that were pushed on the server are v0.1.0, not v0.1.1. The "file sending" functionality may not be functional in that version (the receiving one should be).

          I'll try to get this fixed tomorrow.

          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].

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

            I need to amend the statement above. After further tests, the code that has been used to generate the packages is the correct one, so all the latest functionalities are present, and both sending and receiving files should work.

            The only problem is that the wrong version string has been used when building.

            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 @PhAndersson
              last edited by domubpkm

              @PhAndersson Can connect with bluetooth a Volla with Volla OS to a Volla 22 with UT noble. Try to send a little video from Volla to Volla 22 following the procedure. But doesn't work currently. File not sent / received.

              P 1 Reply Last reply Reply Quote 0
              • 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 1 Reply 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

                        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