Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. [SOLVED]Question about Bluetooth Scanner Example
QtWS25 Last Chance

[SOLVED]Question about Bluetooth Scanner Example

Scheduled Pinned Locked Moved QtonPi
6 Posts 3 Posters 4.7k 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.
  • P Offline
    P Offline
    peterlin82
    wrote on last edited by
    #1

    I apt-get install bluetooth bluez-utils libbluetooth-dev.
    Then reference http://qt-project.org/wiki/Native_Build_of_Qt5_on_a_Raspberry_Pi
    install Qt 5.2.1

    When I try Bluetooth Scanner Example.
    Discoverable(checkBox) property always disabled.

    Information:
    Raspberry Pi(2014-01-07-wheezy-raspbian.zip)
    Azio BTD-V201 USB Micro Bluetooth Adapter

    Any help would be appreciated!

    sorry for my english.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      peterlin82
      wrote on last edited by
      #2

      I use another USB Bluetooth Adapter(Broadcom Chipset).
      http://24h.pchome.com.tw/prod/DCAD02-A65090899

      but the same problem.
      Bluetooth Scanner Example(~/opt/qt5/qtconnectivity/examples/bluetooth/btscanner).
      Scan(Button) and Discoverable(Check box) property always disabled.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        ablasche
        wrote on last edited by
        #3

        Did you build QtBluetooth from scratch? For a successfull QtBluetooth build you have to have a QtDBus enabled Qt build.

        When you run "make qmake" in src/bluetooth it prints out a warning if one of the dependencies (bluez or dbus) are not met and the system falls back to the dummy backend.

        You can check whether the bluez dependency was recognized in qtconnectivity/.qmake.cache. It should have the following line in it:

        @CONFIG += config_bluez
        @

        A strong indication for dbus enabled builds are the existence of qtbase/lib/libQt5DBus.so. Another option is to check the configure output. It tells you whether it was able to find dbus.

        --
        Alex

        1 Reply Last reply
        0
        • P Offline
          P Offline
          peterlin82
          wrote on last edited by
          #4

          That was my fault.

          Solved by run “make qmake” in src/bluetooth.

          Alex Blasche,Thank you very much.

          1 Reply Last reply
          0
          • F Offline
            F Offline
            freewave
            wrote on last edited by
            #5

            I've stucked with the same problem. peterlin82 can you explain step by step how did you solved your problem.

            1 Reply Last reply
            0
            • F Offline
              F Offline
              freewave
              wrote on last edited by
              #6

              I've stucked with the same problem. peterlin82 can you explain step by step how did you solved your problem.

              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