Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-52565

QBluetoothLocalDevice cannot find local Bluetooth adapter

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • 5.7.0 RC
    • 5.7.0 Alpha
    • None
    • Ubuntu 15.10 (Virtualbox Guest)
      BlueZ 5.35

    Description

      QBluetoothLocalDevice on Qt 5.7 Alpha doesn't seem to be able to detect my Bluetooth adapter. QBluetoothLocalDevice::allDevices() returns an empty list, and any QBluetoothLocalDevice object that I try to create returns null addresses with isValid() always false even if I explicitly specify the MAC address of the local Bluetooth device in the constructor. When I run the same exact code on 5.6 it finds the device just fine and returns the same MAC address that is displayed in hciconfig.

      I can see the device is up and running when I do hciconfig, and the device is visible when I query DBus managed objects (the output from that is here: http://pastebin.com/Zg3QieVS). The hciconfig output is below:

      hci0:	Type: BR/EDR  Bus: USB
      	BD Address: 5C:F3:70:72:5B:C6  ACL MTU: 1021:8  SCO MTU: 64:1
      	UP RUNNING 
      	RX bytes:712 acl:0 sco:0 events:50 errors:0
      	TX bytes:2507 acl:0 sco:0 commands:50 errors:0
      

      I've attached the minimal example that I've been using to test this.

      I built the alpha from the source file here. I was unable to use the beta snapshot .run file here as it complained that it couldn't find a license whenever I tried to compile, even when I installed it as open source.

      Attachments

        1. linux_peripheral.pro
          0.4 kB
        2. main.cpp
          0.5 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ablasche Alex Blasche
            jirauser40211 user-6bd27 (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes