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

"The other" Bluetooth Thread

Scheduled Pinned Locked Moved OS
14 Posts 4 Posters 2.1k 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.
    • D Offline
      dobey
      last edited by 5 Sept 2018, 15:02

      Hi,

      I am not sure why TTY support would be reported as unavailable. However, I'm also not sure if the location service has support for using an external GPS device yet either, so even if you were able to connect to the device, it may not be useful with the phone at the moment.

      I would suggest to please open an issue on the github for this, if you have not already.

      L 1 Reply Last reply 30 Nov 2018, 16:12 Reply Quote 2
      • P Offline
        Pulsar33
        last edited by 5 Sept 2018, 17:51

        Many thanks for answering me !

        I don't want to use the location service with an external GPS (the internal GPS works for that). I just want to easily capture my track and other parameters in a file (and then make statistics or import the track to Openrunner for example). That works with a laptop (or desktop) running MINT without problem (and needs no specific application except Terminal) as said above.

        I will follow your suggestion but being currently with Ubuntu Touch OTA-15, I tried to know before that if the problem is the same for UBports OTA-3 and OTA-4 in order to give a usefull information.

        Does the exact message "RFCOMM TTY support not available" make sense for developpers ?
        When speaking of Bluetooth today, people think to car connexion, voice calls, music playing, but before all that, the first function offered by bluetooth was the RS232 replacement ... Have we lost it ?

        Best regards
        Pulsar33

        Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
        Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
        Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

        1 Reply Last reply Reply Quote 0
        • D Offline
          dobey
          last edited by 5 Sept 2018, 18:43

          The rfcomm command is not the only way to create a serial Bluetooth connection. It may be that it simply does not work that way on the devices which require the Android layer underneath and hybris, in order to work.

          It's almost certainly possible to create such a connection, but UT is not a standard traditional PC Linux distribution, and many things do not work the same way, due to the hardware and Android/hybris, or just because of security.

          RE: capture of data from this device, are you saying you would carry it with you, but not the phone, and then later sync the data to the phone to import into an app? It may just be that an app needs to be created to do what you want and initiate the bluetooth pairing to that device. For example, I'm pretty sure the Rockwork app for Pebble watches uses a serial connection for communications.

          P 1 Reply Last reply 5 Sept 2018, 19:14 Reply Quote 1
          • P Offline
            Pulsar33 @dobey
            last edited by Pulsar33 9 May 2018, 19:15 5 Sept 2018, 19:14

            @dobey said in "The other" Bluetooth Thread:

            The rfcomm command is not the only way to create a serial Bluetooth connection.

            RE: capture of data from this device, are you saying you would carry it with you, but not the phone, and then later sync the data to the phone to import into an app?

            No : the GPS would be fixed on my bike and the phone would be near it, where I found it usefull, capturing in real time. This GPS doesn't save data, it just transmits and forgets it.

            The important point here is to use basic serial communication (this GPS being an example but not the only one) without the need to install an application. If you have other OS tools suggestions than rfcomm being able to open a bluetooth serial line, I would be glad to give a try ...

            Once more, many thanks for your answers.
            Pulsar33

            Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
            Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
            Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

            P 1 Reply Last reply 7 Sept 2018, 05:37 Reply Quote 0
            • J Offline
              jezek
              last edited by 5 Sept 2018, 23:07

              Just a guess...
              How about trying, some rfcomm alternative, like bluez-tools? Or am I wrong?

              jEzEk

              P 1 Reply Last reply 6 Sept 2018, 06:26 Reply Quote 1
              • P Offline
                Pulsar33 @jezek
                last edited by 6 Sept 2018, 06:26

                @jezek : Thank you for the suggestion
                However, this confirm the problem :
                [bluetooth]# info [GPS ADDRESS]
                Device [GPS ADDRESS]
                Name: BT-GPS-3197E9
                Alias: BT-GPS-3197E9
                Class: 0x001f00
                Paired: yes
                Trusted: yes
                Blocked: no
                Connected: no
                LegacyPairing: yes
                UUID: Serial Port (00001101-0000-1000-8000-00805f9b34fb)
                RSSI: -45

                [bluetooth]# connect [GPS ADDRESS]
                Attempting to connect to [GPS ADDRESS]
                [CHG] Device [GPS ADDRESS] Connected: yes
                Failed to connect: org.bluez.Error.NotAvailable
                [CHG] Device [GPS ADDRESS] Connected: no

                This is the same result as when I do a connexion through the Touch UI
                The error NotAvailable sounds like the rfcomm answer ...
                Have a good day
                Pulsar33

                Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
                Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
                Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

                J 1 Reply Last reply 6 Sept 2018, 16:04 Reply Quote 0
                • J Offline
                  jezek @Pulsar33
                  last edited by 6 Sept 2018, 16:04

                  @pulsar33 oh, so I don't need to try. Time saved. Thanks.

                  jEzEk

                  1 Reply Last reply Reply Quote 0
                  • P Offline
                    Pulsar33 @Pulsar33
                    last edited by Pulsar33 9 Jul 2018, 05:40 7 Sept 2018, 05:37

                    @pulsar33 said in "The other" Bluetooth Thread:

                    The important point here is to use basic serial communication (this GPS being an example but not the only one) without the need to install an application. If you have other OS tools suggestions than rfcomm being able to open a bluetooth serial line, I would be glad to give a try ...

                    Any other idea ?

                    And the most important :
                    @pulsar33 said in "The other" Bluetooth Thread:

                    Does the exact message "RFCOMM TTY support not available" make sense for developpers ?

                    Have a nice day
                    Pulsar33

                    Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
                    Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
                    Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

                    J 1 Reply Last reply 7 Sept 2018, 20:29 Reply Quote 0
                    • J Offline
                      jezek @Pulsar33
                      last edited by 7 Sept 2018, 20:29

                      @pulsar33 said in "The other" Bluetooth Thread:

                      @pulsar33 said in "The other" Bluetooth Thread:

                      The important point here is to use basic serial communication (this GPS being an example but not the only one) without the need to install an application. If you have other OS tools suggestions than rfcomm being able to open a bluetooth serial line, I would be glad to give a try ...

                      Any other idea ?

                      Maybe this could be any help.
                      https://github.com/ykasidit/bluez-compassion
                      Or is it as useless as my previous suggestion?

                      jEzEk

                      P 1 Reply Last reply 8 Sept 2018, 18:01 Reply Quote 0
                      • P Offline
                        Pulsar33 @jezek
                        last edited by 8 Sept 2018, 18:01

                        @jezek : Hum, I don't know ...
                        It seems to be scripts using rfcomm.
                        bt-serial : Connects to a specific RFCOMM based service on a remote device and then creates a RFCOMM TTY device for it

                        Not installed by default I think. So, a bit out of scope.

                        Best regards
                        Pulsar33

                        Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
                        Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
                        Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

                        1 Reply Last reply Reply Quote 0
                        • L Offline
                          L-00117 Banned @dobey
                          last edited by 30 Nov 2018, 16:12

                          This post is deleted!
                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post