Qt Bluetooth query when running on Linux with BlueZ



  • Hi,

    I am using Qt5.4.1 on Linux with BlueZ4.101

    When trying to connect to another slave device, I have following queries:

    1. How does pairing happen ? I don't have agent running but still requestPairing(QBluetoothAddress(address), QBluetoothLocalDevice::AuthorizedPaired) succeeds.
    2. I get following log during pairing:
      qt.bluetooth.bluez: OrgBluezDeviceInterface* getDevice(const QBluetoothAddress&, QBluetoothLocalDevicePrivate*) reply failed QDBusError("org.bluez.Error.DoesNotExist", "Does Not Exist")

    I enabled logging in my app and here are the logs:

    qt.bluetooth.bluez: Bluez 4 detected.
    name: "test-bt" address: "78:A5:04:26:13:86" mode: 2
    qt.bluetooth.bluez: OrgBluezDeviceInterface* getDevice(const QBluetoothAddress&, QBluetoothLocalDevicePrivate*) reply failed QDBusError("org.bluez.Error.DoesNotExist", "Does Not Exist")
    [0627/052831:FATAL:at_exit.cc(53)] Check failed: false. Tried to RegisterCallback without an AtExitManager

    qt.bluetooth.bluez: void QBluetoothLocalDevicePrivate::Release()
    BT slave device: "00:02:72:E3:0F:7F" Paired
    qt.bluetooth: Starting discovery
    qt.bluetooth: UUID filter ("{00001101-0000-1000-8000-00805f9b34fb}")
    qt.bluetooth.bluez: Discovery on: "00:02:72:E3:0F:7F" Mode: 1
    qt.bluetooth.bluez: void QBluetoothServiceDiscoveryAgentPrivate::_q_createdDevice(QDBusPendingCallWatcher*) created "00:02:72:E3:0F:7F"
    qt.bluetooth.bluez: Discovered BLE-only device. Normal service discovery skipped.
    qt.bluetooth.bluez: Discovered service "{00001101-0000-1000-8000-00805f9b34fb}" 1
    (1) Sequence
    (1) uuid 1101
    (4) Sequence
    (4) Sequence
    (4) uuid 0100
    (4) Sequence
    (4) uuid 0007
    (256) string Serial Port Profile
    qt.bluetooth: FOUND SERVICE!
    qt.bluetooth: Could not find port/psm for potential remote service
    qt.bluetooth: Socket discovery finished
    qt.bluetooth: Didn't find any
    qt.bluetooth.bluez: "Method "GetProperties" with signature "" on interface "org.bluez.Device" doesn't exist

    Can someone please explain whats happening here ?

    thanks
    Ankur


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.