Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Raspberry Pi3 and QTbluetooth rfcomm server
QtWS25 Last Chance

Raspberry Pi3 and QTbluetooth rfcomm server

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
11 Posts 3 Posters 3.6k Views
  • 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.
  • A Offline
    A Offline
    Avtansh Sharma
    wrote on last edited by
    #1

    Hi,
    I am getting below error while using QTBluetooth rfcomm server.

    qt.bluetootg.bluez: Device does not support Bluetooth .

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Did you test and verify that BT is up and running and working?
      https://www.cnet.com/how-to/how-to-setup-bluetooth-on-a-raspberry-pi-3/

      1 Reply Last reply
      1
      • A Offline
        A Offline
        Avtansh Sharma
        wrote on last edited by
        #3

        I had already installed bluez blueman and all the required packages. I have written native c++ code for bluetooth .

        Native code -working
        Qt bluetooth -not working


        Regards,
        Avtansh Sharma

        mrjjM 1 Reply Last reply
        1
        • A Avtansh Sharma

          I had already installed bluez blueman and all the required packages. I have written native c++ code for bluetooth .

          Native code -working
          Qt bluetooth -not working


          Regards,
          Avtansh Sharma

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Avtansh-Sharma

          Ok most likely something to do with Qt expected version
          and the actual installed version of Bluez

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Avtansh Sharma
            wrote on last edited by
            #5

            Hi,

            QT version details are
            Qt Creator 3.2.1
            Based on Qt 5.3.2 (GCC 4.9.2, 32 bit)

            Built on May 11 2016 at 17:13:20

            Copyright 2008-2014 Digia Plc. All rights reserved.

            The program is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

            I have installed below packages on Raspberry pi 3

            sudo apt-get install libbluetooth-dev bluetooth blueman bluez libusb-dev libdbus-1-dev bluez-hcidump bluez-tools

            Bluez version
            bluetoothctl --version
            5.45

            Can someone please verify which version is required.

            jsulmJ mrjjM 2 Replies Last reply
            0
            • A Avtansh Sharma

              Hi,

              QT version details are
              Qt Creator 3.2.1
              Based on Qt 5.3.2 (GCC 4.9.2, 32 bit)

              Built on May 11 2016 at 17:13:20

              Copyright 2008-2014 Digia Plc. All rights reserved.

              The program is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

              I have installed below packages on Raspberry pi 3

              sudo apt-get install libbluetooth-dev bluetooth blueman bluez libusb-dev libdbus-1-dev bluez-hcidump bluez-tools

              Bluez version
              bluetoothctl --version
              5.45

              Can someone please verify which version is required.

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Avtansh-Sharma This is not Qt version, but QtCreator version + Qt which was used to build QtCreator.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              1
              • A Avtansh Sharma

                Hi,

                QT version details are
                Qt Creator 3.2.1
                Based on Qt 5.3.2 (GCC 4.9.2, 32 bit)

                Built on May 11 2016 at 17:13:20

                Copyright 2008-2014 Digia Plc. All rights reserved.

                The program is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

                I have installed below packages on Raspberry pi 3

                sudo apt-get install libbluetooth-dev bluetooth blueman bluez libusb-dev libdbus-1-dev bluez-hcidump bluez-tools

                Bluez version
                bluetoothctl --version
                5.45

                Can someone please verify which version is required.

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @Avtansh-Sharma

                Hi
                for Bluez 5 i think you need at least Qt 5.4
                https://blog.qt.io/blog/2015/06/29/qt-bluetooth-and-its-state-of-the-union/

                I assume you are also using an older Qt since you have such older Creator ?

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  Avtansh Sharma
                  wrote on last edited by
                  #8

                  Hi,
                  I read the blog it says Bluez 4.x versions will be supported for lower Qt versions
                  If try the reverse direction. Lower the bluez version instead of upgrading the QT it should work.
                  Compiling and building QT for Raspberry Pi3 will be tedious.

                  Quote from blog
                  "From its first release in Qt 5.2 onwards, it has grown and improved in every Qt release.

                  In light of the forthcoming Qt 5.5 release, I’d like to tell you a bit more about the current status of Qt Bluetooth. It started out as a solution to interact with Bluetooth devices on Linux using Bluez 4.x."


                  Regards.
                  Avtansh Sharma

                  1 Reply Last reply
                  0
                  • mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Hi
                    What version of Qt are you using ?

                    A 1 Reply Last reply
                    0
                    • mrjjM mrjj

                      Hi
                      What version of Qt are you using ?

                      A Offline
                      A Offline
                      Avtansh Sharma
                      wrote on last edited by
                      #10

                      @mrjj

                      QMake version 3.0
                      Using Qt version 5.3.2 in /usr/lib/arm-linux-gnueabihf

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        Avtansh Sharma
                        wrote on last edited by
                        #11

                        Hi,

                        I tried to lower the bluez version but unsuccessful in gettin qt bluetooth work for me

                        bluetoothd -v
                        4.101

                        According to blog it should have worked. Can you please give a official link from where I can get what is the compatible version of bluez with my qt version

                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved